/* ==========================================================================
   PhoneRescue Guide — stylesheet
   Design seed : S16 · Interactive Workflow Visualization
   Theme       : LIGHT (single fixed theme, no switcher)
   Palette     : icon blue + teal + mint (sampled from the PhoneRescue icon)
   Fonts       : Bricolage Grotesque (display) · Figtree (text) · IBM Plex Mono (labels)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — airy whites with a faint tint taken from the icon's highlight */
  --bg: #f5fafc;
  --bg-deep: #eaf4f7;
  --surface: #ffffff;
  --surface-2: #f0f7fa;
  --surface-3: #e1eef3;
  --line: #cfe0e7;
  --line-soft: #e2edf1;

  /* Text — deep blue-ink, never pure black */
  --text: #0f2a37;
  --text-2: #3d5866;
  --muted: #556e7a;

  /* Brand — sampled from the PhoneRescue icon
     icon blue  #2488c4 (primary)   icon teal #3fbbb3 (supporting)
     icon mint  #46d0c3 (accent)    text-safe shades are used for type */
  --blue: #1f7cb6;          /* buttons, active states (4.5:1 with white) */
  --blue-icon: #2488c4;     /* decorative strokes and fills */
  --blue-hi: #1a6fa3;       /* links, hover, small highlighted text */
  --blue-ink: #ffffff;      /* text on blue */
  --blue-soft: rgba(36, 136, 196, 0.1);
  --teal: #3fbbb3;
  --teal-ink: #0f766e;      /* teal text and labels */
  --teal-soft: rgba(63, 187, 179, 0.14);
  --mint: #46d0c3;
  --mint-soft: rgba(70, 208, 195, 0.18);
  --ink: #0f2a37;

  /* Type */
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-text: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Geometry — several radii on purpose */
  --r-xs: 4px;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --r-pill: 999px;

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 8vw, 104px);
  --hdr-h: 72px;

  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --shadow-1: 0 1px 2px rgba(15, 42, 55, 0.04), 0 12px 32px -20px rgba(15, 42, 55, 0.25);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--teal-ink); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-hi); }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.35rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.12rem, 1.6vw, 1.3rem); letter-spacing: -0.01em; }
h4 { font-size: 1.02rem; }

strong { color: var(--text); font-weight: 650; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--blue); color: var(--blue-ink); }

section[id], [id].anchor, h2[id], h3[id] { scroll-margin-top: calc(var(--hdr-h) + 20px); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--blue); color: var(--blue-ink); font-weight: 700;
  padding: 10px 16px; border-radius: var(--r-s);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--blue-ink); }

main:focus { outline: none; }

