/* =====================================================================
   ShowToCart — marketing + docs site design system
   Self-contained, no build, no external fonts/CDN. Light + dark aware.
   ===================================================================== */

:root {
  /* Brand — violet (#7c3aed). Dark enough for white text, so the same hue works
     on white and on black; --on-brand stays white. Accent is a pink for the
     gradient/glow. */
  --brand: #7c3aed;
  --brand-600: #6d28d9;
  --brand-700: #5b21b6;
  --brand-tint: #ede9fe;     /* pale violet tint (icon chips) */
  --accent: #ec4899;         /* pink accent for gradients */
  --on-brand: #ffffff;       /* text placed ON a --brand background */
  --brand-text: #6d28d9;     /* brand as TEXT: 4.5:1+ on every surface; --brand itself is for backgrounds */

  /* Neutrals (light) — clean, near-neutral grays */
  --bg: #ffffff;
  --bg-soft: #f7f8f7;
  --bg-sunken: #eef1ee;
  --surface: #ffffff;
  --border: #e5e8e5;
  --fg: #101511;
  --fg-muted: #5a635b;
  --fg-faint: #656e66;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Inter", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Fira Code", ui-monospace, Menlo, monospace;

  /* Shape + motion */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 32, 27, .04), 0 8px 30px rgba(16, 32, 27, .07);
  --shadow-lg: 0 20px 60px rgba(16, 32, 27, .16);
  --maxw: 1160px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* Dark = the primary look: vivid purple on near-black. */
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #7c3aed; --brand-600: #9f67f5; --brand-700: #6d28d9;
    --accent: #ec4899; --brand-tint: #1e1533; --on-brand: #ffffff; --brand-text: #9f67f5;
    --bg: #0a0a0a; --bg-soft: #131313; --bg-sunken: #050505; --surface: #151515;
    --border: #272727; --fg: #f4f4f5; --fg-muted: #a1a1aa; --fg-faint: #8e8e97;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 34px rgba(0,0,0,.5);
    --shadow-lg: 0 24px 70px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --brand: #7c3aed; --brand-600: #9f67f5; --brand-700: #6d28d9;
  --accent: #ec4899; --brand-tint: #1e1533; --on-brand: #ffffff; --brand-text: #9f67f5;
  --bg: #0a0a0a; --bg-soft: #131313; --bg-sunken: #050505; --surface: #151515;
  --border: #272727; --fg: #f4f4f5; --fg-muted: #a1a1aa; --fg-faint: #8e8e97;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 34px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 70px rgba(0,0,0,.6);
}
:root[data-theme="light"] {
  --brand: #7c3aed; --brand-600: #6d28d9; --brand-700: #5b21b6;
  --accent: #ec4899; --brand-tint: #ede9fe; --on-brand: #ffffff; --brand-text: #6d28d9;
  --bg: #ffffff; --bg-soft: #f7f8f7; --bg-sunken: #eef1ee; --surface: #ffffff;
  --border: #e5e8e5; --fg: #101511; --fg-muted: #5a635b; --fg-faint: #656e66;
  --shadow: 0 1px 2px rgba(16,32,27,.04), 0 8px 30px rgba(16,32,27,.07);
  --shadow-lg: 0 20px 60px rgba(16,32,27,.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--font); color: var(--fg); background: var(--bg);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;   /* fallback for older browsers */
  overflow-x: clip;     /* prevents horizontal scroll WITHOUT breaking sticky nav */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); margin-bottom: .8rem; }
.lead { font-size: 1.15rem; color: var(--fg-muted); }
.muted { color: var(--fg-muted); }
.center { text-align: center; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem;
  padding: .72rem 1.25rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s var(--ease), background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 18px rgba(124,58,237,.35); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 50; min-height: 66px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 66px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.02em; font-size: 1.12rem; }
/* Full ShowToCart lockup image (see stc_logo). Height-constrained; square so
   width follows. */
.brand-logo { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.nav-links a { font-size: .93rem; font-weight: 500; color: var(--fg-muted); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--fg-muted); }
.icon-btn:hover { color: var(--fg); }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 66px 0 auto 0; z-index: 60; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 8px 24px 20px; margin: 0;
    transform: translateY(-130%); transition: transform .28s var(--ease); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 2px; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-toggle { display: grid; }
  /* nav-links is now fixed (out of flow), so push the controls to the right edge. */
  .nav-cta { margin-left: auto; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); }
