/* InvoiceForge home — v2 (editorial, light, coin-video hero) */
html, body { background: #f4f3f0; }
:root {
  --bg: #f4f3f0;
  --ink: #111113;
  --ink-60: rgba(17, 17, 19, .62);
  --ink-40: rgba(17, 17, 19, .42);
  --line: rgba(17, 17, 19, .12);
  --plum: #2b2644;
  --lav: #e4dffb;
  --lav-2: #cfc6f5;
  --card: #ffffff;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection { background: rgba(107, 92, 231, .3); }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #6b5ce7; outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

/* grain */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* buttons */
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; border: 0; cursor: pointer;
  font: 500 15px/1 var(--sans); letter-spacing: -.01em;
  padding: 8px 8px 8px 26px; border-radius: 999px;
  transition: background .25s, transform .2s var(--ease);
}
.pill:hover { background: #2a2a30; }
.pill:active { transform: scale(.97); }
.pill .chip { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .3s var(--ease); }
.pill:hover .chip { transform: rotate(-45deg); }
.pill-sm { padding: 6px 6px 6px 18px; font-size: 14px; gap: 10px; }
.pill-sm .chip { width: 30px; height: 30px; }
.pill-light { background: #fff; color: var(--ink); }
.pill-light:hover { background: #f1efff; }
.pill-light .chip { background: var(--ink); color: #fff; }
.pill-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); padding: 8px 26px; height: 56px; justify-content: center; }
.pill-ghost:hover { background: rgba(17, 17, 19, .05); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; color: var(--ink); padding: 14px 6px; }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* nav */
.nav { position: absolute; top: 28px; left: 0; right: 0; z-index: 30; display: flex; justify-content: center; padding: 0 16px; animation: rise .9s var(--ease) both; }
.nav-pill {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .58); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px; padding: 8px 8px 8px 12px;
  box-shadow: 0 4px 24px rgba(30, 20, 70, .08);
}
.brand { display: flex; align-items: center; gap: 10px; padding-right: 14px; font-weight: 600; font-size: 16px; letter-spacing: -.03em; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 2px; padding: 0 6px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-60); padding: 9px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }

/* hero */
.hero { padding: 12px; }
.hero-card {
  position: relative; overflow: hidden; border-radius: 32px; background: #d8d5e4;
  height: calc(100vh - 24px); height: calc(100svh - 24px); min-height: 680px; max-height: 1000px;
  display: flex; flex-direction: column; justify-content: center; isolation: isolate;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; z-index: -2; opacity: 0; animation: fadein 1.2s .1s ease forwards; transform: scale(1.04); }
.hero-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(244, 243, 250, .72) 0%, rgba(244, 243, 250, .35) 38%, rgba(244, 243, 250, 0) 62%); }
.hero-copy { padding: 110px 64px 120px; max-width: 880px; }
.chip-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .7); margin-bottom: 28px; }
.chip-tag i { font-style: normal; background: var(--ink); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.hero h1 { font-weight: 500; font-size: clamp(54px, 8.6vw, 132px); line-height: .92; letter-spacing: -.05em; margin-bottom: 28px; }
.hero h1 .ln { display: block; white-space: nowrap; }
.hero h1 em { letter-spacing: -.035em; font-size: 1.04em; }
.hero .sub { font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-60); max-width: 30rem; margin-bottom: 36px; line-height: 1.5; }
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-strip { position: absolute; left: 64px; bottom: 36px; display: flex; flex-wrap: wrap; gap: 8px 0; font-size: 13px; color: rgba(17, 17, 19, .72); background: rgba(255, 255, 255, .66); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .75); border-radius: 999px; padding: 12px 24px; }
.hero-strip span { padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--line); }
.hero-strip span:last-child { border: 0; padding-right: 0; margin-right: 0; }
.hero-strip b { color: var(--ink); font-weight: 600; }

