/* Blank. website
   Tokens mirror docs/BUILD_SPEC.md §7 (light / dark). One family, no accent color,
   black stadium buttons, white r16 cards on a soft grey page. */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light dark;

  --page: #F1F3F4;
  --surface: #FFFFFF;
  --surface-muted: #EBEBED;
  --surface-elevated: #FFFFFF;
  --ink: #111111;
  --ink-2: #6B6B70;          /* 4.76:1 on page, 5.30:1 on white */
  --ink-3: #8A8A8E;          /* decorative only: under 4.5:1 */
  --cta: #111111;
  --on-cta: #F1F3F4;         /* text on cta = page color */
  --hero-from: #0B080B;
  --hero-to: #2F2F2F;
  --neg: #C9534A;
  --neg-ink: #B0433B;        /* neg is 4.36:1 on white; error text uses this AA step (5.66:1) */
  --neg-soft: #EAC4C1;
  --neg-wash: #F7E4E2;
  --hairline: rgba(0, 0, 0, 0.08);
  --hairline-strong: rgba(0, 0, 0, 0.14);
  --focus: #111111;

  --r-hero: 36px;
  --r-screen: 28px;
  --r-card: 16px;
  --r-field: 12px;
  --r-pill: 999px;

  --gutter: clamp(16px, 4.5vw, 40px);
  --measure: 680px;
  --card-pad: clamp(20px, 5vw, 40px);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --dur: 200ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --surface: #111111;
    --surface-muted: #1C1C1E;
    --surface-elevated: #2F2F2F;
    --ink: #F5F5F7;
    --ink-2: #A1A1A6;        /* 8.16:1 on page */
    --ink-3: #6E6E73;
    --cta: #F5F5F7;
    --on-cta: #000000;
    --neg: #E08A82;
    --neg-ink: #E08A82;
    --neg-soft: #EAC4C1;
    --neg-wash: rgba(224, 138, 130, 0.14);
    --hairline: rgba(255, 255, 255, 0.10);
    --hairline-strong: rgba(255, 255, 255, 0.18);
    --focus: #F5F5F7;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

strong {
  font-weight: 700;
}

svg {
  display: block;
}

::selection {
  background: var(--ink);
  color: var(--page);
}

:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: 24px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 10;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--cta);
  color: var(--on-cta);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 1120px);
  margin-inline: auto;
}

.wrap--doc {
  width: min(100% - 2 * var(--gutter), calc(var(--measure) + 2 * var(--card-pad)));
  margin-inline: auto;
}