/* --------------------------------------------------------------------------
   3. Shared atoms
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-ink);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7;
}
.eyebrow--plain::before { display: none; }

.lead { font-size: clamp(1.08rem, 1.4vw, 1.2rem); color: var(--text-2); line-height: 1.6; }
.muted { color: var(--muted); }

.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-text); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 15px 24px; border-radius: var(--r-s);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease), color .2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateY(2px); }

.btn-accent {
  --btn-bg: var(--blue); --btn-fg: var(--blue-ink); --btn-bd: var(--blue);
  box-shadow: 0 8px 22px -12px rgba(31, 124, 182, .6);
}
.btn-accent:hover { --btn-bg: var(--blue-hi); --btn-bd: var(--blue-hi); box-shadow: 0 12px 28px -12px rgba(31, 124, 182, .7); }

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--line); }
.btn-ghost:hover { --btn-bd: var(--teal-ink); }

.btn-sm { padding: 11px 16px; font-size: .92rem; }
.btn-lg { padding: 18px 28px; font-size: 1.06rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 650;
  color: var(--teal-ink);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .3s var(--ease), color .2s;
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover::after { transform: translateX(3px); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em;
  padding: 5px 10px; border-radius: var(--r-xs);
  border: 1px solid var(--line); color: var(--text-2); background: var(--bg-deep);
}
.chip--blue { border-color: rgba(31, 124, 182, .35); color: var(--blue-hi); background: var(--blue-soft); }
.chip--teal { border-color: rgba(63, 187, 179, .45); color: var(--teal-ink); background: var(--teal-soft); }

.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--bg-deep); }
.section--rule { border-top: 1px solid var(--line-soft); }

.section-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p:not(.eyebrow) { color: var(--text-2); margin: 0; }
.section-head--split {
  max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 24px 56px; align-items: end;
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
#site-header {
  position: sticky; top: 0; z-index: 60;
  min-height: var(--hdr-h);
  background: rgba(255, 255, 255, .96);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  #site-header { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
#site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(15, 42, 55, .35); }

.hdr-bar { position: relative; }
.hdr-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--hdr-h);
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 3px 10px -4px rgba(36, 136, 196, .55); transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-12deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.14rem; letter-spacing: -0.01em; }
.brand-sub { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.primary-nav { display: flex; align-items: center; gap: 22px; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; display: block;
  padding: 9px 11px; border-radius: var(--r-s);
  color: var(--text-2); font-size: .95rem; font-weight: 550;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.is-active, .nav-link[aria-current="page"] { color: var(--text); }

/* Thin flow line with a node that travels to the active destination */
.hdr-flow { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none; }
.hdr-flow-line {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
.hdr-flow-dot {
  position: absolute; left: 0; top: -3.5px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 3px rgba(70, 208, 195, .35);
  opacity: 0; transition: transform .5s var(--ease), opacity .3s;
}
.hdr-flow-dot.is-on { opacity: 1; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r-s);
  border: 1px solid var(--line); background: var(--surface);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.nav-toggle-line { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.nav-open .nav-toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-link { padding: 9px 8px; font-size: .9rem; }
  .primary-nav { gap: 14px; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; left: 0; right: 0; top: var(--hdr-h);
    flex-direction: column; align-items: stretch; gap: 18px;
    padding: 18px var(--gutter) 26px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(15, 42, 55, .35);
    max-height: calc(100vh - var(--hdr-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
  }
  .nav-open .primary-nav {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li + li { border-top: 1px solid var(--line-soft); }
  .nav-link { padding: 14px 4px; font-size: 1.05rem; border-radius: 0; }
  .nav-link:hover { background: transparent; }
  .nav-link.is-active::before, .nav-link[aria-current="page"]::before {
    content: ""; position: absolute; left: -12px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
    border-radius: 50%; background: var(--blue);
  }
  .hdr-cta { width: 100%; padding-block: 15px; }
}

/* --------------------------------------------------------------------------
   5. Hero — text + workflow illustration (input → operation → output)
   -------------------------------------------------------------------------- */
.hero { padding: clamp(48px, 6vw, 84px) 0 clamp(56px, 6vw, 88px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 340px at 78% 38%, rgba(70, 208, 195, .16), transparent 70%),
    radial-gradient(380px 260px at 92% 82%, rgba(36, 136, 196, .10), transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-title { max-width: 21ch; margin-bottom: 20px; font-size: clamp(2.1rem, 4vw, 3.1rem); }
.hero-title em { font-style: normal; color: var(--blue); white-space: nowrap; }
.hero-lede { max-width: 46ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 34px; }

.hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 0;
  border-top: 1px solid var(--line); padding-top: 18px; margin: 0; max-width: 560px;
}
.hero-facts div { padding-right: 20px; }
.hero-facts div + div { padding-left: 20px; border-left: 1px solid var(--line-soft); }
.hero-facts dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.hero-facts dd { margin: 0; font-size: .95rem; font-weight: 600; color: var(--text); line-height: 1.35; }

.hero-visual {
  position: relative; margin: 0; border: 1px solid var(--line-soft); border-radius: var(--r-l);
  background: var(--surface); box-shadow: var(--shadow-1);
  padding: clamp(14px, 2vw, 24px);
}
.hero-visual figcaption {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; color: var(--muted);
  padding: 12px 6px 0; border-top: 1px dashed var(--line-soft); margin-top: 8px;
}
.hero-flow svg { width: 100%; height: auto; overflow: visible; }

/* SVG parts */
.hf-stage { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; fill: var(--muted); }
.hf-stage-num { fill: var(--blue); }
.hf-node-box { fill: var(--surface); stroke: var(--line); stroke-width: 1.2; }
.hf-core-box { fill: var(--surface-2); stroke: var(--teal); stroke-width: 1.4; }
.hf-label { font-family: var(--f-text); font-size: 13px; font-weight: 600; fill: var(--text); }
.hf-sub { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .04em; fill: var(--muted); }
.hf-icon { fill: none; stroke: var(--teal-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hf-link { fill: none; stroke: var(--teal-ink); stroke-width: 1.5; stroke-linecap: round; opacity: .75; }
.hf-link--out { stroke: var(--blue); opacity: .9; }
.hf-tile { fill: var(--surface-3); stroke: var(--line); stroke-width: 1; }
.hf-tile--lost { fill: transparent; stroke-dasharray: 3 3; stroke: var(--muted); }
.hf-tile--pick { fill: var(--mint-soft); stroke: var(--teal); }
.hf-tick { fill: none; stroke: var(--teal-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hf-out-tick { fill: none; stroke: var(--blue-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hf-lens { fill: rgba(255, 255, 255, .82); stroke: var(--ink); stroke-width: 1.6; }
.hf-port { fill: var(--bg); stroke: var(--teal-ink); stroke-width: 1.4; }

/* Hero choreography — plays once, then rests */
.js .hero-flow .hf-node,
.js .hero-flow .hf-core,
.js .hero-flow .hf-out { opacity: 0; transform: translateY(8px); transform-box: fill-box; }
.js .hero-flow .hf-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .hero-flow .hf-pop { opacity: 0; transform: scale(.6); transform-box: fill-box; transform-origin: center; }
.js .hero-flow .hf-lensg { opacity: 0; transform: translate(-26px, 18px); }

.hero-flow.is-in .hf-node,
.hero-flow.is-in .hf-core,
.hero-flow.is-in .hf-out { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.hero-flow.is-in .hf-draw { stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease); transition-delay: var(--d, 0ms); }
.hero-flow.is-in .hf-pop { opacity: 1; transform: none; transition: opacity .35s var(--ease), transform .45s cubic-bezier(.3, 1.5, .5, 1); transition-delay: var(--d, 0ms); }
.hero-flow.is-in .hf-lensg { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }

.hero-intro > * { animation: none; }
.js .hero-intro > * { opacity: 0; transform: translateY(12px); animation: heroIn .7s var(--ease) forwards; }
.js .hero-intro > *:nth-child(2) { animation-delay: .08s; }
.js .hero-intro > *:nth-child(3) { animation-delay: .16s; }
.js .hero-intro > *:nth-child(4) { animation-delay: .24s; }
.js .hero-intro > *:nth-child(5) { animation-delay: .32s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   6. Generic reveal
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }

.js .draw-group .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .draw-group.is-in .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease); transition-delay: var(--d, 0ms); }

/* --------------------------------------------------------------------------
   7. About — problem → diagram → outcome
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px); align-items: start;
}
.about-intro { grid-column: 1 / -1; max-width: 780px; margin-bottom: 8px; }
.about-intro h2 { margin-bottom: 14px; }
.about-intro p:not(.eyebrow) { color: var(--text-2); font-size: 1.1rem; margin: 0; }
.about-col h3 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.about-col h3 .dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px dashed var(--muted); }
.about-col--out h3 .dot { border: 0; background: var(--blue); }
.about-col p { color: var(--text-2); }
.about-col ul { list-style: none; display: grid; gap: 10px; }
.about-col li { position: relative; padding-left: 18px; color: var(--text-2); font-size: .98rem; }
.about-col li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--muted); }
.about-col--out li::before { background: var(--blue); }

.about-diagram {
  margin: 0; border: 1px solid var(--line-soft); border-radius: var(--r-m);
  background: var(--surface); padding: 18px;
}
.about-diagram img { width: 100%; }
.about-key { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.about-key li { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; color: var(--muted); }
.about-key i { width: 14px; height: 2px; display: inline-block; background: var(--teal-ink); }
.about-key i.k-out { background: var(--blue); }
.about-key i.k-lost { height: 0; border-top: 2px dashed var(--muted); background: none; }

.about-maker {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline;
  margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  font-size: .95rem; color: var(--muted);
}
.about-maker strong { color: var(--text-2); font-weight: 600; }

/* --------------------------------------------------------------------------
   8. Features — relationship diagram + concise rows
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.fmap-wrap { position: sticky; top: calc(var(--hdr-h) + 28px); }
.fmap {
  border-radius: var(--r-l); border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 50% 42%, rgba(70, 208, 195, .16), transparent 60%),
    var(--bg-deep);
  padding: clamp(10px, 2vw, 22px);
}
.fmap svg { width: 100%; height: auto; }
.fmap-note { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); letter-spacing: .04em; margin-top: 12px; }

.fm-group { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; fill: var(--muted); }
.fm-hub { fill: var(--surface-2); stroke: var(--teal); stroke-width: 1.6; }
.fm-hub-ring { fill: none; stroke: var(--teal); stroke-width: 1; opacity: .45; stroke-dasharray: 2 5; }
.fm-hub-text { font-family: var(--f-display); font-size: 15px; font-weight: 700; fill: var(--text); }
.fm-hub-sub { font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; fill: var(--muted); }
.flink { fill: none; stroke: var(--line); stroke-width: 1.3; transition: stroke .25s var(--ease), opacity .25s; }
.fnode circle { fill: var(--surface); stroke: var(--teal-ink); stroke-width: 1.4; transition: fill .25s var(--ease), stroke .25s var(--ease), r .25s var(--ease); }
.fnode .fn-id { font-family: var(--f-mono); font-size: 10px; font-weight: 500; fill: var(--teal-ink); transition: fill .25s; }
.fnode .fn-label { font-family: var(--f-text); font-size: 12.5px; font-weight: 600; fill: var(--text-2); transition: fill .25s; }
.fnode--tool circle { stroke: var(--blue); }
.fnode--tool .fn-id { fill: var(--blue-hi); }

.fmap.has-focus .flink { opacity: .35; }
.fmap.has-focus .fnode { opacity: .45; transition: opacity .25s; }
.fmap .flink.is-hot { opacity: 1; stroke: var(--blue); }
.fmap .fnode.is-hot { opacity: 1; }
.fmap .fnode.is-hot circle { fill: var(--blue); stroke: var(--blue); }
.fmap .fnode.is-hot .fn-id { fill: var(--blue-ink); }
.fmap .fnode.is-hot .fn-label { fill: var(--text); }

.feature-rows { display: grid; gap: 34px; }
.frow-group h3 {
  font-family: var(--f-mono); font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}
.frow-list { list-style: none; }
.frow {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px;
  padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line-soft);
  border-radius: 0; position: relative; outline: none;
  transition: background-color .25s var(--ease);
}
.frow::before {
  content: ""; position: absolute; left: -14px; top: 16px; bottom: 16px; width: 2px;
  background: var(--blue); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease);
}
.frow.is-hot::before, .frow:focus-visible::before { transform: scaleY(1); }
.frow:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.frow-id {
  font-family: var(--f-mono); font-size: .78rem; color: var(--teal-ink);
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: background-color .25s, color .25s, border-color .25s;
}
.frow--tool .frow-id { color: var(--blue-hi); }
.frow.is-hot .frow-id { background: var(--blue); color: var(--blue-ink); border-color: var(--blue); }
.frow h4 { margin: 4px 0 4px; font-family: var(--f-text); font-weight: 700; font-size: 1.04rem; letter-spacing: 0; }
.frow p { margin: 0; color: var(--text-2); font-size: .97rem; }

/* --------------------------------------------------------------------------
   9. How It Works — four-stage flow, connectors draw once
   -------------------------------------------------------------------------- */
.how { background: var(--bg-deep); border-block: 1px solid var(--line-soft); }
.how-flow { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.how-step { position: relative; padding: 0 clamp(14px, 2vw, 28px) 0 0; }
.how-node {
  position: relative; z-index: 1;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 1.2rem;
  background: var(--bg); color: var(--text); border: 1.5px solid var(--teal-ink);
  margin-bottom: 22px;
}
.how-step:last-child .how-node { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); }
.how-step::after {
  content: ""; position: absolute; top: 27px; left: 62px; right: 8px; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--teal-ink) 0 8px, transparent 8px 13px);
  transform-origin: left center;
}
.how-step:last-child::after { display: none; }
.js .how-flow .how-step::after { transform: scaleX(0); }
.js .how-flow.is-in .how-step::after { transform: scaleX(1); transition: transform .7s var(--ease); }
.js .how-flow.is-in .how-step:nth-child(1)::after { transition-delay: .25s; }
.js .how-flow.is-in .how-step:nth-child(2)::after { transition-delay: .65s; }
.js .how-flow.is-in .how-step:nth-child(3)::after { transition-delay: 1.05s; }
.js .how-flow .how-node { transform: scale(.7); opacity: 0; }
.js .how-flow.is-in .how-node { transform: none; opacity: 1; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .3s; }
.js .how-flow.is-in .how-step:nth-child(2) .how-node { transition-delay: .5s; }
.js .how-flow.is-in .how-step:nth-child(3) .how-node { transition-delay: .9s; }
.js .how-flow.is-in .how-step:nth-child(4) .how-node { transition-delay: 1.3s; }

.how-stage { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 6px; display: block; }
.how-step:last-child .how-stage { color: var(--blue-hi); }
.how-step h3 { margin-bottom: 8px; }
.how-step p { color: var(--text-2); font-size: .97rem; margin: 0; }
.how-foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; color: var(--muted); font-size: .95rem; }

/* --------------------------------------------------------------------------
   10. Use cases — scenario mosaic
   -------------------------------------------------------------------------- */
.uses-mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.use-tile {
  grid-column: span 2;
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  padding: 24px; border-radius: var(--r-m);
  background: var(--surface); border: 1px solid var(--line-soft);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.use-tile:hover { border-color: var(--line); transform: translateY(-2px); }
.use-tile--wide { grid-column: span 4; background: linear-gradient(140deg, var(--surface-2), var(--surface)); }
.use-tile--half { grid-column: span 3; }
.use-tile h3 { font-size: 1.12rem; margin-bottom: 8px; }
.use-tile p { color: var(--text-2); font-size: .96rem; margin: 0; }
.use-route {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px dashed var(--line);
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .05em; color: var(--muted);
}
.use-route b { font-weight: 500; color: var(--blue-hi); }

/* --------------------------------------------------------------------------
   11. Installation — vertical procedure + side checklist
   -------------------------------------------------------------------------- */
.install-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.install-steps { list-style: none; position: relative; }
.install-steps::before { content: ""; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.install-step { position: relative; padding: 0 0 30px 56px; }
.install-step:last-child { padding-bottom: 0; }
.install-num {
  position: absolute; left: 0; top: 0; width: 31px; height: 31px; border-radius: var(--r-xs);
  display: grid; place-items: center; background: var(--bg); border: 1px solid var(--teal-ink);
  font-family: var(--f-mono); font-size: .8rem; color: var(--teal-ink);
}
.install-step h3 { font-size: 1.12rem; margin-bottom: 6px; padding-top: 3px; }
.install-step p { color: var(--text-2); margin: 0; font-size: .98rem; }
.install-step .chip { margin-top: 10px; }

.install-aside {
  border-radius: var(--r-xs) var(--r-l) var(--r-l) var(--r-xs);
  border-left: 3px solid var(--blue); background: var(--surface);
  padding: 26px 26px 22px; position: sticky; top: calc(var(--hdr-h) + 28px);
}
.install-aside h3 { font-size: 1.1rem; margin-bottom: 14px; }
.check-list { list-style: none; display: grid; gap: 11px; }
.check-list li { position: relative; padding-left: 28px; color: var(--text-2); font-size: .96rem; line-height: 1.5; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid var(--teal-ink);
  background: linear-gradient(var(--teal-ink), var(--teal-ink)) center / 0 0 no-repeat;
}
.check-list li::after {
  content: ""; position: absolute; left: 5px; top: calc(.2em + 3px); width: 5px; height: 8px;
  border: solid var(--teal-ink); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   12. Compatibility — specification matrix
   -------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-m); border: 1px solid var(--line); }
.compat-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .97rem; }
.compat-table caption { text-align: left; padding: 0 0 12px; color: var(--muted); font-size: .9rem; }
.compat-table th, .compat-table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.compat-table thead th {
  background: var(--surface-2); font-family: var(--f-display); font-size: 1.04rem; font-weight: 650;
  border-bottom: 1px solid var(--line);
}
.compat-table thead th span { display: block; font-family: var(--f-mono); font-size: .68rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.compat-table tbody th {
  width: 22%; font-family: var(--f-mono); font-size: .76rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-ink); background: var(--surface-2);
}
.compat-table td { color: var(--text-2); }
.compat-table tbody tr:last-child th, .compat-table tbody tr:last-child td { border-bottom: 0; }
.compat-table tbody tr { transition: background-color .2s; }
.compat-table tbody tr:hover { background: rgba(36, 136, 196, .03); }
.compat-no { color: var(--blue-hi); font-weight: 600; }
.compat-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; max-width: 820px; color: var(--muted); font-size: .94rem; }
.compat-note svg { flex: none; width: 20px; height: 20px; color: var(--teal-ink); margin-top: 2px; }

/* --------------------------------------------------------------------------
   13. Troubleshooting — diagnostic checklist (typography-led)
   -------------------------------------------------------------------------- */
.trouble-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
.trouble-item { padding: 26px 0; border-top: 1px solid var(--line); }
.trouble-item h3 { display: flex; gap: 14px; align-items: baseline; font-size: 1.14rem; margin-bottom: 10px; }
.trouble-item h3 span { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; color: var(--blue-hi); letter-spacing: .08em; flex: none; }
.trouble-item > p { color: var(--text-2); font-size: .97rem; margin-bottom: 12px; }
.trouble-item ul { list-style: none; display: grid; gap: 7px; }
.trouble-item li { position: relative; padding-left: 20px; color: var(--text-2); font-size: .95rem; }
.trouble-item li::before { content: "›"; position: absolute; left: 2px; top: -1px; color: var(--teal-ink); font-weight: 700; }

/* --------------------------------------------------------------------------
   14. Download — full-width band
   -------------------------------------------------------------------------- */
.download { padding-block: clamp(56px, 7vw, 96px); }
.download-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-l); border: 1px solid var(--line);
  background:
    radial-gradient(600px 320px at 85% 10%, rgba(70, 208, 195, .22), transparent 70%),
    linear-gradient(135deg, #ffffff, #e7f4f8 70%);
  padding: clamp(28px, 5vw, 60px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 60px); align-items: center;
}
.download-copy h2 { margin-bottom: 14px; }
.download-copy > p:not(.eyebrow) { color: var(--text-2); max-width: 52ch; }
.download-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.download-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.download-host { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em; color: var(--muted); }
.download-note {
  display: flex; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted); max-width: 62ch;
}
.download-note svg { flex: none; width: 18px; height: 18px; color: var(--blue-hi); margin-top: 3px; }
.download-visual { margin: 0; }
.download-visual img { width: 100%; max-width: 420px; margin-inline: auto; }

/* --------------------------------------------------------------------------
   15. Guides preview — featured + compact rows
   -------------------------------------------------------------------------- */
.guides-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.guide-feature { display: block; color: var(--text); border-radius: var(--r-m); overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); transition: border-color .25s, transform .25s var(--ease); }
.guide-feature:hover { color: var(--text); border-color: var(--line); transform: translateY(-3px); }
.guide-feature img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform .6s var(--ease); }
.guide-feature:hover img { transform: scale(1.025); }
.guide-feature-body { padding: 22px 24px 26px; }
.guide-feature h3 { font-size: 1.35rem; margin: 10px 0 8px; }
.guide-feature p { color: var(--text-2); margin: 0; font-size: .98rem; }

.guide-rows { list-style: none; display: grid; }
.guide-row a {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft); color: var(--text);
}
.guide-row:first-child a { padding-top: 0; }
.guide-row img { width: 112px; height: 70px; object-fit: cover; border-radius: var(--r-s); border: 1px solid var(--line-soft); }
.guide-row h3 { font-size: 1.02rem; margin: 4px 0 0; line-height: 1.3; transition: color .2s; }
.guide-row a:hover h3 { color: var(--blue-hi); }
.guide-stage { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); }
.guides-all { margin-top: 24px; }

