/* Get started (November 22, 2026). The homepage hero's button leads here.
   One step: a work email, alone on the page. When the note is accepted, the same spot becomes a receipt drawn
   in Mach 1's own language: a control-tower scope (Tower) comes alive, the three bars of the mark arrive at
   speed along the logo's lean and settle at its centre, a pressure wave rolls out (Mach 1), and the scope
   keeps sweeping in the horizon colours. Then the promise that the team will reach out, and three optional
   ways to move faster.
   No script of its own: assets/capture.mjs submits the form, sets aria-busy while it sends and .is-sent when
   the note is accepted; everything here is CSS on those two states. */

@property --gs-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.page-get-started {
  --gs-lean: 16deg; /* the logo's lean, as on the rest of the site */
  --gs-hairline: color-mix(in srgb, var(--fg) 9%, transparent);
  --gs-hairline-2: color-mix(in srgb, var(--fg) 16%, transparent);
  --gs-horizon: linear-gradient(100deg, var(--horizon-1), var(--horizon-2) 55%, var(--horizon-3));
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
}

/* The skip link shows only when focused, as on the rest of the site. */
.page-get-started .skip { position: absolute; top: 8px; left: 8px; z-index: 10; padding: 10px 14px; border-radius: 10px; background: var(--fg); color: var(--bg); font-size: 14px; text-decoration: none; translate: 0 -200%; }
.page-get-started .skip:focus { translate: 0 0; }

.gs-header { position: relative; z-index: 1; display: flex; align-items: center; height: var(--header-h); padding-inline: var(--gutter); }
.gs-brand { display: inline-flex; align-items: center; min-height: 44px; border-radius: 6px; }

/* pages.css sets .editorial main to block; this page centres its one block in the space between header and footer. */
.page-get-started main.gs { position: relative; display: grid; flex: 1; place-items: center; padding: 16px var(--gutter) 72px; overflow: hidden; }
.gs:focus { outline: none; }

/* The field behind the ask: the site's dot grid and two range rings, fading out from the centre, under a
   horizon glow. Quiet enough to read as texture; the scope picks the same rings up on success. */
.gs-field {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 44% at 50% 46%, var(--horizon-soft), transparent 72%),
    radial-gradient(var(--grid-dot) 1px, transparent 1.4px) 50% 46% / 24px 24px;
  -webkit-mask: radial-gradient(70% 62% at 50% 46%, #000 30%, transparent 100%);
  mask: radial-gradient(70% 62% at 50% 46%, #000 30%, transparent 100%);
  pointer-events: none;
}
.gs-field::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, transparent 259px, var(--gs-hairline) 260px, transparent 261px),
    radial-gradient(circle at 50% 46%, transparent 419px, var(--gs-hairline) 420px, transparent 421px);
  content: '';
  transition: opacity 700ms var(--ease);
}
/* A slow sweep turns in the band between the two range rings, clear of the words: the scope before it wakes.
   The gradient's own angle turns (--gs-angle), so the layer stays put and can fade out towards the header and
   the footer. Shown only where motion is welcome. */
