/* AppSaaz — marketing site design system.
   Presentation scale (BRAND.md): body 17px / 1.47, headlines tighten as they grow.
   Colour is information: ~90% neutral, one accent per product. */

:root {
  --ink: #1c1c1e;
  --ink-2: #3a3a3c;
  --muted: #6b6b70;
  --faint: #8e8e93;
  --line: rgba(0, 0, 0, .10);
  --hairline: rgba(0, 0, 0, .06);
  --bg: #fbfbfa;
  --bg-2: #f4f4f1;
  --surface: #ffffff;
  --sunken: rgba(0, 0, 0, .028);

  --gst: #2563d9;
  --gst-soft: #e9f0fd;
  --ret: #5b4bdb;
  --ret-soft: #efedfd;
  --ok: #1a7f52;
  --ok-soft: #e6f4ec;
  --warn: #8a5a08;
  --warn-soft: #fbf1de;

  --accent: var(--ink);
  --accent-soft: var(--bg-2);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(16, 16, 24, .06), 0 1px 1px rgba(16, 16, 24, .04);
  --shadow: 0 1px 2px rgba(16, 16, 24, .05), 0 8px 24px -6px rgba(16, 16, 24, .10);
  --shadow-lg: 0 2px 4px rgba(16, 16, 24, .04), 0 24px 60px -16px rgba(16, 16, 24, .22);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gutter: 24px;
  color-scheme: light;
}

