/* Vomo — the palette is the app's own (ui/theme/VomoTheme.kt), so the site and
   the phone look like one product. Warm near-black ground, one yellow. */

:root {
  --ground: #121110;
  --raise: #191816;
  --raise-2: #201E1A;
  --line: #2C2A24;
  --line-faint: #211F1B;
  --yellow: #FFCC00;
  --text: #F6F4EE;
  --soft: #C7C4BC;
  --muted: #94918A;
  --safe: #5ED6A0;
  --stop: #FF7A6E;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

code, .dial { font-family: var(--mono); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--yellow);
  color: #121110;
  padding: 12px 18px;
  font-weight: 600;
  z-index: 50;
}
.skip:focus { left: 0; }

/* Read by screen readers, invisible on screen. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Thick enough to find at a glance under magnification. */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 3px;
}

/* The skip link moves focus here; that shouldn't draw a ring round the whole page. */
main:focus { outline: none; }

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

.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.glyph { width: 34px; height: 34px; display: block; }

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5625rem;
  letter-spacing: -0.045em;
}

.nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 0.9375rem;
}

/* Padding gives a 44px-tall target for fingers, without moving the text. */
.nav a {
  display: inline-block;
  color: var(--soft);
  text-decoration: none;
  padding: 10px 0 8px;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible { color: var(--text); border-bottom-color: var(--yellow); }

/* ---------- stage: the film, and the line laid over it ---------- */

.stage {
  position: relative;
  min-height: 86vh;
  /* Less the header, so the film fills exactly the first screen. */
  min-height: calc(100svh - 78px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px var(--gutter) 110px;
  overflow: hidden;
  isolation: isolate;
  /* Stands in before the footage exists, and shows through if it fails to load. */
  background:
    radial-gradient(118% 88% at 72% 16%, rgba(255, 204, 0, 0.17), transparent 62%),
    radial-gradient(90% 70% at 16% 92%, rgba(255, 204, 0, 0.06), transparent 60%),
    linear-gradient(168deg, #1c1a16 0%, #121110 56%, #0c0b0a 100%);
}

.stage-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.stage-film {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* No film yet, or it failed to load: the gradient carries the stage alone. */
.stage-media.bare .stage-film { display: none; }

/* An even wash, since the words now sit in the middle, fading into the page. */
.stage-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(92% 78% at 50% 44%, rgba(10, 9, 8, 0.34), rgba(10, 9, 8, 0.74) 100%),
    linear-gradient(to bottom, rgba(10, 9, 8, 0.5) 0%, rgba(10, 9, 8, 0.46) 52%, var(--ground) 100%);
}

.stage-copy {
  position: relative;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
}

.stage-title {
  font-family: var(--display);
  font-size: clamp(2.9rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
  margin-bottom: 44px;
}

/* Outlined pill with the arrow in a filled disc, after the reference. */
.stage-cta {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 8px 8px 8px 32px;
  border: 2px solid var(--yellow);
  border-radius: 999px;
  background: rgba(10, 9, 8, 0.35);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: background-color .15s ease;
}

.stage-cta:hover { background: rgba(255, 204, 0, 0.12); }

.cta-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--yellow);
  color: #121110;
  font-size: 1.125rem;
  line-height: 1;
  transition: transform .15s ease;
}

.stage-cta:hover .cta-arrow { transform: translateX(3px); }

.stage-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  /* The bar is 4px; the padding makes the target 44px tall for fingers. */
  padding: 20px 12px;
  line-height: 0;
}

.cue-bar {
  display: block;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: rgba(246, 244, 238, 0.85);
  /* A few pulses to draw the eye, then still: endless motion is its own barrier. */
  animation: cue 2.6s ease-in-out 3;
}

.stage-cue:hover .cue-bar { background: var(--yellow); }

/*
  Pause control for the film (WCAG 2.2.2: motion that loops needs a way to stop
  it). Shown by site.js only once there is a film playing; labelled in words,
  not just an icon, so it reads under magnification and to screen readers alike.
*/
.film-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid rgba(246, 244, 238, 0.55);
  border-radius: 999px;
  background: rgba(10, 9, 8, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.film-toggle[hidden] { display: none; }

.film-toggle:hover { border-color: var(--text); background: rgba(10, 9, 8, 0.8); }

/* Two bars for pause, a triangle for play, drawn so no icon font is needed. */
.film-icon {
  width: 12px;
  height: 14px;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}

.film-toggle.is-paused .film-icon {
  width: 0;
  height: 0;
  border-left: 12px solid currentColor;
  border-right: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

@keyframes cue {
  0%, 100% { transform: scaleX(0.7); opacity: 0.45; }
  50% { transform: scaleX(1); opacity: 1; }
}

/* ---------- intro: the sentence, and the menu it drives ---------- */

.intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 84px var(--gutter);
}

.intro > * { max-width: 760px; }

.intro-title {
  font-size: clamp(2.05rem, 4.4vw, 3.05rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}

.intro-title em {
  font-style: normal;
  color: var(--yellow);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.said {
  margin: 0 0 28px;
  border-left: 3px solid var(--yellow);
  padding: 2px 0 2px 20px;
}

.said blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.7vw, 1.7rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.said figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.lede {
  color: var(--soft);
  font-size: 1.0938rem;
  max-width: 52ch;
}

.lede .dial { color: var(--yellow); font-size: 1rem; }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9688rem;
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}

.btn-go { background: var(--yellow); color: #121110; }
.btn-go:hover { transform: translateY(-2px); }

/* Quiet companion to btn-go, used on the page rather than over the film. */
.btn-quiet { border-color: var(--line); color: var(--soft); }
.btn-quiet:hover { border-color: var(--muted); color: var(--text); }

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

.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px var(--gutter);
  border-top: 1px solid var(--line-faint);
}

.band-head { max-width: 62ch; margin-bottom: 44px; }

.band-head h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  margin-bottom: 15px;
}

.band-head p { color: var(--muted); }

/* ---------- steps (a real sequence, so numbered) ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1px;
  background: var(--line-faint);
  border-block: 1px solid var(--line-faint);
}

.steps li {
  counter-increment: step;
  background: var(--ground);
  padding: 24px 0 24px 72px;
  position: relative;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  /* The list already announces "1 of 5"; the empty alt keeps "zero one" out of it. */
  content: counter(step, decimal-leading-zero) / "";
  position: absolute;
  left: 0;
  top: 32px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--yellow);
  letter-spacing: 0.06em;
}

