/* ══════════════════════════════════════════════════════
   Subastago Landing — style.css
   Direction: "Bento Warm" — warm cream, bento grids,
   chunky Bricolage Grotesque headings, WhatsApp green.
   Fonts: Bricolage Grotesque (display) + Outfit (body)
══════════════════════════════════════════════════════ */

:root {
  /* Palette */
  --cream: #faf7f2;
  --cream-2: #f3eee4;
  --cream-3: #ece5d8;
  --paper: #fffdf9;
  --ink: #1a1714;
  --ink-soft: #5d564c;
  --ink-faint: #8a8276;
  --line: rgba(26, 23, 20, 0.1);
  --line-strong: rgba(26, 23, 20, 0.16);

  --green: #25d366;
  --green-deep: #128c5e;
  --green-dark: #0b5c3e;
  --green-wash: #e9f7ee;
  --green-bubble: #d9fdd3;
  --amber: #f59e0b;
  --amber-wash: #fdf2dc;
  --wa-link: #0b7bbd;

  /* Type */
  --font-display: "Bricolage Grotesque", "Avenir Next", sans-serif;
  --font-body: "Outfit", "Avenir Next", sans-serif;

  /* Shape */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;

  --shadow-card: 0 1px 2px rgba(26, 23, 20, 0.04), 0 10px 30px -12px rgba(26, 23, 20, 0.12);
  --shadow-pop: 0 2px 4px rgba(26, 23, 20, 0.06), 0 24px 48px -16px rgba(26, 23, 20, 0.2);

  --max-w: 1160px;
}

/* ── Reset / base ─────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(26, 23, 20, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

::selection {
  background: var(--green);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--green-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-green {
  background: var(--green);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(26, 23, 20, 0.12), 0 12px 28px -10px rgba(18, 140, 94, 0.55);
}

.btn-green:hover {
  background: #3adf76;
  box-shadow: 0 1px 0 rgba(26, 23, 20, 0.12), 0 16px 34px -10px rgba(18, 140, 94, 0.6);
}

.btn-ink {
  background: var(--ink);
  color: var(--cream);
}

.btn-ink:hover {
  background: #322c26;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(26, 23, 20, 0.05);
}

.btn-sm {
  padding: 0.55em 1.25em;
  font-size: 0.95rem;
}

.btn-lg {
  padding: 0.85em 1.7em;
  font-size: 1.05rem;
}

.btn-xl {
  padding: 1em 2.1em;
  font-size: 1.18rem;
}

/* ── Language switcher ────────────────────────────── */
.lang-switcher {
  display: inline-flex;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  padding: 0.32em 0.8em;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.active {
  background: var(--ink);
  color: var(--cream);
}

/* ── Header / nav ─────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  border-radius: 9px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 12px;
  margin-right: auto;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

/* ── Section scaffolding ──────────────────────────── */
.section {
  padding: 96px 24px;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-head {
  max-width: 660px;
  margin-bottom: 52px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.eyebrow-green {
  color: var(--green-deep);
}

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 800;
}

.section-sub {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 84px 24px 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(closest-side, rgba(37, 211, 102, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 17ch;
}

.hero-title em {
  font-style: normal;
  color: var(--green-deep);
  background: linear-gradient(rgba(37, 211, 102, 0.4), rgba(37, 211, 102, 0.4)) left 88% / 100% 0.16em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 58ch;
}

.hero-ctas {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-faint);
}

/* ── Hero demo (publish → WhatsApp → store) ───────── */
.hero-demo {
  margin-top: 64px;
  width: 100%;
}

.demo-stage {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 34px 30px 30px;
  box-shadow: var(--shadow-card);
}

.demo-frame {
  flex: 1 1 0;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  opacity: 0.45;
  filter: saturate(0.6);
  transform: scale(0.97);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
}

.demo-stage[data-stage="1"] .frame-publish,
.demo-stage[data-stage="2"] .frame-wa,
.demo-stage[data-stage="3"] .frame-store,
.demo-stage[data-stage="all"] .demo-frame {
  opacity: 1;
  filter: none;
  transform: scale(1);
}

.demo-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.demo-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
}

.demo-arrow {
  align-self: center;
  color: var(--ink-faint);
  flex: none;
  margin-top: 18px;
  transition: color 0.4s ease, transform 0.4s ease;
}

.demo-stage[data-stage="2"] .demo-arrow:not(.demo-arrow-2),
.demo-stage[data-stage="3"] .demo-arrow-2 {
  color: var(--green-deep);
  transform: translateX(4px);
}

/* Frame 1 — publish card */
.mini-card,
.mini-store {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.mini-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-photo {
  height: 84px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--amber-wash), var(--cream-3));
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-photo-sm {
  height: 64px;
}

.mini-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 4px;
}

.mini-price {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-deep);
}

