/* ===========================================================
   TortieByte landing — design tokens
   =========================================================== */
:root {
  /* Core palette */
  --espresso:        #241F1C;
  --espresso-2:      #38302B;
  --espresso-soft:   #5C5048;
  --cream:           #FFF8F1;
  --cream-2:         #FBEFE0;
  --cream-3:         #F5E4CC;
  --caramel:         #C97932;
  --caramel-2:       #B8651E;
  --tan:             #E6C9A8;
  --tan-2:           #D9B587;
  --mint:            #22C7A9;
  --mint-2:          #1DA88F;
  --teal:            #0D7F6E;
  --teal-deep:       #0A5A4E;

  /* Product accents */
  --cup-bg:          #2A1A12;
  --cup-bg-2:        #3B271B;
  --cup-warm:        #F1E0CB;
  --cup-purple:      #7B5BD6;
  --cup-purple-2:    #B49BFF;

  --word-emerald:    #18A867;
  --word-emerald-2:  #15945B;
  --word-emerald-3:  #D6F1E2;
  --word-bg:         #F4FBF6;

  --auto-bg:         #0E1422;
  --auto-bg-2:       #161E32;
  --auto-amber:      #F5B544;
  --auto-amber-2:    #E69A1D;
  --auto-steel:      #3D5C8F;
  --auto-grid:       #1F2A42;

  /* Type */
  --f-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Radii / shadow */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --shadow-soft: 0 1px 0 rgba(36,31,28,.04), 0 10px 30px -12px rgba(36,31,28,.18);
  --shadow-card: 0 1px 0 rgba(36,31,28,.04), 0 20px 50px -20px rgba(36,31,28,.22);
  --shadow-lift: 0 1px 0 rgba(36,31,28,.04), 0 32px 80px -28px rgba(36,31,28,.30);

  /* Homepage vertical rhythm */
  --home-pane-half-gap: clamp(36px, 4.5vw, 58px);
  --home-pane-edge-gap: clamp(72px, 8vw, 112px);
}

/* ===========================================================
   Reset / base
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
html { scroll-padding-top: 96px; }
body {
  font-family: var(--f-sans);
  color: var(--espresso);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
input, select { font: inherit; }

h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.08; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.25rem, 1.7vw, 1.55rem); }
h4 { font-size: 1.05rem; }
h5 { font-size: 1rem; }
p  { margin: 0; }

.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em; }
.muted { color: var(--espresso-soft); }
.dim { opacity: .55; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  padding: 6px 12px;
  background: rgba(36,31,28,.05);
  border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--mint); box-shadow: 0 0 0 4px rgba(34,199,169,.18); }
.eyebrow .dot-caramel { background: var(--caramel); box-shadow: 0 0 0 4px rgba(201,121,50,.18); }
.eyebrow .dot-teal { background: var(--teal); box-shadow: 0 0 0 4px rgba(13,127,110,.18); }
.eyebrow .dot-emerald { background: var(--word-emerald); box-shadow: 0 0 0 4px rgba(24,168,103,.18); }
.eyebrow .dot-amber { background: var(--auto-amber); box-shadow: 0 0 0 4px rgba(245,181,68,.22); }
.eyebrow .dot-mint { background: var(--mint); box-shadow: 0 0 0 4px rgba(34,199,169,.22); }
.eyebrow.eb-cream { background: rgba(255,248,241,.10); color: var(--cream); }
.eyebrow.eb-amber { background: rgba(245,181,68,.10); color: var(--auto-amber); }
.eyebrow.eb-mint { background: rgba(24,168,103,.10); color: var(--word-emerald-2); }

.grad-mint    { background: linear-gradient(95deg, var(--mint) 0%, var(--teal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-caramel { background: linear-gradient(95deg, var(--caramel) 0%, var(--caramel-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-purple  { background: linear-gradient(95deg, var(--cup-purple-2) 0%, var(--cup-purple) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-emerald { background: linear-gradient(95deg, #2ED68A 0%, var(--word-emerald-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-amber   { background: linear-gradient(95deg, #FFD17A 0%, var(--auto-amber-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  --bg: var(--espresso);
  --fg: var(--cream);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.005em;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 12px 26px -16px rgba(36,31,28,.6);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 18px 36px -16px rgba(36,31,28,.5); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 16px; font-size: .88rem; }
.btn-primary { --bg: var(--espresso); --fg: var(--cream); }
.btn-primary:hover { --bg: #1a1614; }
.btn-ghost {
  background: transparent; color: var(--espresso);
  box-shadow: inset 0 0 0 1.5px rgba(36,31,28,.18);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--espresso); background: rgba(36,31,28,.04); }
.btn-on-dark { --bg: var(--cream); --fg: var(--espresso); }
.btn-on-dark:hover { --bg: #fff; }
.btn-ghost-on-dark {
  background: transparent; color: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(255,248,241,.28);
}
.btn-ghost-on-dark:hover { background: rgba(255,248,241,.06); }
.btn-emerald { --bg: var(--word-emerald); --fg: #fff; }
.btn-emerald:hover { --bg: var(--word-emerald-2); }
.btn-amber { --bg: var(--auto-amber); --fg: #1A1208; }
.btn-amber:hover { --bg: #FFC85C; }

/* ===========================================================
   Header
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(255,248,241,.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled { border-bottom-color: rgba(36,31,28,.08); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { height: 56px; width: auto; max-width: none; object-fit: contain; flex-shrink: 0; }
.primary-nav {
  display: flex; gap: 6px; margin-left: 16px;
}
.primary-nav a {
  padding: 8px 14px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--espresso-2);
  border-radius: 999px;
  transition: background .18s, color .18s;
}
.primary-nav a:hover { background: rgba(36,31,28,.06); color: var(--espresso); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(36,31,28,.06);
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px; background: var(--espresso); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 116px; left: 16px; right: 16px; z-index: 49;
  background: var(--cream);
  border: 1px solid rgba(36,31,28,.08);
  border-radius: var(--r-lg);
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-card);
}
.mobile-menu a { padding: 12px 14px; border-radius: 12px; font-weight: 500; }
.mobile-menu a:hover { background: rgba(36,31,28,.05); }
.mobile-menu.is-open { display: flex; }

/* ===========================================================
   Product sub-nav (sticky local nav on detail pages)
   =========================================================== */
