/* The content sections — features, blog, help centre.
 *
 * Separate from legal.css on purpose, but no longer separate in palette: both
 * files now carry the teal the product and the landing page share, so a
 * footer link no longer lands the reader on a different-looking site. These
 * tokens are the current ones, taken from the app's globals.css and the
 * landing page's own ink — change them there first.
 *
 * The landing page keeps its inline styles: it is one art-directed page out
 * of a design handoff, and it is not trying to be a system. */
:root {
  --page: #f4f8fa;
  --chrome: #eaf6f9;
  --section: #edf3f5;
  --raised: #ffffff;
  --foreground: #0e3d4c;
  --body-foreground: #35525c;
  --muted-foreground: #48606b;
  --primary: #0e4a5e;
  --primary-hover: #146078;
  --primary-foreground: #eaf6f9;
  --hairline: #dce7eb;
  --tint: #cfe9f0;      /* the landing hero's panel */
  --deep: #0e3d4c;      /* the landing footer's panel */
  --deep-foreground: #eaf6f9;
  --font-display: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}
/* latin-ext */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin-ext.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-normal-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-normal-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--body-foreground);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* Visible only once tabbed to — the first stop on every page, and the one
   thing a keyboard user needs that a mouse user never sees. */
.skip {
  position: absolute; left: -9999px;
  background: var(--primary); color: var(--primary-foreground);
  padding: 12px 20px; border-radius: 0 0 12px 0; z-index: 10;
}
.skip:focus { left: 0; top: 0; }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary-hover); }

/* ---------------------------------------------------------------- chrome
   The landing page is one art-directed column of rounded panels on a tinted
   page. These pages are long-form text, which wants a narrower measure than
   1280px — so they borrow the vocabulary rather than the grid: the same
   centred column, the same 22px panels, the same pill CTA, and prose that
   sits *on* a card rather than directly on the page. */
.bar {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 14px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 46px; width: auto; display: block; }
.sections { display: flex; gap: clamp(14px, 2.4vw, 30px); flex-wrap: wrap; }
.sections a {
  font-size: 13.5px; font-weight: 500; color: var(--body-foreground);
  text-decoration: none; transition: color 0.3s var(--ease);
}
.sections a:hover { color: var(--foreground); }
.cta {
  background: var(--primary); color: var(--primary-foreground);
  border-radius: 11px; padding: 11px 20px;
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: background 0.4s var(--ease);
}
.cta:hover { background: var(--primary-hover); color: #fff; }

/* ------------------------------------------------------------------ page */
/* The same 1280px column the landing page and the header bar use. A content
   page that is 860px wide under a 1280px header reads as a different site;
   the reading measure is set on .prose below instead, where it belongs. */
.page {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 0 clamp(70px, 8vw, 110px);
}
.crumbs {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted-foreground);
  margin: 0 0 14px; padding-left: 6px;
}
.crumbs a { color: var(--muted-foreground); }
.crumbs span[aria-hidden] { opacity: 0.5; }

/* The hero panel, straight off the landing page: tinted, 22px, generous. */
.kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary); margin: 0 0 12px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08;
  letter-spacing: -0.03em; font-weight: 700;
  color: var(--primary); margin: 0; text-wrap: balance;
}
.standfirst {
  font-size: 16.5px; line-height: 1.65; color: var(--body-foreground);
  margin: 18px 0 0; max-width: 60ch;
}
.meta { font-size: 13.5px; color: var(--muted-foreground); margin: 14px 0 0; }

.page > .kicker,
.page > h1,
.page > .standfirst,
.page > .meta { position: relative; z-index: 1; }

/* The hero card wraps whatever the generator put before .prose. Done with a
   wrapper rather than a pseudo-element so the panel can grow with the text. */
.hero {
  background: var(--tint);
  border-radius: 22px;
  padding: clamp(30px, 4.2vw, 52px);
  margin: 0 0 18px;
}
/* A hero carrying a figure is the landing page's own two-column block:
   text left, the drawing right, collapsing to one column on a phone where
   a 480px-wide screenshot beside 40 characters of text helps nobody. */
.hero-fig {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}
.figure { display: flex; justify-content: center; }
.figure > * { box-shadow: 0 1px 2px rgba(14, 61, 76, 0.06), 0 12px 28px -12px rgba(14, 61, 76, 0.22); }

/* Prose on a raised card, so the reading column sits on the page the way the
   landing page's panels do. */
.prose {
  background: var(--raised);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 48px);
}
/* Widening the column must not widen the line. Prose keeps a readable
   measure inside the wide card; figures and tables are free to use the
   whole width, which is the point of widening it. */
