:root {
  color-scheme: dark;
  --green: #78e800;
  --green-deep: #3e9a00;
  --red: #ff3b30;
  --ink: #071000;
  --bg: #050805;
  --raised: #0d120d;
  --text: #f5f7f3;
  --muted: #b8beb5;
  --faint: #7d8579;
  --line: rgba(245, 247, 243, 0.1);
  --line-strong: rgba(245, 247, 243, 0.16);
  --chrome: rgba(5, 8, 5, 0.64);
  --page: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(88px, 12vw, 152px);
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  font: 100% / 1.5 system-ui, -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-height: 100vh; background: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

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

/* Chrome: a floating glass capsule */
.chrome {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  padding: 12px var(--gutter) 0;
  pointer-events: none;
}
.chrome-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  max-width: 820px;
  height: 52px;
  margin: 0 auto;
  padding: 0 7px 0 10px;
  border-radius: 999px;
  pointer-events: auto;
  background: rgba(16, 21, 16, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px rgba(245, 247, 243, 0.08),
    inset 0 1px 0 rgba(245, 247, 243, 0.1),
    0 12px 32px -16px rgba(0, 0, 0, 0.7);
  transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease), max-width 400ms var(--ease);
}
.chrome.is-scrolled .chrome-inner {
  max-width: 760px;
  background: rgba(12, 16, 12, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(245, 247, 243, 0.1),
    inset 0 1px 0 rgba(245, 247, 243, 0.12),
    0 16px 40px -14px rgba(0, 0, 0, 0.85);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  min-width: 0;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  transition: transform 100ms var(--ease);
}
.brand:active { transform: scale(0.97); }
.brand img { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(245, 247, 243, 0.07); }
.nav a:active { background: rgba(245, 247, 243, 0.13); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(245, 247, 243, 0.1); }
.chrome-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(245, 247, 243, 0.1);
  box-shadow: inset 0 0 0 1px rgba(245, 247, 243, 0.08);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 100ms var(--ease), background-color 160ms var(--ease);
}
.chrome-cta i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent);
}
.chrome-cta:hover { background: rgba(245, 247, 243, 0.15); }
.chrome-cta:active { transform: scale(0.97); background: rgba(245, 247, 243, 0.2); }
@media (max-width: 640px) {
  .chrome-inner { display: flex; justify-content: space-between; }
  .nav .wide { display: none; }
  .nav { margin-left: auto; }
}
@media (max-width: 380px) { .chrome-cta { display: none; } }

/* Layout */
:root { --chrome-h: 76px; }
main { padding-top: var(--chrome-h); }
.page { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--section); }

.split {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) auto; }
  .split.flip { grid-template-columns: auto minmax(0, 1fr); }
  .split.flip > .media { order: -1; }
}

/* Type */
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
.display {
  font-size: clamp(2.75rem, 7.2vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.048em;
  max-width: 12ch;
}
.display span { color: var(--green); }
.title {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
  max-width: 16ch;
}
.lede {
  margin: 20px 0 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: -0.008em;
  text-wrap: pretty;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--chrome-h));
  padding-top: clamp(24px, 4vw, 40px);
  padding-bottom: clamp(48px, 7vw, 88px);
}
.hero > .split { width: 100%; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(var(--chrome-h) * -1) -40vw auto;
  height: 110%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 34% 46% at 70% 48%, color-mix(in srgb, var(--green-deep) 42%, transparent), transparent 72%),
    radial-gradient(ellipse 26% 26% at 28% 30%, color-mix(in srgb, var(--green) 7%, transparent), transparent 70%);
}
.hero .media { position: relative; }