.product-subnav {
  position: sticky;
  top: 85px;
  z-index: 49;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 8px clamp(16px, 3vw, 44px);
  background: rgba(255, 248, 241, 0.94);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(36, 31, 28, 0.08);
  border-top: 1px solid rgba(36, 31, 28, 0.04);
}
.ps-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--espresso);
  letter-spacing: -0.01em;
}
.ps-brand img {
  width: 36px; height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(36,31,28,.04);
}
.ps-nav {
  display: flex;
  justify-self: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.ps-nav::-webkit-scrollbar { display: none; }
.ps-nav a {
  padding: 6px 10px;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--espresso-2);
  border-radius: 999px;
  transition: background .18s, color .18s;
}
.ps-nav a:hover { background: rgba(36,31,28,.06); color: var(--espresso); }
.ps-cta { white-space: nowrap; }

.has-subnav section[id] { scroll-margin-top: 180px; }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.store-badges img {
  /* Both source badges are normalised to the same aspect ratio (see
     assets/store-badges), so at a shared height they render at the same
     width on every product page. No object-fit: this WEBP/JPG pair renders
     correctly only at its natural aspect. */
  height: 52px;
  width: auto;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 14px -8px rgba(36,31,28,.3);
}
.store-badges img:first-child {
  height: 48px;
}

/* ===========================================================
   Section base
   =========================================================== */
section { padding: clamp(64px, 9vw, 120px) clamp(20px, 4vw, 56px); }
.anchor-alias {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}
.section-head {
  max-width: 720px; margin: 0 auto clamp(32px, 5vw, 60px); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.section-head p { color: var(--espresso-soft); font-size: 1.1rem; max-width: 56ch; }
.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--espresso-soft);
  max-width: 56ch;
}
.lede em { font-style: normal; color: var(--espresso); font-weight: 600; }
.lede-cream { color: rgba(255,248,241,.72); }
.lede-cream em { color: var(--cream); }
.lede-on-dark { color: rgba(255,248,241,.7); }
.lede-on-dark em { color: var(--cream); }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  padding-top: clamp(36px, 6vw, 64px);
  padding-bottom: var(--home-pane-half-gap);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -200px -200px auto auto;
  width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(34,199,169,.18), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -200px -200px;
  width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(201,121,50,.14), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 64px);
  max-width: 1280px; margin: 0 auto;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy h1 em { font-style: normal; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* Mascot frame */
.hero-mascot { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mascot-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(70% 60% at 30% 30%, rgba(34,199,169,.18), transparent 70%),
    radial-gradient(60% 70% at 80% 80%, rgba(201,121,50,.16), transparent 70%),
    linear-gradient(180deg, #FFFDF8 0%, #FBEFE0 100%);
  border-radius: var(--r-2xl);
  border: 1.5px solid rgba(36,31,28,.08);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.pixel-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(36,31,28,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,31,28,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 78%);
}
.mint-glow {
  position: absolute; width: 60%; height: 60%; left: -15%; bottom: -15%;
  background: radial-gradient(closest-side, rgba(34,199,169,.45), transparent 70%);
  filter: blur(6px);
  animation: pulse 5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.08); opacity: 1; }
}
.mascot-art {
  position: relative; z-index: 2;
  width: 100%; height: 100%; object-fit: contain;
  transform: scale(.94);
  filter: drop-shadow(0 18px 30px rgba(36,31,28,.25));
}
.chip-tag {
  position: absolute; bottom: 18px; left: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: rgba(36,31,28,.85);
  color: var(--cream);
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.led { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,248,241,.22); }
.led-on { background: var(--mint); box-shadow: 0 0 6px var(--mint); }
.chip-text { margin-left: 4px; }

.byte-floaters { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.byte-floaters span {
  position: absolute; width: 10px; height: 10px; border-radius: 3px; background: var(--mint);
  box-shadow: 0 0 12px rgba(34,199,169,.6);
  animation: float 6s ease-in-out infinite;
}
.byte-floaters span:nth-child(1) { top: 12%; right: 14%; animation-delay: 0s; }
.byte-floaters span:nth-child(2) { top: 28%; right: 6%; width: 7px; height: 7px; background: var(--caramel); box-shadow: 0 0 12px rgba(201,121,50,.6); animation-delay: 1s; }
.byte-floaters span:nth-child(3) { top: 60%; right: 10%; width: 5px; height: 5px; animation-delay: 2s; }
.byte-floaters span:nth-child(4) { top: 40%; left: 8%; width: 6px; height: 6px; background: var(--teal); animation-delay: 1.5s; }
.byte-floaters span:nth-child(5) { bottom: 18%; right: 18%; width: 8px; height: 8px; animation-delay: 2.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); opacity: .85; }
  50% { transform: translateY(-12px); opacity: 1; }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* Marquee under hero logo */
.marquee {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 0;
  padding: 10px 0;
  border-radius: 999px;
  background: var(--espresso);
  overflow: hidden;
  position: relative;
  color: var(--cream);
}
.marquee-track {
  display: flex; align-items: center; gap: 32px;
  white-space: nowrap;
  animation: ticker 32s linear infinite;
  font-weight: 700;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream);
}
.pixel-dot { width: 8px; height: 8px; background: var(--mint); border-radius: 2px; display: inline-block; }

/* ===========================================================
   Products carousel
   =========================================================== */
