/* ============================================================
   ParentBridge — Editorial Calm Teal
   Marketing + legal site. Light product theme derived from
   docs/design/onboarding-calm-teal.html.

   Constraints (do not break):
   - Self-hosted fonts only (Fraunces + Schibsted Grotesk, SIL OFL).
   - CSP: no JS, NO inline styles, fonts/styles 'self', img 'self' data:.
     => every visual lives here; pages carry zero style="" attributes.
   - All motion gated behind prefers-reduced-motion: no-preference.
   ============================================================ */

/* ---- self-hosted variable fonts (latin) ---- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/fraunces-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/schibsted.woff2") format("woff2");
}

/* ---- tokens ---- */
:root {
  --accent: #178a78;
  --accent-deep: #0f6e60;
  --accent-bright: #1e9d88;
  --bg: #f4f6f5;
  --bg-deep: #eef3f1;
  --surface: #ffffff;
  --text: #15201d;
  --ink-2: #38463f;
  --muted: #6c7a76;
  --line: #e3e9e6;
  --you: #e0efea;
  --you-line: #c7e1da;
  --co: #f7e8cf;
  --co-line: #edd9b6;
  --co-ink: #9a7426;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(30, 42, 39, 0.05);
  --shadow-md: 0 16px 34px -20px rgba(15, 110, 96, 0.45);
  --shadow-lg: 0 34px 60px -28px rgba(15, 110, 96, 0.5);
  --shadow-band: 0 30px 60px -26px rgba(15, 110, 96, 0.7);

  --maxw: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:
    "Schibsted Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  position: relative;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* atmospheric wash: teal-to-peach mesh, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      620px 420px at 88% -6%,
      rgba(255, 226, 184, 0.5) 0%,
      transparent 62%
    ),
    radial-gradient(
      720px 520px at -8% 4%,
      rgba(30, 157, 136, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      900px 700px at 50% 120%,
      rgba(15, 110, 96, 0.08) 0%,
      transparent 60%
    ),
    linear-gradient(180deg, #dde9ec 0%, #e6efeb 30%, var(--bg) 70%);
}

/* fine grain overlay (data-URI SVG noise — allowed by img-src data:) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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");
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  max-width: 100%;
  display: block;
}
::selection {
  background: rgba(23, 138, 120, 0.22);
  color: var(--text);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* hidden inline SVG symbol sprites (replaces style="position:absolute") */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---- layout ---- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 760px;
}

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: saturate(1.5) blur(12px);
  background: rgba(244, 246, 245, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.brand .bmk {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff center / cover no-repeat url("logo.png");
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: right 0.22s var(--ease);
}
.site-nav a:not(.nav-cta):hover {
  color: var(--accent-deep);
  text-decoration: none;
}
.site-nav a:not(.nav-cta):hover::after {
  right: 0;
}
.site-nav .nav-cta {
  color: #fff;
  background: var(--accent);
  padding: 9px 16px;
  border-radius: 11px;
  box-shadow: var(--shadow-md);
  transition:
    background 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.site-nav .nav-cta:hover {
  background: var(--accent-deep);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---- buttons / pills / eyebrow ---- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(140deg, var(--accent-bright), var(--accent-deep));
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  cursor: pointer;
  box-shadow: 0 14px 26px -12px rgba(15, 110, 96, 0.6);
  transition:
    transform 0.16s var(--ease),
    box-shadow 0.16s var(--ease),
    filter 0.16s var(--ease);
}
.button:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -14px rgba(15, 110, 96, 0.62);
  filter: brightness(1.04);
}
.button svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.3;
  transition: transform 0.18s var(--ease);
}
.button:hover svg {
  transform: translateX(3px);
}
.button.ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent-deep);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.button.ghost:hover {
  background: #fff;
  filter: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(23, 138, 120, 0.1);
  border: 1px solid rgba(23, 138, 120, 0.28);
  padding: 7px 14px;
  border-radius: 999px;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- hero ---- */
.hero {
  position: relative;
  padding: 74px 0 36px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}
.hero-copy {
  max-width: 36rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144;
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-top: 18px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-deep);
}
.hero .lede {
  margin-top: 22px;
  font-size: clamp(16px, 1.4vw, 18.5px);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 40ch;
}
.hero .cta-row {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero .reassure {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* two-household strip */
.households {
  margin-top: 30px;
  display: flex;
  align-items: stretch;
  gap: 10px;
  max-width: 30rem;
}
.households .hh {
  flex: 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 12px 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.households .hh.you {
  background: var(--you);
  border-color: var(--you-line);
}
.households .hh.co {
  background: var(--co);
  border-color: var(--co-line);
}
.households .hh b {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #2c3b37;
}
.households .hh.co b {
  color: var(--co-ink);
}
.households .hh span {
  font-size: 12.5px;
  color: var(--ink-2);
}
.households .bridge {
  flex: 0 0 auto;
  align-self: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff center / cover no-repeat url("logo.png");
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

/* ---- hero product visual ---- */
.hero-art {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 400px;
}
.art-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.art-card .art-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.art-card .art-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
}
.art-card .art-fam {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}
.art-card .art-fam i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}
.weekstrip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.weekstrip .day {
  border-radius: 9px;
  padding: 8px 0 7px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
}
.weekstrip .day .dn {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.weekstrip .day .dd {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
}
.weekstrip .day.you {
  background: var(--you);
  border-color: var(--you-line);
}
.weekstrip .day.co {
  background: var(--co);
  border-color: var(--co-line);
}
.weekstrip .day.today {
  background: linear-gradient(140deg, var(--accent-bright), var(--accent-deep));
  border-color: var(--accent-deep);
}
.weekstrip .day.today .dn {
  color: rgba(255, 255, 255, 0.82);
}
.weekstrip .day.today .dd {
  color: #fff;
}
.art-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 13px;
}
.art-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.art-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.art-legend .lg-you {
  background: var(--accent);
}
.art-legend .lg-co {
  background: #d69a3e;
}
/* floating relay bubble */
.relay-bubble {
  position: absolute;
  right: -16px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--co-line);
  border-radius: 14px;
  padding: 10px 13px;
  box-shadow: var(--shadow-md);
}
.relay-bubble .rdot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d69a3e;
  box-shadow: 0 0 0 0 rgba(214, 154, 62, 0.5);
}
.relay-bubble .rt {
  font-size: 11px;
  font-weight: 700;
  color: #2c3b37;
  line-height: 1.25;
}
.relay-bubble .rt span {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
}
/* decorative dashed arc behind the art */
.hero-art .arc {
  position: absolute;
  inset: -26px -10px -26px -26px;
  border: 1.5px dashed rgba(23, 138, 120, 0.28);
  border-radius: 40px 40px 60px 60px;
  z-index: -1;
}

