/* Glideflow landing page.
 *
 * Direction: the page is a flight deck. Its one borrowed artifact is the
 * aviation checklist line — item, dot leader, action — because that format is
 * recognisable in half a second and is pure typography, no illustration
 * required. The same card is re-set in eight trades, which is simultaneously
 * the explanation of the product and the proof that it is not industry
 * software.
 *
 * Colour, radius and shadow come from `design_handoff/README.md` § "Design
 * tokens" so the marketing page and the product read as one thing; the dark
 * ground is the handoff's own chrome gradient taken full-bleed.
 *
 * ONE RULE HOLDS THROUGHOUT: `--action` (#3355FF) belongs to the controls that
 * collect an email address, and nothing else on the page may carry it as a
 * fill — no feature card, no link, no chip. The single exception is the active
 * step inside the checklist card, where it appears as a 2px rule and 11px
 * type: that card is a picture of the product and blue is the product's own
 * colour for an active step. The rule is about weight, not about the hex — a
 * blue block anywhere else reads as a second call to action.
 */

/* ---------- tokens ---------- */

:root {
  /* dark ground */
  --panel: #141833;
  --panel-2: #1b2040;
  --panel-lift: #1e2347;
  --panel-rule: rgba(255, 255, 255, .09);
  --panel-rule-soft: rgba(255, 255, 255, .055);

  /* light ground */
  --canvas: #eef0f8;
  --surface: #fff;
  --ink: #1a1f36;
  --ink-2: #3a4162;
  --ink-3: #6e7799;
  --ink-4: #a2a8c6;
  --rule: #e0e4f0;
  --sunken: #f6f7fc;
  --divider: #eef0f8;
  --check-deep: #1f5c46;
  --caution-050: #fff9f0;
  --action-050: #eef1ff;

  /* on dark */
  --lit: #fff;
  --lit-2: #c9ceea;
  --lit-3: #8b93c4;
  --lit-4: #666e9e;

  /* functional */
  --action: #3355ff;       /* email capture, and nothing else */
  --legend: #8da0ff;       /* backlit legend text on dark */
  --check: #2e9b76;
  --check-lit: #7fd3ae;
  --caution: #b3731a;
  --caution-lit: #e0a44a;

  --shadow-card: 0 2px 6px rgba(26, 31, 54, .07), 0 12px 32px rgba(26, 31, 54, .07);
  --shadow-deck: 0 30px 80px rgba(8, 10, 26, .45);
  --shadow-action: 0 10px 26px rgba(51, 85, 255, .38);

  --max: 1060px;
  --gutter: 40px;

  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ---------- base ---------- */

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

/* The widget hides panels with the `hidden` attribute, and the UA default that
 * implements it loses to any `display` this sheet sets on the same element. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3, p, li, summary { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- the recurring marker ----------
 * A short rule and a mono legend. It replaces the usual pill-shaped kicker:
 * an instrument legend is stencilled next to a line, not set in a bubble. */

.callout {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lit-3);
}
.callout::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  flex: none;
  opacity: .7;
}
.callout--dark { color: var(--ink-3); }
.callout--halt { color: var(--caution-lit); }
.callout--in { color: var(--check-lit); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  padding: 13px 22px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.012em;
  background: var(--action);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-action);
  transition: transform .14s ease, filter .14s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btn--sm { padding: 9px 15px; font-size: 13.5px; border-radius: 9px; box-shadow: 0 6px 16px rgba(51, 85, 255, .32); }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--ghost {
  flex: none;
  background: transparent;
  color: var(--check-lit);
  border: 1px solid rgba(127, 211, 174, .4);
  box-shadow: none;
  padding: 11px 16px;
  font-size: 14px;
}
.btn--ghost:hover { filter: none; background: rgba(127, 211, 174, .1); }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--panel);
  border-bottom: 1px solid var(--panel-rule-soft);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 15px;
}
/* The lockup: the box-exit tick, then the word. The mark is `favicon.svg` without
   its tile, repeated by hand in the header, the footer and `og.html`. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.045em;
  color: var(--lit);
  text-decoration: none;
}
.wordmark__mark { width: 24px; height: 24px; flex: none; }

.wordmark--sm { font-size: 16px; gap: 6px; }
.wordmark--sm .wordmark__mark { width: 19px; height: 19px; }

html[data-waitlist-state="verified"] [data-cta] { display: none; }

/* ---------- dark sections ---------- */

