/* VOCO - voco.fit
   Tokens transcribed from the app's constants/theme.ts. Every screen shown is a
   real capture of the running app on an iPhone 17 Pro simulator - no recreated
   UI. Volt is rationed: it lives inside the real screenshots and on the
   scroll-progress hairline only. */

:root {
  --bg: #0A0A0A;
  --bg-deep-top: #1E1E20;
  --bg-deep-upper: #18181A;
  --bg-deep-lower: #0D0D0F;
  --bg-deep-bottom: #070709;
  --surface: #121215;

  --t1: #F4F4F1;
  --t2: #ADADB3;
  --t3: #7E7E86;
  --t4: #6A6A72;

  --volt: #C9F24E;
  --ink-on-volt: #0B0B0C;

  --hairline: rgba(255, 255, 255, 0.07);
  --hairline-soft: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.10);

  --font-body: "Outfit", -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad-x: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--t2);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--volt); color: var(--ink-on-volt); }

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2 { margin: 0; color: var(--t1); font-weight: 500; }

em { font-style: normal; }

.num {
  font-family: var(--font-body);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---------- shared ---------- */

.body-lg {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.65;
  color: var(--t2);
  max-width: 32em;
}

/* scroll progress - the page's one volt accent */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 0;
  background: var(--volt); opacity: 0.85;
}

/* ---------- the device frame - a titanium iPhone, shot on a real camera ----------
   The captures carry their own status bar and Dynamic Island. The frame is the
   machined edge: brushed-titanium band, inner seam, side buttons, a subtle glass
   glare, and layered shadows. Side buttons sit just outside the band, so the
   frame does NOT clip its overflow. */

.device {
  position: relative;
  border-radius: clamp(38px, 5.4vw, 54px);
  padding: clamp(8px, 1vw, 11px);
  background: linear-gradient(155deg, #5A5A60 0%, #2A2A2E 14%, #19191C 38%, #1E1E22 60%, #33333A 84%, #606068 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.85),
    0 -1px 0 rgba(255, 255, 255, 0.10) inset,
    0 1px 0 rgba(0, 0, 0, 0.55) inset,
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 70px 140px -50px rgba(0, 0, 0, 0.9);
}
/* inner seam: a dark inset ring between band and screen glass */
.device::before {
  content: "";
  position: absolute;
  inset: clamp(6px, 0.78vw, 9px);
  border-radius: clamp(32px, 4.7vw, 46px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  z-index: 2;
}
/* glass glare: a very subtle diagonal sheen over the screen */
.device::after {
  content: "";
  position: absolute;
  inset: clamp(8px, 1vw, 11px);
  border-radius: clamp(30px, 4.4vw, 44px);
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.015) 28%, transparent 45%);
  pointer-events: none;
  z-index: 3;
}
.device picture, .device video { display: block; }
.device img {
  width: 100%; height: auto;
  border-radius: clamp(30px, 4.4vw, 44px);
  background: #070709;
  position: relative;
  z-index: 1;
}

/* machined side buttons - sit just outside the band edge */
.dbtn {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  z-index: 0;
  background: linear-gradient(90deg, #17171A 0%, #4A4A50 45%, #55555C 55%, #1A1A1D 100%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}
/* left edge: action button, then volume up + down */
.dbtn-action  { left: -3px; top: 18%; height: 3%;  border-radius: 2px 0 0 2px; }
.dbtn-volup   { left: -3px; top: 26%; height: 6%;  border-radius: 2px 0 0 2px; }
.dbtn-voldown { left: -3px; top: 34%; height: 6%;  border-radius: 2px 0 0 2px; }
/* right edge: power / side button, longer */
.dbtn-power {
  right: -3px; top: 28%; height: 10%; border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, #1A1A1D 0%, #55555C 45%, #4A4A50 55%, #17171A 100%);
}

/* ---------- header ---------- */

.site-head {
  position: absolute; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1.25rem, 3vw, 2rem) var(--pad-x);
}
.brand { display: block; }
.brand-mark { height: clamp(0.8125rem, 1.2vw, 0.9375rem); width: auto; }
.head-note {
  font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--t3);
}

/* ---------- 1 · hero ----------
   A clean two-column layout: copy left, a premium mock iPhone right. Nothing
   overlaps the phone. The device sits in its own perspective for a deliberate
   pose, distinct from the two section phones. */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(7rem, 14vh, 9rem) var(--pad-x) clamp(3rem, 6vh, 5rem);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 40rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.hero-sub {
  margin: 1.5rem 0 0;
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  color: var(--t3);
  letter-spacing: -0.01em;
}
/* shown only on small screens, where the header note is hidden */
.hero-note {
  display: none;
  margin: 3rem 0 0;
  font-size: 0.6875rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--t4);
}

/* the mock iPhone - its own perspective + floor shadow */
.hero-device {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 2200px;
}
.device--hero {
  width: clamp(280px, 26vw, 380px);
  transform: rotateY(-14deg) rotateX(4deg);
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-device::after {
  content: ""; position: absolute; z-index: -1;
  left: 8%; right: 8%; bottom: -5%; height: 14%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 72%);
  filter: blur(24px);
}

