/* ==========================================================================
   NativeAIPR — styles.css
   ==========================================================================
   Plain CSS. No preprocessor, no build step. Load order: this file only.

   --------------------------------------------------------------------------
   BRAND / THEME BLOCK — EDIT THESE LINES
   TO RESTYLE THE SITE.
   --------------------------------------------------------------------------
   Design direction: newsroom / wire-service. Ink-dark neutrals on warm paper,
   one confident accent (signal red), editorial serif display type, monospace
   for datelines and labels. No gradients, no stock-photo look.
   --------------------------------------------------------------------------

   CONTENTS
   1.  Tokens (colour, type scale, spacing)
   2.  Reset + base
   3.  Layout helpers (.shell, .section)
   4.  Typography classes
   5.  Buttons
   6.  Header + nav + language toggle
   7.  Hero
   8.  Problem section
   9.  Process flow
   10. Deliverables
   11. Pricing tiers
   12. Compliance
   13. Sample document card
   14. Form
   15. Footer
   16. Scroll reveal + reduced motion
   17. Responsive (mobile-first overrides live at the bottom)
   ========================================================================== */

/* ---------------------------------------------------------------- 1. TOKENS */
:root {
  /* Surfaces — warm newsprint paper */
  --color-paper: #faf8f3;
  --color-paper-2: #f3efe7;
  --color-paper-3: #ebe6db;
  --color-ink: #14120f; /* near-black ink */
  --color-ink-2: #221f1a;
  --color-text: #14120f;
  --color-text-muted: #5f5b53;
  --color-text-faint: #8d887e;
  --color-on-ink: #f7f4ee;
  --color-on-ink-muted: #b3ada2;
  --color-border: #d9d3c7;
  --color-border-strong: #bdb5a6;

  /* ACCENT — change this one value to re-brand the colour system */
  --color-accent: #b4321f;
  --color-accent-hover: #92271a;
  --color-accent-soft: #f6e4df;

  /* Fonts. Latin display = Newsreader (editorial serif).
     zh mode swaps to a Chinese-appropriate stack (see [data-lang='zh']). */
  --font-display: 'Newsreader', 'Iowan Old Style', 'Times New Roman', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Fluid type scale */
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  --text-2xl: clamp(1.875rem, 1.3rem + 2.2vw, 3rem);
  --text-3xl: clamp(2.375rem, 1.5rem + 3.6vw, 4.25rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 3px;
  --radius: 5px;
  --shell: 1200px;
  --border: 1px solid var(--color-border);
}

/* Chinese mode: font stack that renders Simplified Chinese well and keeps
   Latin words (NativeAIPR, LinkedIn) legible alongside it. */
html[data-lang='zh'] body {
  --font-display: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'Noto Sans SC', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Heiti SC', sans-serif;
  letter-spacing: 0;
}
/* Chinese has no italics and needs a touch more line-height */
html[data-lang='zh'] body em,
html[data-lang='zh'] body i {
  font-style: normal;
}
html[data-lang='zh'] p,
html[data-lang='zh'] li {
  line-height: 1.85;
}
/* wide mono letter-spacing looks like a typo next to Chinese characters */
html[data-lang='zh'] .mono,
html[data-lang='zh'] .kicker,
html[data-lang='zh'] .lang-toggle button {
  letter-spacing: 0.02em;
}
/* Serif display looks heavy in zh at large sizes — tighten the weight */
html[data-lang='zh'] .hero__title,
html[data-lang='zh'] .section-title {
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

/* ------------------------------------------------------- 2. RESET + BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  /* offset for the sticky header when jumping to #anchors */
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}
h1,
h2,
h3 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Accessible focus ring, visible on both paper and ink backgrounds */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--ink :focus-visible {
  outline-color: #ff8a72;
}

.visually-hidden {
  position: absolute;
  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: -60px;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--color-ink);
  color: var(--color-on-ink);
  font-size: var(--text-sm);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: var(--space-4);
}