.prose > p,
.prose > ul,
.prose > ol,
.prose > h2,
.prose > h3,
.prose > blockquote { max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.02em;
  color: var(--primary); margin: 40px 0 12px;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--foreground); margin: 30px 0 8px;
}
.prose p, .prose li { font-size: 16.5px; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--primary); }
.prose strong { color: var(--foreground); font-weight: 700; }
.prose code {
  background: var(--section); border-radius: 6px; padding: 2px 6px;
  font-size: 0.9em; font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.prose blockquote {
  margin: 26px 0; padding: 18px 22px;
  background: var(--section); border-radius: 14px;
  color: var(--body-foreground);
}
.prose blockquote > :first-child { margin-top: 0; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose hr { border: 0; height: 1px; background: var(--hairline); margin: 40px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 11px 12px; }
.prose thead th { background: var(--section); font-weight: 700; color: var(--foreground); }
.prose tbody tr + tr td { border-top: 1px solid var(--hairline); }

/* ----------------------------------------------------------- index cards */
.cards { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.card { background: var(--raised); border-radius: 18px; }
.card a {
  display: block; padding: 24px 26px; text-decoration: none; color: inherit;
  border-radius: 18px; transition: background 0.3s var(--ease);
}
.card a:hover { background: var(--section); }
.card h3 {
  font-family: var(--font-display);
  font-size: 18.5px; font-weight: 700; color: var(--primary);
  margin: 0 0 6px; letter-spacing: -0.015em;
}
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body-foreground); }
.card .meta { margin: 10px 0 0; font-size: 13px; }

/* ------------------------------------------------------- keep reading
   The cross-link rail every article ends on. It sits after the prose and
   before the pilot-call panel, because a reader who wants a second page
   wants it where the first one ran out, not in a sidebar they scrolled
   past. Each card names its section: being sent to a feature page and
   being sent to instructions are different offers, and the reader should
   know which one they are taking before they click. */
.related { margin: 54px 0 0; padding: 38px 0 0; border-top: 1px solid var(--hairline); }
.related h2 {
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-foreground); margin: 0 0 16px; padding-left: 6px;
}
.related .cards {
  margin-bottom: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.card .tag {
  margin: 0 0 7px; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--primary);
}
.page > h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em; color: var(--primary); margin: 34px 0 14px;
  padding-left: 6px;
}

/* --------------------------------------------------------- closing panel
   The landing page ends on a deep-teal block with the call to action in it.
   Every content page ends on the same one, so a reader who arrived from a
   search has the same next step as a reader who came down the home page. */
.tail {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto clamp(28px, 4vw, 44px);
  background: var(--deep); color: var(--deep-foreground);
  border-radius: 22px; padding: clamp(28px, 3.6vw, 44px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.tail h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.02em;
  color: var(--deep-foreground); margin: 0 0 6px;
}
.tail p { margin: 0; font-size: 15px; line-height: 1.6; color: #a9dcea; max-width: 46ch; }
.tail a {
  flex: none;
  background: var(--deep-foreground); color: var(--deep);
  border-radius: 12px; padding: 14px 24px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: background 0.4s var(--ease);
}
.tail a:hover { background: #ffffff; color: var(--deep); }

/* ---------------------------------------------------------------- footer */
.foot {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto; padding: 0 0 28px;
}
.foot-in {
  display: flex; gap: 32px; flex-wrap: wrap; justify-content: space-between;
  padding: 0 6px;
}
.foot p { margin: 0; font-size: 14.5px; color: var(--muted-foreground); }
.foot-brand {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary) !important; margin-bottom: 4px !important;
}
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; align-content: flex-start; }
.foot nav a { font-size: 14.5px; color: var(--body-foreground); text-decoration: none; }
.foot nav a:hover { color: var(--foreground); text-decoration: underline; }
.foot-fine {
  margin: 26px 0 0; padding: 18px 6px 0;
  border-top: 1px solid var(--hairline);
  font-size: 13px; color: var(--muted-foreground);
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------------ form
   The build-partner application. Inputs are 16px on purpose: anything
   smaller and iOS Safari zooms the page on focus, which on a phone reads
   as the form being broken. Focus rings are visible and not removed --
   this form is the one thing on the site somebody has to operate. */
.form { margin: 44px 0 0; padding: 36px 0 0; border-top: 1px solid var(--hairline); }
.form h2 { margin-top: 0; }
.form-note { font-size: 14px; line-height: 1.6; color: var(--muted-foreground); margin: 0 0 22px; max-width: 60ch; }
.form .submit + .form-note { margin: 16px 0 0; }
.field { display: flex; flex-direction: column; gap: 7px; margin: 0 0 18px; max-width: 60ch; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 18px; max-width: 60ch; }
.row .field { max-width: none; }
.field label { font-size: 14px; font-weight: 600; color: var(--foreground); }
.req { color: #8c3a36; }
.field input,
.field textarea {
  font: inherit; font-size: 16px; line-height: 1.5;
  color: var(--foreground); background: var(--page);
  border: 1px solid var(--hairline); border-radius: 11px;
  padding: 12px 14px; width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 74, 94, 0.18);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #8c3a36; }
.hint { font-size: 13px; color: var(--muted-foreground); margin: 0; }
.field .err { font-size: 13px; font-weight: 600; color: #8c3a36; margin: 0; }
/* The honeypot. Off-screen rather than display:none, because some bots skip
   hidden fields; a real person never reaches it, as it is aria-hidden and
   not in the tab order. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit {
  font: inherit; font-size: 16px; font-weight: 650;
  background: var(--primary); color: var(--primary-foreground);
  border: 0; border-radius: 13px; padding: 16px 28px; cursor: pointer;
  transition: background 0.3s var(--ease);
}
.submit:hover { background: var(--primary-hover); }
.submit:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.submit[disabled] { opacity: 0.65; cursor: progress; }
.form-status {
  font-size: 15px; line-height: 1.6; font-weight: 600;
  border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; max-width: 60ch;
}
.form-status[data-tone="ok"] { background: #d2ecf3; color: #0f4757; }
.form-status[data-tone="bad"] { background: #f3e3e1; color: #7a322e; }