/* --------------------------------------------------------------------------
   16. Release information — structured metadata block
   -------------------------------------------------------------------------- */
.release-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.meta-list { margin: 0; border-radius: var(--r-s); border: 1px solid var(--line); overflow: hidden; }
.meta-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); border-bottom: 1px solid var(--line-soft); }
.meta-row:last-child { border-bottom: 0; }
.meta-row dt {
  padding: 15px 18px; background: var(--surface);
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.meta-row dd { margin: 0; padding: 15px 18px; color: var(--text-2); font-size: .97rem; }
.meta-row dd strong { color: var(--text); }

/* --------------------------------------------------------------------------
   17. Safety notice
   -------------------------------------------------------------------------- */
.safety-panel {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px);
  padding: clamp(26px, 4vw, 44px); border-radius: var(--r-m);
  border: 1px solid rgba(36, 136, 196, .28); background: linear-gradient(160deg, rgba(36, 136, 196, .07), rgba(255, 255, 255, .9));
}
.safety-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-hi); }
.safety-icon svg { width: 26px; height: 26px; }
.safety-panel h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.safety-panel p:not(.eyebrow) { color: var(--text-2); }
.safety-list { list-style: none; display: grid; gap: 12px; }
.safety-list li { position: relative; padding-left: 22px; color: var(--text-2); font-size: .97rem; }
.safety-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }

