/* SpiralSoar coming-soon page.
   Colours come only from tokens.css (copied from brand/colors). No raw hex here.
   Layout: one screen, no scrollbar on normal desktops and phones. Equal gutters on all four sides.
   Hero visual: the flight path, three stops on one line rising at the brand's 14° angle. */

@font-face { font-family: "Outfit"; src: url("/assets/fonts/outfit-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jbmono-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --font-display: "Outfit", system-ui, sans-serif;
  --font-text: "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --r-input: 6px;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --edge: clamp(20px, 4.5vw, 72px);           /* one gutter for every edge */
  --gap: clamp(14px, 3vh, 32px);              /* vertical rhythm, shrinks on short screens */
  --tan14: 0.2493;                            /* tan(14°): the brand's rising angle */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 16px/1.6 var(--font-text);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-link); text-underline-offset: 0.2em; }
a:hover { color: var(--color-link-hover); }
:focus-visible { outline: var(--focus-ring-width) solid var(--color-focus-ring); outline-offset: var(--focus-ring-offset); border-radius: 2px; }
p, h1, h2, ol, ul { margin: 0; }

.frame { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--edge); }

/* ---------- Top bar ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: clamp(20px, 4vh, 40px) 0;
}
.top .logo { width: clamp(140px, 13vw, 196px); }
.status { font: 400 13px/20px var(--font-mono); color: var(--color-text-muted); text-align: end; white-space: nowrap; }
.status__short { display: none; }

/* ---------- Main ----------
   Phones and tablets: headline → flight path → email button (the path tells the story, the button ends it).
   Desktop: headline and button on the left, the path on the right, centred between them. */
.main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "path" "cta";
  align-content: center;
  row-gap: calc(var(--gap) * 1.5);
  padding-block: calc(var(--gap) * 1.5);
}
.intro { grid-area: intro; max-width: 620px; }
.path-wrap { grid-area: path; }
.cta { grid-area: cta; }
@media (min-width: 900px) {
  .main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "intro path" "cta path";
    column-gap: var(--edge);
    row-gap: calc(var(--gap) * 1.25);
  }
  .intro { align-self: end; }
  .cta { align-self: start; }
  .path-wrap { align-self: center; }
}

.copy { max-width: 640px; }   /* 404 page */

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, min(4.4vw, 8vh), 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lead {
  margin-top: calc(var(--gap) * 0.75);
  font-size: clamp(17px, min(1.4vw, 2.6vh), 20px);
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 42ch;
  text-wrap: pretty;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.copy .actions { margin-top: calc(var(--gap) * 1.25); }   /* 404 page */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-input);
  font: 600 15px/20px var(--font-text); text-decoration: none; border: 1.5px solid transparent;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--accent { background: var(--color-accent); color: var(--color-on-accent); }
.btn--accent:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }
.btn--secondary { background: transparent; color: var(--color-text); border-color: var(--color-border-strong); }
.btn--secondary:hover { border-color: var(--color-text); color: var(--color-text); }
@media (max-width: 479px) { .btn { flex: 1 1 100%; } }

/* ---------- Flight path ----------
   Three equal columns. Each stop is lifted by one column width × tan(14°), so the dots sit on one
   straight line at 14°. A thin mast joins each dot to its label. The line draws itself once on load. */
.path-wrap { display: flex; justify-content: flex-end; }
.path { width: min(100%, 680px); container-type: inline-size; position: relative; }
.path ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; position: relative; z-index: 1; }
/* Labels clear the line across their whole column: the line rises one column × tan(14°) under them. */
.stop { position: relative; display: flex; flex-direction: column; padding-inline-start: 22px; padding-bottom: calc(33.333cqw * var(--tan14) + 14px); }
.stop:nth-child(2) { margin-bottom: calc(33.333cqw * var(--tan14)); }
.stop:nth-child(3) { margin-bottom: calc(66.667cqw * var(--tan14)); }
.stop h2 {
  font: 600 clamp(17px, 3.4cqw + 5px, 28px)/1.1 var(--font-display);
  letter-spacing: -0.015em;
  color: var(--color-text);
}
.stop ul { list-style: none; padding: 0; margin-top: 10px; font-size: clamp(13px, 1.4cqw + 8px, 17px); line-height: 1.6; color: var(--color-text-muted); }
/* mast */
.stop::before {
  content: ""; position: absolute;
  inset-inline-start: 6px; top: 6px; bottom: 12px;
  border-inline-start: 1px solid var(--color-border);
}
/* dot */
.stop::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--color-bg); border: 2px solid var(--color-text);
}
.stop:last-child::after { background: var(--color-accent); }