/* ------------------------------------------------- 3. LAYOUT HELPERS */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-24));
  border-top: var(--border);
}
.section--tint {
  background: var(--color-paper-2);
}
.section--ink {
  background: var(--color-ink);
  color: var(--color-on-ink);
  border-top-color: var(--color-ink);
}
.section--ink .section-lede,
.section--ink p {
  color: var(--color-on-ink-muted);
}
.section--ink .eyebrow {
  color: #ff8a72;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

/* -------------------------------------------------- 4. TYPOGRAPHY CLASSES */
.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow {
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}
.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.kicker__dot {
  color: var(--color-accent);
}
.section-title {
  font-size: var(--text-2xl);
}
.section-lede,
.lede {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: 1.55;
  max-width: 42rem;
  margin-bottom: 0;
}
.lede {
  line-height: 1.6;
}

/* ------------------------------------------------------------ 5. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn--solid {
  background: var(--color-accent);
  color: #fff;
}
.btn--solid:hover {
  background: var(--color-accent-hover);
}
.btn--ghost {
  border-color: var(--color-border-strong);
  color: var(--color-text);
}
.btn--ghost:hover {
  border-color: var(--color-ink);
  background: rgba(20, 18, 15, 0.04);
}
.section--ink .btn--ghost {
  border-color: rgba(247, 244, 238, 0.35);
  color: var(--color-on-ink);
}
.section--ink .btn--ghost:hover {
  border-color: var(--color-on-ink);
  background: rgba(247, 244, 238, 0.08);
}
.btn--sm {
  padding: 0.5rem var(--space-4);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  text-transform: none;
}
.btn--full {
  width: 100%;
}

/* ------------------------------------------------- 6. HEADER / NAV / LANG */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: var(--border);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border-strong);
  box-shadow: 0 1px 12px rgba(20, 18, 15, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 68px;
}

/* Logo: inline SVG mark + wordmark */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex: 0 0 auto;
}
.logo__mark {
  display: block;
  width: 30px;
  height: 30px;
  color: var(--color-ink);
}
.logo__mark svg {
  width: 100%;
  height: 100%;
}
.logo__word {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-left: auto;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.nav a {
  position: relative;
  padding-block: var(--space-2);
  white-space: nowrap;
  transition: color 0.16s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--color-accent);
  transition: right 0.22s ease;
}
.nav a:hover {
  color: var(--color-text);
}
.nav a:hover::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: var(--space-2);
}

/* EN / 中文 toggle */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lang-toggle button {
  padding: 0.4rem 0.6rem;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.lang-toggle button + button {
  border-left: 1px solid var(--color-border-strong);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}
.lang-toggle button:hover {
  color: var(--color-text);
}
.lang-toggle button.is-active {
  background: var(--color-ink);
  color: var(--color-on-ink);
}

/* Mobile menu button (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--color-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}
/* The [hidden] attribute must win over display:flex */
.mobile-nav[hidden] {
  display: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  border-top: var(--border);
  background: var(--color-paper);
  padding: var(--space-2) var(--space-5) var(--space-5);
}
.mobile-nav a {
  padding: var(--space-3) 0;
  border-bottom: var(--border);
  font-size: var(--text-base);
}
.mobile-nav a:last-child {
  border-bottom: 0;
  color: var(--color-accent);
}

/* --------------------------------------------------------------- 7. HERO */
.hero {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24)) clamp(var(--space-10), 5vw, var(--space-16));
  /* faint newsroom rule pattern, drawn in CSS (no image needed) */
  background-image: linear-gradient(to right, rgba(20, 18, 15, 0.045) 1px, transparent 1px);
  background-size: 100px 100%;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
