/* 24H website. Colour tokens are the app's (ios/TwentyFourH/DesignSystem/Theme.swift). */
:root {
  --bg: #141614;
  --surface: #20231f;
  --raised: #292d26;
  --accent-surface: #2a3421;
  --bubble: #2a2e28;
  --line: #343a2f;
  --text: #f1f1e8;
  --text-2: #979e90;
  --text-3: #71786b;
  --lime: #d7ff64;
  --on-lime: #202716;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1160px;
  --gutter: 24px;
  --radius: 22px;
  color-scheme: dark;
}

*, *::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 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--lime); color: var(--on-lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 14px; background: var(--lime); color: var(--on-lime); border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Type */
.eyebrow { font: 500 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.eyebrow-lime { color: var(--lime); }
.lede { color: var(--text-2); font-size: 18px; line-height: 1.6; max-width: 34em; }
.lede a { color: var(--lime); text-decoration: none; }
.lede a:hover { text-decoration: underline; }
.section-title { font: 500 clamp(32px, 4.4vw, 52px)/1.06 var(--sans); letter-spacing: -0.035em; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgba(215, 255, 100, 0.7); }

/* Buttons (the app's lime capsule) */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  background: var(--lime); color: var(--on-lime);
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--lime);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); background: #e2ff8c; }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--text-3); }
.btn-small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-arrow { font-size: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 22, 20, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font: 700 26px/1 var(--sans); letter-spacing: -0.03em; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--text-2); font-size: 15px; text-decoration: none; transition: color 0.15s ease; }
.nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: 72px 0 88px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 720px; pointer-events: none;
  background: radial-gradient(600px 380px at 78% 40%, rgba(215, 255, 100, 0.08), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-title { font: 500 clamp(48px, 7.4vw, 96px)/0.98 var(--sans); letter-spacing: -0.045em; margin: 20px 0 26px; }
.hero-title em { font: italic 400 1.08em/1 var(--serif); letter-spacing: -0.01em; color: var(--lime); }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--text-2); font: 400 13px/1.4 var(--mono); letter-spacing: 0.04em; }

.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.orbit { width: min(100%, 420px); height: auto; overflow: visible; }
.orbit-outer { fill: none; stroke: var(--line); stroke-width: 1.5; }
.orbit-inner { fill: none; stroke: var(--text-3); stroke-width: 2; stroke-dasharray: 1.5 10; stroke-linecap: round; }
.orbit-ring { transform-box: view-box; transform-origin: 50% 50%; animation: spin 140s linear infinite; }
.orbit-member { fill: var(--text-2); }
.orbit-member.is-active { fill: var(--lime); filter: drop-shadow(0 0 8px rgba(215, 255, 100, 0.8)); }
.orbit-number { font: 400 190px/1 var(--serif); fill: var(--text); }
.orbit-unit { font: 500 22px/1 var(--mono); fill: var(--lime); letter-spacing: 0.08em; }
@keyframes spin { to { transform: rotate(360deg); } }

.countdown { text-align: center; }
.countdown-time { font: 400 54px/1.1 var(--serif); font-variant-numeric: tabular-nums; margin-top: 6px; }
.countdown-zone { color: var(--text-3); font: 400 12px/1.4 var(--mono); }

/* Facts strip */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 36px 28px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-number { font: 400 64px/1 var(--serif); letter-spacing: -0.01em; }
.fact-label { color: var(--text-2); font-size: 14px; margin-top: 10px; max-width: 14em; }

