/* ==========================================================================
   Aldwych holding page, round 3 rebuild (Samvad, 25 Nov 2026, 9:46 p.m.:
   "Yes, rebuild").

   Every colour, font, spacing step and corner size is a brand token from
   /tokens.css, a copy of brand/tokens/tokens.css, which the page loads
   before this file. This file adds only layout values of its own: widths,
   the height of the top bar, and two larger gaps made from the spacing
   steps. No other colour, no shadows, no gradients.

   The page is a run of full-width bands, Ink, White, Cloud, White, Ink, in
   place of floating cards. One main button per screen.
   ========================================================================== */
:root {
  --page-width: 72rem;
  --gutter: var(--space-4);
  --bar-height: 72px;
  --section-gap: calc(var(--space-8) + var(--space-4)); /* 48px */
  --block-gap: calc(var(--space-8) + var(--space-2));   /* 40px, a band's space above and below on phones */
}

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

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

/* The page background (Cloud), text colour and body type come from tokens.css. */
body {
  margin: 0;
}

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

/* The headline: Bitter 600. 40 on 44 on phones, 56 on 60 on wide screens (brand change of 25 Nov). */
h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 44px;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

/* Section headings: Bitter, the brand's heading-1 style (24 on 30 on phones, 28 on 34 wider). */
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 30px;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

p,
ul,
ol {
  margin: 0 0 var(--space-4);
}

strong {
  font-weight: 600;
}

/* Links in Cobalt, on White or Cloud only. */
a {
  color: var(--accent-strong);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
}

/* Keeps "Review 30 transactions," and "not 1,000." each on one line. */
.nowrap {
  white-space: nowrap;
}

/* On a phone "Review 30 transactions," is wider than the screen, so that half may wrap.
   "not 1,000." always stays together. */
@media (max-width: 479px) {
  .hero h1 .nowrap:first-child {
    white-space: normal;
  }
}

/* The guide's "small" and "label" styles. */
.small {
  font-size: 14px;
  line-height: 20px;
}

.label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Read out by screen readers, not shown. */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ==========================================================================
   Top bar: Ink, the white wordmark, and an outlined button (the first-screen
   button is the main one).
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: var(--space-4) 0;
}

.bar {
  background: var(--primary);
  color: var(--on-primary);
}

.bar :focus-visible {
  outline-color: var(--on-primary);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: calc(var(--bar-height) - 2 * var(--space-4));
}

.logo-link {
  display: inline-block;
  line-height: 0;
}

/* The wordmark file: 32px high (H3, Samvad, 25 Nov: "Make logo and that bar bigger"). */
.wordmark {
  display: block;
  height: var(--space-8);
  width: auto;
}

.header-link {
  color: var(--on-primary);
  background: transparent;
  border: 1px solid var(--on-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  border-radius: var(--radius-md);
  padding: var(--space-1) var(--space-4);
  min-height: calc(var(--space-8) + var(--space-2));
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.header-link:hover {
  color: var(--ink);
  background: var(--surface);
}

/* ==========================================================================
   The offer strip: Cobalt with white words (5.17 to 1), always in view.
   ========================================================================== */
.offer-strip {
  background: var(--accent);
  color: var(--on-primary);
  font-size: 16px;
  line-height: 24px;
}

.strip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-6);
  padding-top: calc(var(--space-1) + var(--space-2));
  padding-bottom: calc(var(--space-1) + var(--space-2));
}

/* The price larger and bold, in white on Cobalt (5.17 to 1). H3 had it in a white box; Samvad had the box
   removed on 25 Nov ("Yes", to keeping the rest of H3). */
.offer-strip .price-now {
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
}

.strip-link {
  color: var(--on-primary);
  font-weight: 600;
  margin-left: auto;
}

.strip-link:hover {
  color: var(--on-primary);
}

.offer-strip :focus-visible {
  outline-color: var(--on-primary);
}

/* ==========================================================================
   The first screen: Ink, with white words: the headline, the audience line,
   the one main button, then the two made-up spreadsheets.
   ========================================================================== */
.band {
  background: var(--primary);
  color: var(--on-primary);
  padding-bottom: var(--space-8);
}

.band :focus-visible {
  outline-color: var(--on-primary);
}

.hero {
  padding-top: var(--space-8);
}

.season {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  margin: 0 0 var(--space-4);
}

