/* School Guard — website styles
   Layout concept: a calm harbour-teal world where colour is spent on state.
   Ready green and Not-ready amber are the only loud colours, and they always mean
   something. Product UI is the hero; photography sets the place. */

/* Look: Kawakawa colours (sage and forest green on soft linen), Dawn type
   (Plus Jakarta Sans headings, Inter text) and a faint sunrise glow behind the hero.
   Bright colour is spent only on state: Ready green and Not-ready amber. */
:root {
  --bg: #f6f5f0;
  --bg-2: #eeefe7;
  --surface: #fffefb;
  --ink: #1d2a24;
  --ink-2: #34433b;
  --muted: #5c665f;
  --line: #e2e2d8;
  --line-2: #cfd1c4;
  --field: #7f887f;
  --brand: #2f5d4a;
  --brand-2: #244a3a;
  --brand-ink: #ffffff;
  --brand-tint: #e7efe8;
  --mist: #dde9df;
  --dawn: #fde9dc;
  --ready: #2e7350;
  --ready-tint: #e6f1e8;
  --notready: #9a5512;
  --notready-tint: #f8ecdc;
  --pending: #5f6a63;
  --pending-tint: #ecede6;
  --night: #1f3329;          /* deep bands, same in both themes */
  --night-2: #172820;
  --night-ink: #eef1ea;
  --night-muted: #a9b8ae;
  --night-accent: #b9dcc5;
  --shadow-sm: 0 1px 2px rgba(29, 42, 36, .05), 0 2px 8px rgba(29, 42, 36, .04);
  --shadow-lg: 0 2px 4px rgba(29, 42, 36, .03), 0 30px 70px -20px rgba(40, 60, 45, .28);

  --display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.9rem;
  --step-0: 1.125rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.55rem, 1.25rem + 1vw, 1.95rem);
  --step-3: clamp(2.05rem, 1.45rem + 2.2vw, 3.1rem);
  --step-4: clamp(2.6rem, 1.7rem + 3.6vw, 4.6rem);

  --radius: 16px;
  --radius-lg: 24px;
  --wrap: 1200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111a16; --bg-2: #142019; --surface: #17231e; --ink: #e9eee9; --ink-2: #ccd6cf;
    --muted: #a3b0a8; --line: #26352e; --line-2: #33463d; --field: #5f7469; --brand: #8cc5a6; --brand-2: #a6d4ba;
    --brand-ink: #0d1a14; --brand-tint: #1a2e25; --mist: #1f3a2e; --dawn: #2a2219; --ready: #5fc994; --ready-tint: #183326;
    --notready: #f0a85a; --notready-tint: #3a2610; --pending: #a3b0a8; --pending-tint: #1f2c25;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111a16; --bg-2: #142019; --surface: #17231e; --ink: #e9eee9; --ink-2: #ccd6cf;
  --muted: #a3b0a8; --line: #26352e; --line-2: #33463d; --field: #5f7469; --brand: #8cc5a6; --brand-2: #a6d4ba;
  --brand-ink: #0d1a14; --brand-tint: #1a2e25; --mist: #1f3a2e; --dawn: #2a2219; --ready: #5fc994; --ready-tint: #183326;
  --notready: #f0a85a; --notready-tint: #3a2610; --pending: #a3b0a8; --pending-tint: #1f2c25;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