.mini-btn {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5em 1em;
  border-radius: 999px;
}

.publish-btn {
  background: var(--ink);
  color: var(--cream);
}

.demo-stage[data-stage="1"] .publish-btn {
  animation: btn-press 2.6s ease infinite;
}

@keyframes btn-press {
  0%, 38%, 100% { transform: scale(1); box-shadow: none; }
  46% { transform: scale(0.94); }
  54% { transform: scale(1.02); box-shadow: 0 0 0 5px rgba(37, 211, 102, 0.3); }
  70% { transform: scale(1); box-shadow: 0 0 0 9px rgba(37, 211, 102, 0); }
}

/* Frame 2 — WhatsApp chat */
.mini-chat {
  flex: 1;
  background: #efe7db;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mini-chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-dark);
  color: #f0fdf4;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.mini-chat-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
}

.mini-chat-body {
  flex: 1;
  padding: 14px 12px 16px;
  display: flex;
  justify-content: flex-end;
}

.wa-bubble {
  position: relative;
  background: var(--green-bubble);
  border-radius: 12px;
  border-top-right-radius: 4px;
  padding: 8px;
  width: min(200px, 100%);
  box-shadow: 0 1px 1px rgba(26, 23, 20, 0.12);
  align-self: flex-start;
}

.wa-bubble-img {
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--amber-wash), var(--cream-3));
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.wa-bubble-title {
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.3;
}

.wa-bubble-price {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.wa-bubble-link {
  font-size: 0.8rem;
  color: var(--wa-link);
  text-decoration: underline;
  word-break: break-all;
  margin-top: 2px;
}

.wa-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-size: 0.66rem;
  color: var(--ink-faint);
  margin-top: 4px;
}

.wa-bubble-meta svg {
  color: #53bdeb;
}

.demo-stage[data-stage="2"] .frame-wa .wa-bubble {
  animation: bubble-pop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both;
  animation-delay: 0.25s;
}

@keyframes bubble-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.85); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Frame 3 — mini store */
.mini-store {
  display: flex;
  flex-direction: column;
}

.mini-store-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--cream-2);
}

.mini-store-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
}

.mini-url {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-store-body {
  position: relative;
  flex: 1;
  padding: 12px 14px 42px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.buy-btn {
  background: var(--green);
  color: var(--ink);
}

.demo-stage[data-stage="3"] .buy-btn {
  animation: btn-press 2.8s ease infinite;
}

.mini-toast {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #b5f2cd;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
}

.demo-stage[data-stage="3"] .mini-toast {
  animation: toast-in 0.45s ease both;
  animation-delay: 1.1s;
}

.demo-stage[data-stage="all"] .mini-toast {
  opacity: 1;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── How it works ─────────────────────────────────── */
.how .section-head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
}

.step-card-green {
  background: var(--green-wash);
  border-color: rgba(18, 140, 94, 0.25);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  background: var(--cream-2);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.step-card-green .step-num {
  background: var(--green);
  border-color: transparent;
  color: var(--ink);
}

.step-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--ink-soft);
  font-size: 0.99rem;
}

/* ── WhatsApp deep-dive ───────────────────────────── */
.wa-section {
  position: relative;
  background: linear-gradient(180deg, var(--green-wash), rgba(233, 247, 238, 0.35));
  border-top: 1px solid rgba(18, 140, 94, 0.15);
  border-bottom: 1px solid rgba(18, 140, 94, 0.15);
}

.wa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.wa-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
}

.wa-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.wa-card > p,
.anatomy-copy p {
  color: var(--ink-soft);
  font-size: 0.99rem;
}

.wa-card-wide {
  grid-column: span 2;
}

/* QR mock */
.qr-mock {
  position: relative;
  width: 136px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 22px;
  overflow: hidden;
}

.qr-scanline {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 14px 2px rgba(37, 211, 102, 0.65);
  animation: qr-scan 2.6s ease-in-out infinite;
}

@keyframes qr-scan {
  0%, 100% { transform: translateY(10px); }
  50% { transform: translateY(122px); }
}

/* Group picker mock */
.group-mock {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 22px;
}

.group-mock-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.group-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--paper);
  border: 1px solid var(--line);
}

.group-row + .group-row {
  margin-top: 8px;
}

.group-row.is-on {
  border-color: rgba(18, 140, 94, 0.35);
  background: #f4fcf7;
}

.group-row:not(.is-on) {
  opacity: 0.6;
}

.group-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--cream-2);
  font-size: 0.85rem;
}

