/* BLUFF: Draw & Deceive. Tokens from BLUFF/Design.swift (BluffStyle, TableTheme). */
@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/BricolageGrotesque.ttf") format("truetype");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --paper: #f4ede0;
  --paper-2: #f3ecdf;
  --paper-well: #ded3c3;
  --ink: #17120f;
  --ink-2: #6a5b4f;
  --coral: #ff5c4d;
  --coral-ink: #d93a2b;
  --table: #1a1614;
  --table-card: #26211e;
  --table-well: #332b26;
  --table-text: #f4ede0;
  --table-2: #bcaf9e;
  --orange: #d9641c;
  --blue: #1b8ecf;
  --green: #199a64;
  --pink: #d8479a;
  --orange-l: #f5913a;
  --blue-l: #4db4ea;
  --green-l: #3fc58c;
  --pink-l: #f07cb5;
  --rule: rgba(23, 18, 15, 0.075);
  --margin: rgba(255, 92, 77, 0.32);
  --display: "Bricolage", ui-rounded, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --wrap: 1160px;
  --radius: 22px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent 0 calc(max(18px, 4vw) - 1px), var(--margin) calc(max(18px, 4vw) - 1px) max(18px, 4vw), transparent max(18px, 4vw)),
    repeating-linear-gradient(180deg, transparent 0 37px, var(--rule) 37px 38px);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); background: rgba(244, 237, 224, 0.82); border-bottom: 1px solid rgba(23, 18, 15, 0.08); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.brand span { font: 800 22px/1 var(--display); letter-spacing: 0.01em; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav .pill { color: var(--paper); background: var(--ink); padding: 9px 16px; border-radius: 999px; }
.nav .pill:hover { color: var(--paper); background: #000; }
@media (max-width: 640px) { .nav .hide-s { display: none; } .nav { gap: 14px; } }

/* ---------- type ---------- */
.eyebrow { font: 700 12.5px/1.2 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral-ink); margin: 0 0 14px; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; line-height: 0.98; margin: 0; }
h1.display { font-size: clamp(44px, 5.2vw, 76px); }
h2.display { font-size: clamp(36px, 5vw, 62px); }
h3 { font: 800 24px/1.15 var(--display); letter-spacing: -0.01em; margin: 0 0 8px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 34em; margin: 22px 0 0; }
.scribble { position: relative; white-space: nowrap; }
.scribble svg { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.32em; overflow: visible; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 92px) 0 clamp(56px, 8vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 34px; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 16px;
  background: var(--ink); color: var(--paper); border-radius: 14px; line-height: 1.15;
}
.badge-soon svg { width: 26px; height: 26px; flex: none; }
.badge-soon small { display: block; font-size: 11.5px; letter-spacing: 0.04em; opacity: 0.78; }
.badge-soon strong { display: block; font: 700 18px/1.1 var(--body); }
.text-link { font-weight: 600; color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--coral); }
.hero-meta { margin-top: 22px; font-size: 14.5px; color: var(--ink-2); }

.film {
  position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 1200 / 630;
  background: var(--paper-2); box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 30px 60px -24px rgba(23,18,15,.42), 0 0 0 1px rgba(23,18,15,.08);
  transform: rotate(1.2deg);
}
.film video { width: 100%; height: 100%; object-fit: cover; }
.film-tag { position: absolute; left: 14px; bottom: 12px; font-size: 12px; font-weight: 600; background: rgba(244,237,224,.92); color: var(--ink-2); padding: 5px 10px; border-radius: 999px; }
.film-toggle {
  position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(23,18,15,.72); color: var(--paper); cursor: pointer; display: grid; place-items: center;
}
.film-toggle svg { width: 16px; height: 16px; }

/* ---------- tally strip ---------- */
.tally-strip { display: flex; justify-content: center; gap: 28px; padding: 6px 0 0; }
.tally-strip svg { width: 74px; height: 38px; }