.lede {
  font-size: 20px;
  line-height: 28px;
  margin: var(--space-4) 0 0;
  max-width: 40em;
}

/* The main button: white with Ink words on the Ink first screen. */
.band .hero-button {
  margin-top: var(--space-6);
  color: var(--ink);
  background: var(--surface);
}

.band .hero-button:hover {
  color: var(--ink);
  background: var(--tint);
}

.sheets {
  margin-top: var(--space-6);
}

.sheets .label {
  margin: 0 0 var(--space-2);
}

.sheet-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.sheet {
  margin: 0;
  min-width: 0;
}

.sheet-title {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  margin: 0 0 var(--space-2);
}

.sheet-arrow {
  justify-self: center;
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  transform: rotate(90deg);
}

.caption {
  font-size: 14px;
  line-height: 20px;
  margin: var(--space-2) 0 0;
}

/* ==========================================================================
   The made-up spreadsheets: they look like the Excel the reader knows, in
   the reader's own spreadsheet font, with grid lines, row numbers, column
   letters and sheet tabs. Finished rows carry a tick and a pale green
   category; the one row that needs a person is pale red with "! Needs you".
   Meaning is always in the words and marks too, never in colour alone.
   ========================================================================== */
.xl {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.xl-file {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: var(--space-1) var(--space-2);
  background: var(--background);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-sheet);
  font-size: 12px;
  line-height: 18px;
  color: var(--ink-muted);
}

.xl-icon {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-sm);
  background: var(--done-mark);
}

.xl-scroll {
  overflow-x: auto;
}

.xl-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: var(--font-sheet);
  font-size: 12px;
  line-height: 17px;
  font-variant-numeric: tabular-nums;
}

.xl-grid th,
.xl-grid td {
  border: 1px solid var(--rule);
  padding: 3px 5px;
  height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  font-weight: 400;
}

/* Column widths, set on the column-letter row. */
.xl-grid .letters .rn {
  width: 24px;
}

.xl-grid .letters .c-date {
  width: 50px;
}

.xl-grid .letters .c-desc {
  width: 156px;
}

.xl-grid .letters .c-amt {
  width: 74px;
}

.xl-grid .letters .c-cat {
  width: 95px;
}

.xl-grid .letters th {
  background: var(--background);
  color: var(--ink-muted);
  font-size: 11px;
  text-align: center;
  height: 20px;
  padding: 0;
}

.xl-grid .rn {
  background: var(--background);
  color: var(--ink-muted);
  font-size: 11px;
  text-align: center;
  padding: 0;
}

.xl-grid .head th {
  font-weight: 600;
}

.xl-grid .head .rn {
  font-weight: 400;
}

.xl-grid .c-amt {
  text-align: right;
}

/* A hidden bracket after positive amounts, so their digits line up with (bracketed) money out. */
.xl-grid td.c-amt.pos::after {
  content: ")";
  visibility: hidden;
}

.xl-grid.after .row .c-cat {
  background: var(--done-tint);
}

.xl-grid .review td {
  background: var(--review-tint);
}

.xl-grid .review .c-date {
  border-left: 3px solid var(--review-mark);
}

.tick::before {
  content: "✓ " / "";
  color: var(--done-mark);
  font-weight: 600;
}

.flag {
  font-weight: 600;
}

.flag::before {
  content: "! " / "";
  color: var(--review-mark);
  font-weight: 600;
}

.xl-tabs {
  display: flex;
  margin: 0;
  background: var(--background);
  border-top: 1px solid var(--rule);
  font-family: var(--font-sheet);
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
}

.xl-tabs span {
  padding: var(--space-1) var(--space-4);
  color: var(--ink-muted);
}

.xl-tabs span.on {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--done-mark);
}

/* Phones: the date and note columns step aside, so the description, the amount and the category fit. */
@media (max-width: 719px) {
  .xl-grid .c-date,
  .xl-grid .c-note {
    display: none;
  }

  .xl-grid .review .c-desc {
    border-left: 3px solid var(--review-mark);
  }

  .xl-grid .letters .c-desc {
    width: auto;
  }

  .xl-grid .letters .c-cat {
    width: 104px;
  }

  /* A long bank description wraps onto a second line rather than being cut. */
  .xl-grid td.c-desc {
    white-space: normal;
  }
}

/* ==========================================================================
   The bands below the first screen.
   ========================================================================== */
.band-white,
.band-tint {
  padding: var(--block-gap) 0;
}