.products {
  background: var(--cream);
  padding-top: var(--home-pane-half-gap);
  padding-bottom: var(--home-pane-half-gap);
}
.product-carousel {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.product-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 10px 4px 14px;
  margin: -10px -4px -14px;
}
.product-track::-webkit-scrollbar { display: none; }
.product-track:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
  border-radius: var(--r-xl);
}
.product-track .product-card {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  min-width: 0;
}
.pc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgba(36,31,28,.1);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--espresso);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(36,31,28,.12);
  transition: opacity .2s ease, transform .2s ease, background .2s ease, border-color .2s ease;
  padding: 0;
}
.pc-nav:hover { background: #fafafa; border-color: rgba(36,31,28,.2); }
.pc-nav:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.pc-prev { left: -22px; }
.pc-next { right: -22px; }
.pc-nav[disabled] {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(.85);
}
.pc-nav svg { width: 18px; height: 18px; }
.product-carousel.has-no-overflow .pc-nav { display: none; }
.pc-mobile-progress {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pc-mobile-progress span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(36,31,28,.16);
  transition: width .2s ease, background .2s ease, opacity .2s ease;
}
.pc-mobile-progress span.is-active {
  width: 28px;
  background: var(--mint);
}
.product-carousel.has-no-overflow .pc-mobile-progress { display: none; }
.product-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1.5px solid rgba(36,31,28,.08);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 1px 0 rgba(36,31,28,.03);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(36,31,28,.15);
}
.pc-art {
  aspect-ratio: 16 / 11;
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
}
.pc-body {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.pc-meta { display: flex; align-items: center; justify-content: space-between; }
.pill {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(36,31,28,.06);
  color: var(--espresso-2);
}
.pc-body p { color: var(--espresso-soft); font-size: .98rem; }

.pc-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  /* Pin the pill row to the bottom of the body so it sits just above the
     divider, aligned across cards regardless of description length. */
  margin-top: auto;
}
.pc-store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--espresso-soft);
  background: rgba(36,31,28,.04);
  border: 1px solid rgba(36,31,28,.06);
  border-radius: 999px;
}
.pc-store svg { width: 13px; height: 13px; flex-shrink: 0; }

.pc-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed rgba(36,31,28,.1);
}
.pc-action {
  font-weight: 600;
  font-size: .9rem;
  color: var(--espresso);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform .2s, color .2s;
}
.pc-action:hover { transform: translateX(2px); color: var(--caramel); }
.pc-action-ghost { color: var(--espresso-soft); }
.pc-action-ghost:hover { color: var(--mint-2); }
.pc-action.is-soon {
  color: rgba(36,31,28,.32);
  cursor: default;
  pointer-events: none;
  font-weight: 500;
}
.pc-action.is-soon:hover { transform: none; }