.hero::before { content: ""; position: absolute; inset: -40% 0 auto 0; height: 620px; z-index: -1;
  background: radial-gradient(60% 60% at 20% 0%, rgba(124,58,237,.22), transparent 70%),
              radial-gradient(50% 60% at 85% 10%, rgba(236,72,153,.14), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.05; letter-spacing: -.035em; }
.hero h1 span { background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 32ch; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.1rem; font-size: .85rem; color: var(--fg-faint); }
/* Three short proofs under the buttons. A row on desktop, a column on a phone,
   where three of them side by side would wrap into an unreadable mess. */
.hero-ticks { list-style: none; margin: 1.3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero-ticks li { display: flex; align-items: center; gap: 7px; font-size: .92rem; font-weight: 600; color: var(--fg-muted); }
.hero-ticks li svg { width: 17px; height: 17px; color: var(--brand); flex: 0 0 auto; }

/* ---- Hero visual ----
   The screenshot carries its own frame, so the wrapper only lifts it off the
   page. aspect-ratio holds the space before the file arrives, which keeps the
   largest element on the page from shifting everything under it. */
.hero-visual { position: relative; }
.hero-visual img { width: 100%; height: auto; aspect-ratio: 1120 / 580; display: block;
  border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-lg, var(--shadow)); }
@media (max-width: 860px) { .hero-ticks { gap: 6px 18px; } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---- Sections ---- */
section { padding: clamp(48px, 7vw, 96px) 0; }
.section-head { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.bg-soft { background: var(--bg-soft); }

/* ---- Feature grid ---- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: transform .18s var(--ease), box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .ficon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 14px; }
.card .ficon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: .35rem; }
.card p { margin: 0; font-size: .93rem; color: var(--fg-muted); }
.card a.more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-weight: 600; font-size: .88rem; color: var(--brand-text); }

/* ---- Feature deep-dive rows ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split.reverse > .split-media { order: -1; }
.split-media { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-sunken);
  aspect-ratio: 16/11; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.split-media .badge-demo { position: absolute; top: 14px; left: 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 10px; font: 700 11px var(--font); color: var(--fg-muted); }
/* The panel centres whatever it is given. The screenshots are different shapes,
   and the panel's own background becomes the matte, so it is right in both
   themes without baking a colour into the file. */
.split-media.has-image { padding: 18px; display: flex; align-items: center; justify-content: center; }
/* Shrink to fit, never stretch: a wide screenshot scales down (and stays crisp
   on a 2x screen), while a small one renders at its natural size instead of
   being blown up into something soft. */
.split-media.has-image img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.split ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.split ul li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; color: var(--fg-muted); font-size: .96rem; }
.split ul li svg { width: 20px; height: 20px; color: var(--brand); flex: 0 0 auto; margin-top: 2px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.reverse > .split-media { order: 0; } }

/* ---- Steps ---- */
/* auto-fit, not a fixed three: the setup guide has four steps and a hard
   three-column grid left the fourth stranded on a row of its own. */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.step { position: relative; padding-top: 8px; }
.step .n { counter-increment: step; width: 40px; height: 40px; border-radius: 11px; background: var(--brand); color: var(--on-brand);
  font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.step .n::before { content: counter(step); }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* ---- Stat band ---- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.stat { text-align: center; }
.stat .v { font-size: clamp(1.7rem, 6vw, 2.2rem); font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .k { font-size: .85rem; color: var(--fg-muted); }
@media (max-width: 680px) { .stats { grid-template-columns: repeat(2,1fr); gap: 26px; } }

/* ---- Pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1080px) { .price-grid { grid-template-columns: repeat(2,1fr); } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; }
.plan.pop { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg); position: relative; }
.plan.pop::before { content: "Most popular"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: var(--on-brand); font: 700 11px var(--font); padding: 4px 12px; border-radius: 999px; }
.plan .name { font-weight: 700; font-size: 1.05rem; }
.plan .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; }
.plan .price small { font-size: .9rem; font-weight: 500; color: var(--fg-muted); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; flex: 1; }
.plan ul li { display: flex; gap: 9px; padding: 6px 0; font-size: .9rem; color: var(--fg-muted); }
.plan ul li svg { width: 18px; height: 18px; color: var(--brand); flex: 0 0 auto; }
@media (max-width: 900px) { .price-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }

/* ---- CTA band ---- */
/* Purple → pink gradient; white text is readable across it in both themes. */
.cta-band { background: linear-gradient(120deg, #4c1d95, #7c3aed 55%, #ec4899); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .btn-primary { background: #fff; color: #5b21b6; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer .footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-faint); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 5px 0; }
.footer ul li a { color: var(--fg-muted); font-size: .92rem; }
.footer ul li a:hover { color: var(--fg); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--fg-faint); font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---- Badges / pills ---- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--brand-text);
  background: var(--brand-tint); border-radius: 999px; padding: 5px 11px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--fg-faint); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; }

/* =====================================================================
   Docs layout
   ===================================================================== */
.docs { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 44px; align-items: start; padding: 40px 0 90px; }
.docs-side { position: sticky; top: 90px; align-self: start; }
.docs-side nav { display: flex; flex-direction: column; gap: 2px; }
.docs-side .group { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-faint);
  font-weight: 700; margin: 18px 0 6px; }
.docs-side a { padding: 7px 12px; border-radius: 8px; color: var(--fg-muted); font-size: .92rem; }
.docs-side a:hover { background: var(--bg-soft); color: var(--fg); }
.docs-side a.active { background: var(--brand-tint); color: var(--brand-text); font-weight: 600; }
.docs-main { min-width: 0; }
.docs-main h2 { scroll-margin-top: 90px; margin-top: 2.4em; padding-top: .4em; }
.docs-main h2:first-of-type { margin-top: 0; }
.docs-main img { border-radius: var(--radius); border: 1px solid var(--border); margin: 16px 0; }
.callout { border: 1px solid var(--border); border-left: 3px solid var(--brand); background: var(--bg-soft);
  border-radius: 10px; padding: 14px 16px; margin: 18px 0; font-size: .93rem; }
.callout.tip { border-left-color: var(--brand); }
.callout strong { display: block; margin-bottom: 3px; }
kbd { font: 600 .82em var(--mono); background: var(--bg-sunken); border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: 6px; padding: 2px 7px; color: var(--fg); }
code { font: .88em var(--mono); background: var(--bg-sunken); border-radius: 5px; padding: 1px 6px; }
@media (max-width: 900px) {
  /* minmax(0,1fr) lets the column shrink below its content so the pill bar
     scrolls INSIDE the sidebar instead of blowing out the page width. */
  .docs { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .docs-side { position: static; min-width: 0; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 8px; }
  /* Sidebar becomes a WRAPPING row of pills — every item visible, nothing cut,
     no horizontal scroll. */
  .docs-side nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .docs-side .group { display: none; }
  .docs-side a { border: 1px solid var(--border); border-radius: 999px; padding: 7px 13px; }
  .docs-side a.active { border-color: var(--brand); background: var(--brand-tint); }
}

/* ---- Blog ---- */
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s var(--ease); }
.post:hover { transform: translateY(-3px); }
.post .cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--brand-tint), var(--bg-sunken)); position: relative; }
.post .cover .cat { position: absolute; left: 12px; top: 12px; }
.post .body { padding: 18px; }
.post .body h3 { margin-bottom: .3rem; }
.post .body p { font-size: .9rem; color: var(--fg-muted); margin: 0; }
.post .meta { margin-top: 12px; font-size: .8rem; color: var(--fg-faint); }