/* ---- sections + bento ---- */
section {
  position: relative;
  padding: 54px 0;
}
.section-head {
  max-width: 60ch;
  margin: 0 auto 34px;
  text-align: center;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--text);
  margin-top: 10px;
}
.section-head h2 em {
  font-style: italic;
  color: var(--accent-deep);
}
.section-head p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 16.5px;
}

.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(6, 1fr);
  grid-template-areas:
    "relay relay relay relay cal cal"
    "relay relay relay relay msg msg"
    "exp exp rec rec priv priv";
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--you-line);
}
.tile .ic {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #eaf2ef;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.tile .ic svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.9;
}
.tile h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.tile p {
  margin-top: 8px;
  font-size: 14.5px;
  color: #51605b;
  line-height: 1.58;
}
.tile[style] {
  /* guard: no tile should ever carry inline styles */
}
.area-relay {
  grid-area: relay;
}
.area-cal {
  grid-area: cal;
}
.area-msg {
  grid-area: msg;
}
.area-exp {
  grid-area: exp;
}
.area-rec {
  grid-area: rec;
}
.area-priv {
  grid-area: priv;
}

/* featured relay tile */
.tile--feature {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(
      420px 240px at 16% 0%,
      rgba(30, 157, 136, 0.1),
      transparent 70%
    ),
    var(--surface);
  border-color: var(--you-line);
  padding: 26px;
}
.tile--feature .ic {
  background: linear-gradient(140deg, var(--accent-bright), var(--accent-deep));
}
.tile--feature .ic svg {
  stroke: #fff;
}
.tile--feature h3 {
  font-size: 23px;
}
.tile--feature p {
  font-size: 15.5px;
  max-width: 46ch;
}
.tile--feature .feature-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chiprow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #2c3b37;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}
.chiprow.sand {
  background: var(--co);
  border-color: var(--co-line);
  color: var(--co-ink);
}
.chiprow .rdot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

/* ---- closing band ---- */
.band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    140deg,
    var(--accent-bright) 0%,
    var(--accent-deep) 100%
  );
  border-radius: 28px;
  padding: 52px 36px;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-band);
}
.band::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  pointer-events: none;
}
.band h2 {
  position: relative;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 4.2vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.015em;
}
.band p {
  position: relative;
  margin: 14px auto 0;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16.5px;
}
.band .button {
  position: relative;
  margin-top: 24px;
  background: #fff;
  color: var(--accent-deep);
  box-shadow: 0 14px 26px -12px rgba(0, 0, 0, 0.4);
}
.band .button:hover {
  background: #eef7f4;
  filter: none;
}