/* The line: from the first dot's centre to the last dot's centre, at 14°. */
.path__line {
  position: absolute; z-index: 0;
  inset-inline-start: 6.5px; bottom: 6.5px;
  width: calc(66.667cqw / 0.9703);  /* run ÷ cos(14°) */
  height: 0;
  /* Drawn as a border, not a background: contrast checkers treat a rotated element's whole bounding
     box as background behind the labels, which reports a false failure. A border is not background. */
  border-top: 1.5px solid var(--color-border-strong);
  transform: rotate(-14deg); transform-origin: 0 50%;
}

/* One orchestrated moment: the line draws, and each dot lands and raises its mast as the line reaches it.
   Only the graphics move. The text is shown at full strength from the first paint, so it is always
   readable, always at full contrast (accessibility checks run mid-animation) and never hidden from search. */
@media (prefers-reduced-motion: no-preference) {
  .path__line { animation: draw 1100ms var(--ease-out) 150ms both; }
  .stop::after { animation: land 320ms var(--ease-out) both; }
  .stop::before { transform-origin: 50% 100%; animation: raise 420ms var(--ease-out) both; }
  .stop:nth-child(1)::after { animation-delay: 100ms; }
  .stop:nth-child(1)::before { animation-delay: 250ms; }
  .stop:nth-child(2)::after { animation-delay: 650ms; }
  .stop:nth-child(2)::before { animation-delay: 800ms; }
  .stop:nth-child(3)::after { animation-delay: 1200ms; }
  .stop:nth-child(3)::before { animation-delay: 1350ms; }
}
@keyframes draw { from { transform: rotate(-14deg) scaleX(0); } to { transform: rotate(-14deg) scaleX(1); } }
@keyframes land { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes raise { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Phones and tablets: the path sits between the headline and the button, full width. */
@media (max-width: 899px) {
  h1 { font-size: clamp(32px, min(7.2vw, 6.4vh), 56px); }
  .lead { font-size: clamp(17px, 2.4vw, 20px); }
  /* One column: headline, paragraph and path all use the container's full width, so the left and right
     edges line up. The paragraph is capped at a comfortable reading length (about 60 characters). */
  .intro { max-width: none; }
  .lead { max-width: 60ch; }
  .path-wrap { justify-content: flex-start; }
  .path { width: 100%; }
  .stop { padding-inline-start: 16px; padding-bottom: calc(33.333cqw * var(--tan14) + 10px); }
  .stop ul { margin-top: 6px; line-height: 1.45; }
}

/* Phones: one line each for the top and bottom bars. */
@media (max-width: 599px) {
  .status__long { display: none; }
  .status__short { display: inline; }
  .bottom .tagline { display: none; }   /* the path above already shows the three verbs */
  .actions .btn { flex: 1 1 100%; }
  .lead { font-size: 16px; }
  .main { row-gap: calc(var(--gap) * 1.2); padding-block: var(--gap); }
  .top { padding-top: 18px; }
}

/* Short phones (iPhone SE, small Android): smaller type so the button stays on the first screen. */
@media (max-width: 599px) and (max-height: 640px) {
  h1 { font-size: clamp(28px, 8.4vw, 34px); }
  .lead { font-size: 15px; }
  .main { row-gap: var(--gap); }
  .stop { padding-inline-start: 12px; }
}

/* ---------- Bottom bar ---------- */
.bottom {
  display: flex; justify-content: space-between; gap: 24px;
  padding-block: 18px clamp(20px, 3vh, 32px);
  white-space: nowrap;
  border-top: 1px solid var(--color-border);
  font-size: 13px; line-height: 20px; color: var(--color-text-subtle);
}

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
