/* Burn O'Clock website. Follows the app (ui/theme/Tokens.kt): Night surfaces, warm off-white text, one fire gradient
   used sparingly, Bone plates behind the trainers, Roboto Flex headlines (heavy, tight). Dark only, like the app. */

@font-face {
  font-family: "Roboto Flex";
  src: url("/fonts/roboto-flex.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --night: #0f0b09;
  --lowest: #0a0706;
  --low: #161110;
  --container: #1e1815;
  --high: #28201c;
  --highest: #322823;
  --line: #3a302a;
  --text: #f7f1ec;
  --muted: #b8ada4;
  --faint: #95887e;
  --ember: #ff5a1f;
  --flame: #ff8a3d;
  --gold: #ffc24b;
  --bone: #eeE7df;
  --fire: linear-gradient(90deg, #ff5a1f 0%, #ff8a3d 55%, #ffc24b 100%);
  --font: "Roboto Flex", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 20px;
  --gutter: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; background: var(--night); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 400 17px/1.6 var(--font); overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--flame); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { line-height: 1.08; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--night); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.eyebrow, .caption {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--flame); margin: 0 0 .8em;
}
.fire { background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.small { font-size: .92rem; color: var(--muted); }
.icon { width: 20px; height: 20px; flex: none; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(15, 11, 9, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--container); }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 56px 0 72px;
  background: url("/img/ember.webp") 80% 100% / cover no-repeat, var(--night);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 11, 9, .94) 0%, rgba(15, 11, 9, .7) 48%, rgba(15, 11, 9, .15) 100%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; }
.platforms { color: var(--faint); font-size: .92rem; margin-top: 18px; }
.phone { border-radius: 34px; overflow: hidden; border: 1px solid var(--line); background: var(--lowest); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.hero-shot .phone { max-width: 340px; margin-left: auto; }

.soon { display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 12px 20px; border-radius: 999px; background: var(--container); border: 1px solid var(--line); font-weight: 700; }
.soon .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fire); }
.badge { display: inline-block; margin: 0 0 0 -10px; }
.badge img { height: 74px; width: auto; }

/* Sections */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--low); }
.section-title { font-size: clamp(2rem, 4.2vw, 3rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.feature { display: flex; flex-direction: column; gap: 22px; padding: 22px; border-radius: var(--radius); background: var(--low); border: 1px solid var(--container); }
.feature-shot { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); max-width: 250px; width: 100%; margin: 0 auto; }
.feature-copy h3 { font-size: 1.35rem; font-weight: 800; }
.feature-copy p:last-child { color: var(--muted); margin: 0; }

.plates { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plate { margin: 0; border-radius: var(--radius); background: var(--bone); padding: 12px 12px 0; overflow: hidden; }
.plate-b { background: #e7e6c9; }
.plate-a { background: #f1d6c2; }
.plate img { width: 100%; }
.plate figcaption { color: #1a0a03; font-weight: 800; padding: 0 6px 14px; }

.plans-split .phone-sm { max-width: 280px; margin-top: 28px; border-radius: 28px; }
.plan-list { list-style: none; margin: 0; padding: 0; border-radius: var(--radius); background: var(--low); border: 1px solid var(--container); }
.plan-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 22px; border-top: 1px solid var(--container); }
.plan-list li:first-child { border-top: 0; }
.plan-name { font-weight: 700; }
.plan-meta { color: var(--muted); font-size: .92rem; white-space: nowrap; }
.tag { color: var(--gold); font-weight: 700; }

.pro { padding: 32px; border-radius: var(--radius); background: var(--low); border: 1px solid var(--container); }
.checks { list-style: none; margin: 0 0 1.2em; padding: 0; }
.checks li { display: flex; gap: 12px; padding: 7px 0; }
.checks .icon { color: var(--flame); margin-top: 3px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facts > div { padding: 26px; border-radius: var(--radius); background: var(--low); border: 1px solid var(--container); }
.facts p { color: var(--muted); margin: 0; }
.note { color: var(--faint); font-size: .92rem; margin: 28px 0 0; max-width: 46em; }

.cta { background: url("/img/ember.webp") 50% 100% / cover no-repeat, var(--night); position: relative; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(15, 11, 9, .55); }
.cta-box { position: relative; text-align: center; padding: 40px var(--gutter); }
.cta-box h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 900; }

/* Documents and support */
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .4em 0; }
.prose p, .prose li { color: #e6ded7; }
.prose em { color: var(--faint); font-style: normal; }

.contact { display: flex; gap: 16px; align-items: center; margin: 28px 0 36px; padding: 22px 24px; border-radius: var(--radius); background: var(--container); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.contact:hover { border-color: var(--flame); }
.contact .icon { width: 28px; height: 28px; color: var(--flame); }
.contact span span { display: block; color: var(--muted); font-size: .92rem; }
.faq details { border-top: 1px solid var(--container); }
.faq details:last-child { border-bottom: 1px solid var(--container); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; font-weight: 400; color: var(--flame); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-right: 40px; }

.button { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; background: var(--fire); color: var(--night); font-weight: 800; text-decoration: none; }

/* Footer */
.foot { border-top: 1px solid var(--container); padding: 48px 0 28px; background: var(--lowest); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--muted); margin-top: 12px; }
.foot h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 6px 0; }
.foot li a { color: var(--muted); text-decoration: none; }
.foot li a:hover { color: var(--text); }
.legal { margin-top: 32px; color: var(--faint); font-size: .85rem; }
.legal p { margin: 4px 0; }
.legal a { color: var(--muted); }

@media (max-width: 900px) {
  .hero { background-position: 70% 100%; padding: 36px 0 56px; }
  .hero::before { background: linear-gradient(180deg, rgba(15, 11, 9, .92) 0%, rgba(15, 11, 9, .6) 60%, rgba(15, 11, 9, .3) 100%); }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero-shot .phone { margin: 0 auto; max-width: 300px; }
  .features { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --gutter: 18px; }
  .hide-sm { display: none; }
  .section { padding: 56px 0; }
  .features { grid-template-columns: 1fr; }
  .plans-split .phone-sm { max-width: 240px; }
  .badge img { height: 62px; }
  .pro { padding: 22px; }
  .plan-list li { padding: 13px 16px; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.facts h3 { margin: 0; }
