/* Higher Rating Apps · v3
   Style: toy-chrome (see DESIGN.md). Chrome-and-red toy objects on a pure black
   stage. Archivo expanded for display, Inter for text. Ruled ledger rows, no card
   grids. One bold moment: the rocket launch in the hero. */

:root {
  --black: #000000;
  --panel: #0e0e0e;
  --panel-2: #161616;
  --line: #262626;
  --line-strong: #474747;
  --ink: #f2f2f2;
  --muted: #9a9a9a;
  --red: #d90312;
  --red-hover: #f00a1c;
  --red-ink: #ff4a4a;
  --on-red: #ffffff;
  --live: #39d98a;
  --warn: #ffb020;

  --display: "Archivo", "Arial Black", ui-sans-serif, sans-serif;
  --text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-sm: 0.9375rem;
  --t-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --t-lede: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
  --t-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --t-lg: clamp(2.1rem, 1.3rem + 2.8vw, 3.9rem);
  --t-xl: clamp(3rem, 1.4rem + 5.6vw, 6.75rem);
  --t-statement: clamp(1.75rem, 1rem + 2.6vw, 3.4rem);

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1280px;
  --section: clamp(96px, 13vw, 176px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

/* ------------------------------------------------------------- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.calm) { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--ink);
  font: 400 var(--t-base)/1.6 var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 3px; }
::selection { background: var(--red); color: var(--on-red); }
.wrap {
  width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red); color: var(--on-red); padding: 12px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

.display { font-family: var(--display); font-stretch: 112%; font-weight: 800; letter-spacing: -0.025em; line-height: 0.96; text-wrap: balance; }
.display--lg { font-size: var(--t-lg); font-weight: 700; line-height: 1.02; max-width: 18ch; }
.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--muted); max-width: 54ch; text-wrap: pretty; }
h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }

/* ---------------------------------------------------------- buttons ---- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border: 1px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg); font: 600 1rem/1 var(--text); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--red { --bg: var(--red); --fg: var(--on-red); --bd: var(--red); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: var(--t-sm); }
@media (hover: hover) and (pointer: fine) {
  .btn--red:hover { --bg: var(--red-hover); --bd: var(--red-hover); }
  .btn--line:hover { --bd: var(--ink); }
}
.btn.is-done { --bd: var(--live); --fg: var(--live); }

/* --------------------------------------------------------------- top ---- */
.top { position: absolute; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 36px; height: 88px; }
.top__logo img { width: 116px; }
.top__nav { display: flex; gap: 30px; margin-left: auto; font-size: var(--t-sm); font-weight: 500; }
.top__nav a { color: var(--muted); text-decoration: none; padding: 12px 0; transition: color 160ms; }
@media (hover: hover) { .top__nav a:hover { color: var(--ink); } }
@media (max-width: 860px) {
  .top { height: 72px; gap: 16px; }
  .top__nav { display: none; }
  .top .btn { margin-left: auto; }
  .top__logo img { width: 96px; }
}

.dock {
  position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 40;
  box-shadow: 0 10px 30px rgba(217, 3, 18, 0.35);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}
.dock.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* -------------------------------------------------------------- hero ---- */
.hero { position: relative; min-height: max(100svh, 680px); display: flex; align-items: center; overflow: hidden; padding-block: 120px 80px; }
.hero__sky { position: absolute; inset: 0; z-index: 0; }
.hero__sky img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-on { opacity: 0.9; }
.hero__sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.82) 38%, rgba(0,0,0,0) 70%); }
.hero__in { position: relative; z-index: 2; }
.hero__copy { max-width: 600px; display: grid; gap: 28px; }
.hero h1 { font-size: var(--t-xl); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* the launch: right half of the hero, full height */
.launch { --rocket-x: 0.72; position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.launch canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 700ms var(--ease);
  -webkit-mask: linear-gradient(180deg, #000 78%, transparent 100%); mask: linear-gradient(180deg, #000 78%, transparent 100%); }
.launch.is-live canvas { opacity: 1; }
.launch.is-live .launch__still { opacity: 0; }
.launch__still { position: absolute; left: calc(var(--rocket-x) * 100%); bottom: 0; height: 100%; aspect-ratio: 900 / 1100; transform: translateX(-50%); transition: opacity 500ms var(--ease); }
.launch__still img { position: absolute; inset: 0; width: 100%; height: 100%; }
.launch__rocket { position: absolute; inset: 0; will-change: transform; }
.launch__on { opacity: 0; transition: opacity 180ms linear; -webkit-mask: linear-gradient(180deg, #000 72%, transparent 98%); mask: linear-gradient(180deg, #000 72%, transparent 98%); }
.launch__rocket.is-firing .launch__on { opacity: 1; }
.launch__rocket.is-firing .launch__off { opacity: 0; }
html.calm .launch__rocket { transform: none !important; }

@media (max-width: 860px) {
  .hero { flex-direction: column; align-items: stretch; padding-top: 72px; min-height: 0; }
  .hero__sky::after { background: linear-gradient(0deg, #000 0%, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.1) 100%); }
  .launch { --rocket-x: 0.5; position: relative; inset: auto; width: 100%; height: min(58svh, 520px); order: -1; margin-bottom: -24px; }
  .hero__copy { gap: 22px; }
}

/* ---------------------------------------------------------- sections ---- */
.sect { position: relative; padding-block: var(--section); }

/* statement: one paragraph with the toy objects inside the sentence */
.statement { border-top: 1px solid var(--line); }
.statement__text { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: var(--t-statement); line-height: 1.16; letter-spacing: -0.02em; color: var(--muted); max-width: 30ch; text-wrap: pretty; }
.statement__text em { font-style: normal; color: var(--ink); }
.obj { display: inline-block; vertical-align: -0.12em; width: 1.9em; height: 1.06em; margin-inline: 0.06em; border-radius: 999px; overflow: hidden; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.obj img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }

/* work */
.work { border-top: 1px solid var(--line); }
.work__title { margin-bottom: clamp(56px, 8vw, 112px); }
.job { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.job--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.job--flip .job__copy { order: 2; }
.job__copy { display: grid; gap: 18px; align-content: start; }
.job__name { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: var(--t-lg); line-height: 1; letter-spacing: -0.025em; }
.job__line { font-size: var(--t-h3); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.status { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: var(--t-sm); font-weight: 500; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.ticks { display: grid; gap: 10px; margin-top: 4px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 12px; height: 2px; background: var(--red); }

.job__visual { position: relative; min-height: 460px; display: grid; align-items: end; }
.job__visual .stage { position: absolute; inset: -4% 30% 18% -6%; }
.job--flip .job__visual .stage { inset: -6% -6% 16% 36%; }
.ui { position: relative; z-index: 2; width: min(100%, 400px); justify-self: end; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; font-size: var(--t-sm); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.job--flip .ui { justify-self: start; }
.ui__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.ui__chip { font-size: 12px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.tm { display: grid; gap: 8px; font-size: 13px; }
.tm__head, .tm__row { display: grid; grid-template-columns: 58px repeat(5, minmax(0, 1fr)); align-items: center; column-gap: 4px; }
.tm__head span { color: var(--muted); font-size: 12px; }
.tm__row { height: 26px; }
.tm__row span { grid-column: 1; color: var(--muted); }
.tm__row i { grid-row: 1; grid-column: calc(var(--s) + 1) / calc(var(--e) + 1); height: 14px; border-radius: 999px; background: #3a3a3a; }
.tm__row i.is-live { background: var(--red); }
.tm__row i.is-warn { background: #3a3a3a; outline: 1px solid var(--warn); }
.ui__note { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--ink); }
.ui__note--warn { color: var(--warn); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--live { background: var(--live); }
.dot--warn { background: var(--warn); }
.msg { max-width: 92%; }
.msg--me { margin-left: auto; width: fit-content; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; padding: 10px 14px; }
.msg--bot { margin-top: 12px; display: grid; gap: 10px; }
.msg table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.msg th { text-align: left; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); padding: 6px 4px 6px 0; }
.msg td { border-bottom: 1px solid var(--line); padding: 7px 4px 7px 0; }
.msg td:last-child { color: var(--red-ink); }

/* 3D stages (stage.js) */
.stage { position: relative; }
.stage__poster { position: absolute; inset: 0; margin: auto; max-height: 92%; width: auto; object-fit: contain; transition: opacity 500ms var(--ease); }
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 600ms var(--ease); }
.stage.is-live canvas { opacity: 1; }
.stage.is-live .stage__poster { opacity: 0; }

@media (max-width: 900px) {
  .job, .job--flip { grid-template-columns: 1fr; }
  .job--flip .job__copy { order: 0; }
  .job__visual { min-height: 0; }
  .job__visual .stage, .job--flip .job__visual .stage { position: relative; inset: auto; height: 300px; }
  .ui, .job--flip .ui { justify-self: stretch; width: 100%; margin-top: -32px; }
}

/* how */
.how { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px); border-top: 2px solid var(--red); }
.steps li { padding: 28px 28px 0 0; display: grid; gap: 10px; align-content: start; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps__when { color: var(--red-ink); font-weight: 600; font-size: var(--t-sm); }
.steps li > p:last-child { color: var(--muted); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
}

/* prices: ledger rows */
.prices { border-top: 1px solid var(--line); }
.prices__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; margin-bottom: clamp(40px, 5vw, 64px); }
.prices__head > div { display: grid; gap: 18px; }
.stage--register { width: clamp(170px, 20vw, 280px); height: clamp(140px, 16vw, 220px); }
.ledger { border-top: 1px solid var(--line-strong); }
.row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 260px; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: 32px; border-bottom: 1px solid var(--line); }
.row__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; transform: scale(1.55); clip-path: inset(16% 16% 16% 16%); }
.row { overflow: hidden; }
.row__what { display: grid; gap: 8px; }
.row__what h3 { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); letter-spacing: -0.02em; line-height: 1.05; }
.row__what > p { color: var(--muted); }
.row__inc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.row__inc li { font-size: 13px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.row__deal { display: grid; gap: 6px; justify-items: start; }
.row__price { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(2rem, 1.5rem + 1.4vw, 2.75rem); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.row__price small { font-family: var(--text); font-size: var(--t-sm); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.row__time { color: var(--muted); font-size: var(--t-sm); margin-bottom: 10px; }
@media (max-width: 900px) {
  .row { grid-template-columns: 140px minmax(0, 1fr); }
  .row__deal { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 16px; }
  .row__deal .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 560px) {
  .prices__head { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .row__img { max-width: 220px; }
}

/* founding */
.founding { position: relative; overflow: hidden; padding-block: clamp(96px, 12vw, 160px); background: var(--black); border-block: 1px solid var(--line); }
.founding__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; opacity: 0.7; }
.founding::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 30%, rgba(0,0,0,0.2) 75%); }
.founding__in { position: relative; z-index: 1; display: grid; gap: 36px; justify-items: start; }
.founding__in > * { max-width: 600px; }
.founding__in > div:first-child { display: grid; gap: 18px; }
.slots { display: grid; gap: 14px; justify-items: start; }
.slots__row { display: flex; gap: 10px; }
.slots__row i { width: 40px; height: 12px; border-radius: 999px; background: var(--red); }
.slots__count b { font-weight: 700; }
@media (max-width: 760px) { .founding__bg { opacity: 0.35; } }

/* prompts: ruled rows that open */
.prompts { border-top: 1px solid var(--line); }
.prompts__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.prompts__grid header { display: grid; gap: 18px; }
.plist { border-top: 1px solid var(--line-strong); }
.pitem { border-bottom: 1px solid var(--line); }
.pitem summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; }
.pitem summary::-webkit-details-marker { display: none; }
.pitem__name { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.015em; }
.pitem__for { color: var(--muted); font-size: var(--t-sm); white-space: nowrap; }
.pitem summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--red-ink); margin-left: 8px; transition: transform 160ms var(--ease); }
.pitem[open] summary::after { transform: rotate(45deg); }
.pitem pre { white-space: pre-wrap; font: 400 var(--t-sm)/1.6 var(--text); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.pitem .btn { margin-bottom: 24px; }
@media (max-width: 900px) { .prompts__grid { grid-template-columns: 1fr; } }

/* questions */
.faq { border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { padding: 22px 0; font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.015em; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; color: var(--red-ink); font-size: 1.5rem; line-height: 1; transition: transform 160ms var(--ease); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list p { color: var(--muted); padding-bottom: 24px; max-width: 60ch; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } }

/* book */
.book { border-top: 2px solid var(--red); }
.book__head { display: grid; gap: 18px; margin-bottom: 40px; }
.cal { position: relative; overflow: hidden; min-height: 160px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.cal.has-calendly { min-height: 700px; }
.cal.has-calendly .cal__fallback { display: none; }
.cal iframe { display: block; width: 100%; height: 700px; border: 0; }
.cal__fallback { display: grid; gap: 18px; padding: 28px; }
.email { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.email__addr { font-size: clamp(1rem, 0.8rem + 1.2vw, 1.5rem); font-weight: 600; overflow-wrap: anywhere; }
.later { margin-top: 32px; border-top: 1px solid var(--line); }
.later summary { padding: 22px 0; cursor: pointer; font-weight: 600; font-size: var(--t-h3); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.later summary::-webkit-details-marker { display: none; }
.later summary::after { content: "+"; color: var(--red-ink); font-size: 1.5rem; line-height: 1; transition: transform 160ms var(--ease); }
.later[open] summary::after { transform: rotate(45deg); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; padding-bottom: 16px; max-width: 880px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 500; font-size: var(--t-sm); padding: 0; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 14px 16px; background: var(--panel); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 12px; font: inherit; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--red-ink); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--warn); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { cursor: pointer; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--t-sm); }
.choices input:checked + span { border-color: var(--red); background: var(--red); color: var(--on-red); }
.choices input:focus-visible + span { outline: 2px solid var(--red-ink); outline-offset: 2px; }
.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__status { font-size: var(--t-sm); color: var(--muted); }
.form__status.is-ok { color: var(--live); }
.form__status.is-err { color: var(--warn); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 40px 96px; color: var(--muted); font-size: var(--t-sm); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between; }
.foot img { width: 96px; }

/* motion: the launch is the page's one moment; nothing else moves on its own */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