/* ---------- how it works (table / dark) ---------- */
.table {
  background: var(--table); color: var(--table-text);
  background-image: repeating-linear-gradient(180deg, transparent 0 37px, rgba(244,237,224,.035) 37px 38px);
  padding: clamp(70px, 9vw, 120px) 0;
}
.table .eyebrow { color: #ff8a7d; }
.table .lede { color: var(--table-2); }
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps li { background: var(--table-card); border: 1px solid rgba(244,237,224,.08); border-radius: var(--radius); padding: 22px 20px 24px; }
.steps .num { font: 800 15px/1 var(--display); color: var(--table-2); letter-spacing: 0.08em; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.steps .num svg { width: 30px; height: 30px; }
.steps p { margin: 0; color: var(--table-2); font-size: 15.5px; }
@media (max-width: 1040px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- screens ---------- */
.screens { padding: clamp(70px, 9vw, 120px) 0; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(28px, 4vw, 56px) 0; }
.feature + .feature { border-top: 1px dashed rgba(23,18,15,.16); }
.feature.flip .copy { order: 2; }
.feature .copy p:not(.eyebrow) { color: var(--ink-2); font-size: 18px; max-width: 30em; }
.feature .copy .display { font-size: clamp(34px, 4.4vw, 54px); }
.feature .phones { display: flex; justify-content: center; gap: 4%; }

.phone {
  width: min(300px, 44vw); aspect-ratio: 1206 / 2622; flex: none;
  border-radius: 46px; padding: 9px; background: #1d1916;
  box-shadow: inset 0 0 0 1.5px #3b332d, 0 40px 70px -30px rgba(23,18,15,.55), 0 10px 22px -10px rgba(23,18,15,.35);
  position: relative;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: var(--paper-2); }
.phone.tilt-l { transform: rotate(-3deg); }
.phone.tilt-r { transform: rotate(3deg) translateY(28px); }
.phones.pair .phone { width: min(260px, 40vw); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 14px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: var(--paper-2); border: 1px solid rgba(23,18,15,.12); }
.chips li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--c, var(--coral)); vertical-align: 1px; }

@media (max-width: 820px) {
  .hero .wrap, .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .copy { order: 0; }
  .film { transform: none; }
}

/* ---------- modes ---------- */
.modes { padding: 0 0 clamp(70px, 9vw, 120px); }
.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.card { background: var(--paper-2); border-radius: var(--radius); padding: 28px 26px; box-shadow: 0 16px 32px -20px rgba(0,0,0,.35), 0 0 0 1px rgba(23,18,15,.07); }
.card p { margin: 0; color: var(--ink-2); }
.card .mark { width: 40px; height: 40px; margin-bottom: 18px; }
@media (max-width: 900px) { .mode-grid { grid-template-columns: minmax(0, 1fr); } }

.themes { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.themes span { font: 700 clamp(18px, 2.2vw, 24px)/1.2 var(--display); padding: 8px 16px; border-radius: 14px; border: 2px solid var(--ink); background: var(--paper); }
.themes span:nth-child(2n) { transform: rotate(-1.5deg); }
.themes span:nth-child(3n) { transform: rotate(1.8deg); }

/* ---------- safety / privacy band ---------- */
.band { background: var(--paper-well); padding: clamp(56px, 7vw, 90px) 0; }
.band .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 16.5px; }
.facts svg { width: 22px; height: 22px; margin-top: 3px; }
@media (max-width: 820px) { .band .wrap { grid-template-columns: 1fr; } }

/* ---------- final CTA ---------- */
.final { text-align: center; padding: clamp(70px, 9vw, 120px) 0; }
.final img { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 28px; box-shadow: 0 22px 40px -18px rgba(0,0,0,.5); }
.final .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.site-foot { background: var(--table); color: var(--table-2); padding: 44px 0 52px; font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; align-items: center; }
.site-foot a { color: var(--table-text); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-foot .labs { display: inline-flex; align-items: center; gap: 10px; }
.site-foot .labs strong { color: var(--table-text); font-weight: 700; }
.site-foot .fine { width: 100%; margin: 0; font-size: 13.5px; opacity: .85; }

/* ---------- document pages (privacy / terms / support / 404) ---------- */
.doc { padding: clamp(48px, 7vw, 90px) 0 clamp(70px, 9vw, 120px); }
.doc .wrap { max-width: 760px; }
.doc h1.display { font-size: clamp(42px, 6.4vw, 72px); }
.doc .updated { color: var(--ink-2); font-size: 15px; margin: 18px 0 40px; }
.doc h2 { font: 800 25px/1.2 var(--display); margin: 44px 0 10px; letter-spacing: -0.01em; }
.doc p:not(.eyebrow), .doc li { color: #3c322b; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc a { text-decoration-color: var(--coral); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.doc .callout { background: var(--paper-2); border-radius: 18px; padding: 20px 22px; box-shadow: 0 0 0 1px rgba(23,18,15,.08); margin: 28px 0; }
.doc .callout p { margin: 0; }
.faq details { background: var(--paper-2); border-radius: 18px; box-shadow: 0 0 0 1px rgba(23,18,15,.08); margin: 12px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-52%); font: 800 26px/1 var(--display); color: var(--coral-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; }
.faq details > div p { margin: 0 0 10px; }
.contact { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper) !important; text-decoration: none !important; font-weight: 700; padding: 14px 22px; border-radius: 999px; margin-top: 6px; }
.contact:hover { background: #000; }

.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.lost .big { font: 800 clamp(110px, 22vw, 220px)/0.9 var(--display); letter-spacing: -0.04em; margin: 0; }
.lost .big em { font-style: normal; color: var(--coral); }
.lost p:not(.big) { color: var(--ink-2); font-size: 19px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper); padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; }

@media (max-width: 420px) {
  .wrap { width: calc(100% - 36px); }
  body { font-size: 16.5px; }
  .phone { border-radius: 36px; padding: 7px; }
  .phone img { border-radius: 30px; }
}
