/* Coaster — mycoasterapp.com
   Site chrome: black "liquid metal" language. App renders: Brown sugar boba tokens. */

/* 0. Force black before anything else can paint */
html, body { background: #000000 !important; color: #ffffff; }

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("inter.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("instrument-serif-italic.woff2") format("woff2");
}

/* 1. Tokens */
:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #9a9a9a;
  --soft: #c4c4c4;
  --stat: #d8d8d8;
  --border: rgba(255, 255, 255, 0.16);
  --border-soft: rgba(255, 255, 255, 0.12);

  --logo: 15.5px;
  --logo-mark: 22px;
  --nav: 14px;
  --nav-h: 40px;
  --btn: 13.5px;
  --btn-h: 40px;
  --hero-btn-h: 42px;
  --h1: 48px;
  --lede: 15.5px;
  --badge: 12.5px;
  --stat-size: 13.5px;
  --header-y: 22px;
  --header-x: 40px;
  --stats-x: 72px;
  --stats-y: 36px;
  --hero-gap: 85px;
  --copy-max: 860px;
  --lede-max: 470px;
  --icon: 20px;
  --icon-wide-w: 38px;
  --icon-wide-h: 21px;
  --nav-pad: 0 18px;
  --nav-gap: 8px;
  --btn-pad: 0 16px;
  --hero-btn-pad: 0 18px;
  --badge-pad: 9px 15px;
  --badge-mb: 22px;
  --lede-mt: 18px;
  --actions-mt: 26px;
  --actions-gap: 10px;

  --page-max: 1080px;
  --text-max: 640px;
  --section-y: 112px;
  --gutter: 24px;

  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", Times, serif;
  --font-app: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mark: ui-rounded, "SF Pro Rounded", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Wordmark on the black chrome (caramel accent) */
  --brand: #D08A55;

  /* Brown sugar boba — light */
  --app-canvas: #F6E9D8;
  --app-card: #FFF8EE;
  --app-edge: rgba(0, 0, 0, 0.05);
  --app-text: #2E1D14;
  --app-muted: #7A6455;
  --app-faint: #A8968A;
  --app-accent: #8A4A1F;
  --verdict-good: #2F7D4F;
  --verdict-fair: #8A4A1F;
  --verdict-bad: #B0413A;
  --app-depth: 0 2px 5px rgba(46, 28, 20, 0.12);
  --photo-fallback:
    radial-gradient(circle at 28% 34%, rgba(255, 206, 140, 0.75), rgba(255, 206, 140, 0) 34%),
    radial-gradient(circle at 72% 62%, rgba(208, 138, 85, 0.7), rgba(208, 138, 85, 0) 42%),
    radial-gradient(circle at 86% 18%, rgba(255, 238, 205, 0.5), rgba(255, 238, 205, 0) 18%),
    linear-gradient(135deg, #3B2418 0%, #6E3A18 48%, #B7703D 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Brown sugar boba — dark */
    --app-canvas: #1F1613;
    --app-card: #2C221C;
    --app-edge: rgba(255, 255, 255, 0.09);
    --app-text: #F1E8DF;
    --app-muted: #A89A8C;
    --app-faint: #7A6F64;
    --app-accent: #D08A55;
    --verdict-good: #8CCC9E;
    --verdict-fair: #D08A55;
    --verdict-bad: #EE8C80;
    --app-depth: 0 0 0 1px rgba(255, 255, 255, 0.09);
  }
}