.hero__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
  max-width: 22ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.hero__note {
  margin: var(--space-5) 0 0;
  padding-left: var(--space-4);
  border-left: 2px solid var(--color-accent);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Hero visual — editor mark-up card */
.hero__visual {
  margin: 0;
}
.markup-card {
  background: #fff;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -28px rgba(20, 18, 15, 0.45);
  overflow: hidden;
}
.markup-card__bar,
.markup-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.markup-card__bar {
  border-bottom: var(--border);
  background: var(--color-paper-2);
  color: var(--color-text-muted);
}
.markup-card__time {
  color: var(--color-accent);
}
.markup-card__foot {
  border-top: var(--border);
  background: var(--color-paper-2);
}
.markup-card__body {
  padding: var(--space-6) var(--space-5);
}
.markup-line {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.5;
  margin-bottom: var(--space-4);
  color: var(--color-text-faint);
}
.strike {
  text-decoration: line-through;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 1.5px;
}
.markup-label {
  margin-bottom: var(--space-2);
  color: var(--color-accent);
}
.markup-line--out {
  color: var(--color-text);
  margin-bottom: 0;
  background: linear-gradient(to bottom, transparent 62%, var(--color-accent-soft) 62%);
}

/* Proof strip */
.proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: clamp(var(--space-10), 6vw, var(--space-20));
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-strong);
}
.proof li {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.proof strong {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.proof span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-wrap: pretty;
}

/* ------------------------------------------------------------ 8. PROBLEM */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
}
.card {
  padding: var(--space-6);
  background: var(--color-paper);
  border: var(--border);
  border-top: 2px solid var(--color-ink);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.pull {
  max-width: 44rem;
  margin: clamp(var(--space-10), 5vw, var(--space-16)) auto 0;
  padding-left: var(--space-6);
  border-left: 2px solid var(--color-accent);
}
.pull p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-4);
}
.pull__attr {
  color: var(--color-text-muted);
  font-size: var(--text-xs) !important;
  font-family: var(--font-mono) !important;
}

/* -------------------------------------------------------- 9. PROCESS FLOW */
.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: var(--border);
}
.flow__step {
  position: relative;
  padding: var(--space-8) var(--space-6) var(--space-8);
  background: var(--color-paper);
}
.flow__num {
  display: block;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
}
.flow__step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.flow__step p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
/* thin connector arrow between steps on desktop */
.flow__step::after {
  content: '';
  position: absolute;
  top: calc(var(--space-8) + 0.4rem);
  right: -5px;
  width: 9px;
  height: 9px;
  border-top: 1.5px solid var(--color-border-strong);
  border-right: 1.5px solid var(--color-border-strong);
  transform: rotate(45deg);
  background: var(--color-paper);
}
/* keep the arrow from adding horizontal scroll inside the step */
.flow__step {
  overflow: visible;
}
.flow__step:nth-child(3)::after,
.flow__step:nth-child(6)::after {
  display: none;
}

/* -------------------------------------------------------- 10. DELIVERABLES */
.deliver-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8) var(--space-10);
}
.deliver {
  padding-top: var(--space-5);
  border-top: 1px solid rgba(247, 244, 238, 0.25);
}
.deliver h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--color-on-ink);
}
.deliver p {
  margin: 0;
  font-size: var(--text-sm);
}

/* -------------------------------------------------------------- 11. TIERS */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: start;
}
.tier {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-8) var(--space-6);
  background: var(--color-paper);
  border: var(--border);
  border-radius: var(--radius-sm);
}
.tier--featured {
  border-color: var(--color-ink);
  box-shadow: 0 20px 44px -34px rgba(20, 18, 15, 0.5);
}
.tier__flag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: var(--space-4);
  padding: 0.25rem 0.5rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 2px;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
}
.tier__name {
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}
.tier__price {
  margin-bottom: var(--space-1);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
}
.tier__meta {
  margin-bottom: var(--space-6);
  color: var(--color-accent);
}
.tier__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.tier__list li {
  position: relative;
  padding-left: var(--space-5);
  text-wrap: pretty;
}
.tier__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1.5px;
  background: var(--color-accent);
}
.tier .btn {
  margin-top: auto;
}
.tiers__foot {
  margin: var(--space-8) 0 0;
  color: var(--color-text-faint);
}