/* ---- legal / long-form (restrained, readable) ---- */
.doc {
  padding: 46px 0 64px;
}
.doc-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.doc-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.02em;
  color: var(--text);
}
.doc-head .meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.doc h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 36px 0 10px;
}
.doc h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 22px 0 6px;
}
.doc p,
.doc li {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-2);
}
.doc p {
  margin-top: 10px;
}
.doc ul,
.doc ol {
  margin: 10px 0 10px 4px;
  padding-left: 0;
  list-style: none;
}
.doc ul li {
  position: relative;
  padding-left: 20px;
  margin-top: 6px;
}
.doc ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}
.doc ol {
  counter-reset: item;
}
.doc ol li {
  position: relative;
  padding-left: 28px;
  margin-top: 6px;
  counter-increment: item;
}
.doc ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 2px;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: rgba(23, 138, 120, 0.12);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc strong {
  color: var(--text);
  font-weight: 700;
}
.doc code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}
.doc .toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 18px;
  box-shadow: var(--shadow-sm);
}
.doc .toc h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--sans);
}
.doc .toc ul {
  columns: 2;
  column-gap: 28px;
  margin: 0;
}
.doc .toc li {
  padding-left: 0;
  margin-top: 5px;
}
.doc .toc li::before {
  display: none;
}
.doc .toc a {
  font-size: 13.5px;
  font-weight: 600;
}
.doc .table-wrap {
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}
.doc th,
.doc td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.doc th {
  background: var(--bg-deep);
  font-weight: 700;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.doc tr:last-child td {
  border-bottom: none;
}

/* callouts */
.note {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: var(--you);
  border: 1px solid #cfe6e0;
  border-radius: 12px;
  padding: 13px 15px;
  margin-top: 16px;
}
.note svg {
  width: 17px;
  height: 17px;
  stroke: var(--accent-deep);
  fill: none;
  stroke-width: 2.2;
  flex: 0 0 auto;
  margin-top: 2px;
}
.note p {
  margin: 0;
  font-size: 13.5px;
  color: #28433d;
  font-weight: 600;
}
.note.todo {
  background: #fbf3e4;
  border-color: var(--co-line);
}
.note.todo svg {
  stroke: var(--co-ink);
}
.note.todo p {
  color: #6e5c3c;
}

/* ---- download + 404 (hero-style personality) ---- */
.center {
  text-align: center;
}
.cta-row.is-center {
  justify-content: center;
}
.download {
  text-align: center;
  padding: 76px 0;
}
.download h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144;
  font-size: clamp(34px, 5.4vw, 56px);
  letter-spacing: -0.022em;
  line-height: 1.04;
  color: var(--text);
  max-width: 16ch;
  margin: 16px auto 0;
}
.download h1 em {
  font-style: italic;
  color: var(--accent-deep);
}
.download p {
  max-width: 52ch;
  margin: 18px auto 0;
  color: var(--ink-2);
  font-size: 17px;
}
.download .cta-row {
  margin-top: 28px;
}
.badges {
  margin: 32px auto 0;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.badge-stub {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #11201d;
  color: #fff;
  border-radius: 13px;
  padding: 11px 18px;
  opacity: 0.5;
  font-weight: 700;
  cursor: default;
}
.badge-stub svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.6;
}
.badge-stub small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
.badge-stub b {
  font-size: 15px;
}
.download .small-links {
  margin-top: 30px;
}

.notfound {
  text-align: center;
  padding: 104px 0;
}
.notfound .big {
  font-family: var(--serif);
  font-style: italic;
  font-optical-sizing: auto;
  font-size: clamp(80px, 14vw, 132px);
  color: var(--accent);
  line-height: 1;
}
.notfound h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin-top: 8px;
  color: var(--text);
}
.notfound p {
  margin-top: 10px;
  color: var(--muted);
}
.notfound .cta-row {
  margin-top: 24px;
}

/* ---- footer ---- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.site-footer .inner {
  padding: 36px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer .fbrand {
  max-width: 30ch;
}
.site-footer .fbrand .brand {
  font-size: 17px;
}
.site-footer .fbrand p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.site-footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.site-footer nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.site-footer nav a:hover {
  color: var(--accent-deep);
  text-decoration: none;
}
.site-footer .copy {
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---- a11y helpers ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -52px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 50;
  transition: top 0.16s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

/* ============================================================
   MOTION — opt-in; static + accessible by default
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(214, 154, 62, 0.5);
    }
    70% {
      box-shadow: 0 0 0 9px rgba(214, 154, 62, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(214, 154, 62, 0);
    }
  }

  /* orchestrated page-load reveal for hero children */
  .reveal {
    animation: rise 0.7s var(--ease) both;
  }
  .d1 {
    animation-delay: 0.04s;
  }
  .d2 {
    animation-delay: 0.12s;
  }
  .d3 {
    animation-delay: 0.2s;
  }
  .d4 {
    animation-delay: 0.28s;
  }
  .d5 {
    animation-delay: 0.36s;
  }
  .d6 {
    animation-delay: 0.46s;
  }

  /* scroll-reveal: progressive — no-op where view() unsupported
       (there it simply plays once on load, ending visible) */
  .scroll-reveal {
    animation: rise 0.8s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 2% cover 22%;
  }

  .relay-bubble .rdot {
    animation: pulse 2.4s ease-out infinite;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-art {
    order: -1;
    max-width: 360px;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "relay relay"
      "cal msg"
      "exp rec"
      "priv priv";
  }
  .tile--feature {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .site-nav {
    gap: 14px;
  }
  .site-nav a:not(.nav-cta) {
    display: none;
  }
  .households {
    flex-direction: column;
  }
  .households .bridge {
    transform: rotate(90deg);
  }
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      "relay"
      "cal"
      "msg"
      "exp"
      "rec"
      "priv";
  }
  .relay-bubble {
    right: 6px;
  }
  .doc .toc ul {
    columns: 1;
  }
}