/* — CupBearer card art — */
.pc-cup .pc-art {
  background:
    radial-gradient(80% 90% at 50% 35%, rgba(180,155,255,.22), transparent 70%),
    linear-gradient(160deg, #F3E8D9 0%, #E6D2B6 100%);
}
.pc-cup-mascot {
  width: 64%;
  height: auto;
  max-height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(36,31,28,.18));
  position: relative;
  z-index: 1;
}
.scan-frame {
  position: absolute; inset: 8%; pointer-events: none; z-index: 2;
}
.scan-frame .corner {
  position: absolute; width: 18px; height: 18px;
  border: 2.5px solid var(--cup-purple);
  border-radius: 2px;
}
.scan-frame .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.scan-frame .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.scan-frame .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.scan-frame .br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* — Wordrio card art — */
.pc-word .pc-art {
  background: linear-gradient(160deg, #ECFAF1 0%, #D8F1E3 100%);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  align-items: stretch; justify-content: center;
}
.cefr-stack { display: flex; gap: 10px; }
.cefr {
  flex: 1;
  font-weight: 700;
  padding: 12px 0;
  background: #fff;
  border-radius: 14px;
  text-align: center;
  color: var(--espresso);
  font-size: 1.05rem;
  box-shadow: 0 4px 10px -6px rgba(0,0,0,.1);
}
.cefr.active { background: var(--word-emerald); color: #fff; }
.word-card {
  background: #fff; border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  box-shadow: 0 4px 10px -6px rgba(0,0,0,.08);
}
.article {
  background: var(--word-emerald-3); color: var(--word-emerald-2);
  font-weight: 700; padding: 4px 10px; border-radius: 8px; font-size: .85rem;
}
.noun { font-weight: 700; font-size: 1.05rem; }
.bar { flex: 1 1 100%; height: 6px; border-radius: 999px; background: rgba(24,168,103,.15); overflow: hidden; }
.bar span { display: block; height: 100%; width: 62%; background: var(--word-emerald); }
.streak {
  align-self: flex-start;
  background: #FFF1DC; color: #B86A11;
  font-weight: 600; padding: 6px 10px; border-radius: 999px; font-size: .82rem;
}

/* — Auto Empire card art — */
.pc-auto .pc-art {
  background: linear-gradient(160deg, #131A2D 0%, #0B1020 100%);
  color: var(--cream);
  padding: 22px;
}
.dash {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(245,181,68,.18);
  border-radius: 16px;
  padding: 14px 16px;
  width: 100%; height: 100%;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
.dash-row { display: flex; align-items: baseline; justify-content: space-between; }
.ds-label { font-family: var(--f-mono); font-size: .65rem; letter-spacing: .14em; color: rgba(255,248,241,.5); }
.ds-value { font-weight: 700; font-size: 1.1rem; color: var(--cream); }
.ds-value.pos { color: var(--auto-amber); }
.dash-chart { flex: 1; min-height: 0; margin-top: 4px; }
.dash-chart svg { width: 100%; height: 100%; }
.dash-tag {
  position: absolute; bottom: 12px; right: 14px;
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .14em;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(245,181,68,.14); color: var(--auto-amber);
}

/* ===========================================================
   Feature panels (per-product)
   =========================================================== */
.feature {
  overflow: hidden;
  position: relative;
}
.feature-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.feature-grid-reverse { direction: rtl; }
.feature-grid-reverse > * { direction: ltr; }

.feature-copy { display: flex; flex-direction: column; gap: 22px; }
.feature-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.feat-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 4px;
}
.feat {
  padding: 18px;
  border-radius: var(--r-md);
  background: rgba(255,248,241,.06);
  border: 1px solid rgba(255,248,241,.1);
  color: var(--cream);
  display: flex; flex-direction: column; gap: 10px;
}
.feat h5 { font-size: 1rem; }
.feat p { font-size: .88rem; color: rgba(255,248,241,.7); }
.feat-ico {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,248,241,.08);
  color: var(--cream);
}
.feat-ico svg { width: 18px; height: 18px; }
.feat-row-light .feat { background: #fff; border-color: rgba(36,31,28,.08); color: var(--espresso); box-shadow: 0 1px 0 rgba(36,31,28,.04); }
.feat-row-light .feat p { color: var(--espresso-soft); }
.feat-emerald .feat-ico { background: rgba(24,168,103,.12); color: var(--word-emerald-2); }
.feat-row-dark .feat { background: rgba(245,181,68,.04); border-color: rgba(245,181,68,.16); color: var(--cream); }
.feat-amber .feat-ico { background: rgba(245,181,68,.14); color: var(--auto-amber); font-family: var(--f-mono); font-weight: 700; font-size: 1rem; }

/* — CupBearer feature — */
.feature-cup {
  background:
    radial-gradient(60% 60% at 90% 10%, rgba(180,155,255,.10), transparent 70%),
    radial-gradient(60% 60% at 10% 90%, rgba(201,121,50,.18), transparent 70%),
    linear-gradient(180deg, var(--cup-bg) 0%, var(--cup-bg-2) 100%);
  color: var(--cream);
}
.feature-cup .lede em { color: var(--cup-warm); }

/* — Wordrio feature — */
.feature-word {
  background: linear-gradient(180deg, #F4FBF6 0%, #E6F4EC 100%);
}

/* — Automotive Empire feature — */
.feature-auto {
  background:
    radial-gradient(60% 60% at 10% 0%, rgba(245,181,68,.10), transparent 70%),
    radial-gradient(60% 60% at 90% 100%, rgba(91,127,191,.12), transparent 70%),
    linear-gradient(180deg, var(--auto-bg) 0%, #0A0F1C 100%);
  color: var(--cream);
}
.feature-auto .eyebrow.eb-amber { color: var(--auto-amber); }

/* ===========================================================
   Phone mockups (shared)
   =========================================================== */
.phone-wrap {
  position: relative;
  display: grid; place-items: center;
  padding: 20px 0;
}
.phone {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 9 / 19.5;
  background: var(--espresso);
  border-radius: 46px;
  padding: 10px;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.05),
    0 40px 80px -30px rgba(0,0,0,.5),
    0 14px 30px -10px rgba(0,0,0,.35);
}
.phone-dark { background: #0A0F1C; }
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px;
  background: #0a0707;
  border-radius: 999px;
  z-index: 4;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--cream);
  display: flex; flex-direction: column;
}


/* ===========================================================
   Brand story
   =========================================================== */
.story {
  background: var(--cream);
  padding-top: var(--home-pane-half-gap);
  padding-bottom: var(--home-pane-half-gap);
}
.story-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.eyebrow.story-mobile-eyebrow { display: none !important; }
.story-art { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.story-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(60% 70% at 30% 30%, rgba(34,199,169,.18), transparent 70%),
    radial-gradient(60% 70% at 80% 80%, rgba(201,121,50,.16), transparent 70%),
    linear-gradient(180deg, #FFFDF8 0%, #F5E4CC 100%);
  border-radius: var(--r-2xl);
  border: 1.5px solid rgba(36,31,28,.08);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid; place-items: center;
}
.story-frame img {
  width: 110%; height: 110%; object-fit: contain;
  transform: scale(1.08) rotate(-3deg);
  filter: drop-shadow(0 16px 24px rgba(36,31,28,.18));
}
.story-pixels { position: absolute; inset: 0; pointer-events: none; }
.story-pixels span {
  position: absolute; width: 8px; height: 8px; border-radius: 2px; background: var(--mint);
  box-shadow: 0 0 8px rgba(34,199,169,.4);
}
.story-pixels span:nth-child(1) { top: 14%; left: 12%; }
.story-pixels span:nth-child(2) { top: 22%; left: 8%; background: var(--caramel); }
.story-pixels span:nth-child(3) { top: 8%; right: 22%; width: 6px; height: 6px; }
.story-pixels span:nth-child(4) { top: 70%; left: 14%; width: 6px; height: 6px; }
.story-pixels span:nth-child(5) { top: 88%; right: 18%; background: var(--teal); }
.story-pixels span:nth-child(6) { top: 50%; right: 6%; }
.story-pixels span:nth-child(7) { bottom: 22%; left: 30%; width: 5px; height: 5px; background: var(--caramel); }
.story-pixels span:nth-child(8) { top: 36%; right: 12%; width: 5px; height: 5px; background: var(--teal); }
.story-pixels span:nth-child(9) { top: 60%; left: 4%; width: 5px; height: 5px; }
.story-caption { text-align: center; color: var(--espresso-soft); }
.story-copy { display: flex; flex-direction: column; gap: 18px; }
.story-copy .big {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--espresso);
  font-weight: 500;
  line-height: 1.45;
}
.story-copy .big em { font-style: italic; color: var(--caramel); }
.story-copy > p { color: var(--espresso-soft); font-size: 1.05rem; }
.story-quote {
  margin-top: 10px;
  background: #fff;
  border: 1.5px solid rgba(36,31,28,.08);
  border-radius: var(--r-md);
  padding: 24px 26px 22px 68px;
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  line-height: 1.5;
}
.qmark {
  position: absolute;
  top: 18px;
  left: 26px;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--mint);
  font-family: Georgia, serif;
  font-weight: 700;
}
.qsig {
  display: block;
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: .72rem; letter-spacing: .08em;
  color: var(--espresso-soft);
  font-weight: 400;
}

/* ===========================================================
   Contact CTA
   =========================================================== */
.contact {
  background: var(--cream);
  padding-top: var(--home-pane-half-gap);
  padding-bottom: var(--home-pane-edge-gap);
}
.contact-card {
  max-width: 1180px; margin: 0 auto;
  background: var(--espresso);
  color: var(--cream);
  border-radius: var(--r-2xl);
  padding: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; top: -150px; right: -150px;
  width: 420px; height: 420px;
  background: radial-gradient(closest-side, rgba(34,199,169,.22), transparent 70%);
  pointer-events: none;
}
.contact-card::after {
  content: ""; position: absolute; bottom: -200px; left: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(closest-side, rgba(201,121,50,.18), transparent 70%);
  pointer-events: none;
}
.contact-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.contact-copy h2 { color: var(--cream); }
.contact-copy p { color: rgba(255,248,241,.7); font-size: 1.05rem; }
.contact-form {
  position: relative; z-index: 1;
  background: rgba(255,248,241,.05);
  border: 1px solid rgba(255,248,241,.12);
  backdrop-filter: blur(8px);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.cf-row { display: flex; flex-direction: column; gap: 6px; }
.cf-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  pointer-events: none;
}
.cf-row span {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,248,241,.6);
}
.cf-row input, .cf-row select, .cf-row textarea {
  padding: 14px 16px;
  background: rgba(255,248,241,.05);
  border: 1px solid rgba(255,248,241,.18);
  color: var(--cream);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s, background .2s;
}
.cf-row textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.cf-row input::placeholder, .cf-row textarea::placeholder { color: rgba(255,248,241,.4); }
.cf-row input:focus, .cf-row select:focus, .cf-row textarea:focus {
  outline: 0;
  border-color: var(--mint);
  background: rgba(34,199,169,.06);
}
.cf-row select option { color: var(--espresso); }
.cf-submit { align-self: flex-start; margin-top: 4px; background: var(--cf-submit-bg, var(--mint)); color: var(--cf-submit-color, var(--espresso)); }
.cf-submit:hover { background: var(--cf-submit-bg-hover, #2DDDBE); }
.cf-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}
.cf-consent > span {
  font-family: var(--f-sans);
  font-size: .88rem;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255,248,241,.78);
  line-height: 1.5;
}
.cf-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--mint);
  cursor: pointer;
}
.cf-consent a { color: var(--mint); text-decoration: underline; text-underline-offset: 2px; }
.cf-consent a:hover { color: var(--cream); }
.cf-thanks {
  padding: 12px 14px;
  background: rgba(34,199,169,.15);
  border: 1px solid rgba(34,199,169,.35);
  border-radius: 12px;
  color: var(--cream);
  font-size: .92rem;
}