/* --------------------------------------------------------- 12. COMPLIANCE */
.compliance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
.compliance .section-title {
  margin-bottom: var(--space-5);
}
.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-8);
  font-size: var(--text-sm);
}
.checklist li {
  position: relative;
  padding-left: var(--space-8);
  text-wrap: pretty;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 14px;
  height: 8px;
  border-left: 1.5px solid var(--color-accent);
  border-bottom: 1.5px solid var(--color-accent);
  transform: rotate(-45deg);
}
.compliance__visual img {
  width: 100%;
  height: auto;
}
.figure-note {
  margin: var(--space-4) 0 0;
  color: var(--color-text-faint);
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

/* ------------------------------------------------- 13. SAMPLE DOCUMENT CARD */
.doc {
  max-width: 54rem;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -44px rgba(20, 18, 15, 0.55);
  overflow: hidden;
}
.doc__chrome {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: var(--border);
  background: var(--color-paper-2);
  color: var(--color-text-muted);
}
.doc__stamp {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 2px;
}
.doc__page {
  padding: clamp(var(--space-6), 4vw, var(--space-12)) clamp(var(--space-5), 4vw, var(--space-12));
  font-family: var(--font-display);
}
.doc__embargo {
  margin-bottom: var(--space-6);
  color: var(--color-text-muted);
  letter-spacing: 0.14em;
}
.doc__headline {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}
.doc__subhead {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: var(--border);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.45;
}
.doc__body {
  font-size: 1.0625rem;
  line-height: 1.72;
}
.doc__dateline {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.doc__boiler {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: var(--border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}
.doc__contact {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}
.doc__end {
  margin: var(--space-6) 0 0;
  color: var(--color-text-faint);
  letter-spacing: 0.3em;
}
.doc__notes {
  padding: var(--space-6) clamp(var(--space-5), 4vw, var(--space-12));
  border-top: var(--border);
  background: var(--color-paper-2);
}
.doc__notes-title {
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}
.doc__notes ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.doc__notes li {
  position: relative;
  padding-left: var(--space-5);
  text-wrap: pretty;
}
.doc__notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1.5px;
  background: var(--color-border-strong);
}

/* --------------------------------------------------------------- 14. FORM */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(var(--space-10), 5vw, var(--space-16));
  align-items: start;
}
.contact__facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(247, 244, 238, 0.25);
  text-transform: none;
  letter-spacing: 0.02em;
}
.contact__facts li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.contact__facts li > span:first-child {
  min-width: 5.5rem;
  color: var(--color-on-ink-muted);
}
.contact__facts a {
  color: var(--color-on-ink);
  border-bottom: 1px solid rgba(247, 244, 238, 0.4);
}
.contact__facts a:hover {
  border-bottom-color: #ff8a72;
  color: #ff8a72;
}

.form-wrap {
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  background: var(--color-paper);
  border-radius: var(--radius);
  color: var(--color-text);
}
/* the [hidden] attribute must beat display:flex when JS hides the form */
.form[hidden] {
  display: none;
}
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
/* The form card sits on paper inside a dark section, so undo the dark-section
   button + focus colours here (otherwise the text goes near-invisible). */
.form-wrap .btn--ghost {
  border-color: var(--color-border-strong);
  color: var(--color-text);
}
.form-wrap .btn--ghost:hover {
  border-color: var(--color-ink);
  background: rgba(20, 18, 15, 0.04);
}
.form-wrap :focus-visible {
  outline-color: var(--color-accent);
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field label {
  font-size: var(--text-sm);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem var(--space-3);
  background: #fff;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field textarea {
  resize: vertical;
  min-height: 6rem;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-text-faint);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-ink);
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
/* Error state */
.error {
  display: none;
  margin: 0;
  color: var(--color-accent);
  font-size: var(--text-xs);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}