/* Sections */
.section { padding: 128px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .section-title { margin: 16px 0 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.card h3, .pillar h3, .features h3 { font: 600 19px/1.3 var(--sans); letter-spacing: -0.01em; }
.card p, .pillar p, .features p { color: var(--text-2); margin-top: 10px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-number { font: 400 44px/1 var(--serif); color: var(--lime); margin-bottom: 40px; }
.step strong { color: var(--text); font-weight: 600; }

/* Product + phone */
.section-product { background: linear-gradient(180deg, transparent, rgba(42, 52, 33, 0.35) 50%, transparent); }
.product-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: center; }
.product-copy .section-title { margin: 16px 0 20px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 36px; margin-top: 44px; }
.features li { border-top: 1px solid var(--line); padding-top: 20px; }
.features h3 { font-size: 16px; }
.features p { font-size: 15px; margin-top: 6px; }

.phone {
  width: 100%; max-width: 360px; justify-self: center;
  padding: 12px; border-radius: 52px;
  background: linear-gradient(160deg, #2c3128, #171a16);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 120px rgba(215, 255, 100, 0.06);
}
.phone-screen { background: var(--bg); border-radius: 42px; padding: 26px 18px 18px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; line-height: 1.4; }
.phone-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 4px 6px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.phone-room { font: 600 20px/1.2 var(--sans); letter-spacing: -0.02em; }
.phone-here { display: flex; align-items: center; gap: 7px; color: var(--text-2); font: 400 11px/1.4 var(--mono); margin-top: 4px; }
.phone-here .dot { width: 5px; height: 5px; }
.phone-timer { text-align: right; }
.phone-timer-value { font: 400 30px/1 var(--serif); font-variant-numeric: tabular-nums; }
.phone-timer-unit { color: var(--text-3); font: 400 9px/1.6 var(--mono); letter-spacing: 0.08em; }
.drop { background: var(--accent-surface); border: 1px solid rgba(215, 255, 100, 0.18); border-radius: 16px; padding: 12px 14px; }
.drop-label { font: 500 9px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); }
.drop-text { font: italic 400 19px/1.25 var(--serif); margin-top: 4px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.msg-who { color: var(--text-2); font: 500 11px/1.2 var(--sans); padding-left: 4px; }
.msg-who span { color: var(--text-3); font: 400 9px/1 var(--mono); margin-left: 4px; }
.bubble { background: var(--bubble); border-radius: 18px 18px 18px 6px; padding: 9px 13px; max-width: 86%; }
.msg-mine { align-items: flex-end; }
.msg-mine .msg-who { color: var(--lime); padding: 0 4px 0 0; }
.msg-mine .bubble { background: var(--accent-surface); border-radius: 18px 18px 6px 18px; }
.reactions { display: flex; gap: 6px; padding-left: 4px; }
.reactions span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-size: 11px; }
.typing { color: var(--text-3); font: italic 400 12px/1.2 var(--sans); padding-left: 4px; }
.composer { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border-radius: 22px; padding: 8px 8px 8px 16px; color: var(--text-3); margin-top: 4px; }
.composer-send { width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; font-weight: 700; }

/* Why */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 32px 28px 0 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }

/* Safety */
.section-safety { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-safety .card { background: var(--bg); }
.safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.icon { width: 34px; height: 34px; padding: 7px; margin-bottom: 22px; border-radius: 10px; background: var(--accent-surface); fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }

/* Company + team */
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.company-grid .section-title { margin: 16px 0 20px; font-size: clamp(30px, 3.6vw, 42px); }
.team { margin-top: 112px; padding-top: 64px; border-top: 1px solid var(--line); }
.team .section-title { margin: 16px 0 36px; font-size: clamp(30px, 3.6vw, 42px); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.person { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-surface); color: var(--lime); font: 500 14px/1 var(--mono); box-shadow: inset 0 0 0 1px rgba(215, 255, 100, 0.25); }
.person h3 { font: 600 16px/1.3 var(--sans); }
.person p { color: var(--text-2); font-size: 14px; }

/* CTA */
.cta { padding: 40px 0 128px; }
.cta-inner {
  text-align: center; display: flex; flex-direction: column; align-items: center;
  padding-top: 96px; padding-bottom: 96px;
  background: radial-gradient(520px 260px at 50% 0%, rgba(215, 255, 100, 0.12), transparent 70%), var(--surface);
  border: 1px solid var(--line); border-radius: 32px;
}
.cta-title { font: italic 400 clamp(56px, 9vw, 112px)/1 var(--serif); margin: 14px 0 18px; }
.cta .actions { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand p { color: var(--text-2); margin-top: 12px; font-size: 15px; }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-links div { display: flex; flex-direction: column; gap: 10px; }
.footer-links .eyebrow { margin-bottom: 4px; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--text); }
.footer-legal { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
.footer-legal p:last-child { max-width: 46em; }

/* Documents (legal, support) */
.doc-hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.doc-title { font: 500 clamp(40px, 6vw, 68px)/1.04 var(--sans); letter-spacing: -0.04em; margin: 16px 0 16px; }
.doc-meta { color: var(--text-3); font: 400 13px/1.4 var(--mono); }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 56px; padding-bottom: 120px; }
.doc-toc { position: sticky; top: 104px; align-self: start; max-height: calc(100vh - 128px); overflow: auto; }
.doc-toc ol { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.doc-toc a { color: var(--text-2); text-decoration: none; font-size: 14px; line-height: 1.4; }
.doc-toc a:hover { color: var(--text); }
.doc-switch { display: inline-block; margin-top: 28px; color: var(--lime) !important; }
.prose { max-width: 720px; color: #cfd2c6; }
.prose h2 { color: var(--text); font: 600 24px/1.3 var(--sans); letter-spacing: -0.02em; margin: 48px 0 14px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--text); font: 600 18px/1.4 var(--sans); margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; padding-left: 4px; }
.prose li::marker { color: var(--text-3); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--lime); text-underline-offset: 3px; }
.prose code { font: 400 0.9em var(--mono); background: var(--surface); padding: 1px 6px; border-radius: 6px; }

.support { padding-top: 48px; padding-bottom: 120px; }
.callout { border: 1px solid rgba(231, 170, 160, 0.35); background: rgba(231, 170, 160, 0.07); border-radius: 18px; padding: 22px 26px; margin-bottom: 32px; }
.callout h2 { font: 600 17px/1.3 var(--sans); }
.callout p { color: var(--text-2); margin-top: 6px; }
.callout a, .support a { color: var(--lime); text-underline-offset: 3px; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.support-grid h2 { font: 600 19px/1.3 var(--sans); }
.support-grid strong { color: var(--text); font-weight: 600; }
.faq { margin-top: 96px; max-width: 820px; }
.faq .section-title { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font: 500 17px/1.4 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--lime); font: 400 24px/1 var(--sans); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 40px 24px 0; }
.support-legal { margin-top: 48px; color: var(--text-3); font-size: 14px; }

.not-found { padding: 120px 0 160px; }

/* Scroll reveal (only when JS is running; content is visible without it) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .product-grid, .company-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-visual { margin-top: 16px; }
  .orbit { width: min(72vw, 320px); }
  .product-grid { gap: 56px; }
  .phone { order: 2; }
  .steps, .safety-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; border-top: 0; gap: 0 28px; }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .doc-layout { grid-template-columns: 1fr; gap: 32px; }
  .doc-toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .header-inner { height: 64px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 11px; background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  }
  .nav-toggle-bar { display: block; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--text); }
  .nav .btn { margin-top: 16px; height: 48px; }
  .hero-title { margin: 16px 0 20px; }
  .lede { font-size: 17px; }
  .actions .btn { flex: 1 1 100%; }
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 40px; }
  .steps, .safety-grid, .support-grid, .features, .pillars { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .step-number { margin-bottom: 24px; }
  .fact { padding: 26px 16px 26px 0; }
  .fact + .fact { padding-left: 16px; }
  .fact:nth-child(3) { padding-left: 0; }
  .fact-number { font-size: 48px; }
  .countdown-time { font-size: 44px; }
  .team { margin-top: 80px; }
  .cta { padding-bottom: 88px; }
  .cta-inner { padding: 64px 20px; border-radius: 26px; }
  .footer-links { gap: 40px; }
  .doc-hero { padding: 48px 0 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit-ring { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