.deck-section {
  background:
    radial-gradient(120% 80% at 50% -10%, #262c5c 0%, rgba(38, 44, 92, 0) 62%),
    linear-gradient(168deg, #1c2143, var(--panel) 62%, #10142b);
  color: var(--lit);
  padding-block: 78px 0;
}
.deck-section--close { padding-block: 86px 96px; }

.hero { text-align: center; }
.hero .callout { justify-content: center; }

/* The h1 is the largest text on the page. It says what the product is, in the
 * words people type into a search box. */
.hero__title {
  margin: 20px auto 0;
  max-width: 17ch;
  font-size: clamp(40px, 6.6vw, 68px);
  font-weight: 600;
  letter-spacing: -.046em;
  line-height: 1.02;
  color: var(--lit);
}

.hero__lede {
  margin: 24px auto 0;
  max-width: 58ch;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--lit-2);
}
.hero__lede strong { color: var(--lit); font-weight: 600; }

/* ---------- the call to action ---------- */

.cta {
  max-width: 540px;
  margin: 34px auto 0;
  text-align: left;
}
.cta__form { display: flex; gap: 9px; }
.cta__form input {
  flex: 1;
  min-width: 0;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(0, 0, 0, .28);
  padding: 15px 16px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--lit);
}
.cta__form input::placeholder { color: var(--lit-4); }
.cta__form input:focus {
  outline: none;
  border-color: var(--action);
  box-shadow: 0 0 0 3px rgba(51, 85, 255, .28);
}
.cta__note {
  margin-top: 12px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--lit-4);
}
.cta__note a { color: var(--lit-3); }
/* The note is the form's fine print. Once the form is gone — inbox check or
 * confirmed — it is answering a question nobody is still asking. */
html[data-waitlist-state] .cta__note { display: none; }

/* ---------- post-signup states ---------- */

.reveal {
  border-radius: 16px;
  padding: 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--lit-2);
}
.reveal p + p { margin-top: 10px; }
.reveal strong { color: var(--lit); font-weight: 600; }
.reveal__head {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--lit);
}
.reveal--sent {
  background: rgba(93, 120, 255, .14);
  border: 1px solid rgba(141, 160, 255, .3);
}
.reveal--in {
  background: linear-gradient(165deg, rgba(46, 155, 118, .2), rgba(31, 92, 70, .12));
  border: 1px solid rgba(127, 211, 174, .32);
}
.reveal--in .reveal__head { margin-top: 12px; }

.standing {
  display: block;
  margin: 10px 0 4px;
  font-family: var(--mono);
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--check-lit);
}

.linkrow { display: flex; gap: 8px; margin-top: 14px; }
.linkrow input {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(127, 211, 174, .3);
  background: rgba(0, 0, 0, .3);
  padding: 11px 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--check-lit);
}
.reveal__meta {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--lit-4);
}

.alert {
  margin-top: 12px;
  border-radius: 11px;
  padding: 12px 14px;
  background: rgba(224, 164, 74, .13);
  border: 1px solid rgba(224, 164, 74, .38);
  color: var(--caution-lit);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- the switcher ---------- */

.switch-head { margin-top: 72px; }
.switch-head h2 {
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 600;
  letter-spacing: -.028em;
  color: var(--lit);
}
.switch-head p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--lit-3);
}