.group-name {
  font-weight: 500;
  font-size: 0.92rem;
  flex: 1;
}

.group-check {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 7px;
  border: 1.5px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.group-check.on {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}

/* Anatomy of the alert */
.anatomy-wrap,
.sync-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

.anatomy-legend {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.anatomy-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.97rem;
}

.legend-dot,
.anatomy-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
}

.anatomy-bubble-wrap {
  display: flex;
  justify-content: center;
  padding: 26px 20px;
  background: #efe7db;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}

.wa-bubble-lg {
  width: min(240px, 100%);
}

.wa-bubble-lg .wa-bubble-img {
  height: 86px;
}

.anatomy-marker {
  position: absolute;
  box-shadow: 0 0 0 3px var(--paper);
  z-index: 1;
}

.anatomy-marker.m1 { top: 18px; left: -11px; }
.anatomy-marker.m2 { top: 104px; left: -11px; }
.anatomy-marker.m3 { bottom: 34px; left: -11px; }

/* Self-updating message */
.wa-card-sync {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.wa-card-sync .anatomy-copy p {
  color: #bdb5a8;
}

.sync-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sync-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 12px 16px;
}

.sync-tag {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--cream);
  flex: 1;
}

.sync-arrow {
  color: var(--green);
  flex: none;
}

.sync-result {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}

.sync-result s {
  color: #8a8276;
  font-weight: 400;
}

.sync-result em {
  font-style: normal;
  font-weight: 400;
  color: #8a8276;
  font-size: 0.78rem;
}

.sync-deleted {
  color: #f0a8a0;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

/* ── Bento — the app side ─────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
}

.bento-card h3 {
  font-size: 1.22rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.bento-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.bento-proofs {
  grid-row: span 2;
  background: var(--green-wash);
  border-color: rgba(18, 140, 94, 0.25);
}

.bento-roles {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.bento-roles-copy {
  flex: 1 1 260px;
}

/* proof mock */
.proof-mock {
  position: relative;
  margin-bottom: auto;
  padding-bottom: 26px;
}

.proof-receipt {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.proof-receipt-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proof-doc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--amber-wash);
  color: var(--amber);
}

.proof-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.proof-name {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proof-sub {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.proof-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.proof-btn {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.5em 0.6em;
  border-radius: 999px;
}

.proof-btn.approve {
  background: var(--green);
  color: var(--ink);
}

.proof-btn.reject {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--ink-soft);
}

.proof-stamp {
  position: absolute;
  right: 10px;
  bottom: 2px;
  background: var(--ink);
  color: #b5f2cd;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.4em 1em;
  border-radius: 999px;
  transform: rotate(-4deg);
  box-shadow: var(--shadow-card);
}

.bento-proofs h3 {
  margin-top: 22px;
}

/* order mock */
.order-mock {
  display: flex;
  align-items: center;
  margin: 6px 2px 10px;
}

.order-dot {
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--paper);
}

.order-dot.done {
  background: var(--green);
  border-color: var(--green);
}

.order-dot.active {
  border-color: var(--green-deep);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.25);
  animation: order-pulse 2s ease infinite;
}

@keyframes order-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3); }
  50% { box-shadow: 0 0 0 7px rgba(37, 211, 102, 0.08); }
}

.order-line {
  flex: 1;
  height: 2.5px;
  background: var(--line);
  border-radius: 999px;
}

.order-line.done {
  background: var(--green);
}

.order-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

.order-labels .is-active {
  color: var(--green-deep);
  font-weight: 600;
}

/* chat mock */
.chat-mock {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 20px;
}

.chat-line {
  max-width: 85%;
  font-size: 0.84rem;
  padding: 0.5em 0.9em;
  border-radius: 14px;
  width: fit-content;
}

.chat-line.in {
  background: var(--cream-2);
  border-bottom-left-radius: 4px;
}

.chat-line.out {
  background: var(--green-bubble);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* bars mock */
.bars-mock {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 84px;
  margin: 4px 2px 20px;
}

.bars-mock span {
  flex: 1;
  height: var(--h);
  background: var(--cream-3);
  border-radius: 6px 6px 3px 3px;
  transform-origin: bottom;
  transition: height 0.4s ease;
}

.bars-mock .hot {
  background: var(--green);
}

.revealed .bars-mock span {
  animation: bar-grow 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.revealed .bars-mock span:nth-child(2) { animation-delay: 0.06s; }
.revealed .bars-mock span:nth-child(3) { animation-delay: 0.12s; }
.revealed .bars-mock span:nth-child(4) { animation-delay: 0.18s; }
.revealed .bars-mock span:nth-child(5) { animation-delay: 0.24s; }
.revealed .bars-mock span:nth-child(6) { animation-delay: 0.3s; }
.revealed .bars-mock span:nth-child(7) { animation-delay: 0.36s; }

@keyframes bar-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* roles */
.role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1 1 300px;
}

.role-chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55em 1.15em;
  border-radius: 999px;
  background: var(--cream-2);
  border: 1px solid var(--line);
}

