/* Yellowgate site styles. Tokens first; components below use only tokens. */
:root {
  --yellow: #FACC15;          /* brand fill; text on it uses --ink (11.6:1) */
  --yellow-hover: #EAB308;
  --yellow-soft: #FEF9C3;     /* tinted bands */
  --yellow-wash: #FFFBEB;     /* very light section background */
  --amber-text: #854D0E;      /* yellow-family text: 6.8:1 on white, 6.4:1 on yellow-soft, 5.8:1 on the hero glow */
  --ink: #111827;             /* main text (17:1 on white) */
  --ink-soft: #1F2937;
  --muted: #4B5563;           /* secondary text (7.5:1 on white) */
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --border: #E7E5E4;
  --border-strong: #D6D3D1;
  --success: #15803D;
  --danger: #B91C1C;
  --ring: #111827;

  --font: 'Plus Jakarta Sans', 'Plus Jakarta Sans Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(17 24 39 / 0.06);
  --shadow: 0 8px 24px -12px rgb(17 24 39 / 0.18), 0 2px 6px rgb(17 24 39 / 0.05);
  --shadow-lg: 0 24px 48px -24px rgb(17 24 39 / 0.28);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --container: 1160px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Arial resized to Plus Jakarta Sans's measurements, so text keeps its line breaks when the web font swaps in. */
@font-face {
  font-family: 'Plus Jakarta Sans Fallback';
  src: local('Arial'), local('ArialMT');
  font-weight: 400 500;
  size-adjust: 104.98%;
  ascent-override: 98.88%;
  descent-override: 21.15%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Plus Jakarta Sans Fallback';
  src: local('Arial Bold'), local('Arial-BoldMT');
  font-weight: 600 800;
  size-adjust: 101.88%;
  ascent-override: 101.89%;
  descent-override: 21.79%;
  line-gap-override: 0%;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 var(--space-3); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); font-weight: 800; margin-bottom: var(--space-4); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-4); }
a { color: inherit; text-underline-offset: 3px; }
ul, ol { margin: 0; padding: 0; }
main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--yellow); }