/* ===========================================================
   Legal pages (privacy / terms / imprint)
   =========================================================== */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 32px) clamp(64px, 8vw, 112px);
  color: var(--espresso);
}
.legal-page .eyebrow { color: var(--espresso-soft); margin-bottom: 12px; }
.legal-page h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.legal-page .legal-meta {
  color: var(--espresso-soft);
  font-size: .92rem;
  margin-bottom: 40px;
  font-family: var(--f-mono);
}
.legal-page h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  letter-spacing: -.01em;
  margin: 36px 0 12px;
}
.legal-page h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}
.legal-page p,
.legal-page li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--espresso-2);
}
.legal-page p { margin-bottom: 14px; }
.legal-page ul,
.legal-page ol {
  margin: 0 0 18px 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.legal-page ul { list-style: disc; }
.legal-page ol { list-style: decimal; }
.legal-page a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.legal-page a:hover { color: var(--caramel); }
.legal-page strong { color: var(--espresso); font-weight: 600; }
.legal-page .legal-note {
  margin: 24px 0;
  padding: 14px 16px;
  background: rgba(13,127,110,.08);
  border-left: 3px solid rgba(13,127,110,.45);
  border-radius: 8px;
  font-size: .94rem;
  color: var(--espresso-2);
}
.legal-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 28px 0 12px;
}
.legal-link-list a {
  display: block;
  padding: 16px 18px;
  border: 1px solid rgba(36,31,28,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.58);
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(36,31,28,.06);
}
.legal-link-list strong {
  display: block;
  margin-bottom: 3px;
}
.legal-link-list span {
  color: var(--espresso-soft);
  font-size: .92rem;
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 56px) 32px;
  background: var(--cream);
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-brand img { height: 128px; width: auto; max-width: none; object-fit: contain; align-self: flex-start; }
.foot-brand p { color: var(--espresso-soft); font-size: .95rem; max-width: 32ch; }
.foot-pixels { display: flex; gap: 4px; margin-top: 4px; }
.foot-pixels span {
  width: 10px; height: 10px; border-radius: 2px; background: var(--tan);
}
.foot-pixels span:nth-child(1) { background: var(--mint); }
.foot-pixels span:nth-child(2) { background: var(--mint); opacity: .7; }
.foot-pixels span:nth-child(3) { background: var(--caramel); }
.foot-pixels span:nth-child(4) { background: var(--tan); }
.foot-pixels span:nth-child(5) { background: var(--teal); }
.foot-pixels span:nth-child(6) { background: var(--espresso); }

.foot-col h6 {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  margin-bottom: 14px;
  font-weight: 600;
}
.foot-col ul { display: flex; flex-direction: column; gap: 10px; }
.foot-col a {
  font-size: .96rem;
  color: var(--espresso-2);
  transition: color .15s;
}
.foot-col a:hover { color: var(--caramel); }
.foot-col .muted { font-size: .8rem; }
.foot-social a { display: inline-flex; align-items: center; gap: 8px; }
.fs-ic {
  width: 24px; height: 24px; border-radius: 8px;
  background: rgba(36,31,28,.06); display: grid; place-items: center;
  font-size: .8rem; font-weight: 700;
}

.foot-rule {
  max-width: 1280px;
  height: 1px;
  background: rgba(36,31,28,.1);
  margin: 32px auto;
}
.foot-bottom {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--espresso-soft);
  flex-wrap: wrap; gap: 10px;
}

/* ===========================================================
   CupBearer seller page
   =========================================================== */
.cupbearer-page,
.wordrio-page,
.automotive-empire-page {
  background: #FFF8F1;
}
.cupbearer-page .site-header,
.wordrio-page .site-header,
.automotive-empire-page .site-header {
  background: rgba(255,248,241,.92);
}
.wordrio-page {
  --hero-bg:
    linear-gradient(135deg, rgba(24,168,103,.14) 0%, transparent 34%),
    linear-gradient(225deg, rgba(13,127,110,.08) 0%, transparent 38%),
    #FFF8F1;
}
.automotive-empire-page {
  --hero-bg:
    linear-gradient(135deg, rgba(245,181,68,.16) 0%, transparent 36%),
    linear-gradient(225deg, rgba(14,20,34,.08) 0%, transparent 38%),
    #FFF8F1;
}
.cupbearer-page {
  --cf-submit-bg: var(--cup-purple);
  --cf-submit-bg-hover: #6B4CC8;
  --cf-submit-color: #fff;
}