.theme-gst { --accent: var(--gst); --accent-soft: var(--gst-soft); }
.theme-ret { --accent: var(--ret); --accent-soft: var(--ret-soft); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.47 var(--font);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--ink); }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--accent);
}
.theme-home .eyebrow { color: var(--muted); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.display {
  font-size: clamp(44px, 7.2vw, 88px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 650;
}
.h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -.035em;
}
.h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); letter-spacing: -.01em; }
.muted { color: var(--muted); }
.grad-text {
  background: linear-gradient(100deg, var(--ink) 20%, var(--accent) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.theme-home .grad-text { background-image: linear-gradient(100deg, var(--ink) 10%, var(--gst) 55%, var(--ret) 95%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15.5px/1 var(--font); letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 18px -6px rgba(0,0,0,.45); }
.btn-primary:hover { background: #000; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -8px var(--accent); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: rgba(0,0,0,.22); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); font-size: 16px; }
.link-arrow .arrow { transition: transform .2s ease; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 250, .72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; letter-spacing: -.02em; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: conic-gradient(from 210deg, var(--gst), var(--ret), #111 70%, var(--gst));
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: -.04em;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 4px 10px -4px rgba(37,99,217,.6);
}
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links > a, .nav-links > .menu > button {
  font: 500 15px/1 var(--font); color: var(--ink-2); padding: 10px 12px; border-radius: 999px;
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav-links > a:hover, .nav-links > .menu > button:hover, .nav-links > a[aria-current] { color: var(--ink); background: rgba(0,0,0,.045); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu { position: relative; }
.menu-panel {
  position: absolute; top: calc(100% + 10px); left: -12px; width: 420px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.menu:hover .menu-panel, .menu:focus-within .menu-panel, .menu.open .menu-panel { opacity: 1; visibility: visible; transform: none; }
.menu-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.menu-item { display: flex; gap: 14px; padding: 14px; border-radius: 12px; align-items: flex-start; }
.menu-item:hover { background: var(--bg-2); }
.menu-item strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.menu-item span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.app-ico { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #fff; }
.app-ico svg { width: 20px; height: 20px; }
.app-ico.gst { background: linear-gradient(145deg, #3b7bf0, #1d4fb8); box-shadow: 0 6px 14px -6px rgba(37,99,217,.7); }
.app-ico.ret { background: linear-gradient(145deg, #7566f0, #4434c4); box-shadow: 0 6px 14px -6px rgba(91,75,219,.7); }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 4px auto; transition: transform .2s; }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding: clamp(80px, 11vw, 140px) 0; }
.sec-tight { padding: clamp(56px, 7vw, 88px) 0; }
.sec-head { max-width: 760px; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head .lede { margin-top: 20px; }
.sec-head.left { margin-left: 0; text-align: left; }
.alt { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 0; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(40% 50% at 22% 30%, rgba(37,99,217,.16), transparent 70%),
    radial-gradient(38% 46% at 80% 26%, rgba(91,75,219,.16), transparent 70%),
    radial-gradient(30% 40% at 50% 70%, rgba(255,186,120,.12), transparent 70%);
  filter: blur(10px);
}
.theme-gst .hero-glow { background: radial-gradient(45% 55% at 70% 30%, rgba(37,99,217,.18), transparent 70%), radial-gradient(35% 40% at 15% 20%, rgba(120,170,255,.16), transparent 70%); }
.theme-ret .hero-glow { background: radial-gradient(45% 55% at 70% 30%, rgba(91,75,219,.18), transparent 70%), radial-gradient(35% 40% at 15% 20%, rgba(180,160,255,.18), transparent 70%); }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 75%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-center { text-align: center; max-width: 920px; margin: 0 auto; }
.hero-center .lede { max-width: 640px; margin: 26px auto 0; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--faint); }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.75); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 28px;
}
.pill b { background: var(--ink); color: #fff; font-weight: 600; font-size: 12px; padding: 4px 9px; border-radius: 999px; }
.theme-gst .pill b { background: var(--gst); }
.theme-ret .pill b { background: var(--ret); }

.hero-split { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero-split .lede { margin-top: 24px; max-width: 540px; }
.hero-split .hero-ctas { justify-content: flex-start; }
.hero-split .display { font-size: clamp(42px, 6vw, 76px); }
.hero-bottom { padding-bottom: clamp(64px, 8vw, 110px); }

/* Home hero stage — floating product cards */
.stage { position: relative; height: 560px; margin: 72px auto 0; max-width: 1100px; }
.stage .card { position: absolute; }
.float { animation: float 7s ease-in-out infinite; }
.float.d1 { animation-delay: -1.5s; } .float.d2 { animation-delay: -3s; } .float.d3 { animation-delay: -4.5s; } .float.d4 { animation-delay: -6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } html { scroll-behavior: auto; } .reveal { opacity: 1 !important; transform: none !important; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.mini { padding: 18px 20px; border-radius: 18px; }
.mini-label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--hairline); }
.mini-row:last-child { border-bottom: 0; }
.mini-row .k { color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.gst { background: var(--gst-soft); color: var(--gst); }
.tag.ret { background: var(--ret-soft); color: var(--ret); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Invoice document mock */
.doc { padding: 26px 28px; width: 400px; border-radius: 20px; }
.doc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.doc-co { font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.doc-sub { font-size: 11.5px; color: var(--faint); margin-top: 3px; line-height: 1.45; }
.doc-title { color: var(--gst); font-weight: 650; font-size: 20px; letter-spacing: -.02em; text-align: right; }
.doc-total { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); display: flex; justify-content: space-between; align-items: baseline; }
.doc-total strong { font-size: 22px; letter-spacing: -.02em; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 12.5px; }
.doc th { text-align: left; font-weight: 600; color: #fff; background: var(--gst); padding: 7px 8px; font-size: 11.5px; }
.doc th:first-child { border-radius: 6px 0 0 6px; } .doc th:last-child { border-radius: 0 6px 6px 0; text-align: right; }
.doc td { padding: 9px 8px; border-bottom: 1px solid var(--hairline); }
.doc td:last-child { text-align: right; }
.doc .tax { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding: 5px 8px; }

/* ---------- Logos / facts strip ---------- */
.strip { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: rgba(255,255,255,.6); }
.strip-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; flex-wrap: wrap; }
.strip-in .label { font-size: 13px; color: var(--faint); font-weight: 500; }
.strip-items { display: flex; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; align-items: center; }
.strip-items span { font-weight: 600; font-size: 16px; letter-spacing: -.01em; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.strip-items svg { width: 18px; height: 18px; color: var(--faint); }

/* ---------- Product showcase (home) ---------- */
.products { display: grid; gap: 28px; }
.product {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; overflow: hidden;
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); min-height: 560px;
  transition: box-shadow .3s ease, transform .3s ease;
}
.product:hover { box-shadow: var(--shadow-lg); }
.product-copy { padding: clamp(32px, 4.5vw, 64px); display: flex; flex-direction: column; }
.product-copy .app-ico { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 28px; }
.product-copy .app-ico svg { width: 26px; height: 26px; }
.product-copy h3 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.03em; }
.product-copy p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.checks { display: grid; gap: 12px; margin: 28px 0 36px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--accent); }
.product-copy .actions { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.product-visual { position: relative; background: var(--accent-soft); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding: 56px 0 0 48px; }
.product-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 20%, rgba(255,255,255,.7), transparent 70%); pointer-events: none; }
.product-visual img { position: relative; z-index: 1; border-radius: 14px 0 0 0; box-shadow: var(--shadow-lg); border: 1px solid var(--line); border-right: 0; border-bottom: 0; width: 100%; object-fit: cover; object-position: left top; max-height: 500px; }
.product.reverse { grid-template-columns: 1.15fr 1fr; }
.product.reverse .product-visual { order: -1; padding: 56px 48px 0 0; }
.product.reverse .product-visual img { border-radius: 0 14px 0 0; border-left: 0; border-right: 1px solid var(--line); object-position: right top; }

/* ---------- Flow (better together) ---------- */
.flow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; position: relative; }
.flow::before { content: ""; position: absolute; top: 27px; left: 7%; right: 7%; height: 2px; background: linear-gradient(90deg, var(--gst), var(--ret) 50%, var(--gst)); opacity: .35; }
.flow-step { text-align: center; padding: 0 8px; position: relative; }
.flow-dot { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--gst); }
.flow-dot svg { width: 22px; height: 22px; }
.flow-step.r .flow-dot { color: var(--ret); }
.flow-step strong { display: block; font-size: 15.5px; letter-spacing: -.01em; }
.flow-step span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.flow-legend { display: flex; gap: 20px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }

/* ---------- Bento / feature grid ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile {
  grid-column: span 2; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile.w3 { grid-column: span 3; } .tile.w4 { grid-column: span 4; } .tile.w6 { grid-column: span 6; }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; }
.tile .ico svg { width: 22px; height: 22px; }
.tile h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.25; }
.tile p { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.tile.dark { background: #111113; border-color: #111113; color: #f2f2f5; }
.tile.dark h3 { color: #fff; }
.tile.dark p { color: #a1a1a8; }
.tile.dark .ico { background: rgba(255,255,255,.08); color: #fff; }
.tile-visual { margin-top: 26px; }

/* ---------- Feature rows (alternating) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(96px, 12vw, 160px); }
.feature.flip .feature-copy { order: 2; }
.feature-copy .eyebrow { margin-bottom: 16px; }
.feature-copy h3 { font-size: clamp(30px, 3.5vw, 44px); line-height: 1.08; letter-spacing: -.032em; }
.feature-copy > p { margin-top: 18px; color: var(--muted); font-size: 18px; }
.feature-media { position: relative; border-radius: var(--r-xl); background: var(--accent-soft); padding: clamp(24px, 4vw, 48px); overflow: hidden; }
.feature-media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 80% 0%, rgba(255,255,255,.8), transparent 70%); }
.feature-media > * { position: relative; }
.shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff; overflow: hidden; }
.shot img { width: 100%; }
.shot.tall { max-height: 520px; }
.shot.tall img { object-fit: cover; object-position: top; height: 100%; }

/* ---------- Window chrome ---------- */
.window { border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.window-bar { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid var(--hairline); background: #f7f7f6; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2e2e0; }
.window-bar .addr { margin-left: 14px; flex: 1; max-width: 340px; height: 24px; border-radius: 7px; background: #ececea; font-size: 12px; color: var(--faint); display: flex; align-items: center; padding: 0 10px; }

/* Hero visual composition for product pages */
.hero-visual { position: relative; }
.hero-visual .window { transform: perspective(1800px) rotateY(-8deg) rotateX(3deg); transform-origin: left center; }
.hero-visual .chip { position: absolute; z-index: 2; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 14px; display: flex; gap: 12px; align-items: center; font-size: 14px; }
.chip .ci { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.chip .ci svg { width: 18px; height: 18px; }
.chip strong { display: block; font-size: 14px; letter-spacing: -.01em; }
.chip small { display: block; font-size: 12.5px; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 32px 28px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--hairline); }
.stat b { display: block; font-size: clamp(34px, 4vw, 48px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; position: relative; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-size: 14px; font-weight: 650; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; }
.step h3 { font-size: 19px; letter-spacing: -.02em; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.step .bar { position: absolute; left: 28px; right: 28px; top: 0; height: 3px; border-radius: 0 0 3px 3px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plans.two { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; display: flex; flex-direction: column; }
.plan.featured { background: #111113; color: #f2f2f5; border-color: #111113; box-shadow: var(--shadow-lg); position: relative; }
.plan.featured h3, .plan.featured .price b { color: #fff; }
.plan.featured .plan-sub, .plan.featured .price span { color: #a1a1a8; }
.plan.featured .checks li { color: #e5e5ea; }
.plan.featured .checks svg { color: #9d92ff; }
.plan-badge { position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; }
.plan h3 { font-size: 20px; }
.plan-sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.price { margin: 26px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 48px; font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.price span { color: var(--muted); font-size: 15px; }
.plan .checks { margin: 24px 0 32px; }
.plan .checks li { font-size: 15px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan.featured .btn-ghost { background: #fff; border-color: #fff; }
.plan-foot { text-align: center; margin-top: 32px; color: var(--muted); font-size: 15.5px; }

.free-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; background: #0f1115; color: #e8e8ed; box-shadow: var(--shadow-lg); }
.free-card .l { padding: clamp(36px, 5vw, 64px); }
.free-card .r { padding: clamp(36px, 5vw, 64px); background: linear-gradient(160deg, rgba(37,99,217,.35), rgba(37,99,217,.05)); border-left: 1px solid rgba(255,255,255,.08); }
.free-card h2 { color: #fff; }
.free-card .lede { color: #a1a1a8; }
.free-card .checks li { color: #e5e5ea; }
.free-card .checks svg { color: #7ba2f5; }

/* ---------- Honest box ---------- */
.honest { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.honest-item { display: flex; gap: 16px; padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.honest-item .x { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--muted); flex: none; }
.honest-item .x svg { width: 16px; height: 16px; }
.honest-item strong { display: block; font-size: 16.5px; letter-spacing: -.01em; }
.honest-item p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: transform .25s ease, background .2s; }
.faq summary .pm::before { content: "+"; font-weight: 400; font-size: 18px; line-height: 1; color: var(--muted); }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--bg-2); }
.faq details p { padding: 0 48px 28px 0; color: var(--muted); font-size: 16.5px; }
.faq details p + p { margin-top: -14px; }

/* ---------- Principles (home) ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.principle { background: var(--surface); padding: 40px 36px; }
.principle .n { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.principle h3 { margin-top: 28px; font-size: 22px; letter-spacing: -.02em; }
.principle p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* Proof band */
.proof { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.receipt { padding: 28px; border-radius: 22px; font-size: 14.5px; }
.receipt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: #0c0d10; color: #fff; text-align: center;
  padding: clamp(64px, 9vw, 120px) clamp(24px, 5vw, 80px);
}
.cta::before {
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(30% 35% at 30% 40%, rgba(37,99,217,.55), transparent 70%), radial-gradient(30% 35% at 70% 60%, rgba(91,75,219,.5), transparent 70%);
  filter: blur(30px);
}
.theme-gst .cta::before { background: radial-gradient(35% 40% at 50% 40%, rgba(37,99,217,.6), transparent 70%); }
.theme-ret .cta::before { background: radial-gradient(35% 40% at 50% 40%, rgba(91,75,219,.6), transparent 70%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; }
.cta .lede { color: #b4b4bb; max-width: 560px; margin: 20px auto 0; }
.cta .btn-primary { background: #fff; color: #000; }
.cta .btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.18); }
.cta .hero-note { color: #8e8e93; }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 40px; border-top: 1px solid var(--hairline); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 320px; }
.footer h4 { font-size: 13px; font-weight: 600; color: var(--faint); letter-spacing: .02em; margin-bottom: 16px; }
.footer li + li { margin-top: 10px; }
.footer li a { font-size: 15px; color: var(--ink-2); }
.footer li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hairline); font-size: 13.5px; color: var(--faint); }

/* ---------- Reveal on scroll ---------- */
/* Content is visible at rest; only elements that start below the fold get the entrance. */
.reveal { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.pending { opacity: 0; transform: translateY(24px); }
.reveal.pending.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-split, .feature, .proof, .free-card { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .hero-visual .window { transform: none; }
  .product, .product.reverse { grid-template-columns: 1fr; min-height: 0; }
  .product.reverse .product-visual { order: 0; padding: 40px 0 0 32px; }
  .product.reverse .product-visual img { border-radius: 14px 0 0 0; border-left: 1px solid var(--line); border-right: 0; object-position: left top; }
  .product-visual { padding: 40px 0 0 32px; }
  .flow { grid-template-columns: repeat(4, 1fr); row-gap: 40px; }
  .flow::before { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .bento .tile, .bento .tile.w3, .bento .tile.w4 { grid-column: span 3; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plans.two { grid-template-columns: 1fr; max-width: 480px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .principles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stage { height: auto; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
  .stage .card { position: static; width: auto !important; }
  .stage .doc { grid-column: span 2; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { margin-left: 0; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; gap: 2px;
  }
  .nav.open .menu-panel { position: static; opacity: 1; visibility: visible; transform: none; width: auto; box-shadow: none; border: 0; padding: 0 0 0 4px; }
  .nav.open .menu > button { display: none; }
  .nav.open .nav-links > a { padding: 14px 12px; font-size: 16px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .bento .tile, .bento .tile.w3, .bento .tile.w4 { grid-column: span 6; }
  .steps, .honest { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .stage { grid-template-columns: 1fr; }
  .stage .doc { grid-column: auto; }
  .doc { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
  .hero-visual .chip { display: none; }
  .tile { padding: 26px; }
  .faq summary { font-size: 17px; }
  .faq details p { padding-right: 0; }
  .nav-cta .btn-primary { display: none; }
}

/* =================== Classic SaaS build (owner picks, 2 Oct 2026) =================== */

/* Announcement bar above the nav */
.announce { background: #0f1115; color: #d9d9de; font-size: 14px; }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding-block: 8px; text-align: center; flex-wrap: wrap; }
.announce b { color: #fff; font-weight: 600; }
.announce .tagnew { font-size: 11.5px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; }
.announce a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.announce a:hover { text-decoration-color: #fff; }

/* Split hero with image */
.hero-classic { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-classic .display { font-size: clamp(40px, 5.4vw, 68px); }
.hero-proof { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; font-size: 14.5px; color: var(--muted); }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.hero-img { position: relative; }
.hero-img .frame { position: relative; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.hero-img .frame img { width: 100%; }
.hero-img .frame.doc-frame { max-width: 470px; margin-left: auto; transform: rotate(1.5deg); }
.hero-img .chip { position: absolute; z-index: 2; }
.hero-duo { position: relative; min-height: 520px; }
.hero-duo .frame { position: absolute; }
.hero-duo .f1 { width: 62%; left: 0; top: 0; transform: rotate(-2deg); }
.hero-duo .f2 { width: 72%; right: 0; bottom: 0; }

/* Merchant logos strip */
.logos { padding: 40px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--surface); }
.logos p { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.logo-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: center; }
.logo-slot { height: 56px; border-radius: 12px; border: 1px dashed var(--line); display: grid; place-items: center; color: var(--faint); font-size: 12.5px; font-weight: 500; }
.logo-row img { max-height: 36px; width: auto; margin: 0 auto; filter: grayscale(1); opacity: .7; transition: opacity .2s, filter .2s; }
.logo-row img:hover { filter: none; opacity: 1; }

/* Icon grid */
.icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.icon-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.icon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.icon-card .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; }
.icon-card .ico svg { width: 22px; height: 22px; }
.icon-card h3 { font-size: 19px; letter-spacing: -.02em; line-height: 1.3; }
.icon-card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.icon-card .tag { margin-top: 16px; }

/* Side-by-side product cards (home) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .3s ease, transform .3s ease; }
.duo-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.duo-card .body { padding: clamp(28px, 3.5vw, 44px); display: flex; flex-direction: column; flex: 1; }
.duo-card .app-ico { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 24px; }
.duo-card .app-ico svg { width: 26px; height: 26px; }
.duo-card h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.03em; margin-top: 8px; }
.duo-card > .body > p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.duo-card .checks { margin: 24px 0 28px; }
.duo-card .actions { margin-top: auto; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.duo-card .peek { background: var(--accent-soft); padding: 32px 0 0 32px; height: 300px; overflow: hidden; position: relative; }
.duo-card .peek img { border-radius: 12px 0 0 0; border: 1px solid var(--line); border-right: 0; border-bottom: 0; box-shadow: var(--shadow-lg); width: 110%; max-width: none; }

/* Numbered how-it-works cards: reuse .steps/.step */

/* Integrations grid */
.integrations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.integ { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; gap: 14px; align-items: center; }
.integ .mk { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: -.02em; color: #fff; flex: none; }
.integ strong { display: block; font-size: 15.5px; letter-spacing: -.01em; }
.integ span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* Auto-scrolling screenshot strip */
.marquee { overflow: hidden; padding-block: 8px 28px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 24px; width: max-content; animation: marquee var(--marquee-time, 60s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 12px)); } }
.mq-item { flex: none; width: 420px; margin: 0; }
.mq-item .shot { height: 380px; }
.mq-item .shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.mq-item.doc { width: 300px; }
.mq-item.doc .shot img { object-position: center top; }
.mq-item figcaption { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.mq-item figcaption b { color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; } .marquee-track { animation: none; } .marquee-track > [aria-hidden="true"] { display: none; } }

/* Proof without quotes */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proof-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.proof-card b { display: block; font-size: clamp(36px, 4vw, 48px); font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.proof-card .lbl { display: block; margin-top: 12px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.proof-card p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.proof-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px); }

/* Pricing note */
.price-note { max-width: 760px; margin: 0 auto 36px; display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: var(--r); background: var(--accent-soft); color: var(--ink-2); font-size: 15.5px; }
.price-note svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.plan .price small { font-size: 13px; }
.plan .eyebrow { margin-bottom: 4px; }

/* Sticky install bar */
.install-bar {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: min(760px, calc(100% - 24px)); transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 14px;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-lg);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.install-bar.show { transform: translate(-50%, 0); }
.install-bar .app-ico { width: 38px; height: 38px; border-radius: 50%; }
.install-bar .app-ico svg { width: 18px; height: 18px; }
.install-bar .t { min-width: 0; }
.install-bar strong { display: block; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install-bar span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install-bar .btns { margin-left: auto; display: flex; gap: 8px; flex: none; }
.install-bar .close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 18px; line-height: 1; flex: none; }
.install-bar .close:hover { background: var(--bg-2); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .install-bar { transition: none; } }

@media (max-width: 1020px) {
  .icon-grid, .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .duo, .proof-feature { grid-template-columns: 1fr; }
  .integrations { grid-template-columns: repeat(2, 1fr); }
  .logo-row { grid-template-columns: repeat(3, 1fr); }
  .hero-img .frame.doc-frame { margin: 0 auto; }
  .hero-duo { min-height: 0; display: grid; gap: 16px; }
  .hero-duo .frame { position: relative; width: 100%; transform: none; }
}
@media (max-width: 640px) {
  .icon-grid, .proof-grid, .integrations { grid-template-columns: 1fr; }
  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .mq-item { width: 300px; } .mq-item .shot { height: 300px; } .mq-item.doc { width: 230px; }
  .install-bar { border-radius: 18px; }
  .install-bar .btns .btn-ghost, .install-bar .app-ico { display: none; }
  .announce { font-size: 13px; }
}

@media (max-width: 640px) { .hero-img .chip { display: none; } .hero-img .frame.doc-frame { transform: none; } }
@media (max-width: 1020px) { .steps.three { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px) { .steps.three { grid-template-columns: 1fr; } }
.mini-row > span:last-child { white-space: nowrap; }