.gs-field::after {
  position: absolute;
  inset: 0;
  background: conic-gradient(from var(--gs-angle) at 50% 46%, transparent 0deg 296deg,
    color-mix(in srgb, var(--horizon-1) 5%, transparent) 322deg,
    color-mix(in srgb, var(--horizon-2) 10%, transparent) 346deg,
    color-mix(in srgb, var(--horizon-3) 17%, transparent) 359.6deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle at 50% 46%, transparent 258px, #000 262px, #000 418px, transparent 421px), linear-gradient(transparent 4%, #000 26%, #000 74%, transparent 96%);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle at 50% 46%, transparent 258px, #000 262px, #000 418px, transparent 421px), linear-gradient(transparent 4%, #000 26%, #000 74%, transparent 96%);
  mask-composite: intersect;
  content: '';
  opacity: 0;
  transition: opacity 700ms var(--ease);
}
/* On success the scope draws its own rings and sweep, so the field's step back. */
.gs:has(.gs-capture.is-sent) .gs-field::before,
.gs:has(.gs-capture.is-sent) .gs-field::after { opacity: 0; }
.gs-stage { position: relative; width: min(100%, 560px); text-align: center; }

/* ---- The ask ---- */
.gs-ask h1 { margin: 0; font-size: clamp(46px, 9vw, 92px); font-weight: var(--h-weight, 600); letter-spacing: -0.045em; line-height: 0.98; }
.gs-lede { max-width: 470px; margin: 18px auto 0; color: var(--fg-2); font-size: var(--lede); line-height: 1.5; }
.gs-capture { max-width: 460px; margin: 34px auto 0; text-align: left; }
.gs-capture .m1-capture-row {
  flex-direction: row;
  gap: 6px;
  padding: 6px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(var(--line-3), var(--line-3)) border-box;
  box-shadow: 0 1px 0 var(--glow), 0 18px 48px -28px var(--horizon-line);
  transition: box-shadow var(--dur-2) var(--ease);
}
.gs-capture .m1-capture-row:focus-within {
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--gs-horizon) border-box;
  box-shadow: 0 0 0 4px var(--horizon-soft), 0 22px 56px -24px var(--horizon-line);
}
/* Sending: the horizon runs around the field, like a scope sweep, until the note is in. */
.gs-capture[aria-busy="true"] .m1-capture-row {
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
    conic-gradient(from var(--gs-angle), var(--horizon-1), var(--horizon-2), var(--horizon-3), transparent 62%, var(--horizon-1)) border-box;
}
.gs-capture input[type="email"] { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 8px 0 20px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; font-size: 17px; }
.gs-capture input[type="email"]:focus { outline: none; box-shadow: none; }
/* The mark sits in the field (assets/capture.css): its three bars light as the address takes shape. */
.gs-capture .m1-capture-row::before { top: 50%; left: 24px; }
.gs-capture .m1-capture-row input[type="email"] { padding-left: 54px; }
.gs-capture input[type="email"]:-webkit-autofill,
.gs-capture input[type="email"]:-webkit-autofill:focus { box-shadow: 0 0 0 100px var(--bg) inset; }
/* A miss: the pill's edge turns to the error colour while the row nudges. */
.gs-capture .m1-capture-row:has([aria-invalid="true"]) { background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(var(--danger), var(--danger)) border-box; }
.gs-capture .m1-capture-submit { --btn-h: 48px; flex: 0 0 auto; width: auto; padding-inline: 22px; transition: scale var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease); }
.gs-capture .m1-capture-submit > span[aria-hidden] { display: inline-block; transition: translate var(--dur-2) var(--ease-out); }
.gs-capture .m1-capture-submit:active { scale: 0.97; }
.gs-capture .m1-capture-error { margin: 12px 0 0; text-align: center; }
.gs-fine { margin: 18px 0 0; color: var(--fg-3); font-size: 14px; line-height: 1.5; }
.gs-fine a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; }
@media (hover: hover) {
  .gs-capture .m1-capture-submit:hover > span[aria-hidden] { translate: 3px 0; }
}

/* ---- Accepted: the ask steps away and the receipt takes its place ---- */
.gs-stage:has(.gs-capture.is-sent) .gs-ask,
.gs-stage:has(.gs-capture.is-sent) .gs-fine { display: none; }
.gs-capture.is-sent { max-width: none; margin-top: 0; }
.gs-capture.is-sent .m1-capture-done { animation: none; }
.gs-capture .m1-capture-done { display: block; padding: 0; border: 0; border-radius: 0; background: none; color: var(--fg-2); font-size: inherit; line-height: inherit; text-align: center; }

/* The scope itself (rings, sweep, the mark, the check) lives in assets/scope.css, shared with /start/next. */
.gs-capture .gs-scope { margin: -18px auto 0; }