/* Automotive Empire typographic wordmark (no logo image) */
.ae-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px 24px;
  border-radius: 22px;
  background: linear-gradient(160deg, #131A2D 0%, #0B1020 100%);
  color: var(--cream);
  box-shadow: 0 24px 60px -28px rgba(14,20,34,.65);
  width: 100%;
  max-width: 520px;
}
.ae-wordmark-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.ae-wordmark-tile,
.ae-subnav-tile {
  background: var(--auto-amber);
  display: inline-flex; align-items: center; justify-content: center;
  color: #1A1208;
  font-family: var(--f-mono);
  font-weight: 800;
  letter-spacing: 0;
}
.ae-wordmark-tile {
  width: 48px; height: 48px;
  border-radius: 14px;
  font-size: 2.25rem;
  line-height: 1;
}
.ae-wordmark-eye {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  color: rgba(255,248,241,.55);
}
.ae-wordmark-name {
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  display: inline-flex;
  align-items: baseline;
  gap: .28em;
  white-space: nowrap;
}
.ae-wordmark-name span { color: var(--auto-amber); }

/* Wordrio brand panel logo treatment */
.wordrio-page .cb-logo-wordmark {
  width: min(220px, 70%);
  border-radius: 28px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 24px 60px -28px rgba(24,168,103,.45);
}
.cb-hero {
  padding-top: clamp(34px, 5vw, 72px);
  padding-bottom: clamp(54px, 7vw, 96px);
  background: var(--hero-bg, linear-gradient(135deg, rgba(34,199,169,.14) 0%, transparent 34%), linear-gradient(225deg, rgba(123,91,214,.12) 0%, transparent 38%), #FFF8F1);
}
.cb-hero-grid,
.cb-split {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.cb-hero-grid {
  max-width: 1480px;
  grid-template-columns: minmax(250px, .78fr) minmax(470px, 1.16fr) minmax(260px, .74fr);
  gap: clamp(28px, 4vw, 64px);
}
.cb-split { grid-template-columns: .95fr 1.05fr; }
.cb-split-reverse { grid-template-columns: 1.05fr .95fr; }
.cb-brand-panel,
.cb-hero-copy,
.cb-split-copy {
  display: flex;
  flex-direction: column;
}
.cb-brand-panel {
  gap: 18px;
  align-items: flex-start;
}
.cb-hero-copy,
.cb-split-copy {
  gap: 20px;
}
.cb-logo-wordmark {
  width: min(430px, 100%);
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(36,31,28,.13));
}
.cb-hero-copy h1 {
  font-size: clamp(3rem, 4.6vw, 5.9rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.cb-hero-copy .lede {
  font-size: clamp(1.08rem, 1.25vw, 1.32rem);
}
.cb-media-shell {
  display: grid;
  gap: 18px;
  align-content: center;
  justify-items: center;
}
.cb-phone-frame {
  width: min(272px, 100%);
  aspect-ratio: 9 / 19.5;
  position: relative;
  padding: 12px;
  border-radius: 50px;
  background: #191315;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.05),
    0 36px 80px -34px rgba(36,31,28,.65),
    0 14px 34px -22px rgba(36,31,28,.45);
}
.cb-phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 40px;
  background: #111827;
}
.cb-phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 2;
  width: 108px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050505;
}
.cb-video,
.cb-phone-screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111827;
  display: block;
}

.ae-subnav-tile {
  width: 32px; height: 32px;
  border-radius: 9px;
  font-size: 1.45rem;
  line-height: 1;
}
.cb-bot-chip {
  width: min(360px, 100%);
  padding-left: 14px;
  border-left: 3px solid var(--cup-purple);
}
.cb-bot-chip strong {
  display: block;
  font-size: .98rem;
}
.cb-bot-chip span {
  display: block;
  margin-top: 3px;
  color: var(--espresso-soft);
  font-size: .9rem;
}
.cb-proof {
  background: #F7EFE7;
}
.cb-proof-layout {
  max-width: 1360px;
  margin: 0 auto;
  min-height: 560px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
}
.cb-proof-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cb-proof-copy h2 {
  font-size: clamp(2.7rem, 4.4vw, 5.5rem);
  letter-spacing: -.045em;
}
.cb-proof-subtitle {
  font-size: clamp(1.45rem, 2vw, 2.25rem);
  color: var(--espresso-soft);
  line-height: 1.18;
}
.cb-proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.cb-proof-card {
  background: #fff;
  border: 1.5px solid rgba(36,31,28,.08);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  align-items: center;
  box-shadow: var(--shadow-soft);
}
.cb-proof-card strong {
  font-size: 3.6rem;
  line-height: .95;
  color: var(--cup-purple);
  letter-spacing: -.04em;
}
.cb-proof-card p {
  color: var(--espresso);
  font-weight: 600;
  font-size: 1.16rem;
  max-width: 34ch;
}
.cb-proof-card span {
  grid-column: 2;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--espresso-soft);
}
.cb-does {
  background: #FFF8F1;
}
.cb-steps article,
.cb-journey-points article {
  background: #fff;
  border: 1.5px solid rgba(36,31,28,.08);
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: 0 1px 0 rgba(36,31,28,.03);
}
.cb-steps h3 {
  margin-top: 10px;
  font-size: 1.05rem;
}
.cb-steps p {
  margin-top: 8px;
  color: var(--espresso-soft);
}
.cb-journey {
  background: #F6F0EB;
  color: var(--espresso);
}
.cb-journey-head {
  max-width: 960px;
  margin: 0 auto clamp(36px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.cb-journey-head h2 {
  font-size: clamp(2.5rem, 4vw, 5rem);
}
.cb-journey-head p {
  color: var(--espresso-soft);
  font-size: clamp(1.2rem, 1.8vw, 1.8rem);
}
.cb-journey-points {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.wordrio-page .cb-journey-points,
.automotive-empire-page .cb-journey-points {
  max-width: 1240px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cb-journey-points article {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 34px 26px 28px;
  box-shadow: var(--shadow-soft);
}
.cb-journey-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(123,91,214,.12);
  color: var(--cup-purple);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: .9rem;
}
.cb-journey-points h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.85rem);
}
.cb-journey-points p {
  color: var(--espresso-soft);
  font-size: 1.05rem;
}
.cb-journey-points em {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(36,31,28,.08);
  color: var(--espresso-2);
  font-size: 1.02rem;
  font-style: normal;
}
.cb-tech-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Benefit sections (Outreach / Traffic / Insight) */
.cb-benefit { background: #FFF8F1; }
.cb-benefit + .cb-benefit { background: #F6F0EB; }
.cb-benefit + .cb-benefit + .cb-benefit { background: #FFF8F1; }
.cb-benefit-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.cb-benefit-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cb-benefit-kicker {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cup-purple);
  font-weight: 600;
}
.cb-benefit-copy h2 {
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.cb-benefit-copy .lede {
  color: var(--espresso-soft);
}
.cb-benefit-stats {
  display: grid;
  gap: 16px;
}
.cb-stat-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 22px;
  align-items: flex-start;
}
.cb-stat-card strong {
  font-size: clamp(2.4rem, 3.5vw, 3.2rem);
  line-height: .95;
  color: var(--cup-purple);
  letter-spacing: -.04em;
}
.cb-stat-card p {
  color: var(--espresso);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  max-width: 34ch;
  margin: 0;
}
.cb-stat-card span:not(.cb-stat-icon) {
  grid-column: auto;
  margin-top: auto;
  padding-top: 4px;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--espresso-soft);
}
.cb-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(123,91,214,.10);
  color: var(--cup-purple);
  display: grid;
  place-items: center;
}
.cb-stat-icon svg { width: 20px; height: 20px; }
.cb-feature-pills {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}
.cb-feature-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(123,91,214,.16);
  color: var(--espresso);
  font-size: .9rem;
  font-weight: 600;
  box-shadow: 0 10px 22px -18px rgba(36,31,28,.35);
}