.role-chip.role-admin {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ── White-label ──────────────────────────────────── */
.wl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.wl-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wl-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 1.02rem;
}

.wl-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
}

.wl-visual {
  position: relative;
}

.wl-browser {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  transform: rotate(1.2deg);
}

.wl-browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--cream-2);
}

.wl-dots {
  display: inline-flex;
  gap: 6px;
}

.wl-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cream-3);
  border: 1px solid var(--line);
}

.wl-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.3em 1em;
}

.wl-url svg {
  color: var(--green-deep);
}

.wl-browser-body {
  padding: 22px;
}

.wl-shop-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.wl-shop-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #7c5cff, #4f8bff);
}

.wl-shop-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.wl-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.wl-shop-grid span {
  height: 86px;
  border-radius: var(--r-sm);
  background: var(--cream-2);
  border: 1px solid var(--line);
}

.wl-shop-grid span:nth-child(1) {
  background: linear-gradient(135deg, #ece6ff, #dbe7ff);
}

.wl-swatches {
  position: absolute;
  bottom: -22px;
  left: -16px;
  display: flex;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  box-shadow: var(--shadow-pop);
  transform: rotate(-2deg);
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}

.swatch.s1 { background: #7c5cff; }
.swatch.s2 { background: var(--green); }
.swatch.s3 { background: var(--amber); }
.swatch.s4 { background: var(--ink); }

/* ── CTA final ────────────────────────────────────── */
.cta-section {
  padding-top: 40px;
}

.cta-card {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-xl);
  padding: clamp(56px, 8vw, 96px) 32px;
  text-align: center;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: auto -120px -260px;
  height: 420px;
  background: radial-gradient(closest-side, rgba(37, 211, 102, 0.35), transparent 70%);
  pointer-events: none;
}

.cta-title {
  position: relative;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 22ch;
  margin: 0 auto;
}

.cta-sub {
  position: relative;
  margin: 18px auto 34px;
  color: #bdb5a8;
  font-size: 1.08rem;
  max-width: 48ch;
}

.cta-card .btn {
  position: relative;
}

.cta-note {
  position: relative;
  margin-top: 18px;
  font-size: 0.9rem;
  color: #8a8276;
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 44px 24px 52px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
}

.footer-brand {
  flex: 1 1 240px;
}

.footer-tagline {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--ink-faint);
  max-width: 32ch;
}

.footer-links {
  display: flex;
  gap: 24px;
  padding-top: 6px;
}

.footer-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-right {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.footer-copy {
  font-size: 0.84rem;
  color: var(--ink-faint);
}

/* ── Scroll reveals ───────────────────────────────── */
/* Hidden only when JS is available (the inline script adds .js to <html>).
   Without JS the content is visible at its natural opacity. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.js .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 72px 20px;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .wa-grid {
    grid-template-columns: 1fr;
  }

  .wa-card-wide {
    grid-column: auto;
  }

  .anatomy-wrap,
  .sync-wrap {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento-proofs {
    grid-row: auto;
  }

  .bento-roles {
    grid-column: auto;
  }

  .wl-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .wl-visual {
    max-width: 480px;
  }
}

@media (max-width: 860px) {
  /* demo stacks vertically */
  .demo-stage {
    flex-direction: column;
    align-items: center;
    padding: 28px 20px;
  }

  .demo-frame {
    width: 100%;
    max-width: 320px;
  }

  .demo-arrow {
    margin-top: 0;
    transform: rotate(90deg);
  }

  .demo-stage[data-stage="2"] .demo-arrow:not(.demo-arrow-2),
  .demo-stage[data-stage="3"] .demo-arrow-2 {
    transform: rotate(90deg) translateX(4px);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .nav-inner {
    padding: 12px 16px;
    gap: 14px;
  }

  .nav-logo-text {
    display: none;
  }

  .site-footer .footer-right,
  .footer-links {
    align-items: flex-start;
    margin-left: 0;
  }

  .hero {
    padding: 56px 18px 56px;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .anatomy-marker.m1,
  .anatomy-marker.m2,
  .anatomy-marker.m3 {
    left: -9px;
  }

  .bento-roles {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Reduced motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .qr-scanline {
    display: none;
  }

  .demo-frame {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .mini-toast {
    opacity: 1;
  }
}