/* --------------------------------------------------------------------------
   18. Pros and cons — balanced comparison
   -------------------------------------------------------------------------- */
.pc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.pc-col { padding: clamp(24px, 4vw, 40px); }
.pc-col + .pc-col { border-left: 1px solid var(--line); }
.pc-col--pro { background: linear-gradient(180deg, rgba(63, 187, 179, .10), transparent 60%); }
.pc-col--con { background: linear-gradient(180deg, rgba(36, 136, 196, .07), transparent 60%); }
.pc-col h3 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; margin-bottom: 20px; }
.pc-badge { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: 1rem; font-weight: 600; }
.pc-col--pro .pc-badge { background: var(--teal-soft); color: var(--teal-ink); }
.pc-col--con .pc-badge { background: var(--blue-soft); color: var(--blue-hi); }
.pc-list { list-style: none; display: grid; gap: 14px; }
.pc-list li { color: var(--text-2); padding-left: 16px; border-left: 1px solid var(--line); font-size: .97rem; }

/* --------------------------------------------------------------------------
   19. FAQ — two issue categories, semantic accordions
   -------------------------------------------------------------------------- */
.faq-cat { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq-cat + .faq-cat { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(40px, 5vw, 60px); border-top: 1px solid var(--line-soft); }
.faq-cat-intro { position: sticky; top: calc(var(--hdr-h) + 28px); }
.faq-icon { width: 46px; height: 46px; border-radius: var(--r-s); display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--teal-ink); margin-bottom: 18px; }
.faq-icon svg { width: 22px; height: 22px; }
.faq-cat-intro h3 { font-size: 1.4rem; }
.faq-cat-intro p { color: var(--text-2); font-size: .97rem; }
.faq-list { list-style: none; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); position: relative; }
.faq-item::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.faq-item.is-open::before { transform: scaleX(1); }
.faq-q {
  width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) 24px; gap: 10px; align-items: center;
  background: none; border: 0; color: var(--text); text-align: left; cursor: pointer;
  padding: 18px 0; font-family: var(--f-text); font-size: 1.03rem; font-weight: 650; line-height: 1.4;
}
.faq-q:hover { color: var(--blue-hi); }
.faq-h { margin: 0; font: inherit; letter-spacing: 0; }
.faq-num { font-family: var(--f-mono); font-size: .74rem; font-weight: 400; color: var(--muted); }
.faq-chev { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); position: relative; justify-self: end; transition: transform .3s var(--ease), border-color .2s, background-color .2s; }
.faq-chev::before, .faq-chev::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq-chev::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-chev { border-color: var(--blue); background: var(--blue); color: var(--blue-ink); }
.faq-q[aria-expanded="true"] .faq-chev::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 34px 22px 48px; color: var(--text-2); font-size: .98rem; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-item.is-open .faq-a { animation: faqIn .3s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
#site-footer { background: var(--bg-deep); border-top: 1px solid var(--line-soft); margin-top: 0; position: relative; }
.ftr-flow { position: relative; height: 0; }
.ftr-flow span { position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--teal) 30%, var(--blue) 70%, transparent); opacity: .7; }
.ftr-flow i { position: absolute; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--bg-deep); border: 1.5px solid var(--teal-ink); }
.ftr-flow i:nth-of-type(1) { left: 25%; }
.ftr-flow i:nth-of-type(2) { left: 50%; }
.ftr-flow i:nth-of-type(3) { left: 75%; border-color: var(--blue); }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px clamp(24px, 4vw, 56px); padding-top: 64px; padding-bottom: 40px; }
.ftr-desc { color: var(--muted); font-size: .94rem; margin: 18px 0 14px; max-width: 42ch; }
.ftr-email { font-size: .94rem; color: var(--text-2); margin: 0; }
.ftr-label { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.ftr-heading { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 16px; }
.ftr-col ul { list-style: none; display: grid; gap: 10px; }
.ftr-col a, .ftr-bottom a { color: var(--text-2); text-decoration: none; font-size: .95rem; }
.ftr-col a:hover, .ftr-bottom a:hover { color: var(--blue-hi); }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; padding-bottom: 30px; border-top: 1px solid var(--line-soft); font-size: .88rem; color: var(--muted); }
.ftr-bottom p { margin: 0; }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s, background-color .2s; }
.to-top:hover { background: var(--blue); color: var(--blue-ink); border-color: var(--blue); }