/* Benefit 01 — three stacked stat cards in a 3-col grid on the right */
.cb-benefit-outreach .cb-benefit-stats {
  grid-template-columns: repeat(3, 1fr);
}

/* Benefit 02 — hero stat spanning + two sub-cards below */
.cb-benefit-traffic .cb-benefit-stats {
  grid-template-columns: 1fr 1fr;
}
.cb-stat-hero {
  grid-column: 1 / -1;
  background: var(--cup-purple);
  color: #fff;
  border: 0;
  padding: clamp(28px, 4vw, 40px);
}
.cb-stat-hero strong { color: #fff; font-size: clamp(3rem, 5vw, 4.4rem); }
.cb-stat-hero p { color: rgba(255,255,255,.94); font-size: 1.1rem; }
.cb-stat-hero span:not(.cb-stat-icon) { color: rgba(255,255,255,.75); }
.cb-stat-hero .cb-stat-icon {
  background: rgba(255,255,255,.18);
  color: #fff;
}

/* Benefit 03 — pill stats under copy, 6-card icon grid on the right */
.cb-stat-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.cb-stat-pill {
  background: var(--cream-2);
  border: 1px solid rgba(36,31,28,.06);
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--espresso);
  font-size: .95rem;
  line-height: 1.4;
}
.cb-stat-pill em {
  color: var(--espresso-soft);
  font-style: normal;
}
.cb-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cb-insight-grid article {
  background: #fff;
  border: 1.5px solid rgba(36,31,28,.08);
  border-radius: var(--r-md);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: var(--shadow-soft);
}
.cb-insight-grid .cb-journey-icon svg {
  width: 22px;
  height: 22px;
}
.cb-insight-grid h3 {
  font-size: 1.08rem;
  margin: 0;
}
.cb-insight-grid p {
  color: var(--espresso-soft);
  font-size: .92rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 1100px) {
  .cb-benefit-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cb-benefit-outreach .cb-benefit-stats,
  .cb-benefit-traffic .cb-benefit-stats { grid-template-columns: 1fr; }
  .cb-insight-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cb-insight-grid { grid-template-columns: 1fr; }
}

.cb-partner {
  background: linear-gradient(180deg, #F4FBF6 0%, #FFF8F1 100%);
}
.cb-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cb-steps strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(34,199,169,.14);
  color: var(--teal);
  font-family: var(--f-mono);
  font-size: .8rem;
}
.cb-technical {
  max-width: 1280px;
  margin: clamp(28px, 5vw, 56px) auto 0;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-xl);
  background: #fff;
  border: 1.5px solid rgba(36,31,28,.08);
  box-shadow: var(--shadow-card);
}
.cb-technical h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  letter-spacing: -.02em;
}
.cb-technical p {
  margin-top: 12px;
  color: var(--espresso-soft);
  max-width: 74ch;
}
.cb-tech-list {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cb-tech-list span {
  background: rgba(36,31,28,.05);
  color: var(--espresso-2);
  border: 1px solid rgba(36,31,28,.08);
}
.cb-inline-cta {
  margin-top: 22px;
}
.cb-contact {
  padding-top: clamp(64px, 9vw, 120px);
}
.app-legal-links {
  max-width: 1180px;
  margin: clamp(18px, 3vw, 32px) auto 0;
  padding: 0 clamp(20px, 5vw, 32px);
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.app-legal-links a {
  color: var(--espresso-soft);
  font-family: var(--f-mono);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(36,31,28,.05);
  border: 1px solid rgba(36,31,28,.08);
}
.app-legal-links a:hover {
  color: var(--espresso);
  border-color: rgba(13,127,110,.25);
}

/* ===========================================================
   Responsive
   =========================================================== */
/* ===========================================================
   Store links (App Store / Play Store) under each feature panel
   =========================================================== */
.store-links {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 6px;
}
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 14px;
  border-radius: 14px;
  background: var(--espresso);
  color: var(--cream);
  font-size: .85rem;
  font-weight: 500;
  line-height: 1.1;
  border: 1px solid rgba(255,248,241,.1);
  transition: transform .18s, box-shadow .18s, border-color .18s, background .2s;
  box-shadow: 0 8px 18px -10px rgba(36,31,28,.5);
}
.store-btn:hover { transform: translateY(-1px); border-color: rgba(255,248,241,.25); }
.store-btn svg {
  width: 22px; height: 22px; color: var(--cream); flex-shrink: 0;
}
.sb-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.sb-text .sb-lbl {
  font-family: var(--f-mono);
  font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,248,241,.55);
}
.sb-text .sb-name { font-weight: 700; font-size: .92rem; letter-spacing: -.01em; }

