/* =========================================================================
   SMB Automate by Quantum Core MIP — marketing site
   Identity: warm paper · deep ink · control-green. Editorial + utility.
   Fonts: Fraunces (display) · Hanken Grotesk (body) · Space Mono (labels)
   ========================================================================= */

:root {
  --paper:      #fbf8f1;   /* warm cream background            */
  --paper-2:    #f3ecdf;   /* raised panel                     */
  --paper-3:    #ece2d0;   /* deeper panel / borders on paper  */
  --ink:        #17140d;   /* warm near-black text             */
  --ink-2:      #514a3b;   /* muted body                       */
  --ink-3:      #857c68;   /* faint / captions                 */
  --line:       #ded3bd;   /* hairline on paper                */

  --green:      #0f5c43;   /* brand accent — control / approve */
  --green-2:    #178a63;   /* brighter green                   */
  --green-ink:  #0a3d2c;   /* text-on-pale-green               */
  --green-pale: #e4efe6;   /* pale green wash                  */
  --amber:      #c9772a;   /* attention / needs review         */
  --amber-pale: #f6e7d3;

  --max:   1160px;
  --gap:   clamp(1rem, 3vw, 2rem);
  --r:     14px;   /* radius */
  --r-lg:  22px;

  --shadow-sm: 0 1px 2px rgba(23,20,13,.06), 0 2px 8px rgba(23,20,13,.05);
  --shadow-md: 0 6px 18px rgba(23,20,13,.09), 0 2px 6px rgba(23,20,13,.06);
  --shadow-lg: 0 24px 60px rgba(23,20,13,.16), 0 6px 18px rgba(23,20,13,.08);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", -apple-system, system-ui, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "SFMono-Regular", monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle paper grain, drawn once, fixed */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gap); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--green);
  display: inline-block;
}

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -.012em;
  font-optical-sizing: auto;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.5rem); font-weight: 540; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.28rem, 2.2vw, 1.62rem); font-weight: 580; }
h4 { font-size: 1.08rem; font-weight: 600; letter-spacing: 0; }

p  { color: var(--ink-2); }
.lead {
  font-size: clamp(1.12rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 44ch;
  text-wrap: pretty;
}
.measure { max-width: 62ch; }
strong { color: var(--ink); font-weight: 660; }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark { width: 30px; height: 30px; flex: none; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.24rem;
  letter-spacing: -.02em;
  line-height: 1;
}
.brand__by {
  display: block;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: .18rem;
}

.nav__links { display: flex; align-items: center; gap: .35rem; list-style: none; }
.nav__links a {
  font-size: .96rem;
  font-weight: 520;
  color: var(--ink-2);
  padding: .5rem .8rem;
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.nav__links a:hover { color: var(--ink); background: var(--paper-2); }
.nav__links a[aria-current="page"] {
  color: var(--green-ink);
  background: var(--green-pale);
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px; height: 40px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open  { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 760px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .6rem var(--gap) 1.1rem;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .7rem .8rem; font-size: 1.05rem; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.hero__by {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--ink-3);
  margin-top: 1.5rem;
}
.hero__by strong { color: var(--green); font-weight: 700; }
.hero h1 { margin-top: .9rem; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero__lead { margin-top: 1.4rem; }
.hero__meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .7rem;
}
.chip {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: .38rem .7rem;
  border-radius: 999px;
}

/* decorative field-lines behind hero */
.hero__deco {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 88% 8%, rgba(23,138,99,.10), transparent 70%),
    radial-gradient(50% 40% at 6% 92%, rgba(201,119,42,.08), transparent 70%);
}

/* =========================================================================
   PHONE MOCKUP
   ========================================================================= */
.phone {
  position: relative;
  width: min(280px, 78vw);
  margin-inline: auto;
  background: #100e0a;
  border-radius: 40px;
  padding: 11px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(23,20,13,.18);
}
.phone::before { /* speaker / camera bar */
  content: "";
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 7px;
  border-radius: 999px;
  background: #2a2620;
  z-index: 3;
}
.phone__screen {
  border-radius: 30px;
  overflow: hidden;
  background: #eef1f4;
  aspect-ratio: 560 / 1201;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone--float { transform: rotate(-1.4deg); }

.phone-caption {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--ink-3);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.4;
  text-wrap: pretty;
}

/* =========================================================================
   GENERIC PANELS / GRID
   ========================================================================= */
.panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-top: .8rem; }
.section-head p { margin-top: 1rem; font-size: 1.1rem; }

.grid { display: grid; gap: 1.1rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--paper-3); }
.card h3, .card h4 { margin-bottom: .5rem; }
.card p { font-size: .98rem; }

.icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--green-pale);
  color: var(--green);
  margin-bottom: 1.1rem;
}
.icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon--amber { background: var(--amber-pale); color: var(--amber); }