.gs-clear { display: inline-flex; gap: 8px; align-items: center; margin: 6px 0 0; padding: 5px 12px 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-elev); color: var(--fg-2); font: 500 11.5px/1.4 var(--font-mono); letter-spacing: 0.09em; text-transform: uppercase; }
.gs-clear-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.gs-clear-dot::after { position: absolute; inset: 0; border-radius: 50%; background: var(--ok); content: ''; opacity: 0; }
.gs-done-title { width: auto; margin: 18px auto 0; color: var(--fg); font-size: clamp(44px, 8vw, 80px); font-weight: var(--h-weight, 600); letter-spacing: -0.045em; line-height: 1; }
.gs-done-text { max-width: 440px; margin: 16px auto 0; color: var(--fg-2); font-size: var(--lede); line-height: 1.5; }
.gs-capture .gs-done-text b { color: var(--fg); font-weight: 500; overflow-wrap: anywhere; }
.gs-faster { width: auto; margin: 38px auto 0; color: var(--fg-3); font-size: 14px; }
.gs-options { max-width: 420px; margin: 14px auto 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: 0 24px 60px -40px var(--horizon-line); list-style: none; text-align: left; }
.gs-options li + li { border-top: 1px solid var(--line); }
.gs-opt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 64px; padding: 12px 18px 12px 14px; color: inherit; text-decoration: none; transition: background-color var(--dur-1) var(--ease); }
/* A tick at the logo's lean marks the row under the pointer. */
.gs-opt::before { position: absolute; top: 50%; left: -1px; width: 3px; height: 26px; background: var(--gs-horizon); content: ''; opacity: 0; transform: translateY(-50%) skewX(calc(var(--gs-lean) * -1)) scaleY(0.4); transition: opacity var(--dur-1) var(--ease), transform var(--dur-2) var(--ease-out); }
.gs-opt-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--fg); transition: border-color var(--dur-1) var(--ease); }
.gs-opt-icon .icon { width: 18px; height: 18px; }
.gs-opt-text { display: grid; gap: 2px; }
.gs-capture .gs-opt-text strong { color: var(--fg); font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.gs-opt-text small { color: var(--fg-3); font-size: 14px; }
.gs-opt-go { color: var(--fg-3); transition: translate var(--dur-2) var(--ease-out), color var(--dur-1) var(--ease); }
.gs-opt:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (hover: hover) {
  .gs-opt:hover { background: var(--bg-hover); }
  .gs-opt:hover::before { opacity: 1; transform: translateY(-50%) skewX(calc(var(--gs-lean) * -1)) scaleY(1); }
  .gs-opt:hover .gs-opt-icon { border-color: var(--line-3); }
  .gs-opt:hover .gs-opt-go { color: var(--fg); translate: 4px 0; }
}

/* ---- Footer ---- */
.gs-footer { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); color: var(--fg-3); font-size: 13px; }
.gs-footer p { margin: 0; }
.gs-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.gs-legal a, .gs-settings { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; cursor: pointer; }
@media (pointer: coarse) { .gs-legal a, .gs-settings { display: inline-flex; align-items: center; min-height: 44px; } }

@media (max-width: 520px) {
  .page-get-started main.gs { padding-bottom: 48px; }
  .gs-capture .m1-capture-submit { padding-inline: 18px; }
  .gs-capture .m1-capture-row::before { left: 20px; }
  .gs-capture .m1-capture-row input[type="email"] { padding-left: 48px; }
  .gs-capture .gs-scope { width: 220px; height: 220px; margin-top: -10px; }
  .gs-streaks { height: 160px; }
  .gs-faster { margin-top: 30px; }
}

