/* ============================================================
   ENTRENARO · shared styles for all pages
   Edit here once — every page picks it up.
   ============================================================ */

:root {
  /* Aliases onto the bound design system's authored oklch tokens
     (_ds/.../tokens/colors.css + typography.css). Hex values are
     fallbacks only, for when the token sheets fail to load. */
  --ink-900: var(--background, #0B2026);        /* page */
  --ink-800: var(--secondary, #143D4A);         /* secondary surface */
  --ink-700: var(--card, #1B3139);              /* card */
  --ink-600: var(--border, #303F47);            /* line */
  --ink-500: var(--muted-foreground, #618794);  /* muted text */
  --ink-300: oklch(0.82 0.012 200);
  --ink-100: var(--foreground, #F9F7F4);        /* primary text */
  --ink-50:  #FFFFFF;
  --mint:     var(--brand-mint, #3ECFAC);       /* primary — interaction only */
  --mint-ink: var(--brand-mint-fg, #0B2026);
  --lava:     var(--destructive, #FF3621);      /* destructive only */
  --gold:     var(--brand-gold, #F5B700);

  --maxw: 1180px;
  --r-sm: 0.625rem;   /* buttons / inputs — rounded-md */
  --r-md: 1rem;       /* cards / rows — rounded-xl */
  --r-lg: 1.375rem;
  --ring: 0 0 0 3px oklch(0.78 0.13 174 / 0.3);

  --ff-display: var(--font-display, 'Anton', sans-serif);
  --ff-body: var(--font-sans, 'Inter', system-ui, sans-serif);
  --ff-mono: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink-900);
  color: var(--ink-100);
  font-family: var(--ff-body);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11','ss01','tnum';
  line-height: 1.5;
  overflow-x: hidden;
}

/* faint pitch grid, brand cover motif */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--ink-600) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-600) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 820px; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--mint); }

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

.mint { color: var(--mint); }

/* matches components/display/Eyebrow.jsx: 10px mono 600, muted, "//" prefix */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow, 0.12em);
  text-transform: uppercase;
  color: var(--ink-500);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.eyebrow::before { content: '//'; }
.eyebrow.bare::before { content: none; }
.eyebrow.mint { color: var(--mint); }

/* signal phrase inside body copy */
.sig { color: var(--mint); font-weight: 700; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--mint); color: var(--mint-ink); }
.btn-primary:hover { background: #54e0bd; color: var(--mint-ink); }
/* link variant — matches the design system's Button variant="link" */
.btn-ghost { background: transparent; color: var(--mint); border-color: transparent; padding-left: 4px; padding-right: 4px; }
.btn-ghost:hover { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.btn-lg { font-size: 16px; padding: 16px 28px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }

/* ── Nav ── */
header.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,32,38,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-600);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand:hover { color: inherit; }
.brand .crest {
  width: 34px; height: 34px; border-radius: 8px;
  overflow: hidden; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--ink-700);
}
.brand .crest img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand .word {
  font-family: var(--ff-display);
  text-transform: uppercase;
  font-size: 23px;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--ink-100);
}
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a {
  font-family: var(--ff-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-500);
  padding: 6px 0;
  position: relative;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink-100); }
.nav-links a[aria-current="page"] { color: var(--ink-100); }
.nav-links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--mint); border-radius: 2px;
}
.nav .btn { padding: 10px 18px; font-size: 14px; flex-shrink: 0; }
/* the in-menu CTA only exists on mobile */
.nav-links .nav-cta-mobile { display: none; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: transparent; border: 1px solid var(--ink-600);
  color: var(--ink-100); cursor: pointer;
  place-items: center;
}
.nav-toggle svg { width: 18px; height: 18px; }

main { position: relative; z-index: 1; }

/* clear the sticky nav when jumping to an anchor */
section[id], div[id] { scroll-margin-top: 84px; }

/* ── Page hero (sub pages) ── */
.page-hero { padding: clamp(46px, 6vw, 84px) 0 clamp(30px, 4vw, 46px); }
.page-hero h1 {
  font-family: var(--ff-display);
  text-transform: uppercase; font-weight: 400;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 0.92; letter-spacing: -0.01em;
  margin: 20px 0 0;
}
.page-hero .lede {
  margin-top: 22px; font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-300); max-width: 56ch; text-wrap: pretty;
}