.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: var(--space-4); top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 640px) { .container { padding-inline: 32px; } }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 18px; height: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }
.btn-primary { background: var(--yellow); color: var(--ink); border-color: rgb(17 24 39 / 0.18); box-shadow: 0 1px 0 rgb(17 24 39 / 0.12); }
.btn-primary:hover { background: var(--yellow-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); }
.btn-primary:hover, .btn-dark:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgb(17 24 39 / 0.5); }
/* After the hover lift, so a pressed button still moves down. */
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--ink); background: rgb(255 255 255 / 0.6); }
.btn .icon { width: 18px; height: 18px; transition: transform 180ms var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgb(231 229 228 / 0.8);
  transition: box-shadow 250ms var(--ease), background-color 250ms var(--ease);
}
.site-header.is-scrolled { background: rgb(255 255 255 / 0.94); box-shadow: 0 10px 24px -18px rgb(17 24 39 / 0.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; min-height: 44px; }
.brand-mark { width: 32px; height: 32px; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg); color: var(--ink); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { display: none; }
.js .site-nav.is-open {
  display: flex; flex-direction: column; gap: var(--space-4);
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: var(--space-4) 20px var(--space-5);
  box-shadow: var(--shadow);
}
.nav-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.nav-list a {
  display: flex; align-items: center; min-height: 48px; padding: 0 var(--space-3);
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; color: var(--ink-soft);
  transition: background-color 150ms var(--ease);
}
.nav-list a:hover { background: var(--yellow-wash); }
.nav-list a[aria-current="page"] { background: var(--yellow-soft); color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav .btn[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Without JavaScript the menu is always shown, stacked under the header.
   This uses the scripting media query, not the .js class: main.js is deferred and can add
   that class after the first paint, which would show the menu and then collapse it on phones. */
@media (scripting: none) {
  .nav-toggle { display: none; }
  .site-nav { display: block; width: 100%; padding-bottom: var(--space-4); }
  .header-inner { flex-wrap: wrap; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .js .site-nav.is-open, html:not(.js) .site-nav {
    display: flex; flex-direction: row; align-items: center; gap: var(--space-5);
    position: static; padding: 0; border: 0; box-shadow: none; background: none; width: auto;
  }
  .nav-list { flex-direction: row; gap: var(--space-1); }
  .nav-list a { min-height: 44px; padding: 0 14px; font-size: 0.9688rem; }
  html:not(.js) .header-inner { flex-wrap: nowrap; }
}

/* Sections */
.section { padding-block: clamp(40px, 6vw, 72px); }
/* Two plain sections in a row share one gap instead of two. */
.section:not(.section-tint):not(.band-yellow) + .section:not(.section-tint):not(.band-yellow) { padding-top: 0; }
/* Next to a tinted section, whose own padding already fades to white, plain sections and the hero keep only a small gap. */
:is(.section-tint, .band-yellow) + .section:not(.section-tint):not(.band-yellow) { padding-top: clamp(8px, 2vw, 24px); }
.section:not(.section-tint):not(.band-yellow):has(+ :is(.section-tint, .band-yellow)) { padding-bottom: clamp(8px, 2vw, 24px); }
.hero:has(+ :is(.section-tint, .band-yellow)) { padding-bottom: clamp(24px, 3vw, 32px); }
/* Tinted sections fade in and out at the edges, so colour changes are gentle. The fade stays shorter than the padding at every width. */
.section-tint, .band-yellow {
  --fill: var(--yellow-wash); --fade: clamp(24px, 4.5vw, 56px); --from: var(--bg); --to: var(--bg);
  background: linear-gradient(180deg, var(--from), var(--fill) var(--fade), var(--fill) calc(100% - var(--fade)), var(--to));
}
.band-yellow { --fill: var(--yellow-soft); --fade: clamp(28px, 5vw, 64px); }
/* Two tinted sections in a row: the colour carries across instead of dipping to white, and they share one gap. */
:is(.section-tint, .band-yellow):has(+ :is(.section-tint, .band-yellow)) { --to: var(--yellow-wash); padding-bottom: clamp(20px, 3vw, 36px); }
:is(.section-tint, .band-yellow) + :is(.section-tint, .band-yellow) { --from: var(--yellow-wash); padding-top: clamp(20px, 3vw, 36px); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head :where(p) { color: var(--muted); font-size: 1.0625rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--space-3);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-text);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--muted); max-width: 60ch; }
.mark {
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Hero */
.hero { position: relative; overflow: clip; padding-block: clamp(32px, 5vw, 56px) clamp(40px, 6vw, 72px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px; z-index: -1;
  background: radial-gradient(closest-side, rgb(250 204 21 / 0.35), rgb(250 204 21 / 0));
}
.hero-grid { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 960px) { .hero-copy { padding-top: 24px; } }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: var(--space-7); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.hero-actions-center { justify-content: center; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: 20px; color: var(--muted); font-weight: 500; font-size: 0.9688rem; }
.hero-points li, .checklist li { display: flex; gap: 10px; align-items: flex-start; }
.hero-points .icon, .checklist .icon { width: 20px; height: 20px; color: var(--success); margin-top: 3px; }
.page-hero { padding-block: clamp(32px, 5vw, 56px); }

/* Hero illustration (decorative mock-ups) */
.hero-visual { position: relative; display: grid; gap: 14px; max-width: 480px; width: 100%; justify-self: center; }
.mock {
  background: rgb(255 255 255 / 0.9); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: var(--space-4) var(--space-5); font-size: 0.9375rem;
}
/* On phones, keep only the first mock-up in each hero so the page stays short. */
@media (max-width: 639px) {
  .hero-visual .mock:nth-child(n+2), .hero .panel { display: none; }
}
@media (min-width: 960px) {
  .mock:nth-child(1) { margin-right: 48px; }
  .mock:nth-child(2) { margin-left: 56px; }
  .mock:nth-child(3) { margin-right: 24px; margin-left: 16px; }
}
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); font-weight: 700; font-size: 0.875rem; }
.mock-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--success); font-size: 0.8125rem; }
.mock-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.bubble { padding: 10px 14px; border-radius: 14px; max-width: 90%; margin-bottom: var(--space-2); line-height: 1.45; }
.bubble-in { background: #F5F5F4; border-bottom-left-radius: 4px; }
.bubble-out { background: var(--yellow-soft); margin-left: auto; border-bottom-right-radius: 4px; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; background: var(--yellow-soft); color: var(--ink); }
.tag-dark { background: var(--ink); color: #fff; }
.mock-title { font-weight: 700; margin: 0 0 4px; }
.mock-meta { color: var(--muted); font-size: 0.875rem; margin: 0; }
.flow { display: grid; gap: 8px; margin: 0; list-style: none; }
.flow li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.875rem; }
.flow li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); }