/* niche (template) pages */
.hero-card.niche { height: auto; min-height: 0; max-height: none; justify-content: flex-start; background: linear-gradient(160deg, #ebe7fc 0%, #cfc6f5 100%); }
.hero-card.niche::after { display: none; }
.niche-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 170px 64px 120px; }
.niche h1 { font-weight: 500; font-size: clamp(40px, 4.7vw, 70px); line-height: .96; letter-spacing: -.045em; margin-bottom: 26px; }
.niche h1 em { letter-spacing: -.03em; }
.niche-paper { display: grid; place-items: center; }
.niche-paper .paper { width: min(100%, 440px); }
.bento.three { grid-template-columns: repeat(3, 1fr); }
.bento.three .cell h3 { max-width: none; }
.bento.three .cell { min-height: 300px; }
@media (max-width: 1000px) { .niche-grid { grid-template-columns: 1fr; padding: 150px 40px 90px; } .bento.three { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .niche-grid { padding: 110px 22px 70px; gap: 40px; } }

/* entrance */
.rise { animation: rise .95s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fadein { to { opacity: 1; transform: none; } }

/* statement + builder */
.section { padding: 150px 0; }
.eyebrow { font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-40); display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--ink-40); }
h2.big { font-weight: 500; font-size: clamp(40px, 5.6vw, 84px); line-height: .98; letter-spacing: -.045em; }
.builder { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.builder p.lede { font-size: 19px; color: var(--ink-60); max-width: 28rem; margin: 28px 0 34px; }
.stage { background: linear-gradient(160deg, var(--lav) 0%, var(--lav-2) 100%); border-radius: 36px; padding: 56px 40px; display: grid; place-items: center; position: relative; overflow: hidden; }
.paper { background: #fff; width: min(100%, 430px); border-radius: 12px; padding: 34px 32px 28px; box-shadow: 0 2px 4px rgba(43, 38, 68, .06), 0 24px 60px rgba(43, 38, 68, .22); transform: rotate(-1.5deg); position: relative; }
.paper-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.paper-biz { font-weight: 600; font-size: 15px; letter-spacing: -.02em; }
.paper-biz small { display: block; font-weight: 400; color: var(--ink-40); font-size: 12px; letter-spacing: 0; margin-top: 2px; }
.paper-title { font: 600 11px/1 var(--sans); letter-spacing: .32em; color: var(--ink-40); }
.paper-no { font-size: 12px; color: var(--ink-40); margin-top: 6px; text-align: right; }
.paper-to { font-size: 12px; color: var(--ink-40); margin-bottom: 22px; }
.paper-to b { display: block; color: var(--ink); font-weight: 500; font-size: 14px; margin-top: 3px; }
.rows { border-top: 1.5px solid var(--ink); }
.row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 11px 0; border-bottom: 1px solid #eceaf2; font-size: 13.5px; }
.row span:last-child { font-variant-numeric: tabular-nums; font-weight: 500; }
.sumline { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-60); padding: 6px 0 0; font-variant-numeric: tabular-nums; }
.paper-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px solid var(--ink); margin-top: 12px; padding-top: 14px; font-weight: 600; }
.paper-total .amt { font-size: 30px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stamp { position: absolute; right: 22px; bottom: -16px; transform: rotate(-4deg); background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .18em; padding: 8px 14px; border-radius: 6px; text-transform: uppercase; }
.js .paper .row, .js .paper .sumline, .js .paper .paper-total, .js .paper .stamp { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--t, 0s); }
.js .paper.on .row, .js .paper.on .sumline, .js .paper.on .paper-total, .js .paper.on .stamp { opacity: 1; transform: none; }
.js .paper .stamp { transform: rotate(-4deg) scale(1.4); }
.js .paper.on .stamp { transform: rotate(-4deg) scale(1); }

/* marquee */
.band { border-block: 1px solid var(--line); overflow: hidden; padding: 38px 0; background: var(--bg); }
.band-track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.band:hover .band-track { animation-play-state: paused; }
.band-item { display: flex; align-items: center; gap: 44px; padding-right: 44px; font-size: clamp(40px, 5.4vw, 80px); font-weight: 500; letter-spacing: -.045em; line-height: 1; white-space: nowrap; color: var(--ink); }
.band-item a { transition: color .25s; }
.band-item a:hover { color: #6b5ce7; }
.band-item em { color: var(--ink-40); }
.band-item svg { width: .42em; height: .42em; flex: none; color: var(--ink-40); }
@keyframes slide { to { transform: translateX(-50%); } }

/* bento */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 64px; flex-wrap: wrap; }
.sec-head p { max-width: 24rem; color: var(--ink-60); font-size: 17px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cell { border-radius: 28px; padding: 32px; min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; background: var(--card); transition: transform .5s var(--ease); }
.cell:hover { transform: translateY(-4px); }
.cell h3 { font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.05; letter-spacing: -.035em; max-width: 14ch; }
.cell p { font-size: 15.5px; line-height: 1.5; color: var(--ink-60); max-width: 22rem; }
.cell .tag { font: 500 12px/1 var(--sans); letter-spacing: .2em; color: var(--ink-40); text-transform: uppercase; margin-bottom: 20px; display: block; }
.cell.s2 { grid-column: span 2; }
.cell.s2 h3 { max-width: 21ch; }
.cell.lav { background: var(--lav); }
.cell.dark { background: var(--plum); color: #fff; }
.cell.dark p { color: rgba(255, 255, 255, .62); }
.cell.dark .tag { color: rgba(255, 255, 255, .45); }
.cur { display: flex; flex-wrap: wrap; gap: 8px; }
.cur span { font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); }
.big-num { font-weight: 300; font-size: clamp(64px, 8vw, 120px); line-height: .85; letter-spacing: -.06em; }
.big-num small { font-size: .35em; letter-spacing: -.02em; font-weight: 400; color: var(--ink-60); margin-left: 6px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.step { border-top: 1px solid var(--ink); padding-top: 22px; }
.step .n { font-size: 13px; letter-spacing: .2em; color: var(--ink-40); font-weight: 500; }
.step h3 { font-weight: 500; font-size: clamp(30px, 3vw, 44px); line-height: 1; letter-spacing: -.045em; margin: 70px 0 16px; }
.step p { color: var(--ink-60); font-size: 16px; max-width: 22rem; }

/* pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 980px; margin: 0 auto; }
.plan { border-radius: 32px; padding: 40px; background: #fff; display: flex; flex-direction: column; min-height: 520px; position: relative; }
.plan.pro { background: var(--plum); color: #fff; }
.plan h3 { font: 500 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 26px; }
.plan.pro h3 { color: rgba(255, 255, 255, .5); }
.plan .price { font-weight: 500; font-size: 84px; line-height: .9; letter-spacing: -.06em; margin-bottom: 8px; }
.plan .price small { font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--ink-40); margin-left: 6px; }
.plan.pro .price small { color: rgba(255, 255, 255, .5); }
.plan ul { list-style: none; margin: 34px 0 36px; display: grid; gap: 14px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink-60); }
.plan.pro li { color: rgba(255, 255, 255, .78); }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--ink); }
.plan.pro li svg { color: var(--lav-2); }
.plan .badge { position: absolute; top: 32px; right: 32px; background: var(--lav-2); color: var(--plum); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.plan .pill { align-self: flex-start; }

/* faq */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq-left { position: sticky; top: 40px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: clamp(19px, 1.7vw, 24px); font-weight: 500; letter-spacing: -.03em; }
summary::-webkit-details-marker { display: none; }
summary i { flex: none; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; }
details[open] summary i { transform: rotate(45deg); background: var(--ink); color: #fff; box-shadow: none; }
details p { color: var(--ink-60); font-size: 16.5px; max-width: 38rem; padding: 0 60px 28px 0; }

/* cta */
.cta { padding: 0 12px 12px; }
.cta-card { border-radius: 36px; background: var(--plum); color: #fff; text-align: center; padding: 140px 24px 130px; position: relative; overflow: hidden; }
.cta-card::before { content: ""; position: absolute; left: 50%; top: 0; width: 900px; height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(207, 198, 245, .22), transparent); pointer-events: none; }
.cta-card h2 { font-weight: 500; font-size: clamp(44px, 7vw, 108px); line-height: .94; letter-spacing: -.05em; margin-bottom: 44px; position: relative; }
.cta-card h2 em { color: var(--lav-2); }
.cta-card p { color: rgba(255, 255, 255, .6); margin: -14px auto 40px; max-width: 26rem; position: relative; }
.cta-card .pill { position: relative; }

/* footer */
.footer { padding: 56px 0 44px; }
.f-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.f-links { display: flex; flex-wrap: wrap; gap: 10px 28px; max-width: 640px; font-size: 14.5px; color: var(--ink-60); }
.f-links b { color: var(--ink-40); font-weight: 500; letter-spacing: .16em; font-size: 12px; text-transform: uppercase; flex-basis: 100%; }
.f-links a:hover { color: var(--ink); }
.f-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--ink-40); }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* tablet + mobile */
@media (max-width: 1000px) {
  .builder, .faq { grid-template-columns: 1fr; gap: 48px; }
  .faq-left { position: static; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step h3 { margin-top: 36px; }
  .section { padding: 100px 0; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav { top: 18px; }
  .nav-links { display: none; }
  .hero { padding: 8px; }
  .hero-card { border-radius: 26px; min-height: 720px; justify-content: flex-end; }
  .hero-video { object-position: 68% 40%; }
  .hero-card::after { background: linear-gradient(0deg, rgba(244, 243, 250, .9) 0%, rgba(244, 243, 250, .6) 40%, rgba(244, 243, 250, 0) 64%); }
  .hero-copy { padding: 100px 22px 118px; }
  .hero h1 .ln { white-space: normal; }
  .hero-strip { left: 22px; bottom: 24px; font-size: 12px; padding: 10px 18px; }
  .hero-strip span { padding-right: 12px; margin-right: 12px; }
  .hero-strip span:nth-child(n+3) { display: none; }
  .hero-strip span:nth-child(2) { border: 0; padding-right: 0; margin-right: 0; }
  .pill-ghost { display: none; }
  .stage { padding: 36px 16px; border-radius: 28px; }
  .paper { padding: 26px 22px 22px; }
  .bento { grid-template-columns: 1fr; }
  .cell.s2 { grid-column: auto; }
  .cell { min-height: 280px; }
  .pricing { grid-template-columns: 1fr; }
  .plan { min-height: 0; padding: 32px 26px; }
  details p { padding-right: 0; }
  .cta-card { padding: 96px 20px; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .nav, .hero-video { animation: none; opacity: 1; transform: none; filter: none; }
  .band-track { animation: none; }
  .js .reveal, .js .paper .row, .js .paper .sumline, .js .paper .paper-total, .js .paper .stamp { opacity: 1; transform: none; transition: none; }
  .js .paper .stamp { transform: rotate(-4deg); }
  html { scroll-behavior: auto; }
}