.step-do {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.step-note {
  margin-top: 4px;
  color: var(--muted);
}

/* ---------- the one yellow surface ---------- */

.modes {
  background: var(--yellow);
  color: #121110;
  padding: 72px var(--gutter);
}

.modes-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.modes-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.modes-soon {
  margin-top: 12px;
  font-size: 1.125rem;
  color: rgba(18, 17, 16, 0.78);
}


/* ---------- statement: the one line the page stands on ---------- */

.statement {
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px var(--gutter);
}

.statement-title {
  max-width: 16ch;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.statement-sub {
  margin-top: 26px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--yellow);
}

/* ---------- rules ---------- */

.rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.rules li {
  background: var(--raise);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  border-radius: 0 11px 11px 0;
  padding: 19px 22px;
  color: var(--soft);
  font-size: 1rem;
}

.rule-k {
  display: block;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 5px;
}

/* ---------- proof ---------- */

.proof {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* Four items: 2 x 2 when wide, one column on phones, never 3 + an empty cell. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}

.proof li {
  background: var(--raise);
  padding: 26px 26px 26px 58px;
  position: relative;
  color: var(--text);
  font-size: 1.0312rem;
  line-height: 1.5;
}

/* A drawn tick, so it doesn't depend on an emoji font. */
.proof li::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 31px;
  width: 15px;
  height: 8px;
  border-left: 2.5px solid var(--yellow);
  border-bottom: 2.5px solid var(--yellow);
  transform: rotate(-45deg);
}

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

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 50px var(--gutter) 64px;
  border-top: 1px solid var(--line-faint);
  color: var(--muted);
  font-size: 0.9062rem;
  display: grid;
  gap: 9px;
}

.foot-mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.045em;
  color: var(--text);
}

.foot-thin { font-size: 0.8125rem; color: var(--muted); }

/* ---------- narrow ---------- */

@media (max-width: 900px) {
  .intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .stage {
    min-height: 82vh;
    min-height: calc(100svh - 70px);
    padding: 70px var(--gutter) 96px;
  }
  /* The subject is usually off-centre in handheld footage; favour the right. */
  .stage-film { object-position: 62% center; }
  .band { padding-block: 60px; }
  .modes { padding-block: 60px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .nav { gap: 18px; font-size: 0.9375rem; }
  .film-toggle { bottom: 18px; }
  .stage-cue { left: var(--gutter); transform: none; }
  .steps li { padding-left: 0; padding-top: 44px; }
  .steps li::before { top: 22px; }
  .statement { padding-block: 76px; }
  .stage-title { letter-spacing: -0.038em; }
  .stage-cue { bottom: 26px; }
}

/*
  "Increase contrast" on Android, iOS, macOS and Windows. The quiet greys step
  up a level and the hairlines become edges you can actually see (3:1 or more).
*/
@media (prefers-contrast: more) {
  :root {
    --muted: #C7C4BC;
    --soft: #E5E2DA;
    --line: #6B675D;
    --line-faint: #57544C;
  }
  .stage-scrim { background: rgba(10, 9, 8, 0.8); }
  .stage-cta,
  .film-toggle { background: rgba(10, 9, 8, 0.9); }
  .modes-soon { color: #121110; }
}

/*
  Windows High Contrast and other forced palettes drop backgrounds, so anything
  that was only a fill (buttons, the arrow disc, the progress bars) gets a real
  edge in the system's own colours.
*/
@media (forced-colors: active) {
  .btn,
  .stage-cta,
  .film-toggle,
  .cta-arrow,
  .skip { border: 2px solid ButtonText; }
  .cue-bar { forced-color-adjust: none; background: CanvasText; }
  :focus-visible { outline-color: Highlight; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