/* ── Generic section ── */
.section { padding: clamp(44px, 6vw, 76px) 0; border-top: 1px solid var(--ink-600); }
.section-head { max-width: 60ch; }
.section-head h2 {
  font-family: var(--ff-display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(30px, 4.2vw, 48px); line-height: 0.94; letter-spacing: -0.005em;
  margin-top: 16px;
}
.section-head p { margin-top: 16px; color: var(--ink-300); text-wrap: pretty; }

/* ── Cards ── */
.card {
  background: var(--ink-700);
  border: 1px solid var(--ink-600);
  border-radius: var(--r-md);
  padding: 24px;
}
.card h3 {
  font-family: var(--ff-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint);
}
.card p { margin-top: 10px; color: var(--ink-300); font-size: 14.5px; line-height: 1.6; text-wrap: pretty; }
.card ul { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.card li { position: relative; padding-left: 16px; color: var(--ink-300); font-size: 14.5px; line-height: 1.6; }
.card li::before { content: ''; position: absolute; left: 0; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: var(--mint); }
.card.accent { border-left: 3px solid var(--mint); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }

/* ── Steps (How to play) ── */
.step { padding: clamp(38px, 5vw, 64px) 0; border-top: 1px solid var(--ink-600); }
.step-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.step.alt .step-media { order: -1; }
.step-num {
  font-family: var(--ff-display); font-size: 15px; letter-spacing: 0.08em;
  color: var(--mint-ink); background: var(--mint);
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
}
.step h2 {
  font-family: var(--ff-display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(28px, 3.8vw, 44px); line-height: 0.95; letter-spacing: -0.005em;
  margin-top: 18px;
}
.step .lede { margin-top: 16px; color: var(--ink-300); font-size: clamp(15px, 1.4vw, 17px); max-width: 46ch; text-wrap: pretty; }
.step ul { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.step li { position: relative; padding-left: 18px; color: var(--ink-300); font-size: 14.5px; line-height: 1.6; }
.step li::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.step-media { display: flex; justify-content: center; }

/* ── Phone frame + media slot ── */
.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 300 / 625;
  background: #060f12;
  border: 1.5px solid var(--ink-600);
  border-radius: 26px;
  padding: 10px;
  box-shadow:
    0 2px 0 rgba(255,255,255,0.04) inset,
    0 40px 80px -30px rgba(0,0,0,0.8),
    0 0 0 1px rgba(0,0,0,0.4);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 18px; overflow: hidden; background: #0B2026; }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; background: #0B2026; }
.phone .glare {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(135deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0) 16%);
}
.phone .live-tag {
  position: absolute; top: 14px; left: 14px; z-index: 4;
  font-family: var(--ff-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint);
  background: rgba(11,32,38,0.6); border: 1px solid oklch(0.78 0.13 174 / 0.35);
  padding: 3px 7px; border-radius: 5px;
  display: inline-flex; align-items: center; gap: 5px;
}
.phone .live-tag::before { content:''; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }

/* video control */
.vid-ctrl {
  position: absolute; bottom: 16px; right: 16px; z-index: 4;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(11,32,38,0.72);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; cursor: pointer; color: var(--ink-100);
  transition: background .15s ease;
}
.vid-ctrl:hover { background: rgba(11,32,38,0.92); }
.vid-ctrl svg { width: 15px; height: 15px; }

/* empty media slot — drop a GIF or MP4 in later */
.media-slot {
  display: grid; place-items: center; align-content: center; gap: 12px;
  width: 100%; height: 100%;
  border: 1px dashed var(--ink-600);
  border-radius: 18px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0 10px, transparent 10px 20px),
    var(--ink-800);
  text-align: center; padding: 20px;
}
.media-slot .icon { width: 26px; height: 26px; color: var(--ink-500); }
.media-slot .label {
  font-family: var(--ff-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-300);
}
.media-slot .hint { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--ink-500); max-width: 22ch; line-height: 1.6; }

/* ── FAQ ── */
.faq-cat { margin-top: 44px; }
.faq-cat > .eyebrow { margin-bottom: 14px; }
.faq-list { border-top: 1px solid var(--ink-600); }
.faq-item { border-bottom: 1px solid var(--ink-600); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 0; text-align: left;
  font-family: var(--ff-body); font-size: 16.5px; font-weight: 600; color: var(--ink-100);
  transition: color .15s ease;
}
.faq-q:hover { color: var(--mint); }
.faq-q .chev { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-500); transition: transform .2s ease, color .15s ease; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--mint); }
.faq-a { display: none; padding: 0 0 22px; color: var(--ink-300); font-size: 14.5px; line-height: 1.65; max-width: 68ch; text-wrap: pretty; }
.faq-item.open .faq-a { display: block; }

/* ── Coming soon marker ── */
.coming {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 13px 20px;
  border: 1px solid var(--ink-600); border-radius: var(--r-sm);
  background: var(--ink-700);
}
.coming .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--mint); flex-shrink: 0;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--mint) 18%, transparent);
}
.coming .txt {
  font-family: var(--ff-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint);
}
.coming .sub {
  font-family: var(--ff-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500);
  padding-left: 11px; border-left: 1px solid var(--ink-600);
}