.band-white {
  background: var(--surface);
}

/* "What we are building" on a Tint band, with white cards (option 2, Samvad, 25 Nov). Ink on Tint is 15.39 to 1. */
.band-tint {
  background: var(--tint);
}

.split p,
.pair p {
  max-width: 62ch;
}

/* Three numbered steps as Cloud cards with a Cobalt arrow between them (option A, Samvad, 25 Nov).
   The number sits in a Cobalt circle with white figures (5.17 to 1). The arrows sit inside the first
   two steps and are hidden from screen readers, so the list still reads as three steps. */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: var(--space-8) 0 0;
  display: grid;
  gap: calc(var(--space-8) + var(--space-6));
}

.steps li {
  counter-increment: step;
  position: relative;
  background: var(--background);
  border-radius: var(--radius-lg);
  padding: calc(var(--space-6) + var(--space-8) + var(--space-4)) var(--space-6) var(--space-6);
}

.step-arrow {
  position: absolute;
  color: var(--accent);
  width: var(--space-6);
  height: var(--space-6);
  top: 50%;
  right: calc(-1 * (var(--space-8) + var(--space-6) + var(--space-6)) / 2);
  transform: translateY(-50%);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: var(--space-6);
  top: var(--space-6);
  width: var(--space-8);
  height: var(--space-8);
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--accent);
  color: var(--on-primary);
  font-weight: 600;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.aim {
  color: var(--ink-muted);
  margin: var(--space-6) 0 0;
}

/* Four features: white cards on the Tint band, each with a Cobalt line icon. */
.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-6) var(--section-gap);
}