/* ── Type roles ─────────────────────────────────────────────────────────── */
.eyebrow {
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.wordmark {
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -0.045em;
  text-decoration: none;
  color: var(--ink);
  border-radius: 6px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav li + li::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-inline: 12px;
  border-radius: 50%;
  background: var(--ink-3);
  vertical-align: middle;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 6px;
  transition: color var(--dur) var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

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

.btn--primary:hover {
  opacity: 0.86;
}

.btn--secondary {
  min-height: 47px;
  padding: 0 22px;
  font-size: 1rem;
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn--secondary:hover {
  background: var(--hairline);
}

.btn--light {
  min-height: 47px;
  padding: 0 20px;
  font-size: 1rem;
  background: #F5F5F7;
  color: #111111;
}

.btn--light:hover {
  background: #FFFFFF;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* App Store badge: plain text, no Apple artwork. The <a> has no href until the listing is live
   (and says "Coming soon"); on release day add href="https://apps.apple.com/app/id6815487245" and
   "Download on the", which turns on the link styles. */
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58px;
  padding: 8px 28px 9px;
  border-radius: var(--r-pill);
  background: var(--cta);
  color: var(--on-cta);
  text-decoration: none;
  line-height: 1.1;
}

.store__small {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.78;
}

.store__big {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.store[href] {
  cursor: pointer;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.store[href]:hover {
  opacity: 0.86;
}

.store[href]:active {
  transform: scale(0.98);
}

.store:not([href]) {
  cursor: default;
}

/* ── Landing: hero ──────────────────────────────────────────────────────── */
.hero {
  display: grid;
  gap: 28px;
  padding-block: 20px 72px;
}

.hero__pip {
  order: -1;
  width: 88px;
}

.pip {
  width: 100%;
  height: auto;
  overflow: visible;
}

.pip__body {
  fill: var(--ink);
}

.pip__eye {
  fill: none;
  stroke: var(--page);
  stroke-width: 5;
  stroke-linecap: round;
}

.pip--hero .pip__eye {
  stroke-width: 3.6;
}

.hero__title {
  font-size: clamp(2.25rem, 1.25rem + 4.6vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 13ch;
}

.caret {
  display: inline-block;
  width: 0.07em;
  height: 0.82em;
  margin-left: 0.1em;
  border-radius: 2px;
  background: currentColor;
  vertical-align: -0.06em;
  animation: caret-blink 1.1s steps(1, end) 4 forwards;
}

@keyframes caret-blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}

.hero__lede {
  margin-top: 20px;
  max-width: 30ch;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.45;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 32px;
}

.hero__note {
  margin-top: 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 48px;
    min-height: min(600px, 72vh);
    padding-block: 24px 96px;
  }

  .hero__pip {
    order: 0;
    width: min(100%, 340px);
    justify-self: center;
  }
}

/* ── Landing: how it works ──────────────────────────────────────────────── */
.how {
  padding-block: 8px 24px;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 36px;
}

.section-title {
  margin-top: 10px;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 56px;
}

.step {
  display: grid;
  gap: 22px;
  max-width: 460px;
}

.step__num {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.step__title {
  margin-top: 6px;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.step__body {
  margin-top: 8px;
  color: var(--ink-2);
  line-height: 1.55;
}

@media (min-width: 640px) and (max-width: 959px) {
  .steps {
    gap: 64px;
  }

  .step {
    max-width: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 32px;
  }
}

@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 22px 24px;
  }

  /* Subgrid keeps the three mock-ups the same height and their captions on one line. */
  .step {
    max-width: none;
    grid-row: span 2;
    grid-template-rows: subgrid;
    align-content: start;
  }

  .step .screen {
    min-height: 468px;
  }
}

/* Product mock-ups. Built in HTML so they stay sharp and follow the theme. */
.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: var(--r-screen);
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px var(--hairline);
  overflow: hidden;
  font-size: 0.9375rem;
  line-height: 1.4;
}

/* 01: lock screen */
.screen--lock {
  min-height: 360px;
  justify-content: flex-start;
  padding: 30px 14px 20px;
  background: linear-gradient(165deg, var(--hero-from) 0%, var(--hero-to) 100%);
  box-shadow: none;
  color: #F5F5F7;
}

.lock__day {
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(245, 245, 247, 0.72);
}

.lock__time {
  text-align: center;
  font-size: 4.25rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

.notif {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 56px;
  padding: 12px 14px 13px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.notif__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #F5F5F7;
}

.notif__icon svg {
  width: 27px;
  height: 27px;
}

.notif__icon .pip__body {
  fill: #111111;
}

.notif__icon .pip__eye {
  stroke: #F5F5F7;
  stroke-width: 6;
}

.notif__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
}

.notif__time {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(245, 245, 247, 0.66);
}

.notif__body {
  margin-top: 1px;
  color: rgba(245, 245, 247, 0.94);
}

.lock__hint {
  margin-top: auto;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(245, 245, 247, 0.6);
}

/* 02: a scene in progress */
.scene {
  padding: 14px 16px 15px;
  border-radius: var(--r-card);
  background: var(--surface-elevated);
}

.scene__who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
}

.scene__who b {
  color: var(--ink);
  font-weight: 700;
}

.scene__setting {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.scene__job {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--hairline);
  font-size: 0.875rem;
  font-weight: 600;
}

.scene__job .eyebrow {
  display: block;
  margin-bottom: 3px;
  font-size: 0.6875rem;
}

.bubble {
  max-width: 84%;
  padding: 10px 14px 11px;
  border-radius: 18px 18px 18px 6px;
  background: var(--surface-elevated);
  align-self: flex-start;
}

.bubble--me {
  border-radius: 18px 18px 6px 18px;
  background: var(--cta);
  color: var(--on-cta);
  align-self: flex-end;
}

/* 03: feedback */
.screen--feedback {
  justify-content: center;
}

.fb {
  padding: 18px 18px 19px;
  border-radius: var(--r-card);
  background: var(--surface-elevated);
}

.fb__reveal {
  margin-top: 8px;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.fb__block {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--hairline);
}

.fb__quote {
  margin-top: 5px;
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.fb__why {
  margin-top: 4px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.fb__move {
  margin-top: 5px;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.fb__try {
  margin-top: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ── Landing: beyond the daily ──────────────────────────────────────────── */
.more {
  padding-block: 64px 8px;
}

.features {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.feature {
  padding: 22px 22px 24px;
  border-radius: var(--r-card);
  background: var(--surface);
}

.feature__title {
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.feature__body {
  margin-top: 8px;
  color: var(--ink-2);
  line-height: 1.55;
}

@media (min-width: 960px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

/* ── Landing: footnote ──────────────────────────────────────────────────── */
.footnote {
  padding-block: 72px 8px;
}

.footnote p {
  max-width: 44rem;
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink-2);
}

.footnote strong {
  color: var(--ink);
}

/* ── Inner pages ────────────────────────────────────────────────────────── */
.page-head {
  padding-block: clamp(28px, 7vw, 72px) clamp(28px, 5vw, 44px);
}

.page-title {
  margin-top: 10px;
  font-size: clamp(2.75rem, 1.6rem + 5.4vw, 4.75rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.lede {
  margin-top: 18px;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.meta {
  margin-top: 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
}

.stack {
  display: grid;
  gap: 12px;
}

.stack > * {
  min-width: 0;
}

.card {
  padding: var(--card-pad);
  border-radius: var(--r-card);
  background: var(--surface);
}

.card--dark {
  --focus: #F5F5F7;
  background: linear-gradient(160deg, var(--hero-from) 0%, var(--hero-to) 100%);
  color: #F5F5F7;
}

.card--dark .eyebrow {
  color: rgba(245, 245, 247, 0.7);
}

.card--dark a:not(.btn) {
  color: #F5F5F7;
}

.card--dark ::selection {
  background: #F5F5F7;
  color: #111111;
}

.group-title {
  margin: 36px 0 12px;
  padding-inline: 4px;
}

.group-title:first-child {
  margin-top: 0;
}

/* Long-form text */
.prose {
  font-size: 1rem;
  line-height: 1.65;
}

@media (min-width: 720px) {
  .prose {
    font-size: 1.0625rem;
  }
}

.prose h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.4375rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin-top: 26px;
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 10px;
}

.prose p + p,
.prose p + ul,
.prose p + ol,
.prose ul + p,
.prose ol + p,
.prose p + dl,
.prose dl + p,
.prose ul + ul {
  margin-top: 14px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 8px;
}

.prose li::marker {
  color: var(--ink-3);
}

.prose ol li::marker {
  color: var(--ink-2);
  font-weight: 600;
}

.prose a {
  text-decoration-color: var(--ink-3);
  overflow-wrap: anywhere;
  border-radius: 3px;
  transition: text-decoration-color var(--dur) var(--ease);
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose .muted {
  color: var(--ink-2);
}

.prose .conspicuous {
  font-weight: 600;
}

.path {
  font-weight: 600;
}

/* The short version */
.summary {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.summary li {
  position: relative;
  padding-left: 22px;
  line-height: 1.55;
}

.summary li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.summary-note {
  margin-top: 18px;
  font-size: 0.875rem;
  color: rgba(245, 245, 247, 0.72);
}

/* Contents */
.toc h2 {
  margin-bottom: 12px;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  break-inside: avoid;
}

@media (min-width: 640px) {
  .toc ol {
    columns: 2;
    column-gap: 24px;
  }
}

.toc a {
  display: block;
  padding: 6px 0;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-radius: 6px;
}

.toc a:hover {
  text-decoration: underline;
  text-decoration-color: var(--ink-3);
}

/* Label / value rows */
.facts {
  margin-top: 16px;
  border-top: 1px solid var(--hairline);
}

.facts > div {
  padding-block: 14px;
  border-bottom: 1px solid var(--hairline);
}

.facts dt {
  font-weight: 700;
  line-height: 1.4;
}

.facts dd {
  margin-top: 4px;
  color: var(--ink-2);
}

@media (min-width: 640px) {
  .facts > div {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 20px;
  }

  .facts dd {
    margin-top: 0;
  }
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq {
  padding: 0;
  overflow: hidden;
}

.faq details + details {
  border-top: 1px solid var(--hairline);
}

.faq summary {
  position: relative;
  display: block;
  padding: 18px 56px 18px var(--card-pad);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--dur) var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  background: var(--hairline);
}

.faq summary:focus-visible {
  outline-offset: -3px;
  border-radius: 12px;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: calc(var(--card-pad) + 2px);
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease), margin-top var(--dur) var(--ease);
}

.faq details[open] > summary::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}

.faq__body {
  padding: 0 var(--card-pad) 22px;
}

/* ── Crisis card ────────────────────────────────────────────────────────── */
.crisis h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.crisis__intro {
  margin-top: 10px;
  color: rgba(245, 245, 247, 0.82);
}

.crisis__lines {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

@media (min-width: 560px) {
  .crisis__lines {
    grid-template-columns: 1fr 1fr;
  }
}

.crisis__lines .btn {
  width: 100%;
  flex-direction: column;
  gap: 1px;
  min-height: 58px;
  padding: 8px 18px;
}

.crisis__lines small {
  font-size: 0.75rem;
  font-weight: 500;
  color: #4A4A4F;
}

.crisis__danger {
  margin-top: 18px;
  font-weight: 700;
}

/* ── Support form ───────────────────────────────────────────────────────── */
.contact {
  margin-top: 36px;
}

.contact h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.contact__intro {
  margin-top: 8px;
  color: var(--ink-2);
}

.form {
  margin-top: 24px;
}

.field + .field {
  margin-top: 20px;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.label__opt {
  font-weight: 500;
  color: var(--ink-2);
}

.hint {
  margin-top: -2px;
  margin-bottom: 10px;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.input {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid transparent;
  border-radius: var(--r-field);
  background: var(--page);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.input::placeholder {
  color: var(--ink-2);
  opacity: 1;
}

.input:hover {
  border-color: var(--hairline-strong);
}

.input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--hairline);
}

.input:focus-visible {
  outline: none;
}

.input[aria-invalid="true"] {
  border-color: var(--neg);
}

.input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(201, 83, 74, 0.18);
}

textarea.input {
  min-height: 176px;
  resize: vertical;
}

.field__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
}

.error {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--neg-ink);
}

.error:empty {
  display: none;
}

.counter {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.counter.is-over {
  color: var(--neg-ink);
  font-weight: 700;
}

.hp {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.form__actions .btn {
  width: 100%;
}

@media (min-width: 560px) {
  .form__actions .btn {
    width: auto;
    min-width: 200px;
  }
}

.form__status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r-field);
  background: var(--neg-wash);
  font-weight: 600;
  line-height: 1.45;
}

.form__status:empty {
  display: none;
}

.form__fine {
  margin-top: 22px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.form__fine a {
  text-decoration-color: var(--ink-3);
}

.noscript-note {
  margin-top: 16px;
  font-weight: 600;
}

.sent {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--page);
}

.sent__mark {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
}

.sent__mark circle {
  fill: var(--cta);
}

.sent__mark path {
  fill: none;
  stroke: var(--on-cta);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sent h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.sent h3:focus {
  outline: none;
}

.sent p {
  margin-top: 6px;
  color: var(--ink-2);
}

.sent .btn {
  margin-top: 18px;
}

.jump {
  margin-top: 22px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: clamp(72px, 12vw, 128px);
  border-top: 1px solid var(--hairline);
}

.site-footer__inner {
  display: grid;
  gap: 18px;
  padding-block: 32px 40px;
}

.wordmark--sm {
  font-size: 1.125rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 6px;
  transition: color var(--dur) var(--ease);
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--ink);
}

.copyright {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .site-footer nav {
    justify-self: end;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

/* ── Motion and print ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .caret {
    display: none;
  }
}

@media print {
  body {
    background: #FFFFFF;
    color: #000000;
  }

  .site-header nav,
  .site-footer nav,
  .skip-link,
  .toc,
  .contact,
  .jump {
    display: none !important;
  }

  .card,
  .card--dark {
    background: none;
    color: #000000;
    padding: 0;
    margin-bottom: 18px;
  }

  .card--dark .eyebrow,
  .summary-note {
    color: #000000;
  }

  .prose a::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