/* ---- Forms ---- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--fg); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: .96rem; color: var(--fg); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,58,237,.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start; }
@media (max-width: 840px) { .contact-grid { grid-template-columns: 1fr; gap: 30px; } }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); margin-bottom: 14px; }
.contact-card .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; flex: 0 0 auto; }
.contact-card .ic svg { width: 20px; height: 20px; }
.contact-card h3 { margin: 0 0 2px; font-size: 1rem; }
.contact-card p { margin: 0; font-size: .9rem; color: var(--fg-muted); }
.contact-card a { color: var(--brand-text); font-weight: 600; }

/* ---- Article (single blog post) ---- */
.article { max-width: 748px; margin: 0 auto; padding: 34px 0 84px; }
.breadcrumb { font-size: .85rem; color: var(--fg-faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--fg-muted); } .breadcrumb a:hover { color: var(--fg); }
.article-head h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); margin: 10px 0 14px; }
.article-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--fg-muted); font-size: .9rem; margin-bottom: 22px; }
.article-meta .avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); flex: 0 0 auto; }
.article-meta .dot { color: var(--fg-faint); }
.article .cover { aspect-ratio: 16/8; border-radius: var(--radius-lg); border: 1px solid var(--border); margin: 0 0 30px;
  background: linear-gradient(120deg, var(--brand-tint), var(--bg-sunken)); position: relative; overflow: hidden; display: grid; place-items: center; }
.article .cover .play { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--brand); box-shadow: var(--shadow); }
.prose { font-size: 1.06rem; line-height: 1.75; }
.prose > p:first-of-type { font-size: 1.16rem; color: var(--fg-muted); }
.prose h2 { font-size: 1.5rem; margin: 1.9em 0 .5em; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.15rem; margin: 1.4em 0 .4em; }
.prose ul { padding-left: 1.15rem; } .prose li { margin: .3em 0; }
.prose a { color: var(--brand-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose figure { margin: 26px 0; } .prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand);
  color: var(--fg-muted); font-size: 1.12rem; }