/* =========================================================================
   SPLIT / FEATURE ROW
   ========================================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__body h2 { margin-bottom: 1rem; }
.split__body .lead { max-width: 52ch; }
.split + .split { margin-top: clamp(3rem, 7vw, 5.5rem); }

.tick-list { list-style: none; margin-top: 1.4rem; display: grid; gap: .8rem; }
.tick-list li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; color: var(--ink-2); }
.tick-list svg { width: 20px; height: 20px; stroke: var(--green); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-top: .28rem; }
.tick-list b { color: var(--ink); font-weight: 640; }

/* =========================================================================
   CONTROL / KILL-SWITCH FEATURE
   ========================================================================= */
.control {
  background: var(--ink);
  color: #efe9db;
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  position: relative;
  overflow: hidden;
}
.control h2, .control h3 { color: #fdfaf3; }
.control p { color: #cbc3b1; }
.control .eyebrow { color: #7fd6b3; }
.control .eyebrow::before { background: #7fd6b3; }
.control__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }

.switchboard {
  background: #211d16;
  border: 1px solid #3a3327;
  border-radius: var(--r);
  padding: 1.4rem;
  display: grid;
  gap: .8rem;
}
.switchrow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  background: #181510;
  border: 1px solid #332d22;
  border-radius: 10px;
}
.switchrow span { font-size: .95rem; color: #e9e2d2; }
.switchrow small { font-family: var(--font-mono); font-size: .68rem; color: #8f8574; }
.toggle {
  width: 46px; height: 26px; border-radius: 999px; flex: none;
  background: var(--green-2); position: relative;
}
.toggle::after { content: ""; position: absolute; top: 3px; left: 23px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.toggle--off { background: #4a4234; }
.toggle--off::after { left: 3px; }
.kill {
  margin-top: .3rem;
  display: flex; align-items: center; gap: .8rem;
  padding: .95rem 1rem;
  background: #2a1a12;
  border: 1px solid #5a3320;
  border-radius: 10px;
}
.kill .toggle { background: var(--amber); }
.kill span { color: #f4c79c; font-weight: 600; font-size: .95rem; }

/* =========================================================================
   HOW IT WORKS — STEPS
   ========================================================================= */
.steps { display: grid; gap: 0; counter-reset: step; margin-top: 1rem; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.4rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  counter-increment: step;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green);
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border: 1.5px solid var(--green);
  border-radius: 50%;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: .5rem; }
.step p { max-width: 60ch; }

/* =========================================================================
   STAT / PROMISE STRIP
   ========================================================================= */
.promise {
  background: var(--green);
  color: #eafaf2;
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.promise .eyebrow { color: #b9ecd6; justify-content: center; display: flex; }
.promise .eyebrow::before { background: #b9ecd6; }
.promise h2 { color: #fff; max-width: 22ch; margin: 1rem auto 0; }
.promise h2 em { font-style: italic; color: #ffe0b8; }

/* =========================================================================
   FEATURE DETAIL BLOCKS (features.html)
   ========================================================================= */
.feature-index {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 2rem;
}
.feature-index a {
  font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .03em;
  padding: .4rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  transition: all .15s ease;
}
.feature-index a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.feat { scroll-margin-top: 90px; }
.feat + .feat { margin-top: clamp(3rem, 7vw, 5rem); }
.feat__tag {
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green);
}

/* =========================================================================
   ABOUT
   ========================================================================= */
.about-lead h1 { max-width: 16ch; }
.value {
  border-left: 2px solid var(--green);
  padding-left: 1.3rem;
}
.value + .value { margin-top: 1.8rem; }
.value h3 { margin-bottom: .4rem; }
.factcard {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem;
}
.factcard dl { display: grid; gap: .9rem; margin: 0; }
.factcard dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.factcard dd { margin: .15rem 0 0; color: var(--ink); font-weight: 520; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--ink);
  color: #cfc7b5;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer .brand__name { color: #fdfaf3; }
.site-footer .brand__by { color: #8b8271; }
.footer-about { margin-top: 1rem; max-width: 40ch; color: #a9a08d; font-size: .95rem; }
.footer-col h4 { color: #fdfaf3; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col a, .footer-col li { color: #cfc7b5; font-size: .96rem; }
.footer-col a:hover { color: #fff; }
.contact-line { color: #cfc7b5; font-size: .96rem; }
.contact-line strong { color: #fdfaf3; font-weight: 600; }
.footer-note {
  border-top: 1px solid #332d22;
  margin-top: 2.5rem; padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  color: #8b8271; font-size: .84rem;
}
.footer-note .footer-endorse { font-family: var(--font-mono); letter-spacing: .04em; }
/* small legal links in the footer bottom bar (privacy / terms) */
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer-legal a { color: #a9a08d; font-size: .84rem; }
.footer-legal a:hover { color: #fff; }

/* =========================================================================
   REVEAL ANIMATION
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { margin-top: 1rem; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .control__grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .step { grid-template-columns: 46px 1fr; gap: 1rem; }
  .step__num { width: 44px; height: 44px; font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone--float { transform: none; }
  .card { transition: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* =========================================================================
   FIRST-LOAD INTRO  (homepage only)
   A full-screen deep-green overlay: "busywork" problem words scatter in,
   rush inward and collapse to the brand mark, the keyword resolves, the
   wordmark + approval check draw in, the slogan lands, then the overlay
   lifts to reveal the page. Orchestrated by the inline script in index.html.
   Plays once per session; fully skipped for prefers-reduced-motion (the
   script removes the node). Hidden by default so it never shows without JS.
   ========================================================================= */
html.intro-active { overflow: hidden; }

.intro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 42%, var(--green) 0%, var(--green-ink) 62%, #072e21 100%);
}
.intro.play { display: flex; }
.intro.done { animation: introOut .62s cubic-bezier(.4,0,.2,1) forwards; pointer-events: none; }
@keyframes introOut { to { opacity: 0; transform: translateY(-14px); visibility: hidden; } }

.intro-stage {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* the scattering "busywork" problem words */
.intro-words { position: absolute; inset: 0; pointer-events: none; }
.intro-words span {
  position: absolute;
  left: 50%; top: 50%;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: .02em;
  color: rgba(251, 248, 241, .82);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) translate(var(--x), var(--y));
  transition: opacity .5s ease, transform .85s cubic-bezier(.5,0,.2,1);
}
.intro.s1 .intro-words span { opacity: 1; transition-delay: var(--d, 0s); }
.intro.s2 .intro-words span {
  opacity: 0;
  transition-delay: 0s;
  transform: translate(-50%, -50%) translate(0, 0) scale(.14);
}

/* central keyword the busywork collapses toward */
.intro-keyword {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(1);
  font-family: var(--font-mono);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--paper);
  opacity: 0;
  transition: opacity .5s ease, transform .8s cubic-bezier(.5,0,.2,1);
}
.intro.s1 .intro-keyword { opacity: 1; }
.intro.s2 .intro-keyword { opacity: 0; transform: translate(-50%, -50%) scale(.32); }

/* brand mark + wordmark */
.intro-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: scale(.72);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.intro.s2 .intro-brand { opacity: 1; transform: scale(1); }
.intro-mk { width: 60px; height: 60px; flex: none; display: block; }
.intro-mk .chk {
  stroke-dasharray: 42;
  stroke-dashoffset: 42;
}
.intro.s2 .intro-mk .chk {
  transition: stroke-dashoffset .75s cubic-bezier(.5,0,.2,1) .35s;
  stroke-dashoffset: 0;
}
.intro-nm {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 560;
  letter-spacing: -.01em;
  color: var(--paper);
}

/* slogan resolves beneath */
.intro-slogan {
  position: absolute;
  bottom: 30px;
  left: 0; right: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: rgba(251, 248, 241, .78);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease .05s, transform .6s ease .05s;
}
.intro.s3 .intro-slogan { opacity: 1; transform: none; }
.intro-slogan b { color: var(--paper); font-weight: 600; font-style: normal; }

.intro-skip {
  position: absolute;
  bottom: 22px; right: 26px;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(251, 248, 241, .55);
  cursor: pointer;
  transition: color .15s;
}
.intro-skip:hover { color: var(--paper); }

@media (prefers-reduced-motion: reduce) { .intro { display: none !important; } }
@media (max-width: 760px) {
  .intro-nm { font-size: 28px; }
  .intro-mk { width: 48px; height: 48px; }
  .intro-words span { font-size: 14px; }
  .intro-keyword { font-size: 38px; }
  .intro-slogan { font-size: 18px; padding: 0 26px; }
}

/* =========================================================================
   LEGAL PAGES  (privacy.html, terms.html)
   Long-form policy prose: one centered reading column (~736px measure),
   a boxed table of contents, and readable headings / paragraphs / lists.
   Reuses the site's paper, ink and green tokens so it matches every page.
   ========================================================================= */
.legal { max-width: 46rem; margin-inline: auto; }         /* ~736px measure */
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-top: .8rem; }
.legal__dates {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--ink-3);
  margin-top: 1.1rem;
}
.legal__crosslink { margin-top: .55rem; font-size: .98rem; color: var(--ink-2); }
.legal__crosslink a { color: var(--green); font-weight: 600; }
.legal__crosslink a:hover { text-decoration: underline; }

/* boxed table of contents */
.legal__toc {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.3rem 1.5rem;
  margin-top: 2.2rem;
}
.legal__toc h2 {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-3);
  margin: 0 0 .8rem;
}
.legal__toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.legal__toc a { color: var(--ink-2); font-size: .95rem; }
.legal__toc a:hover { color: var(--green); }

/* body */
.legal__intro { margin-top: 1.6rem; }
.legal h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  margin-top: 2.6rem;
  scroll-margin-top: 90px;
}
.legal h3 { font-size: 1.12rem; margin-top: 1.6rem; }
.legal p { margin-top: 1rem; color: var(--ink-2); }
.legal ul { margin-top: 1rem; padding-left: 1.3rem; display: grid; gap: .55rem; }
.legal li { color: var(--ink-2); }
.legal strong { color: var(--ink); }
.legal em { font-style: italic; }
.legal a { color: var(--green); }                          /* inline links (email) */
.legal a:hover { text-decoration: underline; }