/* --------------------------------------------------------------------------
   21. Inner page hero + breadcrumbs (blog, posts, supporting pages)
   -------------------------------------------------------------------------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -60px; width: 420px; height: 300px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(70, 208, 195, .22), transparent);
}
.page-hero h1 { max-width: 22ch; margin-bottom: 14px; }
.page-hero .lead { max-width: 62ch; margin: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; color: var(--muted); margin-bottom: 22px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--blue-hi); }
.crumbs [aria-current] { color: var(--muted); }

/* --------------------------------------------------------------------------
   22. Blog listing — workflow lanes
   -------------------------------------------------------------------------- */
.blog-feature {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0;
  border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); transition: border-color .25s, transform .25s var(--ease);
}
.blog-feature:hover { color: var(--text); border-color: var(--teal); transform: translateY(-2px); }
.blog-feature img { width: 100%; height: auto; align-self: center; aspect-ratio: 1200 / 630; }
.blog-feature-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.blog-feature h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 12px 0 12px; }
.blog-feature p { color: var(--text-2); }
.blog-feature .link-arrow { margin-top: 6px; }

.lanes { margin-top: clamp(48px, 6vw, 72px); display: grid; gap: clamp(36px, 5vw, 56px); }
.lane { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; position: relative; }
.lane-head { position: relative; padding-left: 32px; }
.lane-head::before { content: ""; position: absolute; left: 8px; top: 30px; bottom: -40px; width: 1px; background: var(--line); }
.lane:last-child .lane-head::before { bottom: 0; }
.lane-node { position: absolute; left: 0; top: 6px; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--teal-ink); background: var(--bg); }
.lane:last-child .lane-node { border-color: var(--blue); background: var(--blue); }
.lane-head h2 { font-size: 1.2rem; margin: 0 0 6px; }
.lane-head p { font-size: .92rem; color: var(--muted); margin: 0; }
.lane-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.lane-card a { display: flex; flex-direction: column; height: 100%; color: var(--text); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-m); overflow: hidden; transition: border-color .25s, transform .25s var(--ease); }
.lane-card a:hover { color: var(--text); border-color: var(--line); transform: translateY(-3px); }
.lane-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.lane-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lane-card h3 { font-size: 1.08rem; margin: 0; line-height: 1.3; }
.lane-card p { font-size: .93rem; color: var(--text-2); margin: 0; }
.lane-list--pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lane-list--solo { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
.lane-list--pairs .lane-card a, .lane-list--solo .lane-card a { flex-direction: row; align-items: stretch; }
.lane-list--pairs .lane-card img, .lane-list--solo .lane-card img { width: 42%; flex: none; height: auto; object-fit: cover; aspect-ratio: auto; }
.lane-card .read { margin-top: auto; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; color: var(--teal-ink); padding-top: 6px; }

/* --------------------------------------------------------------------------
   23. Blog post
   -------------------------------------------------------------------------- */
.post-head { padding: clamp(36px, 5vw, 64px) 0 28px; }
.post-head h1 { max-width: 24ch; margin-bottom: 16px; }
.post-head .lead { max-width: 64ch; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 18px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; color: var(--muted); }
.post-cover { margin: 0 0 clamp(32px, 5vw, 56px); }
.post-cover img { width: 100%; border-radius: var(--r-l); border: 1px solid var(--line-soft); aspect-ratio: 1200 / 630; object-fit: cover; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 64px); align-items: start; padding-bottom: clamp(48px, 6vw, 80px); }