.switch {
  display: flex;
  gap: 7px;
  margin-top: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.switch::-webkit-scrollbar { display: none; }
.switch__chip {
  flex: none;
  border: 1px solid var(--panel-rule);
  background: rgba(255, 255, 255, .04);
  color: var(--lit-3);
  border-radius: 9px;
  padding: 8px 13px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.switch__chip:hover { color: var(--lit-2); background: rgba(255, 255, 255, .08); }
.switch__chip.is-on {
  color: var(--lit);
  background: rgba(141, 160, 255, .17);
  border-color: rgba(141, 160, 255, .45);
}

/* ---------- the card: the signature ---------- */

/* The card is light because the product is light: `design_handoff/README.md`
 * sets list mode on an #EEF0F8 canvas with white cards. A dark card here would
 * have been a nicer-looking lie about what the app looks like — and on the
 * dark hero the white one reads like a screenshot lifted straight out of it,
 * which is the whole point. */
.card {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  box-shadow: var(--shadow-deck);
  overflow: hidden;
  /* Hangs into the light section below on purpose: the card is the thesis of
   * the page, so it is the one element allowed to break the boundary. */
  transform: translateY(66px);
  position: relative;
  z-index: 2;
}

.deck__head {
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--divider);
}
.deck__head h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink);
}
.deck__id {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* The checklist line. Four children on one baseline:
 * ITEM ·········· ACTION            STAMP */
.line {
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto 230px;
  align-items: center;
  gap: 0 16px;
  padding: 13px 26px;
  border-bottom: 1px solid var(--divider);
}
.line:last-child { border-bottom: 0; }

.line__item {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -.012em;
  color: var(--ink);
}
.line__lead {
  border-bottom: 1px dotted #c8cee2;
  transform: translateY(.34em);
}
.line__act {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}
.line__stamp {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-4);
  text-align: right;
}

.line--done .line__item { color: var(--ink-3); }
.line--done .line__act { color: var(--check); }
.line--done .line__stamp { color: var(--check-deep); }

.line--parked { background: var(--caution-050); }
.line--parked .line__act,
.line--parked .line__stamp { color: var(--caution); }

/* The only other place `--action` blue appears. It is allowed here because the
 * card is a picture of the product and that is the product's own colour for an
 * active step — but only as a 2px rule and 11px type. A blue *fill* would read
 * as a second button, and the rule that keeps the CTA unmissable is about
 * weight, not about the hex. */
.line--active { background: var(--action-050); box-shadow: inset 2px 0 0 var(--action); }
.line--active .line__item { color: var(--ink); font-weight: 600; }
.line--active .line__act,
.line--active .line__stamp { color: var(--action); }

.card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 26px;
  border-top: 1px solid var(--divider);
  background: var(--sunken);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.card__status { color: var(--ink-3); }
.card__status.is-halt { color: var(--caution); }
.card__hint { color: var(--ink-4); }

/* Only the selected deck is laid out; the other seven stay in the document
 * so the page reads complete without JavaScript and to a crawler. */