/* ---- Motion ----
   Arrival: the headline rises line by line and the field follows.
   Sending: the horizon circles the field.
   Accepted, in order: speed lines cross; the scope opens and its tick ring turns into place; the three bars of
   the mark arrive at speed and settle; a pressure wave rolls out; the check lands; the sweep starts turning;
   then the words and the next steps. After that only the sweep, a slow wave and the status dot keep moving.
   Everything holds still, in its final state, when the visitor prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .gs-ask .gs-line > span { animation: gs-line var(--dur-4) var(--ease-out) both; }
  .gs-lede { animation: gs-rise var(--dur-4) var(--ease-out) 120ms both; }
  .gs-capture:not(.is-sent) { animation: gs-rise var(--dur-4) var(--ease-out) 200ms both; }
  .gs-fine { animation: gs-fade var(--dur-4) var(--ease) 380ms both; }
  .gs-field { animation: gs-fade 1200ms var(--ease) both; }
  .gs:not(:has(.gs-capture.is-sent)) .gs-field::after { opacity: 1; animation: gs-orbit 16s linear infinite; }

  .gs-capture[aria-busy="true"] .m1-capture-row { animation: gs-orbit 1100ms linear infinite; }

  /* The scope plays here (assets/scope.css); the words follow it. */
  .gs-capture.is-sent .gs-clear { animation: gs-rise var(--dur-4) var(--ease-out) 900ms both; }
  .gs-capture.is-sent .gs-clear-dot::after { animation: gs-ping 2.4s var(--ease-out) 1700ms infinite; }
  .gs-capture.is-sent .gs-done-title .gs-line > span { animation: gs-line var(--dur-4) var(--ease-out) 980ms both; }
  .gs-capture.is-sent .gs-done-text { animation: gs-rise var(--dur-4) var(--ease-out) 1120ms both; }
  .gs-capture.is-sent .gs-faster { animation: gs-fade var(--dur-4) var(--ease) 1420ms both; }
  .gs-capture.is-sent .gs-options { animation: gs-rise var(--dur-4) var(--ease-out) 1480ms both; }
  .gs-capture.is-sent .gs-options li { animation: gs-fade var(--dur-3) var(--ease) both; }
  .gs-capture.is-sent .gs-options li:nth-child(1) { animation-delay: 1560ms; }
  .gs-capture.is-sent .gs-options li:nth-child(2) { animation-delay: 1650ms; }
  .gs-capture.is-sent .gs-options li:nth-child(3) { animation-delay: 1740ms; }
}

@keyframes gs-orbit { to { --gs-angle: 360deg; } }
@keyframes gs-ping {
  0% { opacity: 0.6; scale: 1; }
  60%, 100% { opacity: 0; scale: 3; }
}

/* ---- Proof (November 22, 2026) ----
   Three customers under the ask, each with the one number they report and a link to the story. Quiet: it sits
   below the fine print and never competes with the email field. Numbers come from marketing/content/customers.json. */
.gs-proof { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--gs-hairline); }
.gs-proof-k { margin: 0 0 12px; font: 500 var(--label, 12px) / 1.4 var(--font-sans); letter-spacing: .02em; color: var(--fg-3); }
.gs-proof-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; text-align: left; }
.gs-proof-item { display: flex; align-items: center; gap: 10px; height: 100%; padding: 10px; border: 1px solid var(--gs-hairline); border-radius: 12px; background: color-mix(in srgb, var(--bg) 82%, transparent); color: inherit; text-decoration: none; transition: border-color 200ms var(--ease); }
.gs-proof-item:hover, .gs-proof-item:focus-visible { border-color: var(--gs-hairline-2); }
.gs-proof-item img { flex: none; width: 40px; height: 40px; border-radius: 10px; object-fit: cover; object-position: 50% 26%; background: var(--bg-subtle); }
.gs-proof-item span { display: grid; gap: 2px; min-width: 0; }
.gs-proof-item strong { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--fg); }
.gs-proof-item small { font-size: 12px; line-height: 1.35; color: var(--fg-3); }
.gs-proof-all { display: inline-block; margin-top: 12px; font-size: 13.5px; }
@media (max-width: 640px) {
  .gs-proof-list { grid-template-columns: minmax(0, 1fr); }
}