.step-summary { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); padding: 22px 24px; margin-bottom: 36px; }
.step-summary h2, .prose .step-summary h2 { font-family: var(--f-mono); font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); margin: 0 0 14px; }
.step-summary ol { list-style: none; counter-reset: s; display: grid; gap: 10px; }
.step-summary li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; color: var(--text-2); font-size: .97rem; }
.step-summary li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: .8rem; color: var(--blue-hi); padding-top: 2px; }

.prose { max-width: 70ch; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin: 2.1em 0 .6em; }
.prose h3 { margin: 1.7em 0 .5em; }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; display: grid; gap: .45em; }
.prose li::marker { color: var(--teal-ink); }
.prose a { color: var(--teal-ink); background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; }
.prose a:hover { color: var(--blue-hi); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose th { color: var(--text); font-weight: 650; background: var(--surface); }
.prose td { color: var(--text-2); }
.prose .table-scroll { margin-bottom: 1.4em; }
.prose .table-scroll table { margin: 0; min-width: 520px; }
.prose a.btn { color: var(--btn-fg); background-image: none; }
.prose a.btn:hover { color: var(--btn-fg); }
.prose a.link-arrow { background-size: 0% 1px; }
.prose a.link-arrow:hover { background-size: 100% 1px; color: var(--blue-hi); }
.callout { border-left: 3px solid var(--blue); background: var(--surface); padding: 16px 20px; border-radius: 0 var(--r-s) var(--r-s) 0; margin: 0 0 1.4em; }
.callout p:last-child { margin-bottom: 0; }
.callout--teal { border-left-color: var(--teal-ink); }
.post-cta { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 2.4em; padding-top: 1.6em; border-top: 1px solid var(--line-soft); }

.post-aside { position: sticky; top: calc(var(--hdr-h) + 24px); display: grid; gap: 18px; }
.aside-block { border: 1px solid var(--line-soft); border-radius: var(--r-m); padding: 20px; background: var(--bg-deep); }
.aside-block h2 { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; display: grid; gap: 2px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 6px; padding: 6px 0; font-size: .92rem; color: var(--text-2); line-height: 1.4; }
.toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--f-mono); font-size: .72rem; color: var(--teal-ink); padding-top: 2px; }
.toc a:hover { color: var(--blue-hi); }