.deck[hidden] { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .deck.is-on .line { animation: line-in .32s cubic-bezier(.2, .7, .3, 1) backwards; }
  .deck.is-on .line:nth-child(1) { animation-delay: 0ms; }
  .deck.is-on .line:nth-child(2) { animation-delay: 35ms; }
  .deck.is-on .line:nth-child(3) { animation-delay: 70ms; }
  .deck.is-on .line:nth-child(4) { animation-delay: 105ms; }
  .deck.is-on .line:nth-child(5) { animation-delay: 140ms; }
}
@keyframes line-in {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- light bands ---------- */

.band { padding-block: 88px; }
.band--tight { padding-block: 66px; }
.band:first-of-type { padding-top: 146px; }  /* clears the overhanging card */

.head { max-width: 60ch; margin-bottom: 36px; }
.head h2 {
  margin-top: 14px;
  font-size: clamp(27px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -.038em;
  line-height: 1.12;
}
.head__sub {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* ---------- three beats ---------- */

.beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.beat {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.beat__when {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.beat h3 {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.026em;
}
.beat p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-2);
}

/* ---------- the wall ---------- */

.wall {
  columns: 4;
  column-gap: 26px;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.wall li {
  break-inside: avoid;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
  line-height: 2.1;
  color: var(--ink-3);
}
.wall li::before { content: "· "; color: var(--ink-4); }

/* ---------- document vs run ---------- */

.versus { display: grid; gap: 1px; background: var(--rule); border-radius: 16px; overflow: hidden; }
.vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  background: var(--surface);
  padding: 24px 26px;
}
/* Deliberately the quieter half, but still readable — --ink-4 on white is
 * about 2.2:1 and fails anyone reading it on a laptop in daylight. */
.vs__a {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-3);
}
.vs__b {
  font-size: 15.5px;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: -.018em;
  color: var(--ink);
  border-left: 2px solid var(--check);
  padding-left: 20px;
}

/* ---------- the halt ---------- */

.halt {
  background: linear-gradient(168deg, #1e2143, #14162e);
  color: var(--lit);
  padding-block: 76px;
}
.halt__inner { max-width: 62ch; }
.halt h2 {
  margin-top: 14px;
  font-size: clamp(27px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -.038em;
  line-height: 1.12;
}
.halt p {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--lit-2);
}

/* ---------- faq ---------- */

.faq { display: grid; gap: 9px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 17px 22px;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--ink-4);
  font-weight: 500;
}
.faq details[open] summary::after { content: "−"; }
.faq p {
  margin-top: 11px;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--ink-2);
}
.faq a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- closer ---------- */

.closer { text-align: center; }
.closer h2 {
  max-width: 22ch;
  margin-inline: auto;
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 600;
  letter-spacing: -.042em;
  line-height: 1.08;
}
.closer__sub {
  margin: 16px auto 0;
  max-width: 46ch;
  font-size: 16.5px;
  color: var(--lit-2);
}

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

.foot {
  background: var(--panel);
  color: var(--lit-4);
  padding-block: 26px;
  border-top: 1px solid var(--panel-rule-soft);
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
}
.foot .wordmark { margin-right: auto; }
.foot a { color: var(--lit-3); text-decoration: none; }
.foot a:hover { color: var(--lit-2); }
.foot__line { color: var(--lit-4); }

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

@media (max-width: 1000px) {
  .wall { columns: 3; }
  .line { grid-template-columns: auto minmax(18px, 1fr) auto 180px; }
}

@media (max-width: 820px) {
  :root { --gutter: 20px; }
  .deck-section { padding-top: 54px; }
  .deck-section--close { padding-block: 62px 70px; }
  .band { padding-block: 58px; }
  .band--tight { padding-block: 48px; }
  .band:first-of-type { padding-top: 124px; }

  .beats { grid-template-columns: 1fr; }
  .wall { columns: 2; }
  .vs { grid-template-columns: 1fr; gap: 12px; }
  .vs__b { padding-left: 16px; }

  .cta__form { flex-direction: column; }
  .btn--lg { width: 100%; }

  .switch-head { margin-top: 48px; }
  .card { transform: translateY(52px); }

  /* The stamp moves under its line rather than fighting it for width. */
  .line {
    grid-template-columns: auto minmax(16px, 1fr) auto;
    row-gap: 3px;
    padding: 12px 18px;
  }
  .line__stamp { grid-column: 1 / -1; text-align: left; }
  .line__stamp:empty { display: none; }
  .deck__head, .card__foot { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- legal pages ----------
 * Imprint and privacy notice, deliberately the quietest thing on the site.
 *
 * They borrow nothing from the landing page's furniture: no kicker, no display
 * headline, no card. `.card` is the checklist mock and carries a `translateY`
 * that hangs it into the next section — correct there, nonsense under a
 * heading about VAT identification numbers — and a white panel with a shadow
 * asks for attention that a legal page should not be asking for.
 *
 * What is left is a narrow column of text with hairline rules between the
 * sections. Somebody who came here wants to read four facts and leave. */

.doc {
  padding-block: 44px 76px;
}
.doc .shell { max-width: 720px; }

.doc .head { max-width: none; margin-bottom: 0; }
.doc .head h2 {
  margin-top: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.35;
}
.doc .head__sub {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

.doc__body {
  margin-top: 26px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.doc__body h3 {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.014em;
}
.doc__body h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc__body p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-2);
}
.doc__body strong { color: var(--ink); font-weight: 600; }
.doc__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.doc__body .mono {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: .02em;
  color: var(--ink);
}

@media (max-width: 820px) {
  .doc { padding-block: 32px 52px; }
  .doc__body h3 { margin-top: 24px; padding-top: 20px; }
}