.band-tint .features li {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

/* Simple outline icons with rounded line ends, drawn in the page (nothing downloaded), in a Tint circle. */
.icon-wrap {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.icon {
  display: block;
}

.features strong {
  display: block;
  margin-bottom: var(--space-1);
}

.pair {
  display: grid;
  gap: var(--space-8) var(--section-gap);
}

.pair p {
  margin: 0;
}

/* ==========================================================================
   The full offer: an Ink band near the end, the 2027 introductory price
   ($20, Samvad, 25 Nov), and the button to the form page.
   ========================================================================== */
.offer-band {
  background: var(--primary);
  color: var(--on-primary);
  padding: var(--block-gap) 0;
}

.offer-band :focus-visible {
  outline-color: var(--on-primary);
}

.offer-grid {
  display: grid;
  gap: var(--space-6) var(--section-gap);
}

.price {
  margin: 0;
}

.price .price-now {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
  font-variant-numeric: tabular-nums;
}

.offer-small {
  margin: var(--space-2) 0 var(--space-6);
}

/* On Ink, the offer's button is white with Ink words, like the first screen's. */
.offer-band .offer-button {
  color: var(--ink);
  background: var(--surface);
}

.offer-band .offer-button:hover {
  color: var(--ink);
  background: var(--tint);
}

/* ==========================================================================
   The form page (/early-access/): one left edge; the fields in one column;
   the offer beside the form on wide screens.
   ========================================================================== */
.form-page {
  padding-top: var(--space-8);
}

.form-page h1 {
  margin-bottom: var(--space-6);
}

.form-layout {
  display: grid;
  gap: var(--space-8) var(--section-gap);
  align-items: start;
}

.form-offer {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.form-offer h2 {
  font-size: 20px;
  line-height: 28px;
}

.offer-line {
  font-size: 20px;
  line-height: 28px;
  margin: 0 0 var(--space-4);
}

.form-offer .offer-small {
  margin: var(--space-2) 0 0;
}

.waitlist {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
}

.form-page .waitlist {
  grid-template-columns: 1fr;
  max-width: 480px;
}

.field {
  margin: 0;
}

.field label {
  display: block;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  margin-bottom: var(--space-1);
}

.optional {
  font-weight: 400;
  color: var(--ink-muted);
}

.field input {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--ink-muted);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  min-height: 44px;
  scroll-margin-top: calc(var(--bar-height) + var(--space-8));
}

.field input:hover {
  border-color: var(--ink);
}

.button-link {
  display: inline-block;
}

/* Main buttons: Ink with white words, as the guide asks. */
button,
.button-link {
  font: inherit;
  font-weight: 600;
  color: var(--on-primary);
  background: var(--primary);
  border: 0;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-6);
  min-height: 44px;
  text-decoration: none;
  cursor: pointer;
}

/* Hover: Cobalt with white words (5.17 to 1). */
button:hover,
.button-link:hover {
  background: var(--accent-strong);
  color: var(--on-primary);
}

button:disabled {
  opacity: 0.7;
  cursor: default;
}

.button-link {
  padding: var(--space-2) var(--space-8);
  line-height: 28px;
}

.form-page .waitlist button {
  width: 100%;
  min-height: 48px;
}

.status {
  margin: 0;
  color: var(--ink-muted);
}

.status:empty {
  display: none;
}

/* The message takes focus only so a screen reader reads it; it is not a control. */
.status:focus {
  outline: none;
}

/* Error: Ink words, an Ink bar and a round "!" mark. The words carry the
   message; nothing relies on colour. The "!" is hidden from screen readers. */
.status.is-error {
  color: var(--ink);
  font-weight: 600;
  background: var(--background);
  border-left: var(--space-1) solid var(--ink);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
}

.status.is-error::before {
  content: "!" / "";
  display: inline-grid;
  place-items: center;
  width: var(--space-6);
  height: var(--space-6);
  margin-right: var(--space-2);
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 600;
  vertical-align: -0.2em;
}

.field input[aria-invalid="true"] {
  border: 2px solid var(--ink);
  background: var(--tint);
}

/* Thank-you: the card stays white and the message sits in one Tint box.
   Tint never sits directly on the Cloud page (1.05 to 1). */
.waitlist:has(.status.is-success) {
  background: var(--surface);
}

.status.is-success {
  color: var(--ink);
  background: var(--tint);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
}

/* Trap field: moved off screen, not display:none, so simple robots fill it. */
.trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer: quieter than the page. */
.site-footer {
  padding-top: var(--space-8);
  padding-bottom: var(--section-gap);
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
}

.site-footer p {
  max-width: 62ch;
}

/* ==========================================================================
   Result page for visitors without JavaScript. Its markup comes from
   api/waitlist.js: the Ink bar, then one white card with a page title.
   ========================================================================== */
body:has(.result-title) .site-header {
  position: static;
}

main.page:has(> .result-title) {
  width: min(640px, calc(100% - 2 * var(--gutter)));
  margin: var(--space-8) auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

/* A page title: Bitter, the guide's "heading-1" style (28px on 34px). */
.result-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 34px;
  margin: 0 0 var(--space-2);
}

main.page:has(> .result-title) p:last-child {
  margin: var(--space-6) 0 0;
}

/* ==========================================================================
   Phones: the main buttons run the full width.
   ========================================================================== */
@media (max-width: 719px) {
  .band .hero-button,
  .offer-band .offer-button {
    display: block;
    text-align: center;
  }

  .header-link {
    padding: var(--space-1) var(--space-2);
  }

  /* The steps stack on phones, so each arrow sits under its card and points down.
     This sits after the main .step-arrow rule so that it wins. */
  .step-arrow {
    top: auto;
    right: auto;
    left: 50%;
    bottom: calc(-1 * (var(--space-8) + var(--space-6) + var(--space-6)) / 2);
    transform: translateX(-50%) rotate(90deg);
  }
}

/* ==========================================================================
   Wider screens
   ========================================================================== */
@media (min-width: 720px) {
  :root {
    --gutter: var(--space-8);
    --block-gap: calc(var(--space-8) * 2);
  }

  h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .steps {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .features,
  .pair {
    grid-template-columns: 1fr 1fr;
  }

  .offer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
  }
}

@media (min-width: 960px) {
  h1 {
    font-size: 56px;
    line-height: 60px;
  }

  /* The bigger top bar and offer strip (H3) take 32 more pixels; these four gaps give them back, so the
     two spreadsheets still end inside the first screen of a 1,366 by 768 laptop. */
  .hero {
    padding-top: var(--space-6);
  }

  .season {
    margin-bottom: var(--space-2);
  }

  .band .hero-button {
    margin-top: var(--space-4);
  }

  .sheets {
    margin-top: var(--space-4);
  }

  /* Side by side only when each spreadsheet has room for all five columns. */
  .sheet-pair {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .sheet-arrow {
    align-self: center;
    transform: none;
  }

  .split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: var(--section-gap);
  }

  .split h2 {
    margin: 0;
  }

  .split p {
    margin: 0;
  }

  .form-layout {
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  }
}

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