.field.has-error .error {
  display: block;
}
.field--check {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-3);
}
.field--check input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  flex: 0 0 auto;
  accent-color: var(--color-accent);
}
.field--check label {
  flex: 1;
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  min-width: 12rem;
}
.field--check .error {
  flex-basis: 100%;
}
.form__small {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* Success state */
.form-success {
  text-align: center;
  padding-block: var(--space-6);
}
.form-success__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-5);
  border: 1.5px solid var(--color-accent);
  border-radius: 50%;
  color: var(--color-accent);
}
.form-success__mark svg {
  width: 24px;
  height: 24px;
}
.form-success h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.form-success p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 26rem;
  margin-inline: auto;
}

/* ------------------------------------------------------------- 15. FOOTER */
.site-footer {
  background: var(--color-ink);
  color: var(--color-on-ink);
  padding-top: clamp(var(--space-12), 6vw, var(--space-16));
  padding-bottom: var(--space-8);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  padding-bottom: var(--space-10);
}
.logo--footer .logo__mark {
  color: var(--color-on-ink);
}
.footer-tag {
  margin: var(--space-4) 0 0;
  max-width: 24rem;
  color: var(--color-on-ink-muted);
  font-size: var(--text-sm);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-on-ink-muted);
}
.footer-col__title {
  margin-bottom: var(--space-2);
  color: var(--color-on-ink);
}
.footer-col a:hover {
  color: #ff8a72;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(247, 244, 238, 0.18);
  color: var(--color-on-ink-muted);
}
.footer-legal p {
  margin: 0;
  text-transform: none;
  letter-spacing: 0.04em;
}

/* --------------------------------------------- 16. SCROLL REVEAL / MOTION */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------- 17. RESPONSIVE
   Breakpoints used: 1080px (tighten grids), 900px (mobile nav, stack hero),
   620px (single column everywhere).                                       */
@media (max-width: 1080px) {
  .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6) var(--space-8);
  }
  .deliver-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav {
    gap: var(--space-4);
    font-size: var(--text-xs);
  }
}

@media (max-width: 900px) {
  /* header switches to hamburger */
  .nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .header-actions {
    margin-left: auto;
  }
  .hero__inner,
  .compliance,
  .contact,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__title {
    max-width: 100%;
  }
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flow__step:nth-child(2)::after,
  .flow__step:nth-child(4)::after {
    display: none;
  }
  .flow__step:nth-child(3)::after,
  .flow__step:nth-child(5)::after {
    display: block;
  }
  .tiers {
    grid-template-columns: minmax(0, 1fr);
  }
  .compliance__visual {
    max-width: 480px;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 76px;
  }
  .shell {
    padding-inline: var(--space-4);
  }
  .header-inner {
    min-height: 60px;
    gap: var(--space-3);
  }
  .logo__word {
    font-size: 1.0625rem;
  }
  /* hide the header CTA on very small screens — it is in the mobile menu */
  .header-actions .btn--solid {
    display: none;
  }
  .problem-grid,
  .flow,
  .deliver-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .flow__step::after {
    display: none !important;
  }
  .proof {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }
  /* stat above label reads better than side-by-side on a phone */
  .proof li {
    gap: var(--space-1);
  }
  .kicker__dot {
    display: none;
  }
  .doc__notes ul {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }
  .hero {
    background-size: 60px 100%;
  }
  .markup-card__bar,
  .markup-card__foot {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   Privacy notice and 404 pages
   ========================================================================== */
.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
  font-family: var(--font-body, system-ui, sans-serif);
  color: var(--color-ink);
  line-height: 1.6;
}
.legal h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 1rem 0 0.25rem;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 2rem 0 0.5rem;
}
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--color-accent); }
.legal__back a { color: var(--color-ink); text-decoration: none; }
.legal__date { color: var(--color-muted, #5f5b53); font-size: 0.85rem; }
