/* Twistlet website. Dark-only, same tokens as the app (rn_dracin/src/theme/tokens.ts). */

@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --surface: #17171b;
  --surface-2: #232328;
  --border: #2a2a30;
  --text: #f6f4f2;
  --body: #d8d4d2;
  --muted: #a09ca0;
  --accent: #ff4d2e;
  /* White text on #ff4d2e is only 3.2:1, so filled buttons use the AA-safe shade (4.7:1). */
  --accent-fill: #d63a1c;
  --accent-fill-hover: #c2331a;
  --link: #ff846e;
  --gold: #ffb627;
  --burgundy: #5c1410;
  --radius: 14px;
  --container: 1160px;
  --gutter: clamp(20px, 4vw, 32px);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--sans); }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--text); color: var(--bg); border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(11 11 13 / 0.82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid rgb(42 42 48 / 0.7); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.wordmark { font: 600 1.375rem/1 var(--serif); letter-spacing: -0.2px; }
.wordmark span { font-family: var(--sans); font-weight: 700; letter-spacing: -0.6px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); font-weight: 600; font-size: 0.9375rem; text-decoration: none; border-radius: 10px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .nav-cta { margin-left: 8px; padding: 0 18px; background: var(--accent-fill); color: #fff; }
.site-nav .nav-cta:hover { background: var(--accent-fill-hover); color: #fff; }

/* ---------- Buttons & badges ---------- */
.play-badge { display: inline-block; border-radius: 12px; }
/* The official PNG includes its own clear space; negative margin aligns its visible edge with text. */
.play-badge img { width: 216px; height: auto; margin: -14px -14px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--text); font-weight: 600; text-decoration: none; }
.text-link .icon { width: 20px; height: 20px; color: var(--accent); transition: transform 0.18s ease; }
.text-link:hover .icon { transform: translateX(3px); }
.text-link:hover { color: var(--link); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 70% at 78% 40%, rgb(92 20 16 / 0.85), transparent 70%),
  radial-gradient(40% 50% at 10% 0%, rgb(92 20 16 / 0.45), transparent 70%); }
.poster-wall { position: absolute; z-index: -2; top: -8%; right: -6%; width: min(820px, 70vw); display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; transform: rotate(-9deg); opacity: 0.5;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 45%, #000 30%, transparent 80%); mask-image: radial-gradient(70% 70% at 60% 45%, #000 30%, transparent 80%); }
.poster-wall img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.poster-wall img:nth-child(4n + 2), .poster-wall img:nth-child(4n + 4) { transform: translateY(40px); }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(32px, 5vw, 64px); }
.eyebrow { color: var(--gold); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1 { margin-top: 18px; font: 600 clamp(2.75rem, 7vw, 5rem)/1.02 var(--serif); letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { margin-top: 22px; max-width: 34rem; color: var(--body); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.9375rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { width: 18px; height: 18px; color: var(--gold); stroke-width: 2.2; }

/* ---------- Phone frames ---------- */
.devices { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 520px; }
.phone { position: relative; margin: 0; width: clamp(220px, 24vw, 292px); padding: 9px; background: #050506; border: 1px solid #34343b; border-radius: 40px;
  box-shadow: 0 40px 80px -24px rgb(0 0 0 / 0.85), 0 0 0 1px rgb(255 255 255 / 0.03) inset; }
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; z-index: 1; width: 64px; height: 7px; margin-left: -32px; border-radius: 99px; background: #050506; }
.phone img { width: 100%; height: auto; aspect-ratio: 575 / 1220; border-radius: 31px; background: var(--surface); }
.devices .phone-back { position: absolute; right: 0; bottom: 56px; width: clamp(196px, 21vw, 256px); transform: rotate(7deg); opacity: 0.9; }
.devices .phone-front { margin-right: clamp(80px, 12vw, 170px); transform: rotate(-3deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { max-width: 40rem; }
.section-head h2, .split h2, .privacy-card h2, .final-cta h2 { font: 600 clamp(2rem, 4.2vw, 3rem)/1.1 var(--serif); letter-spacing: -0.02em; }
.section-head p, .split .copy > p { margin-top: 16px; color: var(--body); font-size: 1.125rem; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 44px 0 0; padding: 0; list-style: none; }
.feature { padding: 26px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.feature .icon-tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #321612; color: var(--accent); }
.feature h3 { margin-top: 18px; font: 600 1.1875rem/1.3 var(--sans); }
.feature p { margin-top: 8px; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(40px, 7vw, 96px); }
.split .phone { margin-inline: auto; }
.checklist { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 12px; color: var(--body); }
.checklist .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--gold); stroke-width: 2.2; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 44px 0 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 28px 24px 26px; background: linear-gradient(180deg, #1d1416, var(--surface)); border: 1px solid var(--border); border-radius: var(--radius); counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-fill); color: #fff; font: 700 1.0625rem/1 var(--sans); }
.step h3 { margin-top: 18px; font: 600 1.1875rem/1.3 var(--sans); }
.step p { margin-top: 8px; color: var(--muted); }
.note { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--muted); }
.note .icon { color: var(--gold); }

.privacy-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px); background:
  radial-gradient(80% 120% at 100% 0%, rgb(92 20 16 / 0.55), transparent 60%), var(--surface); border: 1px solid var(--border); border-radius: 22px; }
.privacy-card .checklist { margin: 0; }
.privacy-card .text-link { margin-top: 20px; }

.faq { max-width: 52rem; margin-top: 36px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; font-weight: 600; font-size: 1.0625rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform 0.2s ease; }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--accent); }
.faq details p { padding: 0 48px 22px 0; color: var(--body); }

.final-cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.final-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 50% 100%, rgb(92 20 16 / 0.8), transparent 70%); }
.final-cta .mark { width: 56px; height: 56px; margin: 0 auto 22px; }
.final-cta p { margin: 14px auto 0; max-width: 32rem; color: var(--body); font-size: 1.125rem; }
.final-cta .play-badge { margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9375rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--body); text-decoration: none; border-radius: 8px; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }
.fine-print { margin-top: 24px; font-size: 0.8125rem; line-height: 1.6; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px); }
.legal .container { max-width: 780px; }
.legal-head { padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.legal-head h1 { font: 600 clamp(2.25rem, 6vw, 3.5rem)/1.08 var(--serif); letter-spacing: -0.02em; }
.legal-head .updated { margin-top: 10px; color: var(--muted); }
.legal-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.legal-switch a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--border); border-radius: 99px; color: var(--body); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.legal-switch a[aria-current="page"] { background: var(--surface-2); color: var(--text); border-color: #3a3a42; }
.legal-switch a:hover { color: var(--text); }
.legal .notice { margin-top: 28px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; color: var(--body); }
.legal .toc { margin-top: 28px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.legal .toc h2 { font: 600 0.8125rem/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.legal .toc ol { columns: 2 220px; column-gap: 28px; margin: 12px 0 0; padding: 0; list-style: none; }
.legal .toc a { display: inline-block; padding: 5px 0; color: var(--body); text-decoration: none; }
.legal .toc a:hover { color: var(--text); text-decoration: underline; }
.legal section h2 { margin-top: 44px; font: 600 1.375rem/1.3 var(--sans); }
.legal section p, .legal section ul { margin-top: 12px; color: var(--body); }
.legal section ul { padding-left: 22px; }
.legal section li + li { margin-top: 6px; }
.legal strong { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container, .split, .privacy-card { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lede { margin-inline: auto; }
  .cta-row, .trust { justify-content: center; }
  .poster-wall { top: auto; bottom: -4%; right: 50%; width: 760px; transform: translateX(50%) rotate(-9deg); opacity: 0.38; }
  .devices { min-height: 0; padding-top: 12px; }
  .split .phone { order: 2; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-nav .nav-section { display: none; }
  .devices .phone-front { width: min(58vw, 250px); margin-right: min(24vw, 120px); }
  .devices .phone-back { right: 2vw; width: min(46vw, 200px); bottom: 32px; }
  .faq details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .icon { stroke: CanvasText; }
  .site-nav .nav-cta, .step::before { border: 1px solid CanvasText; }
}