/* Live timer chip on the hero phone */
.live {
  position: absolute;
  left: max(-112px, -9vw);
  bottom: 18%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 22px;
  background: rgba(16, 21, 16, 0.62);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px rgba(245, 247, 243, 0.1),
    inset 0 1px 0 rgba(245, 247, 243, 0.12),
    0 24px 48px -20px rgba(0, 0, 0, 0.9);
}
.live svg { width: 48px; height: 48px; transform: rotate(-90deg); }
.live circle { fill: none; stroke-width: 4.5; }
.live .track { stroke: rgba(245, 247, 243, 0.12); }
.live .arc { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 100; transition: stroke 200ms var(--ease); }
.live[data-phase="rest"] .arc { stroke: #f5f7f3; }
.live-text { display: grid; line-height: 1.1; }
.live-phase { color: var(--green); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.live[data-phase="rest"] .live-phase { color: var(--muted); }
.live-time { font-size: 1.625rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.live-round { margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: 0.8125rem; line-height: 1.3; }
.live-round b { display: block; color: var(--text); font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) { .live { left: 50%; bottom: -22px; transform: translateX(-50%); } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; }
.availability { margin: 0; color: var(--faint); font-size: 0.9375rem; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 100ms var(--ease), background-color 100ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { color: var(--ink); background: var(--green); }
.btn-primary:hover { background: #86f20f; }
.btn-primary:active { background: #6ad100; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin: 48px 0 0;
  padding: 0;
}
.hero-stats div { display: grid; gap: 2px; }
.hero-stats dt { order: 2; color: var(--faint); font-size: 0.875rem; }
.hero-stats dd {
  order: 1;
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* Phone screenshots */
.phone {
  width: clamp(240px, 26vw, 300px);
  margin: 0 auto;
  aspect-ratio: 1170 / 2532;
  border-radius: 13% / 6%;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 0 0 9px #121612,
    0 0 0 10px var(--line),
    0 40px 90px -30px rgba(0, 0, 0, 0.9);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.hero .phone { width: clamp(250px, 28vw, 320px); }

/* Protocol timeline */
.protocol { display: grid; gap: 40px; }
.timeline {
  --work: var(--green);
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline li { display: grid; gap: 10px; }
.round { display: grid; grid-template-columns: 2fr 1fr; gap: 3px; height: 56px; }
.round span { border-radius: 8px; }
.round .w { background: var(--work); }
.round .r { background: rgba(245, 247, 243, 0.14); }
.timeline small {
  color: var(--faint);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .round { height: 40px; }
  .round span { border-radius: 5px; }
  .timeline small { font-size: 0.75rem; }
}
.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.timeline-legend span { display: inline-flex; align-items: center; gap: 8px; }
.timeline-legend i { width: 12px; height: 12px; border-radius: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .js .timeline .w,
  .js .timeline .r { transform: scaleX(0); transform-origin: left; }
  .js .timeline.is-live .w,
  .js .timeline.is-live .r {
    transform: scaleX(1);
    transition: transform 420ms var(--ease);
    transition-delay: calc(var(--i) * 90ms);
  }
  .js .timeline.is-live .r { transition-delay: calc(var(--i) * 90ms + 60ms); }
}

/* Mode list */
.modes {
  display: grid;
  gap: 0 40px;
  margin: 40px 0 0;
}
@media (min-width: 640px) { .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.modes div { padding: 20px 0; border-top: 1px solid var(--line); }
.modes dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.modes dd { margin: 6px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.modes dd + dd { margin-top: 4px; color: var(--faint); font-size: 0.9375rem; }
.tag {
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 14%, transparent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Feature list */
.features {
  display: grid;
  gap: 22px;
  margin: 36px 0 0;
}
.features div { display: grid; gap: 4px; padding-left: 18px; border-left: 2px solid var(--line-strong); }
.features dt { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }
.features dd { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }

/* Plans */
.plans {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan.pro {
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--green-deep) 26%, transparent), transparent 60%),
    var(--raised);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 40%, transparent);
}
.plan h3 { font-size: 1.5rem; letter-spacing: -0.03em; }
.plan p { margin: 0; color: var(--muted); }
.plan ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.plan li { position: relative; padding-left: 24px; font-size: 1rem; }
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.plan .fine { color: var(--faint); font-size: 0.875rem; line-height: 1.5; }

/* Closing */
.closing {
  padding: var(--section) 0 0;
  text-align: center;
}
.closing .title { margin: 0 auto; }
.closing .lede { margin-left: auto; margin-right: auto; }
.closing .actions { justify-content: center; }

/* Footer */
.foot {
  margin-top: var(--section);
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.875rem;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot p { margin: 0; }

/* Legal */
.legal { max-width: 720px; padding-top: clamp(48px, 8vw, 96px); }
.legal .title { max-width: 18ch; }
.legal .date { margin: 14px 0 0; color: var(--faint); font-size: 0.9375rem; }
.legal .summary { margin: 28px 0 0; color: var(--text); font-size: 1.1875rem; line-height: 1.55; letter-spacing: -0.01em; }
.legal h2 {
  margin: 48px 0 0;
  font-size: 1.3125rem;
  letter-spacing: -0.022em;
}
.legal h3 { margin: 24px 0 0; font-size: 1.0625rem; letter-spacing: -0.012em; }
.legal p, .legal li { color: var(--muted); font-size: 1.0625rem; line-height: 1.65; text-wrap: pretty; }
.legal p { margin: 12px 0 0; }
.legal ul { margin: 12px 0 0; padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--text); font-weight: 600; }

.contact {
  display: grid;
  gap: 4px;
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line);
}
.contact p { margin: 0; }
.contact a { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes arrive {
    from { opacity: 0; transform: translateY(36px) scale(0.96); }
    to { opacity: 1; transform: none; }
  }
  @keyframes drop {
    from { opacity: 0; transform: translateY(-14px) scale(0.98); }
    to { opacity: 1; transform: none; }
  }
  .chrome-inner { animation: drop 700ms var(--ease) both; }
  .hero-copy > * { animation: rise 800ms var(--ease) both; }
  .hero-copy > :nth-child(1) { animation-delay: 80ms; }
  .hero-copy > :nth-child(2) { animation-delay: 160ms; }
  .hero-copy > :nth-child(3) { animation-delay: 260ms; }
  .hero-copy > :nth-child(4) { animation-delay: 360ms; }
  .hero-copy > :nth-child(5) { animation-delay: 460ms; }
  .hero .phone { animation: arrive 1000ms var(--ease) 200ms both; }
  .hero .live { animation: rise 700ms var(--ease) 800ms both; }
  @media (max-width: 899px) { .hero .live { animation-name: none; } }

  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 800ms var(--ease), transform 800ms var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
  }
  .js .reveal.phone-wrap { transform: translateY(48px) scale(0.97); }
  .js .reveal.is-in { opacity: 1; transform: none; }

  .modes div, .features div, .plan { transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease); }
  .features div:hover { border-left-color: var(--green); }
  .plan:hover { transform: translateY(-4px); }
}

/* Accessibility preferences */
@media (prefers-reduced-transparency: reduce) {
  .chrome-inner, .chrome.is-scrolled .chrome-inner, .live { background: #101510; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #dfe3dc; --faint: #c3c8bf; --line: rgba(245, 247, 243, 0.4); --line-strong: rgba(245, 247, 243, 0.6); }
  .chrome-inner, .chrome.is-scrolled .chrome-inner, .live { background: var(--bg); box-shadow: inset 0 0 0 1px var(--text); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:active, .brand:active, .chrome-cta:active { transition: none; transform: none; }
  .js .reveal { opacity: 0; transition: opacity 240ms ease; }
  .js .reveal.is-in { opacity: 1; }
}