.article-cta { margin-top: 40px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.article-tags { margin-top: 30px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- On this page ----
   A contents list, not a sidebar: it sits in the reading column so it works
   the same on a phone, where a sticky rail has nowhere to be. */
.toc { margin: 26px 0 8px; padding: 18px 22px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-sunken); }
.toc-title { margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--fg-muted); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; display: flex; gap: 10px; padding: 4px 0; font-size: .95rem; }
.toc li::before { content: counter(toc); color: var(--brand-text); font-weight: 700;
  font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.toc a { color: var(--fg); text-decoration: none; border-bottom: 1px solid transparent; }
.toc a:hover { color: var(--brand-text); border-bottom-color: currentColor; }
/* Anchors land under the sticky header without this. */
.prose h2 { scroll-margin-top: 84px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
/* If JS is off, never leave reveal content invisible. */
@media (scripting: none) { .reveal { opacity: 1 !important; transform: none !important; } }

/* =====================================================================
   Touch targets
   =====================================================================
   On a phone, a link that is 20px tall is a link people miss. These five are
   real controls, so they get enough height to hit; the inline links inside a
   paragraph are deliberately left alone — WCAG exempts them, and padding a
   link that sits mid-sentence breaks the line it is in.

   Padding only. A blanket `position: relative` on interactive elements is how
   absolutely-positioned controls elsewhere got quietly demoted. */
@media (max-width: 820px) {
  .footer-grid ul li a { display: inline-block; padding: 8px 0; }
  .card a.more { min-height: 40px; }
  .toc a { display: inline-block; padding: 6px 0; }
  .breadcrumb a { display: inline-block; padding: 7px 0; }
  .article-tags .tag { min-height: 34px; display: inline-flex; align-items: center; }
}

/* =====================================================================
   Responsive refinements — tighten the small-screen experience
   ===================================================================== */
.prose { overflow-wrap: break-word; }

/* Tablet: give the 4-up feature/stat grids a comfortable 2-up middle step */
@media (min-width: 621px) and (max-width: 900px) {
}

/* Phones: compact the nav so nothing overflows */
@media (max-width: 600px) {
  .nav-inner { gap: .55rem; }
  .brand { font-size: 1rem; }
  .brand-logo { height: 34px; }
  .nav-cta { gap: .4rem; }
  .nav-cta .btn-primary { padding: .56rem 1rem; font-size: .85rem; }
  .icon-btn { width: 36px; height: 36px; }
}
/* Very small phones: drop the theme toggle to save the row */
@media (max-width: 400px) {
  .nav-cta [data-theme-toggle] { display: none; }
}

/* Phones: full-width, stacked CTAs read better than side-by-side */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .article-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { justify-content: center; text-align: center; }
  section { padding: clamp(40px, 9vw, 96px) 0; }
}

/* =====================================================================
   Static site additions — the skip link, the contact form's status line,
   the honeypot, the pricing notice and blog pagination (WordPress used to
   render its own, unstyled). Everything above is the theme's stylesheet
   unchanged.
   ===================================================================== */
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--brand); color: var(--on-brand);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { left: 16px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 12px 0 0; font-size: .92rem; color: var(--fg-muted); min-height: 1.4em; }
.form-status.ok, .form-status.err { color: var(--fg); font-weight: 600; }
.form-status a { color: var(--brand-text); }
.free-notice { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.pagination { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.pagination .pages { display: flex; gap: 6px; }
.pagination .pages a { min-width: 38px; height: 38px; padding: 0 10px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 10px; color: var(--fg-muted); font-size: .92rem; }
.pagination .pages a[aria-current] { background: var(--brand-tint); color: var(--brand-text); border-color: var(--brand); font-weight: 600; }
.prose ol { padding-left: 1.3rem; }
.article-head a.tag:hover { color: var(--fg); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* A grid track is allowed to shrink below the hero screenshot's 1120px intrinsic
   width on a phone; without this the column blows out and the page is wider
   than the viewport. Same for the deep-dive rows. */
.hero-grid > *, .split > * { min-width: 0; }
/* Three plans instead of four: the grid follows the count the build sets. */
.price-grid.cols-3 { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin: 0 auto; }
@media (max-width: 900px) { .price-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .price-grid.cols-3 { grid-template-columns: 1fr; } }

/* =====================================================================
   Motion — entrance, the hero demo clip, the stat count-up. Transform and
   opacity only (no layout work, CLS stays 0), and every animation is off
   under prefers-reduced-motion.
   ===================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: translateY(18px) scale(.985); } to { transform: none; } }
@keyframes glow { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-3%, 2%, 0) scale(1.06); } }
.hero-copy > * { animation: rise .6s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .07s; }
.hero-copy > :nth-child(3) { animation-delay: .14s; }
.hero-copy > :nth-child(4) { animation-delay: .21s; }
.hero-copy > :nth-child(5) { animation-delay: .28s; }
.hero-copy > :nth-child(6) { animation-delay: .35s; }
/* Transform only: the poster inside is the page's largest paint and must be visible from the first frame. */
.hero-visual { animation: settle .8s var(--ease) .1s both; }
.hero::before { animation: glow 16s ease-in-out infinite alternate; }
.card .ficon { transition: transform .22s var(--ease); }
.card:hover .ficon { transform: scale(1.08) rotate(-3deg); }

/* ---- Hero demo ---- */
.hero-demo { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg, var(--shadow)); overflow: hidden; background: var(--bg-sunken); }
.hero-demo .demo-video, .hero-demo .demo-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  display: block; border: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.hero-demo .demo-poster { z-index: 1; transition: opacity .7s var(--ease); }
.hero-demo.is-playing .demo-poster { opacity: 0; }
.demo-toggle { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); background: rgba(10,10,10,.55); color: #fff; display: grid; place-items: center;
  cursor: pointer; backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.demo-toggle svg { width: 16px; height: 16px; }
.demo-toggle .i-play { display: none; }
.demo-toggle[aria-pressed="true"] .i-play { display: block; }
.demo-toggle[aria-pressed="true"] .i-pause { display: none; }
.demo-toggle[hidden] { display: none; }
.hero-demo:hover .demo-toggle, .hero-demo:focus-within .demo-toggle, .demo-toggle[aria-pressed="true"] { opacity: 1; }
@media (hover: none) { .demo-toggle { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-visual, .hero::before { animation: none; }
  .card .ficon, .hero-demo .demo-poster { transition: none; }
}

/* =====================================================================
   Hero stage — a phone showing the reel popup (the app's own mobile
   layout, drawn in HTML over the clip), a "made for Shopify" badge and
   three floating source chips. The 16:9 demo panel lives in the deep dive.
   ===================================================================== */
.hero-stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.phone { position: relative; width: 300px; aspect-ratio: 9 / 19; border-radius: 46px; background: #0b0b0f; padding: 11px;
  box-shadow: 0 34px 90px rgba(0,0,0,.45), 0 0 0 1px #2a2a31, inset 0 0 0 1px rgba(255,255,255,.08); }
.phone::before { content: ""; position: absolute; top: 21px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px;
  border-radius: 16px; background: #000; z-index: 4; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #111; }
.phone-screen .demo-video, .phone-screen .demo-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  display: block; border: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.phone-screen .demo-poster { z-index: 1; transition: opacity .7s var(--ease); }
.phone.is-playing .demo-poster { opacity: 0; }
.phone .demo-toggle { right: 22px; bottom: 112px; width: 34px; height: 34px; z-index: 5; }
.phone .demo-toggle svg { width: 14px; height: 14px; }

/* The reel popup's mobile chrome, as the storefront draws it (mirrors stc-reel-popup-v2.css):
   40px controls top-right with equal 12px gaps, the bare-icon action rail,
   the "rich" product strip floating on the video, a 3px progress line.
   Every inset is 16px; the only addition is a soft scrim so the white
   type stays readable over a bright clip. */
.reel-ui { position: absolute; inset: 0; z-index: 2; color: #fff; font-family: var(--font); pointer-events: none; }
.reel-ui svg { width: 20px; height: 20px; }
.reel-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.reel-ctl, .reel-cart { position: absolute; top: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.reel-ctl { background: rgba(0,0,0,.55); backdrop-filter: blur(4px); }
.reel-close { right: 16px; }
.reel-mute { right: 68px; }
.reel-cart { right: 120px; background: #111; }
.reel-cart svg { width: 18px; height: 18px; }
.reel-cart i { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--brand); color: #fff;
  border: 2px solid #fff; box-sizing: border-box; font: 700 10px/16px var(--font); text-align: center; font-style: normal; animation: pop .5s var(--ease) 1.6s both; }
.reel-rail { position: absolute; right: 12px; bottom: 110px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.reel-act { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 44px; font-size: 10px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.reel-act svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)); }
.reel-strip { position: absolute; left: 16px; right: 16px; bottom: 28px; display: flex; gap: 12px; align-items: stretch; padding: 10px; border-radius: 16px;
  animation: cardIn .7s var(--ease) .5s both; }
.reel-strip img { width: 70px; height: 70px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.reel-strip__body { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.reel-strip__body strong { font-size: 14px; font-weight: 600; line-height: 1.25; text-shadow: 0 1px 2px rgba(0,0,0,.4);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reel-strip__price { font-size: 12px; font-weight: 600; margin-top: 1px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.reel-strip__price s { opacity: .7; font-weight: 400; margin-left: 4px; }
.reel-strip__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 7px 14px; width: fit-content; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.reel-strip__cta svg { width: 14px; height: 14px; }
.reel-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); }
.reel-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; }
.phone.is-playing .reel-progress i { animation: progress 8s linear infinite; }
@keyframes progress { from { width: 0; } to { width: 100%; } }

/* Around the phone */
.hero-badge { position: absolute; left: 0; top: 17%; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: .82rem; font-weight: 600; color: var(--fg); z-index: 3;
  animation: floatY 7s ease-in-out infinite; }
.hero-badge svg { width: 18px; height: 18px; color: var(--brand-text); }
.hero-chips .chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: .82rem; font-weight: 600; color: var(--fg); z-index: 3; }
.hero-chips .chip svg { width: 18px; height: 18px; color: var(--brand-text); }
.chip-1 { right: 2%; top: 40%; animation: floatY 6s ease-in-out infinite; }
.chip-2 { right: 0; top: 52%; animation: floatY 6s ease-in-out .8s infinite; }
.chip-3 { right: 4%; top: 64%; animation: floatY 6s ease-in-out 1.6s infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(0); } 70% { transform: scale(1.25); } to { transform: scale(1); } }

@media (max-width: 1100px) { .phone { width: 270px; } .hero-stage { min-height: 580px; } }
@media (max-width: 860px) {
  .hero-stage { min-height: 0; padding-bottom: 6px; }
  .phone { width: 260px; }
  .hero-badge { display: none; }
  .hero-chips { position: static; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; width: 100%; }
  .hero-chips .chip { position: static; animation: none; }
}

/* The deep-dive panel with a clip instead of a still. */
.split-media.has-video { aspect-ratio: 16 / 9; padding: 0; }
.split-media.has-video .demo-video, .split-media.has-video .demo-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.split-media.has-video .demo-poster { z-index: 1; transition: opacity .7s var(--ease); }
.split-media.has-video.is-playing .demo-poster { opacity: 0; }
.split-media.has-video .badge-demo { z-index: 3; }
.split-media.has-video .demo-toggle { z-index: 3; }
.split-media.has-video:hover .demo-toggle, .split-media.has-video:focus-within .demo-toggle { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-badge, .hero-chips .chip, .reel-strip, .reel-cart i, .reel-progress i { animation: none; }
}
/* Room for the chips: the phone sits a little left of centre on wide screens,
   and the badge rides the phone's left edge over the video, below the controls. */
@media (min-width: 861px) {
  .hero-stage { padding-right: 76px; }
  .hero-badge { left: -14px; top: 31%; }
  .chip-1 { right: -6px; top: 38%; }
  .chip-2 { right: -14px; top: 51%; }
  .chip-3 { right: -2px; top: 64%; }
}
/* The real pause/play (the storefront uses tap-to-pause; a visible control keeps this clip pausable for everyone): top-left, same size as the app's controls. */
.phone .demo-toggle.reel-toggle { top: 16px; left: 16px; right: auto; bottom: auto; width: 40px; height: 40px; opacity: 1; background: rgba(0,0,0,.55); border-color: transparent; }
.phone .demo-toggle.reel-toggle svg { width: 16px; height: 16px; }
/* One rhythm: every section that follows a hero (or the hero's stat band)
   starts the same distance below it. Replaces the per-page inline paddings. */
.after-hero { padding-top: 16px; }
/* Below the island, clear of each other: the top controls sit under the
   phone's safe area (as they would on a real device), the rail ends above
   the strip, and the strip stops short of the rail's column. */
.reel-ctl, .reel-cart, .phone .demo-toggle.reel-toggle { top: 56px; }
.reel-rail { bottom: 124px; }
.reel-strip { right: 64px; }
/* The rail now ends above the strip, so the strip can use the full width again. */
.reel-strip { right: 16px; }
/* Tabular digits keep the count-up from changing the stat's width as it runs. */
.stat .v { font-variant-numeric: tabular-nums; }

/* =====================================================================
   The desktop reel modal, drawn over the clip in the "Reel popup" deep
   dive. Everything is in container-query units (calc(var(--u) * 1) = 1% of the panel's
   width), so the mock-up scales with the panel on every screen.
   ===================================================================== */
.split-media.has-modal { --u: 1cqw; container-type: inline-size; aspect-ratio: 16 / 11; padding: 0; overflow: hidden; display: block;
  background: radial-gradient(ellipse at center, #2b2b33 0%, #0b0b0f 100%); }
.split-media.has-modal .badge-demo { z-index: 6; }
.rm { position: absolute; inset: 0; font-family: var(--font); }
.rm-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: calc(var(--u) * 60); display: flex;
  border-radius: calc(var(--u) * 2); overflow: hidden; box-shadow: 0 calc(var(--u) * 3) calc(var(--u) * 8) rgba(0,0,0,.5); }
.rm-video { position: relative; width: calc(var(--u) * 33.75); height: 100%; background: #000; flex: 0 0 auto; }
.rm-video .demo-video, .rm-video .demo-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.rm-video .demo-poster { z-index: 1; transition: opacity .7s var(--ease); }
.split-media.has-modal.is-playing .demo-poster { opacity: 0; }
.rm-video .demo-toggle { left: calc(var(--u) * 2); bottom: calc(var(--u) * 2.2); top: auto; right: auto; width: calc(var(--u) * 4); height: calc(var(--u) * 4); opacity: 1; z-index: 4;
  background: rgba(0,0,0,.55); border-color: transparent; }
.rm-video .demo-toggle svg { width: calc(var(--u) * 1.8); height: calc(var(--u) * 1.8); }
.rm-video-ui { position: absolute; inset: 0; z-index: 2; color: #fff; pointer-events: none; }
.rm-mute { position: absolute; top: calc(var(--u) * 2); right: calc(var(--u) * 2); width: calc(var(--u) * 5); height: calc(var(--u) * 5); border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; }
.rm-mute svg { width: calc(var(--u) * 2.4); height: calc(var(--u) * 2.4); }
.rm-rail { position: absolute; right: calc(var(--u) * 1.6); bottom: calc(var(--u) * 9); display: flex; flex-direction: column; gap: calc(var(--u) * 1.6); align-items: center; }
.rm-act { display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * .4); font-size: calc(var(--u) * 1.3); font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.rm-act svg { width: calc(var(--u) * 2.6); height: calc(var(--u) * 2.6); filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)); }
.rm-act.is-liked svg { fill: #ff2d7a; stroke: #ff2d7a; }
.rm-progress { position: absolute; left: calc(var(--u) * 7.4); right: calc(var(--u) * 2); bottom: calc(var(--u) * 3.8); height: calc(var(--u) * .6); border-radius: calc(var(--u) * .3); background: rgba(255,255,255,.3); }
.rm-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #ff3b30; border-radius: inherit; }
.rm-progress i::after { content: ""; position: absolute; right: calc(var(--u) * -.9); top: 50%; width: calc(var(--u) * 1.8); height: calc(var(--u) * 1.8); border-radius: 50%; background: #ff3b30; transform: translateY(-50%); }
.split-media.has-modal.is-playing .rm-progress i { animation: progress 8s linear infinite; }
.rm-panel { width: calc(var(--u) * 40); height: 100%; background: #fff; color: #111; padding: calc(var(--u) * 2.4); display: flex; flex-direction: column; gap: calc(var(--u) * 1.5); overflow: hidden; }
.rm-head { display: flex; align-items: center; gap: calc(var(--u) * 1.4); }
.rm-head strong { font-size: calc(var(--u) * 2.2); font-weight: 700; flex: 1; }
.rm-back svg { width: calc(var(--u) * 2); height: calc(var(--u) * 2); display: block; }
.rm-cart { width: calc(var(--u) * 4.8); height: calc(var(--u) * 4.8); border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; }
.rm-cart svg { width: calc(var(--u) * 2.2); height: calc(var(--u) * 2.2); }
.rm-thumbs { display: flex; gap: calc(var(--u) * 1); }
.rm-thumbs img { width: calc(var(--u) * 10.4); height: calc(var(--u) * 10.4); border-radius: calc(var(--u) * 1.4); object-fit: cover; border: calc(var(--u) * .25) solid transparent; background: #f3f3f3; }
.rm-thumbs img.is-sel { border-color: #111; }
.rm-title { font-size: calc(var(--u) * 2); font-weight: 500; line-height: 1.3; }
.rm-price { display: flex; align-items: center; gap: calc(var(--u) * 1.2); }
.rm-price b { font-size: calc(var(--u) * 3.2); font-weight: 700; }
.rm-price s { font-size: calc(var(--u) * 1.9); color: #8a8a8a; }
.rm-price em { font-style: normal; font-size: calc(var(--u) * 1.5); font-weight: 700; color: #fff; background: #e53935; border-radius: calc(var(--u) * .6); padding: calc(var(--u) * .5) calc(var(--u) * 1); }
.rm-label { font-size: calc(var(--u) * 1.6); color: #555; }
.rm-opts { display: flex; gap: calc(var(--u) * 1); flex-wrap: wrap; }
.rm-opts span { font-size: calc(var(--u) * 1.6); font-weight: 600; padding: calc(var(--u) * .9) calc(var(--u) * 2.2); border-radius: calc(var(--u) * 99); border: calc(var(--u) * .15) solid #ddd; color: #333; }
.rm-opts span.is-sel { background: #555; color: #fff; border-color: #555; }
.rm-qty { display: inline-flex; border: calc(var(--u) * .15) solid #ddd; border-radius: calc(var(--u) * .9); width: fit-content; overflow: hidden; }
.rm-qty span { width: calc(var(--u) * 5.4); height: calc(var(--u) * 4.4); display: grid; place-items: center; font-size: calc(var(--u) * 1.8); font-weight: 600; }
.rm-qty span + span { border-left: calc(var(--u) * .15) solid #ddd; }
.rm-actions { display: flex; gap: calc(var(--u) * 1.4); margin-top: auto; }
.rm-more { font-size: calc(var(--u) * 1.7); font-weight: 700; padding: calc(var(--u) * 1.6) calc(var(--u) * 2.4); border: calc(var(--u) * .15) solid #ddd; border-radius: calc(var(--u) * 1.4); white-space: nowrap; }
.rm-atc { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--u) * 1); background: #111; color: #fff; font-size: calc(var(--u) * 1.7); font-weight: 700; border-radius: calc(var(--u) * 1.4); padding: calc(var(--u) * 1.6); white-space: nowrap; }
.rm-atc svg { width: calc(var(--u) * 2); height: calc(var(--u) * 2); }
.rm-nav { position: absolute; top: 50%; transform: translateY(-50%); width: calc(var(--u) * 6); height: calc(var(--u) * 6); border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.rm-nav svg { width: calc(var(--u) * 2.6); height: calc(var(--u) * 2.6); }
.rm-prev { left: calc(var(--u) * 3); }
.rm-next { right: calc(var(--u) * 3); }
.rm-close { position: absolute; top: calc(var(--u) * 2.4); right: calc(var(--u) * 2.4); width: calc(var(--u) * 5); height: calc(var(--u) * 5); border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.rm-close svg { width: calc(var(--u) * 2.4); height: calc(var(--u) * 2.4); }
@media (prefers-reduced-motion: reduce) { .rm-progress i { animation: none; } }

/* ---- The strip, as the storefront shows it today: a glass pill with the
   bigger image, bold title, price and the CTA chip (owner screenshot). ---- */
.reel-strip { background: rgba(255,255,255,.16); backdrop-filter: blur(14px) saturate(160%); border: 1px solid rgba(255,255,255,.22); padding: 10px; gap: 12px; }
.reel-strip img { width: 64px; height: 64px; }
.reel-strip__body strong { font-size: 13px; font-weight: 700; }
.reel-strip__cta { font-size: 11px; padding: 6px 12px; margin-top: 5px; }

/* ---- The details sheet (phone variant "details") ---- */
.reel-dim { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; color: #111; border-radius: 18px 18px 0 0; padding: 8px 14px 14px;
  display: flex; flex-direction: column; gap: 8px; animation: cardIn .7s var(--ease) .5s both; }
.sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: #ddd; margin: 0 auto 2px; }
.sheet-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.sheet-head svg { width: 14px; height: 14px; }
.sheet-thumbs { display: flex; gap: 6px; }
.sheet-thumbs img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; border: 2px solid transparent; background: #f3f3f3; }
.sheet-thumbs img.is-sel { border-color: #111; }
.sheet-title { font-size: 13px; font-weight: 500; }
.sheet-price { display: flex; align-items: center; gap: 8px; }
.sheet-price b { font-size: 18px; font-weight: 700; }
.sheet-price s { font-size: 11px; color: #8a8a8a; }
.sheet-price em { font-style: normal; font-size: 9px; font-weight: 700; color: #fff; background: #e53935; border-radius: 4px; padding: 2px 6px; }
.sheet-label { font-size: 10px; color: #555; }
.sheet-opts { display: flex; gap: 6px; }
.sheet-opts span { font-size: 10px; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid #ddd; color: #333; }
.sheet-opts span.is-sel { background: #555; color: #fff; border-color: #555; }
.sheet-actions { display: flex; gap: 8px; margin-top: 2px; }
.sheet-more { font-size: 10px; font-weight: 700; padding: 9px 12px; border: 1px solid #ddd; border-radius: 9px; white-space: nowrap; }
.sheet-atc { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #111; color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; padding: 9px; white-space: nowrap; }
.sheet-atc svg { width: 13px; height: 13px; }
.phone--details .reel-cart, .phone--details .reel-ctl { top: 56px; }

/* ---- "Why merchants choose": phone in the middle, two cards a side ---- */
.why-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.why-col { display: grid; gap: 20px; }
.why-phone { display: grid; place-items: center; }
.why-phone .phone { width: 280px; }
@media (max-width: 1000px) { .why-phone .phone { width: 240px; } }
@media (max-width: 760px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-phone { order: -1; }
}

/* ---- "Built for growth, optimized for speed": stat tiles + the vitals ---- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.tile-k { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.tile-v { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--brand-text); margin: 6px 0 4px; }
.tile-note { margin: 0; font-size: .85rem; color: var(--fg-muted); }
.tile--dark { background: #111; border-color: #111; }
.tile--dark .tile-k, .tile--dark .tile-note { color: #c9c9cf; }
.tile--dark .tile-v { color: #c4b5fd; }
.speed-cards { display: grid; gap: 20px; }
.speed-ring { display: grid; place-items: center; gap: 14px; padding: 32px; }
.ring { width: 180px; height: 180px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#16a34a 0 100%); position: relative; }
.ring::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: #16a34a; }
.ring-label { margin: 0; font-size: .9rem; color: var(--fg-muted); text-align: center; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.vital { flex: 1 1 90px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px; border-radius: 12px; background: var(--bg-sunken); }
.vital b { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; color: #16a34a; }
.vital small { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.speed-badges .muted { margin: 0; font-size: .88rem; }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
/* The headline tile reads as a highlight in both themes: the CTA band's gradient, not flat black. */
.tile--dark { background: linear-gradient(135deg, #4c1d95, #7c3aed 60%, #9333ea); border-color: transparent; }
.tile--dark .tile-k, .tile--dark .tile-note { color: rgba(255,255,255,.85); }
.tile--dark .tile-v { color: #fff; }

/* Phones: the modal mock-up grows (one variable) inside a taller panel, and
   the side arrows go — there is no room for them and nothing to flick to. */
@media (max-width: 600px) {
  .split-media.has-modal { --u: 1.28cqw; aspect-ratio: 4 / 5; }
  .rm-nav { display: none; }
  .reel-strip img { width: 56px; height: 56px; }
  .reel-strip__body strong { font-size: 12px; }
}
/* The rail ends clear of the (now taller) strip. */
.reel-rail { bottom: 138px; }
/* With the phone in the hero the section is tall on its own; the old 120px
   of top padding read as an empty band under the nav. */
.hero { padding-top: clamp(24px, 3.5vw, 44px); }
.hero-stage { min-height: 0; }
/* The pause/play sits outside the screen (a sibling of .phone-screen, so it
   stays out of the decorative aria-hidden layer); its offsets include the
   phone's 11px bezel so it lines up with the cart/mute/close row inside. */
.phone .demo-toggle.reel-toggle { top: 67px; left: 27px; }
/* Plan buttons stretch to the card's width (flex column); centre their label. */
.plan .btn { justify-content: center; }
/* When GSAP drives the reveals, the CSS transition steps aside (GSAP tweens the
   same opacity/transform from the same hidden start state). */
.gsap-on .reveal { transition: none; }
.why-phone .phone { transform-style: preserve-3d; }
/* A real phone's proportions (iPhone body ≈ 2.07:1), and on shorter viewports
   the whole mock-up scales down so the strip is never cut off. `zoom` scales
   layout too, so the UI inside keeps its exact proportions. */
.phone { aspect-ratio: 9 / 18.6; }
@media (min-width: 861px) and (max-height: 860px) { .hero-stage .phone { zoom: 0.92; } }
@media (min-width: 861px) and (max-height: 780px) { .hero-stage .phone { zoom: 0.84; } }
@media (min-width: 861px) and (max-height: 700px) { .hero-stage .phone { zoom: 0.76; } }
/* Brand: the mark at 36px plus the name as text (the lockup's own wordmark was
   unreadable at this size); the mark brightens a little on dark backgrounds. */
.brand-logo { height: 36px; width: auto; }
.brand-name { font-weight: 800; letter-spacing: -.02em; font-size: 1.12rem; color: var(--fg); white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-logo { filter: brightness(1.35) saturate(1.05); } }
:root[data-theme="dark"] .brand-logo { filter: brightness(1.35) saturate(1.05); }
@media (max-width: 600px) { .brand-logo { height: 30px; } .brand-name { font-size: 1rem; } }
@media (max-width: 380px) { .brand-name { display: none; } }