html, body {
  background: #000000;
  background: var(--bg, #000000);
  color: #ffffff;
  color: var(--text, #ffffff);
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
::selection { background: rgba(208, 138, 85, 0.45); color: #fff; }

:focus { outline: none; }
:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; border-radius: 6px; }
.app :focus-visible { outline-color: var(--app-accent); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: #fff; color: #111; border-radius: 6px; font-weight: 500; font-size: 14px;
}
.skip-link:focus-visible { top: 16px; }

/* 3. Grain (z 100, above everything, never interactive) */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* 4. Header */
.header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: var(--header-y) var(--header-x) 10px;
}
.logo {
  display: inline-flex; align-items: center; gap: 9px; justify-self: start;
  min-height: 44px;
  font-family: var(--font-mark);
  font-size: calc(var(--logo) * 1.32);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  color: var(--brand);
}
.logo-mark { width: var(--logo-mark); height: var(--logo-mark); flex: none; color: var(--brand); }

.nav { display: flex; align-items: center; gap: var(--nav-gap); justify-self: center; }
.nav a {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--nav-h); padding: var(--nav-pad); border-radius: 7px;
  border: 1px solid rgba(198, 198, 198, 0.55);
  background: linear-gradient(105deg, #050505 0%, #2a2a2a 48%, #4a4a4a 100%);
  color: #f3f3f3; font-size: var(--nav); font-weight: 400; letter-spacing: -0.01em; white-space: nowrap;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.nav a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.6s ease;
}
.nav a:hover, .nav a[aria-current="page"] {
  border-color: rgba(235, 235, 235, 0.9);
  background: linear-gradient(105deg, #111111 0%, #3a3a3a 45%, #6a6a6a 100%);
  box-shadow: 0 0 18px rgba(200, 210, 230, 0.18);
}
.nav a:hover::before { transform: translateX(120%); }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }

.burger {
  display: none; position: relative; z-index: 60;
  width: 44px; height: 44px; border-radius: 6px;
  border: 1px solid var(--border); background: rgba(8, 8, 8, 0.55);
  place-items: center; align-content: center; gap: 5px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.burger span { display: block; width: 16px; height: 1.5px; border-radius: 1px; background: #fff; transition: transform 0.25s ease, opacity 0.2s ease; }
.burger:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.05); }
.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.menu-backdrop { display: none; }

/* 5. Buttons */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: var(--btn-pad); border-radius: 6px;
  font-size: var(--btn); font-weight: 500; letter-spacing: -0.02em; line-height: 1; white-space: nowrap;
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease, filter 0.35s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.45) 48%, transparent 76%);
  transform: translateX(-130%); transition: transform 0.65s ease;
}
.btn:hover::after { transform: translateX(130%); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-solid {
  background: linear-gradient(180deg, #ffffff 0%, #e7e7e7 48%, #cfcfcf 100%);
  color: #111111; border: 1px solid #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.btn-solid:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f3f6ff 42%, #d5def2 100%);
  border-color: #f2f6ff;
  box-shadow: inset 0 1px 0 #ffffff, 0 0 22px rgba(186, 208, 255, 0.35), 0 8px 18px rgba(255, 255, 255, 0.12);
}
.btn-ghost {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.45) 50%, rgba(160, 175, 200, 0.08));
  color: #ffffff; border: 1px solid rgba(198, 198, 198, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-ghost:hover {
  background: linear-gradient(135deg, rgba(210, 225, 255, 0.18), rgba(0, 0, 0, 0.35) 48%, rgba(180, 195, 220, 0.16));
  border-color: rgba(220, 230, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 20px rgba(170, 200, 255, 0.22);
}
.btn-lg { height: var(--hero-btn-h); padding: var(--hero-btn-pad); }
.btn-lg.btn-solid:hover {
  box-shadow: inset 0 1px 0 #ffffff, 0 0 26px rgba(186, 208, 255, 0.4), 0 8px 18px rgba(255, 255, 255, 0.14);
}
.btn-lg.btn-ghost {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.5) 46%, rgba(150, 170, 200, 0.1));
  border: 1px solid rgba(198, 198, 198, 0.55);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.btn-lg.btn-ghost:hover { border-color: rgba(220, 230, 255, 0.8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 24px rgba(170, 200, 255, 0.28); }

/* 6. First screen (hero) */
.first-screen {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding-top: calc(var(--header-y) + var(--nav-h) + 32px);
}
.hero-photo { position: absolute; inset: 0; z-index: -1; background: #000; }
.hero-video {
  width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-video.is-playing { opacity: 1; }

.hero { display: flex; align-items: flex-end; justify-content: center; padding: 8px 24px var(--hero-gap); min-height: 0; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: var(--copy-max); width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: var(--badge-mb); padding: var(--badge-pad); border: 0; border-radius: 5px;
  background: linear-gradient(90deg, #7d7d7d 0%, #2a2a2a 52%, #0a0a0a 100%);
  color: #f2f2f2; font-size: var(--badge); font-weight: 400; letter-spacing: -0.01em; line-height: 1.2;
}
.badge-star { width: 18px; height: 20px; flex: none; color: #fff; filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.45)); }

.hero h1 {
  display: flex; flex-direction: column; align-items: center;
  font-size: var(--h1); font-weight: 500; letter-spacing: -0.045em; line-height: 1.12; color: #fff;
}
.headline-line { display: block; overflow: hidden; padding: 0.06em 0.15em 0.14em; }
.headline-inner { display: block; }
.hero h1 em, .h2 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.08em; letter-spacing: -0.03em; color: #9a9a9a;
}
.lede {
  max-width: var(--lede-max); margin-top: var(--lede-mt);
  color: #9a9a9a; font-size: var(--lede); font-weight: 400; line-height: 1.55; letter-spacing: -0.015em;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--actions-gap); margin-top: var(--actions-mt); }

.stats {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--stats-x) var(--stats-y);
  padding-bottom: max(var(--stats-y), env(safe-area-inset-bottom));
  color: var(--stat);
}
.stat { display: inline-flex; align-items: center; gap: 14px; font-size: var(--stat-size); letter-spacing: -0.015em; white-space: nowrap; }
.stat-icon { width: var(--icon); height: var(--icon); flex: none; color: #e8e8e8; }
.stat-icon-wide { width: var(--icon-wide-w); height: var(--icon-wide-h); flex: none; }

/* 7. Entrance motion (hero) */
.appear {
  opacity: 1;
  animation-duration: 1.05s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-delay: var(--d, 0.08s);
}
.appear--scale { animation-name: in-scale; }
.appear--soft { animation-name: in-soft; }
.appear--mask { animation-name: in-mask; }
.appear--pop { animation-name: in-pop; }
.appear--btn { animation-name: in-btn; }
.appear--side { animation-name: in-side; }
.appear--stat { animation-name: in-stat; }
.lede.appear { animation-duration: 1.25s; }
.hero-photo { animation: in-photo 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0s both; }
.badge-star { animation: in-star 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both; }
.hero h1 em { animation: in-em 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.72s both; }
.appear.is-in, .hero-photo.is-in { animation: none; opacity: 1; transform: none; clip-path: none; filter: none; }

@keyframes in-scale { from { opacity: 0; transform: scale(0.84); } to { opacity: 1; transform: none; } }
@keyframes in-soft { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes in-mask { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
@keyframes in-pop { 0% { opacity: 0; transform: scale(0.9); } 70% { opacity: 1; transform: scale(1.03); } 100% { opacity: 1; transform: scale(1); } }
@keyframes in-btn { from { opacity: 0; transform: translateY(18px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes in-side { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes in-stat { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes in-star { 0% { opacity: 0; transform: scale(0.2) rotate(-50deg); } 65% { opacity: 1; transform: scale(1.2) rotate(8deg); } 100% { opacity: 1; transform: none; } }
@keyframes in-em { from { opacity: 0.35; filter: blur(4px); } to { opacity: 1; filter: none; } }
@keyframes in-photo { from { opacity: 0; } to { opacity: 1; } }

/* Section fade-up (one subtle move, 300ms) */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.3s ease-out, transform 0.3s ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 8. Sections */
.section { position: relative; padding: var(--section-y) var(--gutter); }
.section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--page-max), calc(100% - 2 * var(--gutter))); height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}
.section--flush::before { display: none; }
.wrap { max-width: var(--page-max); margin: 0 auto; }
.section-head { max-width: var(--text-max); margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { margin-bottom: 16px; }
.h2 { font-size: clamp(30px, 1.6vw + 20px, 40px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.12; color: #fff; }
.h2 em { letter-spacing: -0.02em; }
.section-lede { margin-top: 16px; color: var(--soft); font-size: 17px; line-height: 1.55; letter-spacing: -0.01em; }
.prose { max-width: var(--text-max); color: var(--soft); }
.prose p + p { margin-top: 16px; }
.prose h3 { color: #fff; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 8px; }
.prose h3:not(:first-child) { margin-top: 32px; }
.mono-note { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split--reverse > :first-child { order: 2; }

/* Glass panel (site chrome) */
.glass {
  position: relative; border-radius: 18px;
  border: 1px solid rgba(198, 198, 198, 0.2);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 42%, rgba(0, 0, 0, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 9. App surfaces (Brown sugar boba) */
.app { font-family: var(--font-app); color: var(--app-text); }
.app-card { background: var(--app-card); border-radius: 18px; box-shadow: var(--app-depth); }
.wordmark-app { font-family: var(--font-mark); font-weight: 800; letter-spacing: -0.04em; color: var(--app-accent); }
.score { font-family: var(--font-app); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.score--good { color: var(--verdict-good); }
.score--fair { color: var(--verdict-fair); }
.score--bad { color: var(--verdict-bad); }
.avatar {
  display: grid; place-items: center; flex: none; border-radius: 50%;
  width: 2.5em; height: 2.5em; font-weight: 700; font-size: 1em;
  background: var(--app-accent); color: var(--app-card);
}
.avatar--b { background: var(--verdict-good); }

/* Media with graceful fallback (image sits on top of a drawn fallback) */
.media { position: relative; overflow: hidden; }
.media > .media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; color: transparent; }
.media > .media-img.is-missing { display: none; }

/* Radar strokes (used at any size) */
.r-ring { fill: none; stroke: var(--app-faint); stroke-opacity: 0.5; stroke-width: 1; }
.r-spoke { stroke: var(--app-faint); stroke-opacity: 0.35; stroke-width: 1; }
.r-shape { fill: var(--app-accent); fill-opacity: 0.2; stroke: var(--app-accent); stroke-width: 2; stroke-linejoin: miter; }
.r-dot { fill: var(--app-accent); stroke: var(--app-card); stroke-width: 1.5; }
.r-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; fill: var(--app-muted); }
.radar-mini .r-shape { stroke-width: 1.4; }
.radar-mini .r-dot { stroke-width: 0.8; }

/* 10. Phone showcase */
.showcase { position: relative; padding: 64px var(--gutter) 24px; display: flex; justify-content: center; }
.showcase::after {
  content: ""; position: absolute; left: 50%; top: 42%; z-index: -1;
  width: min(760px, 100%); height: 520px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(208, 138, 85, 0.22), rgba(208, 138, 85, 0));
  pointer-events: none;
}
.phone {
  position: relative; width: min(300px, 74vw); aspect-ratio: 1179 / 2556;
  padding: 10px; border-radius: 50px;
  background: linear-gradient(145deg, #2c2c2c 0%, #0b0b0b 38%, #1b1b1b 70%, #3a3a3a 100%);
  box-shadow:
    0 0 0 1px rgba(198, 198, 198, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 40px 80px rgba(0, 0, 0, 0.7),
    0 0 120px rgba(208, 138, 85, 0.16);
}
.phone-screen { position: relative; height: 100%; border-radius: 40px; background: var(--app-canvas); }
.phone-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 0; font-size: 9.2px; }
.pf-status { display: flex; align-items: center; justify-content: space-between; padding: 2px 10px 0; font-weight: 700; font-size: 1.15em; }
.pf-island { width: 30%; height: 18px; border-radius: 12px; background: #000; }
.pf-signal { display: flex; gap: 2px; align-items: flex-end; }
.pf-signal i { display: block; width: 3px; border-radius: 1px; background: currentColor; }
.pf-signal i:nth-child(1) { height: 4px; } .pf-signal i:nth-child(2) { height: 6px; } .pf-signal i:nth-child(3) { height: 8px; }
.pf-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 0; }
.pf-top .wordmark-app { font-size: 2.3em; }
.pf-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--app-card); box-shadow: var(--app-depth); }
.pf-tabs { display: flex; gap: 6px; padding: 0 4px; }
.pf-tabs span { padding: 4px 10px; border-radius: 99px; font-weight: 600; color: var(--app-muted); }
.pf-tabs .is-on { background: var(--app-text); color: var(--app-canvas); }
.pf-ghost { height: 90px; border-radius: 18px; background: var(--app-card); box-shadow: var(--app-depth); opacity: 0.7; }

/* 11. Feed card (em-based so it scales) */
.feed-card { font-size: 16px; padding: 1em; width: 100%; max-width: 440px; }
.feed-card--mini { font-size: 9.2px; max-width: none; }
.fc-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.75em; align-items: start; }
.fc-line { color: var(--app-muted); font-size: 0.875em; line-height: 1.35; }
.fc-line b { color: var(--app-text); font-weight: 600; }
.fc-venue { font-weight: 800; font-size: 1.0625em; line-height: 1.25; letter-spacing: -0.01em; margin-top: 0.1em; }
.fc-meta { display: flex; align-items: center; gap: 0.35em; margin-top: 0.25em; color: var(--app-muted); font-size: 0.8125em; line-height: 1.35; }
.fc-meta svg { width: 1.15em; height: 1.15em; flex: none; }
.fc-verdict { display: grid; grid-template-columns: auto auto; column-gap: 0.5em; align-items: center; }
.fc-verdict .score { font-size: 2.25em; grid-row: 1; }
.radar-mini { width: 3.5em; height: 3.5em; }
.fc-time { grid-column: 2; font-size: 0.6875em; color: var(--app-muted); text-align: center; white-space: nowrap; margin-top: 0.3em; }
.glasses { display: flex; flex-wrap: wrap; gap: 0.375em; margin: 0.875em 0 0.75em; color: var(--app-muted); }
.glasses li { display: grid; place-items: center; width: 1.75em; height: 1.75em; border-radius: 0.5em; background: var(--app-canvas); }
.glasses svg { width: 1.125em; height: 1.125em; }
.fc-photo { aspect-ratio: 16 / 9; border-radius: 12px; background: var(--photo-fallback); }
.feed-card--mini .fc-photo { border-radius: 8px; }
.fc-notes { margin-top: 0.75em; font-size: 0.9375em; line-height: 1.45; }
.fc-notes b { font-weight: 700; }

/* 12. How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.step-ill { border-radius: 12px; aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--app-canvas); overflow: hidden; }
.step-ill svg { width: 82%; height: auto; }
.step-body { padding: 0 8px; }
.step-num { display: block; margin-bottom: 8px; }
.step h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 8px; }
.step p { color: var(--soft); }
.ill-card { fill: var(--app-card); }
.ill-edge { fill: none; stroke: var(--app-edge); }
.ill-shadow { fill: var(--app-text); opacity: 0.06; }
.ill-faint { fill: var(--app-faint); opacity: 0.55; }
.ill-muted { fill: var(--app-muted); }
.ill-accent { fill: var(--app-accent); }
.ill-accent-stroke { fill: none; stroke: var(--app-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ill-onaccent { fill: var(--app-card); }
.ill-onaccent-stroke { fill: none; stroke: var(--app-card); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ill-good { fill: var(--verdict-good); font-family: var(--font-app); font-weight: 800; letter-spacing: -0.03em; }
.ill-text { fill: var(--app-muted); font-family: var(--font-app); font-weight: 600; }

/* 13. Ambiance radar */
.radar-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.radar-card { padding: 24px; }
.radar-card svg { width: 100%; max-width: 460px; height: auto; margin: 0 auto; }
.radar-caption { margin-top: 8px; text-align: center; color: var(--app-muted); font-size: 14px; }
.readout-card { padding: 24px; }
.readout { display: grid; gap: 20px; }
.ro {
  display: grid; grid-template-columns: 6.6em 4.6em minmax(0, 1fr); align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; line-height: 1.3;
}
.ro-win { color: var(--app-text); font-weight: 700; text-transform: uppercase; }
.ro-lose { color: var(--app-muted); }
.ro-slider { display: grid; grid-template-columns: 4.2em minmax(48px, 1fr) 5.6em; align-items: center; gap: 12px; color: var(--app-muted); letter-spacing: 0.04em; }
.ro-slider > :first-child { text-align: right; }
.ro-track { position: relative; height: 4px; border-radius: 2px; }
.ro-track::before { content: ""; position: absolute; inset: 0; border-radius: 2px; background: var(--app-faint); opacity: 0.4; }
.ro-knob {
  position: absolute; top: 50%; left: var(--v); transform: translate(-50%, -50%);
  min-width: 30px; height: 20px; padding: 0 6px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--app-accent); color: var(--app-card);
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}
.readout-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--app-edge); color: var(--app-muted); font-size: 14px; }
.radar-copy { margin-top: 32px; }

/* 14. Loose Lips */
.ll-card { padding: 16px; max-width: 420px; width: 100%; }
.ll-head { display: flex; align-items: center; gap: 12px; }
.ll-name { font-weight: 700; line-height: 1.2; }
.ll-sub { color: var(--app-muted); font-size: 13px; }
.ll-timer { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: var(--app-canvas); color: var(--app-muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.ll-timer svg { width: 16px; height: 16px; }
.ll-text { margin-top: 12px; font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; }
.ll-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--app-edge); display: flex; align-items: center; gap: 8px; color: var(--app-muted); font-size: 13px; }
.ll-foot svg { width: 14px; height: 14px; flex: none; }
.card-stage { display: flex; justify-content: center; padding: 32px; }

/* 15. Story card */
.story { position: relative; width: min(280px, 70vw); aspect-ratio: 1080 / 1920; border-radius: 22px; background: var(--app-canvas); box-shadow: 0 0 0 1px rgba(198, 198, 198, 0.25), 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 100px rgba(208, 138, 85, 0.14); }
.story .media-img { border-radius: inherit; }
.story-fallback {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px; padding: 26px 20px 20px; font-size: 13px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(208, 138, 85, 0.28), rgba(208, 138, 85, 0) 70%),
    var(--app-canvas);
}
.sf-top { display: flex; justify-content: space-between; align-items: center; }
.sf-top .wordmark-app { font-size: 1.6em; }
.sf-kicker { margin-top: 10px; color: var(--app-muted); font-size: 0.95em; }
.sf-venue { font-size: 1.75em; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.sf-meta { color: var(--app-muted); font-size: 0.9em; }
.sf-score-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 14px; border-radius: 16px; background: var(--app-card); box-shadow: var(--app-depth); }
.sf-score-row .score { font-size: 3.4em; }
.sf-score-row svg { width: 84px; height: 84px; }
.sf-photo { flex: 1; min-height: 0; border-radius: 12px; background: var(--photo-fallback); }
.sf-foot { display: flex; justify-content: space-between; align-items: center; color: var(--app-muted); font-size: 0.85em; }

/* 16. Download */
.download { text-align: center; }
.download .hero-actions { margin-top: 32px; }
.download-note { margin: 24px auto 0; max-width: 520px; color: var(--muted); font-size: 15px; }
.download-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* 17. Footer */
.site-footer { position: relative; padding: 48px var(--gutter) max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border-soft); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-copy { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); font-size: 15px; transition: color 0.2s ease; }
.footer-links a:hover { color: #fff; }

/* 18. Document pages (privacy, support, 404) */
.doc-main { padding: calc(var(--header-y) + var(--nav-h) + 88px) var(--gutter) 96px; }
.doc { max-width: var(--text-max); margin: 0 auto; }
.doc h1 { font-size: clamp(34px, 2vw + 24px, 40px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.doc h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: #9a9a9a; font-size: 1.08em; letter-spacing: -0.02em; }
.doc-meta { margin-top: 12px; color: var(--muted); font-size: 15px; }
.doc-lede { margin-top: 24px; color: var(--soft); }
.doc h2 { margin-top: 48px; margin-bottom: 12px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; color: #fff; }
.doc h3 { margin-top: 24px; margin-bottom: 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.doc p, .doc li { color: var(--soft); }
.doc p + p { margin-top: 12px; }
.doc ul { margin-top: 12px; display: grid; gap: 8px; }
.doc li { position: relative; padding-left: 20px; }
.doc li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.doc a:not(.btn) { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 3px; }
.doc a:not(.btn):hover { text-decoration-color: #fff; }
.doc strong { color: #fff; font-weight: 600; }
.summary { margin-top: 32px; padding: 24px; }
.summary h2 { margin-top: 0; }
.placeholder { font-family: var(--font-mono); font-size: 0.9em; color: #ffd9b8; background: rgba(208, 138, 85, 0.16); padding: 1px 6px; border-radius: 4px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.copy-status { min-height: 1.5em; margin-top: 8px; color: var(--muted); font-size: 14px; }
.faq { margin-top: 16px; border-top: 1px solid var(--border-soft); }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--border-soft); }
.faq-item h3 { margin-top: 0; }
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 64px; }
.notfound .mono-note { margin-bottom: 16px; }
.notfound p { margin: 16px auto 0; max-width: 440px; color: var(--soft); }
.notfound .hero-actions { margin-top: 32px; }

/* 19. Responsive — large screens */
@media (min-width: 1280px) and (max-width: 1599px) {
  :root { --h1: 54px; --lede: 16px; --header-x: 48px; --stats-x: 80px; --copy-max: 900px; }
}
@media (min-width: 1600px) {
  :root {
    --logo: 17px; --logo-mark: 24px; --nav: 15px; --nav-h: 44px; --btn: 15px; --btn-h: 44px; --hero-btn-h: 48px;
    --h1: 64px; --lede: 18px; --badge: 13.5px; --stat-size: 15px;
    --header-y: 28px; --header-x: 64px; --stats-x: 96px; --stats-y: 44px;
    --copy-max: 980px; --lede-max: 540px;
    --nav-pad: 0 20px; --badge-mb: 26px; --lede-mt: 22px; --actions-mt: 30px; --actions-gap: 12px;
    --icon: 22px; --icon-wide-w: 45px; --icon-wide-h: 24px;
  }
}
@media (min-width: 1920px) {
  :root {
    --logo: 18px; --logo-mark: 26px; --nav: 16px; --nav-h: 48px; --btn: 16px; --btn-h: 48px; --hero-btn-h: 52px;
    --h1: 76px; --lede: 20px; --badge: 14.5px; --stat-size: 16px;
    --header-y: 32px; --header-x: 80px; --stats-x: 120px; --stats-y: 52px;
    --copy-max: 1120px; --lede-max: 620px;
    --nav-gap: 10px; --nav-pad: 0 22px; --btn-pad: 0 22px; --hero-btn-pad: 0 22px; --badge-pad: 10px 15px;
    --icon-wide-w: 48px; --icon-wide-h: 26px;
  }
}
@media (min-width: 2560px) {
  :root { --h1: 88px; --lede: 22px; --header-x: 120px; --stats-x: 160px; --copy-max: 1280px; --lede-max: 680px; }
}
@media (min-width: 901px) and (max-width: 1279px) {
  :root {
    --logo: 15px; --nav: 13px; --nav-h: 36px; --btn: 13px; --btn-h: 38px; --hero-btn-h: 40px;
    --h1: 42px; --lede: 15px; --badge: 12px; --stat-size: 12.5px;
    --header-y: 16px; --header-x: 28px; --stats-x: 36px; --stats-y: 28px; --hero-gap: 64px;
    --copy-max: 760px; --lede-max: 440px;
    --nav-pad: 0 14px; --badge-mb: 16px; --lede-mt: 14px; --actions-mt: 20px;
  }
}
@media (min-width: 901px) and (max-height: 850px) {
  :root { --header-y: 14px; --stats-y: 24px; --hero-gap: 48px; --h1: 40px; --badge-mb: 12px; --lede-mt: 12px; --actions-mt: 16px; }
}
@media (min-width: 901px) and (max-height: 720px) {
  :root { --h1: 34px; --lede: 14px; --hero-gap: 32px; --stats-y: 18px; --nav-h: 30px; --btn-h: 34px; --hero-btn-h: 36px; --badge-mb: 8px; }
}

/* 20. Responsive — phone */
@media (max-width: 900px) {
  :root {
    --logo: 16px; --btn: 15px; --btn-h: 46px; --hero-btn-h: 48px;
    --h1: 36px; --lede: 16.5px; --badge: 13.5px; --stat-size: 15px;
    --header-y: 16px; --header-x: 18px; --stats-x: 20px; --stats-y: 28px; --hero-gap: 36px;
    --section-y: 80px; --gutter: 20px;
  }
  .header {
    grid-template-columns: 1fr auto auto; gap: 8px;
    padding-top: max(var(--header-y), env(safe-area-inset-top));
    padding-left: max(var(--header-x), env(safe-area-inset-left));
    padding-right: max(var(--header-x), env(safe-area-inset-right));
  }
  .logo, .header-actions, .burger { position: relative; z-index: 80; }
  .burger { display: grid; }
  .menu-backdrop {
    display: block; position: fixed; inset: 0; z-index: 40;
    background: rgba(8, 8, 8, 0.42); opacity: 0; visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }
  .menu-open .menu-backdrop { opacity: 1; visibility: visible; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
  .nav {
    position: fixed; inset: 0; z-index: 45; justify-self: stretch; align-self: stretch; width: 100%; height: 100%;
    flex-direction: column; justify-content: center; gap: 12px;
    padding: 96px 22px 32px; padding-top: max(96px, calc(env(safe-area-inset-top) + 88px));
    background: transparent;
    opacity: 0; visibility: hidden; transition: opacity 0.28s ease, visibility 0.28s ease;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav a { width: 100%; max-width: 480px; height: 56px; font-size: 19px; border-radius: 10px; }
  .menu-open { overflow: hidden; }

  .first-screen { padding-top: 96px; }
  .hero { padding: 20px 20px 64px; align-items: flex-end; }
  .hero-copy, .lede { max-width: 100%; }
  .stats { flex-direction: column; justify-content: center; gap: 16px; }
  .stat { white-space: normal; }

  .split, .radar-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split--reverse > :first-child { order: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
  .card-stage { padding: 0; }
}
@media (max-width: 560px) {
  :root { --h1: 34px; --lede: 16px; --header-x: 16px; --gutter: 16px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .header-cta { padding: 0 14px; }
  .ro { grid-template-columns: auto 1fr; row-gap: 10px; }
  .ro-slider { grid-column: 1 / -1; }
  .radar-card, .readout-card { padding: 16px; }
  .summary { padding: 16px; }
}

/* Touch devices always get 44px+ targets */
@media (pointer: coarse) {
  :root { --nav-h: 44px; }
  .btn { min-height: 44px; }
}

/* 21. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .appear, .hero-photo, .hero h1 em, .badge-star { opacity: 1; transform: none; clip-path: none; filter: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 22. Utilities added for markup */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.section-head--flush { margin-bottom: 0; }
.sf-foot .glasses { margin: 0; }
.ill-glyph-on { color: var(--app-card); }
[hidden] { display: none !important; }
.headline-inner { text-wrap: balance; }
.hero h1 em { white-space: nowrap; }
.lede, .section-lede, .prose p, .doc p, .step p { text-wrap: pretty; }
.h2, .doc h1, .step h3 { text-wrap: balance; }