.stage-map { list-style: none; display: grid; gap: 0; }
.stage-map li { position: relative; padding: 0 0 14px 24px; font-size: .9rem; color: var(--muted); }
.stage-map li:last-child { padding-bottom: 0; }
.stage-map li::before { content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg-deep); }
.stage-map li::after { content: ""; position: absolute; left: 5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.stage-map li:last-child::after { display: none; }
.stage-map li.is-here { color: var(--text); font-weight: 600; }
.stage-map li.is-here::before { border-color: var(--blue); background: var(--blue); }

.aside-download { background: linear-gradient(160deg, rgba(70, 208, 195, .16), var(--surface)); border-color: rgba(63, 187, 179, .45); }
.aside-download p { font-size: .92rem; color: var(--text-2); }
.aside-download .btn { width: 100%; }
.aside-links { list-style: none; display: grid; gap: 10px; }
.aside-links a { font-size: .93rem; color: var(--text-2); line-height: 1.4; display: block; }
.aside-links a:hover { color: var(--blue-hi); }

.related { padding: clamp(48px, 6vw, 72px) 0; border-top: 1px solid var(--line-soft); background: var(--bg-deep); }
.related h2 { font-size: 1.5rem; margin-bottom: 24px; }
.related-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.related-grid a { display: block; color: var(--text); border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line-soft); background: var(--surface); transition: border-color .25s, transform .25s var(--ease); height: 100%; }
.related-grid a:hover { color: var(--text); border-color: var(--line); transform: translateY(-3px); }
.related-grid img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.related-grid div { padding: 16px 18px 20px; }
.related-grid h3 { font-size: 1.02rem; margin: 6px 0 0; line-height: 1.35; }

/* --------------------------------------------------------------------------
   24. Supporting pages
   -------------------------------------------------------------------------- */