/* Cards */
.card-grid { list-style: none; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-5); box-shadow: var(--shadow-sm);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.card p { color: var(--muted); }
.card-link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card-link-card h3 a { text-decoration: none; }
.card-link-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link-card:focus-within { outline: 3px solid var(--ring); outline-offset: 3px; }
.card-link-card h3 a:focus-visible { outline: none; }
.card-kicker { margin: 0 0 4px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber-text); }
.card-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); margin-top: var(--space-2); }
.card-more .icon { width: 18px; height: 18px; transition: transform 180ms var(--ease); }
.card-link-card:hover .card-more .icon { transform: translateX(3px); }
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--yellow-soft); color: var(--ink); margin-bottom: var(--space-3);
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}
.card:hover .icon-badge, .feature:hover .icon-badge { background: var(--yellow); transform: rotate(-4deg); }
.feature-grid { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature {
  padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.feature h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; }

/* Split layouts */
.split { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-7); } }
.checklist { list-style: none; display: grid; gap: 10px; margin: var(--space-4) 0 var(--space-5); }

/* Lead list mock-up */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); font-weight: 700; }
.panel-row { display: grid; grid-template-columns: 1fr auto; gap: 4px var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); }
.panel-row:last-child { border-bottom: 0; }
.panel-row strong { font-weight: 700; }
.panel-row span { color: var(--muted); font-size: 0.875rem; grid-column: 1; }
.score { grid-row: 1 / span 2; grid-column: 2; display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 32px; border-radius: 999px; font-weight: 800; font-size: 0.875rem; background: var(--yellow); color: var(--ink); }
.score.warm { background: var(--yellow-soft); }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li {
  counter-increment: step; position: relative; padding: 20px var(--space-5); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.steps li:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; margin-bottom: var(--space-3);
  background: var(--yellow); color: var(--ink); font-weight: 800;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }

/* Values */
.values { list-style: none; display: grid; gap: var(--space-5) var(--space-6); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.values li { display: grid; gap: var(--space-2); }
.values .icon-badge { margin-bottom: var(--space-2); }
.values p { color: var(--muted); margin: 0; }

/* Segments / pills */
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.pill-list li { padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-weight: 600; }

/* Sources note */
.source-list { list-style: none; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); color: var(--muted); }
.source-list li { padding-left: 18px; position: relative; }
.source-list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow-hover); }
.small-note { color: var(--muted); font-size: 0.9375rem; }
.hero-actions + .small-note { margin-top: var(--space-4); }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: var(--space-3); }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); transition: border-color 180ms var(--ease); }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  min-height: 52px; padding: 14px 20px; font-weight: 700; border-radius: var(--radius);
}
.faq details[open] > div { animation: rise 280ms var(--ease) both; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Call to action band */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 36px 28px; display: grid; gap: var(--space-4); align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgb(250 204 21 / 0.18); }
.cta-band h2 { margin-bottom: var(--space-2); }
.cta-band p { color: #D1D5DB; margin: 0; max-width: 56ch; }
.cta-band .btn { position: relative; z-index: 1; justify-self: start; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; padding: 44px 56px; } }