/* page-load sequence */
.hero h1, .hero-sub, .hero-note, .hero-device {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
/* the device keeps its 3D pose while it rises in */
.hero-device {
  transform: translateY(20px);
}
body.is-ready .hero h1 { opacity: 1; transform: none; transition-delay: 0.22s; }
body.is-ready .hero-sub { opacity: 1; transform: none; transition-delay: 0.38s; }
body.is-ready .hero-note { opacity: 1; transform: none; transition-delay: 0.55s; }
body.is-ready .hero-device { opacity: 1; transform: none; transition-delay: 0.44s; }

/* ---------- reveals ---------- */

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- statement beat ---------- */

.statement {
  text-align: center;
  padding: clamp(5rem, 12vh, 8rem) var(--pad-x);
  border-top: 1px solid var(--hairline-soft);
}
.statement-line {
  color: var(--t1);
  font-weight: 500;
  font-size: clamp(2.5rem, 6.5vw, 5.25rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 18em;
  margin: 0 auto;
}

/* ---------- 2 · the log / 3 · the receipt - shared split ---------- */

.log, .receipt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(4.75rem, 10vh, 7.5rem) var(--pad-x);
  max-width: 78rem; margin: 0 auto;
}
.receipt { border-top: 1px solid var(--hairline-soft); }

.log h2, .receipt h2 {
  font-size: clamp(1.875rem, 3.6vw, 2.875rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
/* the log transcript - words stream in sync with the video */
.transcript {
  margin-top: 2rem;
  font-size: clamp(1.1875rem, 1.7vw, 1.5rem);
  line-height: 1.55;
  color: var(--t3); /* the curly quotes sit quiet */
  max-width: 22em;
  min-height: 4.65em; /* reserve ~3 lines so nothing reflows as words resolve */
}
.transcript .tw {
  color: var(--t1);
  opacity: 0.08;
  filter: blur(3px);
  transition: opacity 0.3s var(--ease-out), filter 0.3s var(--ease-out);
}
.transcript .tw.is-said {
  opacity: 1;
  filter: none;
}
/* static fallback - poster / reduced-motion / ?novideo: all words visible */
.transcript.is-static .tw { opacity: 1; filter: none; }
.receipt-line {
  margin: 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--t2);
  letter-spacing: -0.005em;
  max-width: 26em;
}

/* the device columns carry a restrained 3D presence */
.log-media, .receipt-phone {
  position: relative;
  display: flex; justify-content: center;
  perspective: 1600px;
}
.device--tilt, .device--tilt-r {
  width: min(300px, 76vw);
  transform-style: preserve-3d;
  will-change: transform;
}
.device--tilt { transform: rotateY(-7deg) rotateX(1.5deg); }
.device--tilt-r { transform: rotateY(7deg) rotateX(1.5deg); }
/* soft floor shadow beneath each phone - on the column, since the device's own
   ::after is now the glass glare */
.log-media::after, .receipt-phone::after {
  content: ""; position: absolute; z-index: -1;
  left: 22%; right: 22%; bottom: 4%; height: 12%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 72%);
  filter: blur(22px);
}

.log-video {
  width: 100%; height: auto;
  display: block;
  aspect-ratio: 720 / 1566;
  object-fit: cover;
  border-radius: clamp(30px, 4.4vw, 44px);
  background: #070709;
}

/* ---------- 4 · the race ---------- */

.race-section {
  padding: clamp(5.5rem, 13vh, 8.5rem) var(--pad-x);
  border-top: 1px solid var(--hairline-soft);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep-bottom) 100%);
}
.race-inner { max-width: 56rem; margin: 0 auto; text-align: center; }

.race {
  display: flex; align-items: baseline; justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.race-col { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.race-time {
  font-size: clamp(3.25rem, 8.5vw, 6.25rem);
  line-height: 0.9;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--t1);
}
.race-col--slow .race-time { color: var(--t4); }
.race-vs {
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--t4); align-self: center;
}
.race-label { font-size: 0.8125rem; color: var(--t3); max-width: 13em; text-align: center; line-height: 1.5; }
.race-caption {
  margin: 2.75rem 0 0;
  font-size: 0.9375rem; color: var(--t2);
}

/* ---------- footer ---------- */

.site-foot {
  display: flex; align-items: center; gap: 2rem;
  padding: 3rem var(--pad-x) 3.5rem;
  border-top: 1px solid var(--hairline);
}
.foot-v { height: 18px; width: auto; opacity: 0.85; }
.foot-links { display: flex; gap: 1.75rem; }
.foot-links a {
  font-size: 0.8125rem; color: var(--t3); text-decoration: none;
  transition: color 0.2s ease;
}
.foot-links a:hover { color: var(--t1); }
.foot-copy { margin-left: auto; font-size: 0.8125rem; color: var(--t4); }

a:focus-visible, .brand:focus-visible {
  outline: 1px solid var(--t2); outline-offset: 4px; border-radius: 2px;
}

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  /* hero stacks: copy first, phone below, centered + flattened pose */
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    justify-items: start;
    padding-top: clamp(7rem, 18vh, 10rem);
    gap: clamp(2.5rem, 8vh, 4rem);
  }
  .hero-copy { max-width: none; }
  .hero-device { justify-self: center; perspective: none; width: 100%; }
  .device--hero { width: min(300px, 78vw); transform: none; }
  .log, .receipt { grid-template-columns: 1fr; gap: 3rem; }
  .log-media, .receipt-phone { order: 2; perspective: none; }
  .device--tilt, .device--tilt-r { transform: none; }
  .race { flex-wrap: wrap; }
  .site-foot { flex-wrap: wrap; gap: 1.25rem; }
  .foot-copy { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
  .head-note { display: none; }
  .hero-note { display: block; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .hero h1, .hero-sub, .hero-note, .hero-device {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .transcript .tw { opacity: 1 !important; filter: none !important; }
  .progress { display: none; }
}