.ab-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.ab-split .prose { max-width: none; }
.ab-facts { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); padding: 24px; }
.ab-facts h2 { font-family: var(--f-mono); font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 14px; }
.ab-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(40px, 5vw, 64px); }
.ab-columns > div { padding: 32px 32px 32px 0; }
.ab-columns > div + div { border-left: 1px solid var(--line); padding-left: 32px; }
.ab-columns h2 { font-size: 1.3rem; }
.principles { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: clamp(40px, 5vw, 64px); counter-reset: p; }
.principles li { counter-increment: p; }
.principles li::before { content: counter(p, decimal-leading-zero); display: block; font-family: var(--f-mono); font-size: .8rem; color: var(--blue-hi); margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.principles h3 { font-size: 1.1rem; }
.principles p { color: var(--text-2); font-size: .96rem; margin: 0; }

.contact-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-card { border-radius: var(--r-l); border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface-2), var(--surface)); padding: clamp(26px, 4vw, 40px); }
.contact-email { font-family: var(--f-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 650; color: var(--text); margin: 6px 0 14px; word-break: break-word; user-select: all; }
.contact-card p:not(.eyebrow) { color: var(--text-2); }
.contact-reasons { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-reasons li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.contact-reasons span { font-family: var(--f-mono); font-size: .78rem; color: var(--teal-ink); padding-top: 3px; }
.contact-reasons h3 { font-size: 1.04rem; margin: 0 0 4px; }
.contact-reasons p { margin: 0; color: var(--text-2); font-size: .95rem; }

.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: clamp(40px, 5vw, 64px); }
.doc-toc { position: sticky; top: calc(var(--hdr-h) + 24px); }
.doc-updated { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; color: var(--muted); margin-top: 16px; }

.clauses { list-style: none; counter-reset: c; display: grid; gap: 0; max-width: 820px; }
.clauses > li { counter-increment: c; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 26px 0; border-top: 1px solid var(--line-soft); }
.clauses > li::before { content: counter(c, decimal-leading-zero); font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; color: var(--teal-ink); line-height: 1; }
.clauses h2 { font-size: 1.25rem; margin: 0 0 8px; }
.clauses p { color: var(--text-2); margin: 0 0 .7em; }

.notice-lead { border-radius: var(--r-m); border: 1px solid rgba(36, 136, 196, .3); background: var(--blue-soft); padding: 22px 26px; margin-bottom: 36px; }
.notice-lead p { margin: 0; color: var(--text); font-size: 1.05rem; }

.page-body { padding-block: clamp(40px, 5vw, 64px); }

/* --------------------------------------------------------------------------
   25. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about-diagram { grid-column: 1 / -1; grid-row: 2; max-width: 560px; }
  .ftr-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
  .ftr-brand { grid-column: 1 / -1; }
  .post-layout { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-title { max-width: 21ch; }
  .hero-visual { max-width: 640px; }
  .features-grid { grid-template-columns: minmax(0, 1fr); }
  .fmap-wrap { position: static; max-width: 560px; }
  .how-flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .how-step { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 0 20px; padding: 0 0 30px; }
  .how-node { grid-row: 1 / span 3; margin: 0; }
  .how-step::after { top: 62px; bottom: 6px; left: 26px; right: auto; width: 1.5px; height: auto; background: repeating-linear-gradient(180deg, var(--teal-ink) 0 8px, transparent 8px 13px); transform-origin: top center; }
  .js .how-flow .how-step::after { transform: scaleY(0); }
  .js .how-flow.is-in .how-step::after { transform: scaleY(1); }
  .how-step:last-child { padding-bottom: 0; }
  .uses-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .use-tile, .use-tile--half { grid-column: span 1; }
  .use-tile--wide { grid-column: 1 / -1; }
  .install-grid, .release-grid, .guides-grid, .contact-wrap, .ab-split { grid-template-columns: minmax(0, 1fr); }
  .install-aside { position: static; }
  .download-band { grid-template-columns: minmax(0, 1fr); }
  .download-visual { order: -1; }
  .download-visual img { max-width: 300px; margin-inline: 0; }
  .safety-panel { grid-template-columns: auto minmax(0, 1fr); }
  .safety-panel .safety-list { grid-column: 1 / -1; }
  .faq-cat { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .faq-cat-intro { position: static; }
  .blog-feature { grid-template-columns: minmax(0, 1fr); }
  .lane { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .lane-head::before { display: none; }
  .lane-list--pairs { grid-template-columns: minmax(0, 1fr); }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; }
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .hero-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero-facts div + div { padding-left: 0; border-left: 0; padding-top: 12px; border-top: 1px solid var(--line-soft); }
  .hero-actions .btn { width: 100%; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-diagram { grid-row: auto; }
  .uses-mosaic { grid-template-columns: minmax(0, 1fr); }
  .use-tile--wide { grid-column: auto; }
  .trouble-list { grid-template-columns: minmax(0, 1fr); }
  .meta-row { grid-template-columns: minmax(0, 1fr); }
  /* Compatibility matrix becomes stacked rows on small screens */
  .compat .table-scroll { overflow: visible; }
  .compat-table { min-width: 0; }
  .compat-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .compat-table, .compat-table tbody, .compat-table tr, .compat-table tbody th, .compat-table td { display: block; width: 100%; }
  .compat-table tr { border-bottom: 1px solid var(--line-soft); padding-bottom: 6px; }
  .compat-table tbody tr:last-child { border-bottom: 0; }
  .compat-table tbody th { border-bottom: 0; padding: 14px 16px 4px; background: transparent; }
  .compat-table td { border-bottom: 0; padding: 6px 16px 8px; }
  .compat-table td::before { content: attr(data-label); display: block; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .meta-row dt { padding-bottom: 6px; }
  .meta-row dd { padding-top: 8px; }
  .pc-grid { grid-template-columns: minmax(0, 1fr); }
  .pc-col + .pc-col { border-left: 0; border-top: 1px solid var(--line); }
  .safety-panel { grid-template-columns: minmax(0, 1fr); }
  .faq-q { grid-template-columns: 30px minmax(0, 1fr) 24px; font-size: 1rem; }
  .faq-a { padding: 0 0 20px 40px; }
  .guide-row a { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .guide-row img { width: 88px; height: 56px; }
  .download-actions .btn { width: 100%; }
  .ftr-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-top: 48px; }
  .related-grid { grid-template-columns: minmax(0, 1fr); }
  .lane-list--pairs .lane-card a, .lane-list--solo .lane-card a { flex-direction: column; }
  .lane-list--pairs .lane-card img, .lane-list--solo .lane-card img { width: 100%; aspect-ratio: 1200 / 630; }
  .ab-columns { grid-template-columns: minmax(0, 1fr); }
  .ab-columns > div { padding: 26px 0; }
  .ab-columns > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .clauses > li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .contact-reasons li { grid-template-columns: 28px minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .ftr-grid { grid-template-columns: minmax(0, 1fr); }
  .compat-table th, .compat-table td { padding: 13px 14px; }
}

/* --------------------------------------------------------------------------
   26. Reduced motion — everything visible, nothing travels
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .js .reveal, .js .hero-intro > *,
  .js .hero-flow .hf-node, .js .hero-flow .hf-core, .js .hero-flow .hf-out,
  .js .hero-flow .hf-pop, .js .hero-flow .hf-lensg,
  .js .how-flow .how-node { opacity: 1 !important; transform: none !important; }
  .js .hero-flow .hf-draw, .js .draw-group .draw { stroke-dashoffset: 0 !important; }
  .js .how-flow .how-step::after { transform: none !important; }
}

/* --------------------------------------------------------------------------
   27. Print
   -------------------------------------------------------------------------- */
@media print {
  #site-header, .to-top, .hdr-flow, .ftr-flow { display: none !important; }
  body { background: #fff; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