/* On light backgrounds (Wordrio panel) */
.store-btn.store-light {
  background: var(--cream);
  color: var(--espresso);
  border: 1px solid rgba(36,31,28,.12);
  box-shadow: 0 6px 16px -10px rgba(36,31,28,.25);
}
.store-btn.store-light svg { color: var(--espresso); }
.store-btn.store-light .sb-lbl { color: var(--espresso-soft); }

/* Disabled / soon state */
.store-btn.is-soon {
  cursor: default;
  opacity: .68;
  background: transparent;
  color: inherit;
  border: 1.5px dashed rgba(255,248,241,.28);
  box-shadow: none;
}
.store-btn.is-soon:hover { transform: none; }
.store-btn.is-soon svg { opacity: .8; }
.store-btn.store-light.is-soon {
  border: 1.5px dashed rgba(36,31,28,.22);
  color: var(--espresso);
}
.store-btn.store-light.is-soon .sb-name { color: var(--espresso); }

@media (max-width: 420px) {
  .store-links { width: 100%; }
  .store-btn { flex: 1; justify-content: center; }
}

@media (max-width: 1180px) {
  .cb-hero-grid {
    grid-template-columns: .8fr 1.2fr;
  }
  .cb-media-shell {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 980px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .brand-logo { height: 48px; }
  .foot-brand img { height: 112px; }
  .mobile-menu { top: 100px; }

  .product-subnav {
    top: 77px;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 6px;
    padding: 8px 16px 10px;
  }
  .ps-brand { grid-row: 1; grid-column: 1; }
  .ps-cta { grid-row: 1; grid-column: 2; justify-self: end; }
  .ps-nav {
    grid-row: 2; grid-column: 1 / -1;
    justify-self: stretch;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .has-subnav section[id] { scroll-margin-top: 192px; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-mascot { order: -1; max-width: 480px; margin: 0 auto; width: 100%; }
  .product-track .product-card { flex-basis: calc((100% - 24px) / 2); }
  .pc-prev { left: -10px; }
  .pc-next { right: -10px; }
  .feature-grid, .feature-grid-reverse { grid-template-columns: 1fr; direction: ltr; }
  .feature-grid > *, .feature-grid-reverse > * { direction: ltr; }
  .story-grid { grid-template-columns: 1fr; gap: 14px; }
  .eyebrow.story-mobile-eyebrow {
    display: inline-flex !important;
    grid-column: 1 / -1;
    justify-self: stretch;
    margin-bottom: 6px;
  }
  .story-copy > .eyebrow { display: none; }
  .contact-card { grid-template-columns: 1fr; padding: 32px 24px; }
  .cb-hero-grid,
  .cb-split,
  .cb-split-reverse,
  .cb-proof-layout {
    grid-template-columns: 1fr;
  }
  .cb-brand-panel { align-items: center; text-align: center; }
  .cb-hero-copy { align-items: center; text-align: center; }
  .cb-journey-points { grid-template-columns: 1fr 1fr; }
  .wordrio-page .cb-journey-points,
  .automotive-empire-page .cb-journey-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wordrio-page .cb-journey-points article:last-child,
  .automotive-empire-page .cb-journey-points article:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 24px) / 2);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 6.5vw, 2rem); }
  .product-carousel {
    margin-left: calc(clamp(20px, 4vw, 56px) * -1);
    margin-right: calc(clamp(20px, 4vw, 56px) * -1);
  }
  .product-track {
    gap: 16px;
    scroll-padding-inline: calc((100vw - min(84vw, 360px)) / 2);
    padding: 10px calc((100vw - min(84vw, 360px)) / 2) 14px;
    margin: -10px 0 -14px;
  }
  .product-track .product-card {
    flex-basis: min(84vw, 360px);
    scroll-snap-align: center;
  }
  .pc-nav { display: none; }
  .pc-mobile-progress {
    display: flex;
    margin-top: 18px;
  }
  .feat-row { grid-template-columns: 1fr; }
  .cb-proof-grid,
  .cb-journey-points,
  .cb-steps {
    grid-template-columns: 1fr;
  }
  .wordrio-page .cb-journey-points,
  .automotive-empire-page .cb-journey-points {
    grid-template-columns: 1fr;
  }
  .wordrio-page .cb-journey-points article:last-child,
  .automotive-empire-page .cb-journey-points article:last-child {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
  .cb-proof-layout { min-height: auto; }
  .cb-proof-card {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .cb-proof-card span { grid-column: auto; }
  .cb-proof-card { min-height: auto; }
  .brand-logo { height: 44px; }
  .mobile-menu { top: 84px; }
  .product-subnav { top: 73px; }
  .has-subnav section[id] { scroll-margin-top: 176px; }
  .cb-phone-frame { width: min(252px, 78vw); }
  .ae-wordmark {
    padding: 18px 20px;
  }
  .ae-wordmark-eye {
    font-size: .6rem;
  }
  .ae-wordmark-name {
    font-size: clamp(1.05rem, 4.8vw, 1.35rem);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  section { padding-left: 20px; padding-right: 20px; }
  .hero-grid {
    width: 100%;
    max-width: calc(100vw - 40px);
  }
  .hero-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .hero-copy h1,
  .hero-copy .lede {
    max-width: 100%;
  }
  .hero-mascot {
    width: min(100%, calc(100vw - 40px));
    max-width: 420px;
    margin: 0;
    justify-self: stretch;
  }
  .mascot-frame {
    aspect-ratio: 4 / 3;
    border-radius: var(--r-xl);
  }
  .mascot-art {
    transform: scale(.95);
  }
  .chip-tag {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
    font-size: .62rem;
  }
  .marquee-track { font-size: .68rem; gap: 22px; }
  .phone { width: min(280px, 84vw); }
  .cup-float { right: -4px; }
  .feat-row { gap: 10px; }
}

@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .feature-ctas .btn { flex: 1; justify-content: center; }
}

/* Reveal anim */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mint-glow, .byte-floaters span, .marquee-track, .cup-float { animation: none; }
}