/* ── Store badges ── */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 52px; padding: 9px 18px 9px 16px;
  background: var(--ink-100); color: var(--ink-900);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-sm);
  transition: opacity .15s ease, transform .15s ease;
}
.store-badge:hover { color: var(--ink-900); opacity: 0.88; }
.store-badge:active { transform: translateY(1px); }
.store-badge .mark { width: 24px; height: 24px; display: grid; place-items: center; flex-shrink: 0; }
.store-badge .mark svg { width: 22px; height: 22px; display: block; }
.store-badge .txt { display: grid; gap: 1px; }
.store-badge .pre {
  font-family: var(--ff-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.72;
}
.store-badge .name {
  font-family: var(--ff-body); font-size: 16px; font-weight: 700;
  letter-spacing: -0.005em; line-height: 1.1; white-space: nowrap;
}
.store-badge.ghost { background: transparent; color: var(--ink-100); border-color: var(--ink-600); }
.store-badge.ghost:hover { color: var(--ink-100); border-color: var(--ink-500); background: var(--ink-800); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .store-badge { transition: none; } .store-badge:active { transform: none; } }

.download { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.download::before {
  content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 100vw; height: 100%;
  background: var(--ink-800);
  border-top: 1px solid var(--ink-600); border-bottom: 1px solid var(--ink-600);
  z-index: -1;
}
.download-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.download h2 {
  font-family: var(--ff-display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(38px, 6vw, 64px); line-height: 0.9; letter-spacing: -0.005em; margin: 18px 0 0;
}
.download-lede { margin-top: 18px; color: var(--ink-300); font-size: clamp(15px, 1.5vw, 18px); text-wrap: pretty; }
.download .stores { justify-content: center; margin-top: 32px; }
.download-note { margin-top: 22px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-500); }

/* ── Small caption under a block ── */
.privacy-note {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-500);
}
.privacy-note a { color: var(--mint); }

/* ── Social block ── */
.social { border-top: 1px solid var(--ink-600); padding: clamp(40px, 5vw, 64px) 0; }
.social-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.social-link {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink-700); border: 1px solid var(--ink-600);
  border-radius: var(--r-sm); padding: 12px 18px;
  font-family: var(--ff-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-300);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.social-link:hover { color: var(--ink-100); border-color: var(--mint); background: var(--ink-800); }
.social-link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Footer ── */
footer { padding: 40px 0 48px; border-top: 1px solid var(--ink-600); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot-left { display: flex; align-items: center; gap: 12px; }
.foot-left .crest { width: 26px; height: 26px; border-radius: 6px; overflow: hidden; background: var(--ink-700); }
.foot-left .crest img { width: 100%; height: 100%; object-fit: contain; display: block; }
.foot-left .co { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-300); letter-spacing: 0.02em; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.foot-links a {
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-500);
  transition: color .15s ease;
}
.foot-links a:hover { color: var(--ink-100); }
.foot-social { display: flex; align-items: center; gap: 14px; }
.foot-social a { color: var(--ink-500); display: grid; place-items: center; transition: color .15s ease; }
.foot-social a:hover { color: var(--mint); }
.foot-social svg { width: 17px; height: 17px; }
.disclaimer { margin-top: 22px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-500); opacity: 0.8; }

/* ── Legal pages (imprint, privacy) ── */
.legal-page { max-width: 760px; margin-left: 0; margin-right: auto; padding-bottom: clamp(50px, 7vw, 90px); }
.legal-page .meta {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-500); margin-top: 14px;
}
.lblock { margin-top: 30px; }
.lblock h3 {
  font-family: var(--ff-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mint); display: flex; align-items: baseline; gap: 10px;
}
.lblock h3 .n { color: var(--ink-500); font-weight: 500; }
.lblock p, .lblock li {
  font-size: 15px; line-height: 1.68; color: var(--ink-300); margin-top: 10px; text-wrap: pretty;
}
.lblock p strong { color: var(--ink-100); font-weight: 600; }
.lblock a { color: var(--mint); text-decoration: underline; text-underline-offset: 2px; }
.lblock ul { list-style: none; margin-top: 10px; display: grid; gap: 8px; }
.lblock li { padding-left: 18px; position: relative; margin-top: 0; }
.lblock li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.addr {
  font-family: var(--ff-mono); font-size: 14px; line-height: 1.75; color: var(--ink-100);
  background: var(--ink-700); border: 1px solid var(--ink-600); border-left: 3px solid var(--mint);
  border-radius: var(--r-md); padding: 16px 18px; margin-top: 12px;
}
.lfoot {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--ink-600);
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-500);
}

/* editorial placeholder marker for draft copy */
.todo {
  color: var(--gold); background: oklch(0.84 0.16 84 / 0.1);
  border: 1px dashed oklch(0.84 0.16 84 / 0.4); border-radius: 4px;
  padding: 1px 6px; font-family: var(--ff-mono); font-size: 12px;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .nav-links {
    display: none;
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-800); border-bottom: 1px solid var(--ink-600);
    padding: 8px 28px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--ink-600); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--mint); }
  .nav-toggle { display: grid; }
  .nav .btn { display: none; }
  .nav-links .nav-cta-mobile {
    display: inline-flex; margin-top: 14px; border-bottom: none;
    color: var(--mint-ink); padding: 13px 22px;
    font-family: var(--ff-body); font-size: 15px; font-weight: 700;
    text-transform: none; letter-spacing: 0.01em;
  }
  .nav-links .nav-cta-mobile:hover { color: var(--mint-ink); }
  .step-grid { grid-template-columns: 1fr; gap: 34px; }
  .step.alt .step-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .nav-links { padding-left: 20px; padding-right: 20px; }
  .brand .word { font-size: 20px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stores { flex-direction: column; }
  .store-badge { justify-content: center; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
}