/* Contact */
.contact-grid { display: grid; gap: var(--space-7); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; } }
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: var(--space-5); }
.field label { font-weight: 700; font-size: 0.9688rem; }
.field .optional { font-weight: 500; color: var(--muted); }
.field-hint { color: var(--muted); font-size: 0.875rem; margin: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #78716C; border-radius: 10px;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #44403C; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-color: var(--ink); }
.field [aria-invalid="true"], .field [aria-invalid="true"]:hover, .field [aria-invalid="true"]:focus-visible { border-color: var(--danger); }
.field-error { display: flex; gap: 6px; align-items: center; color: var(--danger); font-size: 0.9063rem; font-weight: 600; margin: 0; }
.field-error[hidden] { display: none; }
.field-row { display: grid; gap: 0 var(--space-5); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: 0.9375rem; }
.form-status { margin: var(--space-4) 0 0; font-weight: 600; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }
.aside-card { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--yellow-wash); border: 1px solid #FDE68A; }
.aside-card h2 { font-size: 1.375rem; }
.aside-card ol { padding-left: 1.25rem; display: grid; gap: var(--space-2); color: var(--ink-soft); }

/* Prose pages (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: var(--space-7); }
.prose ul { padding-left: 1.25rem; margin-bottom: var(--space-4); display: grid; gap: 6px; }
.prose p:not(.eyebrow), .prose li { color: var(--ink-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #FAFAF9; padding-top: var(--space-7); }
.footer-grid { display: grid; gap: var(--space-5); padding-bottom: var(--space-6); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand p { color: var(--muted); max-width: 42ch; margin-top: var(--space-3); }
.footer-email { font-weight: 700; color: var(--ink); }
.footer-title { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: var(--space-3); }
.footer-nav ul { list-style: none; display: grid; gap: 2px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; color: var(--ink-soft); }
.footer-nav a:hover { text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--border); padding-block: 20px var(--space-5); color: var(--muted); font-size: 0.875rem; }
.footer-legal p { margin: 0 0 var(--space-2); }

/* Motion. Animations use the `translate` property, so hover effects that use `transform` still work. */
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes float { from { translate: 0 0; } to { translate: 0 -6px; } }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgb(21 128 61 / 0.45); } to { box-shadow: 0 0 0 7px rgb(21 128 61 / 0); } }
@keyframes sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

/* Hero: text and mock-ups ease in on load, one after another. */
.hero h1 { animation: rise 600ms var(--ease) both; }
.hero .lead { animation: rise 600ms var(--ease) 90ms both; }
.hero .hero-actions { animation: rise 600ms var(--ease) 180ms both; }
.hero :is(.hero-points, .small-note) { animation: rise 600ms var(--ease) 260ms both; }
.hero h1 .mark { animation: sweep 700ms var(--ease) 450ms both; }
.hero .panel { animation: rise 700ms var(--ease) 250ms both; }
/* One gentle bob each, finished well within 5 s (WCAG 2.2.2); ends at translate 0 like `rise`. */
.hero-visual .mock { animation: rise 650ms var(--ease) both, float 1.4s ease-in-out 2 alternate; }
.hero-visual .mock:nth-child(1) { animation-delay: 200ms, 1.2s; }
.hero-visual .mock:nth-child(2) { animation-delay: 350ms, 1.5s; }
.hero-visual .mock:nth-child(3) { animation-delay: 500ms, 1.8s; }
/* Chat bubbles appear in turn, like a conversation. */
.hero .bubble { animation: rise 450ms var(--ease) both; }
.hero .bubble:nth-of-type(1) { animation-delay: 600ms; }
.hero .bubble:nth-of-type(2) { animation-delay: 1100ms; }
.hero .bubble:nth-of-type(3) { animation-delay: 1600ms; }
.hero .bubble:nth-of-type(4) { animation-delay: 2100ms; }
/* Only a live "Online" dot pulses, twice, then rests. */
.mock-status.is-live::before { animation: pulse 2s ease-out 800ms 2; }

/* Scroll reveal: only hides content when JavaScript is running. Items that come into view
   together follow each other; main.js numbers them with data-i. */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { animation: rise 550ms var(--ease) calc(var(--i, 0) * 70ms) both; }
.reveal[data-i="1"] { --i: 1; }
.reveal[data-i="2"] { --i: 2; }
.reveal[data-i="3"] { --i: 3; }
.reveal[data-i="4"] { --i: 4; }
.reveal[data-i="5"] { --i: 5; }

@media print {
  *, *::before, *::after { animation: none !important; }
  .js .reveal { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; }
}

/* 404 */
.not-found { min-height: 50vh; display: grid; place-content: center; text-align: center; }