img { display: block; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); line-height: 1.06; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
h4 { font-size: var(--step-0); font-weight: 600; }
em.serif, .serif { font-style: normal; color: var(--brand); }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand);
}
.lede { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.35rem); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fffefb; color: #1d2a24; }
.btn-light:hover { background: #e7efe8; }
.btn-outline-light { background: transparent; color: #eef1ea; border-color: rgba(238,241,234,.4); }
.btn-outline-light:hover { border-color: #eef1ea; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.textlink { color: var(--brand); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.textlink svg { width: 16px; height: 16px; }

.skip { position: absolute; left: -9999px; top: 10px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 16px; }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink); }
.brand svg { width: 32px; height: 32px; flex: none; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .9688rem; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--bg-2); color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: transparent; border: 1px solid var(--field); border-radius: 999px; min-height: 42px; padding: 0 14px; font: 600 .9375rem var(--body); color: var(--ink); cursor: pointer; }
.mobile-nav { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-cta { margin-left: auto; }
  .menu-btn { display: inline-flex; align-items: center; margin-left: 0; }
  .mobile-nav { border-top: 1px solid var(--line); background: var(--bg); }
  .mobile-nav.open { display: block; }
  .mobile-nav a { display: block; padding: 14px 0; text-decoration: none; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .mobile-nav a:last-child { border-bottom: 0; }
}
@media (max-width: 480px) { .nav-cta { display: none; } .menu-btn { margin-left: auto; } }
.btn { white-space: nowrap; }

/* sections */
.section { padding-block: clamp(84px, 10vw, 148px); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { display: grid; gap: 20px; max-width: 780px; margin-bottom: clamp(40px, 5.5vw, 72px); }
.section-head.center { text-align: center; margin-inline: auto; justify-items: center; }
.alt { background: var(--bg-2); }
.night { background: var(--night); color: var(--night-ink); }
.night h1, .night h2, .night h3 { color: var(--night-ink); }
.night .lede, .night .muted { color: var(--night-muted); }
.night .eyebrow { color: var(--night-accent); }
.night h2 .serif { color: var(--night-accent); }

/* hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 55% at 82% 18%, color-mix(in srgb, var(--dawn) 95%, transparent), transparent 70%),
    radial-gradient(45% 45% at 62% 70%, color-mix(in srgb, var(--mist) 70%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .9375rem; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--ready); flex: none; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

/* the morning board (hero product UI) */
.stage { position: relative; min-width: 0; }
.board {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.board-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.board-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.board-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ready); box-shadow: 0 0 0 4px var(--ready-tint); }
.board-clock { font-family: var(--mono); font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.board-clock b { color: var(--ink); font-weight: 600; }
.board-body { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 0; }
@media (max-width: 560px) { .board-body { grid-template-columns: 1fr; } }
.siteplan { position: relative; padding: 18px; display: grid; align-content: start; border-right: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--surface)); }
@media (max-width: 560px) { .siteplan { border-right: 0; border-bottom: 1px solid var(--line); } }
.siteplan svg { width: 100%; height: auto; display: block; }
.plan-ground { fill: var(--surface); stroke: var(--line-2); }
.plan-field { fill: color-mix(in srgb, var(--ready-tint) 70%, var(--surface)); stroke: var(--line-2); }
.plan-bld { fill: var(--bg-2); stroke: var(--line-2); }
.plan-road { fill: var(--line); }
.plan-pool { fill: color-mix(in srgb, #9cc9d6 45%, var(--surface)); stroke: var(--line-2); }
.plan-cross { fill: none; stroke: var(--field); stroke-dasharray: 3 3; }
.plan-mark { stroke: var(--surface); stroke-width: 2; opacity: .8; }
.plan-label { font: 500 9px var(--body); fill: var(--muted); }
.plan-pin circle.halo { opacity: .22; }
.plan-pin.ready circle { fill: var(--ready); }
.plan-pin.notready circle { fill: var(--notready); }
.plan-pin.pending circle { fill: var(--pending); }
.plan-pin circle.core { stroke: var(--surface); stroke-width: 2; }
.areas { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; align-content: start; }
.areas li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 9px 10px; border-radius: 10px; transition: background .3s; }
.areas li.flash { background: var(--notready-tint); }
.areas b { font-weight: 600; font-size: .875rem; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.areas small { grid-column: 1; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.35; }
.areas .chip { grid-row: 1 / span 2; grid-column: 2; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 .72rem/1 var(--body); letter-spacing: .04em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ready { background: var(--ready-tint); color: var(--ready); }
.chip.notready { background: var(--notready-tint); color: var(--notready); }
.chip.pending { background: var(--pending-tint); color: var(--pending); }
.board-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.board-foot b { color: var(--ink); }
.replay { background: none; border: 0; padding: 6px 10px; margin: -6px -10px; min-height: 32px; border-radius: 8px; font: 600 .85rem var(--body); color: var(--brand); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.replay svg { width: 14px; height: 14px; }

.phone {
  position: absolute; left: -36px; bottom: -48px; width: 220px; z-index: 2;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 30px; padding: 10px;
  box-shadow: var(--shadow-lg);
}
.phone-screen { border-radius: 22px; background: var(--bg); overflow: hidden; border: 1px solid var(--line); }
.phone-top { padding: 12px 14px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.phone-top small { display: block; font-size: .7rem; color: var(--muted); font-family: var(--mono); }
.phone-top b { font-size: .86rem; }
.phone ul { list-style: none; margin: 0; padding: 8px; display: grid; gap: 6px; }
.phone li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-size: .76rem; line-height: 1.35; display: grid; gap: 6px; }
.phone .yn { display: flex; gap: 6px; }
.phone .yn span { flex: 1; text-align: center; border-radius: 8px; padding: 4px 0; font-weight: 600; font-size: .7rem; border: 1px solid var(--line); color: var(--muted); }
.phone .yn span.on-pass { background: var(--ready-tint); color: var(--ready); border-color: transparent; }
.phone .yn span.on-fail { background: var(--notready-tint); color: var(--notready); border-color: transparent; }
.phone .crit { font-size: .64rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--notready); }
@media (max-width: 1180px) { .phone { left: 12px; } }
@media (max-width: 980px) { .phone { left: 16px; bottom: -44px; } .stage { margin-bottom: 44px; } }
@media (max-width: 560px) { .phone { display: none; } .stage { margin-bottom: 0; } }

/* fact strip */
.facts { border-block: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts .wrap > div { padding: 26px 22px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
.facts .wrap > div:first-child { border-left: 0; padding-left: 0; }
.facts b { font-family: var(--display); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.facts span { font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .facts .wrap { grid-template-columns: 1fr 1fr; } .facts .wrap > div:nth-child(3) { border-left: 0; padding-left: 0; } .facts .wrap > div { border-top: 1px solid var(--line); } .facts .wrap > div:nth-child(-n+2) { border-top: 0; } }
@media (max-width: 460px) { .facts .wrap { grid-template-columns: 1fr; } .facts .wrap > div { border-left: 0; padding: 18px 0; border-top: 1px solid var(--line); } .facts .wrap > div:first-child { border-top: 0; } }

/* timeline */
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; } }
.tl { border-top: 2px solid var(--brand); padding: 26px 0 0; display: grid; gap: 14px; align-content: start; min-width: 0; }
.tl time { font-family: var(--display); font-size: 2.4rem; font-weight: 700; letter-spacing: -0.04em; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1; }
.tl p { color: var(--muted); font-size: .98rem; }
.snip { margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 12px; display: grid; gap: 8px; font-size: .82rem; }
.snip-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.snip-row span:first-child { min-width: 0; overflow-wrap: anywhere; }

/* photo band */
.photo-band { position: relative; min-height: clamp(380px, 50vw, 600px); display: grid; align-items: end; overflow: hidden; background: linear-gradient(135deg, #3c6b56, #1f3329); color: #fff; }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,30,24,0) 30%, rgba(18,30,24,.8) 100%); }
.photo-band .wrap { position: relative; z-index: 1; padding-block: 48px; width: 100%; }
.photo-band .pull p:first-child { margin: 0; max-width: 22ch; font-family: var(--display); font-weight: 600; font-size: var(--step-3); line-height: 1.08; letter-spacing: -0.03em; }
.photo-band .pull .serif { color: #cfe8d6; }
.photo-band .pull-sub { margin-top: 18px; font: 400 1rem/1.5 var(--body); letter-spacing: 0; color: rgba(255,255,255,.85); max-width: 46ch; }
.photo-credit { position: absolute; right: 12px; bottom: 10px; z-index: 2; font-size: .72rem; color: #fff; background: rgba(0,0,0,.55); padding: 2px 7px; border-radius: 4px; text-decoration: none; }

/* modules bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 36px; }
.tile { grid-column: span 2; border-top: 1px solid var(--line-2); padding: 24px 4px 8px; display: grid; gap: 10px; align-content: start; min-width: 0; position: relative; overflow: hidden; }
.tile.wide { grid-column: span 3; }
.tile.hero-tile { grid-column: span 4; grid-row: span 2; background: linear-gradient(160deg, var(--brand-tint), var(--surface) 65%); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.tile .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.tile .ico svg { width: 22px; height: 22px; }
.tile p { color: var(--muted); font-size: .96rem; }
.tile .snip { margin-top: auto; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile, .tile.wide { grid-column: span 1; } .tile.hero-tile { grid-column: span 2; grid-row: auto; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile.hero-tile { grid-column: span 1; } }

/* roles */
.roles > * { min-width: 0; }
.roles { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .roles { grid-template-columns: 1fr; gap: 20px; } }
.role-tabs { display: grid; gap: 6px; }
@media (max-width: 900px) { .role-tabs { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: thin; } }
.role-tab { text-align: left; background: transparent; border: 1px solid transparent; border-radius: 14px; padding: 14px 16px; cursor: pointer; font: 600 1rem var(--body); color: var(--muted); display: grid; gap: 2px; white-space: nowrap; }
.role-tab small { font-weight: 400; font-size: .85rem; white-space: normal; }
@media (max-width: 900px) { .role-tab small { display: none; } .role-tab { border-color: var(--field); border-radius: 999px; padding: 10px 16px; } }
.role-tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.role-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); display: grid; gap: 22px; min-width: 0; }
.role-panel .say { margin: 0; font-family: var(--display); font-size: var(--step-2); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--ink-2); }
.ticks svg { width: 20px; height: 20px; color: var(--ready); margin-top: 3px; }

/* board report document */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.stack { display: grid; gap: 22px; min-width: 0; }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 6px 6px 18px 18px; box-shadow: var(--shadow-lg); padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px; color: var(--ink); min-width: 0; }
.doc-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; flex-wrap: wrap; }
.doc-head b { font-family: var(--display); font-size: 1.15rem; letter-spacing: -0.01em; }
.doc-head span { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 2px; }
.kpi b { font-family: var(--mono); font-size: 1.45rem; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: .76rem; color: var(--muted); line-height: 1.3; }
@media (max-width: 420px) { .kpis { grid-template-columns: 1fr 1fr; } }
.doc table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.doc th, .doc td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.doc td:last-child { text-align: right; white-space: nowrap; }
.table-scroll { overflow-x: auto; min-width: 0; }
.spark { width: 100%; height: 56px; }
.spark path.area { fill: var(--brand-tint); }
.spark path.line { fill: none; stroke: var(--brand); stroke-width: 2; }
.spark circle { fill: var(--brand); }

/* trust */
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(238,241,234,.12); border: 1px solid rgba(238,241,234,.12); border-radius: var(--radius-lg); overflow: hidden; }
.trust-grid > div { background: var(--night); padding: 28px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.trust-grid h3 { font-size: 1.05rem; color: var(--night-ink); }
.trust-grid p { font-size: .95rem; color: var(--night-muted); }
.trust-grid .ico { color: var(--night-accent); width: 26px; height: 26px; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }

/* image cards */
.media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, var(--mist), var(--brand-tint)); aspect-ratio: 4 / 3; max-width: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.tall { aspect-ratio: 4 / 5; }
.media .tag { position: absolute; left: 14px; bottom: 14px; z-index: 1; background: var(--surface); color: var(--ink); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow-sm); display: grid; gap: 2px; font-size: .82rem; max-width: calc(100% - 28px); }
.media .tag b { font-size: .88rem; }

/* pilot note */
.pilot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.pilot .seal { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.pilot .seal svg { width: 30px; height: 30px; }
@media (max-width: 560px) { .pilot { grid-template-columns: 1fr; } }

/* pricing approach */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }
.pillar { border-top: 2px solid var(--brand); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.pillar p { color: var(--muted); font-size: .96rem; }
.included { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 28px; list-style: none; margin: 0; padding: 0; }
.included li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.included svg { width: 18px; height: 18px; color: var(--ready); flex: none; margin-top: 4px; }
@media (max-width: 900px) { .included { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .included { grid-template-columns: 1fr; } }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* cta band */
.cta-band { border-radius: 28px; padding: clamp(36px, 6vw, 72px); background:
  radial-gradient(60% 90% at 100% 0%, rgba(253,214,186,.30), transparent 60%),
  linear-gradient(160deg, #2f5d4a, #1f3329 70%); color: #eef1ea; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: end; }
.cta-band h2 { color: #fff; }
.cta-band h2 .serif { color: #f6d2b8; }
.cta-band p { color: rgba(238,241,234,.85); max-width: 52ch; margin-top: 14px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* page header (inner pages) */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px); }
.page-head .lede { margin-top: 20px; }
.page-head h1 { max-width: 18ch; }

/* modules list (platform page) */
.module { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.module:first-of-type { border-top: 0; }
.module.flip > :first-child { order: 2; }
@media (max-width: 900px) { .module { grid-template-columns: 1fr; } .module.flip > :first-child { order: 0; } }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mini-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--ink-2); font-size: .98rem; }
.mini-list svg { width: 18px; height: 18px; color: var(--brand); margin-top: 4px; }
.mod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 36px; }
@media (max-width: 900px) { .mod-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mod-grid { grid-template-columns: 1fr; } }
.mod { border-top: 1px solid var(--line-2); padding: 22px 4px 6px; display: grid; gap: 8px; align-content: start; }
.mod p { color: var(--muted); font-size: .95rem; }
.mod .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.mod .ico svg { width: 20px; height: 20px; }

/* definition rows (security) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.row h2, .row h3 { font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.3; }
.row div { color: var(--muted); display: grid; gap: 10px; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: 8px; } }
.note { border-left: 3px solid var(--brand); background: var(--brand-tint); padding: 18px 20px; border-radius: 0 12px 12px 0; color: var(--ink-2); font-size: .97rem; }

/* contact form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
form.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; box-shadow: var(--shadow-sm); min-width: 0; }
.field { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: 400 1rem var(--body); color: var(--ink); background: var(--bg); width: 100%;
  border: 1px solid var(--field); border-radius: 12px; min-height: 50px; padding: 12px 14px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.form-msg.ok { display: block; background: var(--ready-tint); color: var(--ready); }
.form-msg.err { display: block; background: var(--notready-tint); color: var(--notready); }
.fine { font-size: .84rem; color: var(--muted); }
.contact-list { display: grid; gap: 18px; margin-top: 8px; }
.contact-list > div { display: grid; gap: 4px; justify-items: start; }
.contact-list .label { font-size: .8rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.copyable { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; font-size: 1.1rem; }
.copy-btn { font: 600 .82rem var(--body); border: 1px solid var(--field); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; color: var(--ink-2); }
.steps-list li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font: 600 .85rem var(--mono); }

/* prose (legal pages) */
.prose { max-width: 72ch; display: grid; gap: 16px; color: var(--ink-2); }
.prose h2 { font-size: var(--step-2); margin-top: 24px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.prose a { color: var(--brand); }

/* footer */
.site-footer { background: var(--night-2); color: var(--night-muted); padding-block: 72px 40px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .foot-h { color: #fff; font-size: .8rem; font-family: var(--body); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--night-muted); }
.site-footer a:hover { color: #fff; }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(238,241,234,.14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.theme-toggle { background: transparent; border: 1px solid rgba(238,241,234,.3); color: var(--night-muted); border-radius: 999px; padding: 6px 12px; font: 500 .82rem var(--body); cursor: pointer; }

/* reveal motion — resting state is visible; motion only adds a gentle lift */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: lift .8s cubic-bezier(.2,.7,.2,1) both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes lift { from { transform: translateY(16px); } to { transform: none; } }
}
@media (min-width: 561px) { .board-foot { padding-left: 250px; } }
@media (min-width: 1181px) { .board-foot { padding-left: 200px; } }

.example { display: inline-block; font: 600 .66rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--field); border-radius: 999px; padding: 4px 7px; margin-left: 4px; vertical-align: middle; }
.media .tag .example { justify-self: start; margin: 0 0 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.night :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible, .photo-band :focus-visible { outline-color: var(--night-accent); }
figure.doc { margin: 0; }
.role-panel:focus-visible { outline-offset: 4px; }
.field input[aria-invalid="true"] { border-color: var(--notready); border-width: 2px; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; padding-block: 12px; line-height: 1.3; } }
