/* =========================================================
   Fixity Labs design system
   Concept: precision instrument. Cool light surfaces, deep navy
   for product and graphic panels, one accent ("verified" green).
   Graphic language: isometric planes, projection lines, one fixed point.
   ========================================================= */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Color */
  --bg:          #f4f6f8;
  --bg-tint:     #ebeff3;
  --surface:     #ffffff;
  --ink:         #0e1a2b;
  --ink-2:       #445266;
  --ink-3:       #637084;
  --line:        #dfe4ea;
  --line-2:      #c8d0da;
  --navy:        #0e1a2b;
  --navy-2:      #15253b;
  --navy-3:      #1c3050;
  --on-navy:     #e6ecf2;
  --on-navy-2:   #9fb0c4;
  --navy-line:   rgba(255, 255, 255, .1);
  --accent:      #16795f;
  --accent-ink:  #0f5c48;
  --accent-soft: #e2f2ec;
  --accent-glow: #5fd3ae;   /* accent on navy only */
  --amber:       #8a5806;
  --amber-soft:  #fbf1de;

  /* Type */
  --font: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --t-hero:  clamp(1.875rem, 1.35rem + 1.5vw, 2.75rem);   /* 30 → 44 */
  --t-h2:    clamp(1.5rem, 1.3rem + .6vw, 1.875rem);      /* 24 → 30 */
  --t-h3:    1.1875rem;                                  /* 19 */
  --t-lede:  1.0625rem;                                  /* 17 */
  --t-body:  1rem;                                       /* 16 */
  --t-sm:    .875rem;                                    /* 14 */
  --t-xs:    .8125rem;                                   /* 13 */

  /* Space & shape */
  --wrap: 75rem;
  --gutter: clamp(1rem, .5rem + 2.2vw, 2rem);
  --sec: clamp(3.5rem, 2.5rem + 3.5vw, 5.75rem);
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-icon: 23%;

  --shadow-1: 0 1px 2px rgba(14, 26, 43, .06);
  --shadow-2: 0 1px 2px rgba(14, 26, 43, .05), 0 18px 40px -20px rgba(14, 26, 43, .28);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --z-head: 20;
  --z-subnav: 15;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--accent-ink); }
code, kbd { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.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; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.icon { flex: none; width: 1.125rem; height: 1.125rem; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */
.masthead {
  position: sticky; top: 0; z-index: var(--z-head);
  background: rgba(244, 246, 248, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.masthead__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.brand__mark { flex: none; width: 26px; height: 26px; }
.brand__name { font-weight: 700; font-size: 1.0625rem; letter-spacing: -.02em; }

.nav__list { display: flex; gap: .25rem; }
.nav__list a {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 .85rem;
  border-radius: var(--r-sm);
  font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.nav__list a:hover { color: var(--ink); background: rgba(14, 26, 43, .05); }
.nav__list a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 30rem) {
  .brand__name { font-size: 1rem; }
  .nav__list a { padding: 0 .6rem; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem; padding: .625rem 1.125rem;
  font: 600 var(--t-sm)/1.2 var(--font); letter-spacing: -.005em;
  border-radius: var(--r-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn .icon { width: 1rem; height: 1rem; }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 6px 16px -8px rgba(14, 26, 43, .6); }
.btn--primary:hover { background: var(--navy-3); }
.btn--secondary { background: var(--accent); color: #fff; }
.btn--secondary:hover { background: var(--accent-ink); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn--lg { min-height: 3rem; padding-inline: 1.375rem; }
.btn--sm { min-height: 2.5rem; padding: .5rem .9rem; font-size: var(--t-xs); }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: var(--t-sm); color: var(--accent-ink); text-decoration: none;
}
.text-link .icon { width: 1rem; height: 1rem; transition: transform .2s var(--ease-out); }
.text-link:hover { text-decoration: underline; }
@media (hover: hover) and (pointer: fine) { .text-link:hover .icon { transform: translateX(3px); } }

/* ---------- Labels ---------- */
.kicker { font-size: var(--t-xs); font-weight: 600; color: var(--accent-ink); margin-bottom: .6rem; }
.code { font-size: var(--t-xs); font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .15rem .5rem; border-radius: var(--r-xs);
  font-size: .75rem; font-weight: 600; line-height: 1.4;
  background: var(--accent-soft); color: var(--accent-ink);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.badge--coming_soon { background: var(--amber-soft); color: var(--amber); }
.badge--beta { background: #e8edf7; color: #2c4a7a; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .3rem .75rem .3rem .4rem; margin-bottom: 1.5rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: var(--t-xs); font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-1);
}
.eyebrow .brand__mark { width: 20px; height: 20px; --mark-gap: var(--surface); }

.avail {
  display: flex; gap: .55rem; align-items: flex-start;
  margin-top: 1rem; padding: .75rem .9rem;
  border-radius: var(--r-sm); background: var(--amber-soft); color: #5e3d05;
  font-size: var(--t-xs); line-height: 1.5;
}
.avail .icon { width: 1rem; height: 1rem; margin-top: .1rem; color: var(--amber); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.hero__grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: center; }
@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(3rem, 6vw, 6rem); }
}
.hero__copy { max-width: 38rem; }
.hero__title { font-size: var(--t-hero); font-weight: 700; letter-spacing: -.032em; line-height: 1.1; }
.hero__lede { margin-top: 1.1rem; font-size: var(--t-lede); line-height: 1.6; color: var(--ink-2); max-width: 31rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.release {
  display: flex; align-items: center; gap: .85rem;
  margin-top: 2rem; padding: .7rem .9rem .7rem .7rem; max-width: 26rem;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  text-decoration: none; box-shadow: var(--shadow-1);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.release:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
/* Hero spotlight: featured release, typographic, no imagery */
.hero { border-bottom: 1px solid var(--line); }
.hero__eyebrow {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .01em; color: var(--accent-ink);
}
.hero__eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: var(--accent); }
.hero__actions { align-items: center; gap: 1.5rem; }
.spot {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-1);
}
.spot__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.spot__label { font-size: var(--t-xs); font-weight: 600; color: var(--ink-3); }
.spot__id { display: flex; align-items: center; gap: .9rem; }
.spot__id .app-icon { width: 44px; height: 44px; }
.spot__name { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.spot__name a { text-decoration: none; }
.spot__name a:hover { color: var(--accent-ink); }
.spot__full { font-size: var(--t-xs); color: var(--ink-3); margin-top: .1rem; }
.spot__tagline { margin-top: 1rem; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.55; }
.spot__facts { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.spot__facts > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .65rem; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.spot__facts dt { color: var(--ink-3); }
.spot__facts dd { font-weight: 600; text-align: right; }
.spot__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.25rem; }
.release img { width: 36px; height: 36px; border-radius: var(--r-icon); }
.release__text { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.release__label { font-size: .75rem; color: var(--ink-3); }
.release__name { font-size: var(--t-sm); font-weight: 600; }
.release__name .num { color: var(--ink-3); font-weight: 500; }

/* Hero art */
.hero-art {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 15% 0%, rgba(95, 211, 174, .08), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--navy);
  box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(255,255,255,.06);
  padding: clamp(.75rem, 2vw, 1.5rem) clamp(.5rem, 2vw, 1.5rem) 0;
}
/* Registration corners */
.hero-art::before, .hero-art::after {
  content: ""; position: absolute; width: 14px; height: 14px; border-color: rgba(255,255,255,.28); border-style: solid;
}
.hero-art::before { top: 14px; left: 14px; border-width: 1px 0 0 1px; }
.hero-art::after { bottom: 14px; right: 14px; border-width: 0 1px 1px 0; }
.hero-art__svg { width: 100%; height: auto; }
.hero-art__svg text { font: 500 12.5px var(--font); fill: #c9d3de; letter-spacing: -.005em; }
.hero-art__caption {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-inline: calc(-1 * clamp(.5rem, 2vw, 1.5rem));
  padding: .8rem clamp(1rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--navy-line);
  font-size: var(--t-xs); color: var(--on-navy-2);
}
.hero-art__caption em { color: var(--on-navy); font-style: italic; font-weight: 600; }

/* One orchestrated load moment */
@media (prefers-reduced-motion: no-preference) {
  .ha-plane { animation: ha-settle .8s var(--ease-out) both; }
  .ha-plane--1 { animation-delay: .05s; }
  .ha-plane--2 { animation-delay: .15s; }
  .ha-plane--3 { animation-delay: .25s; }
  .ha-proj, .ha-dim, .ha-label { animation: ha-fade .6s ease-out .55s both; }
  .ha-axis { stroke-dasharray: 160; animation: ha-draw .7s var(--ease-out) .65s both; }
}
@keyframes ha-settle { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes ha-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ha-draw { from { stroke-dashoffset: 160; } to { stroke-dashoffset: 0; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--sec); }
.section--flush-top { padding-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.section--tinted { background: var(--bg-tint); border-block: 1px solid var(--line); }
#software { padding-top: clamp(1rem, .5rem + 2vw, 2.5rem); }
.section__head {
  display: grid; gap: .75rem 3rem; align-items: end;
  margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}
@media (min-width: 52rem) { .section__head { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); } }
.section__title { font-size: var(--t-h2); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.section__intro { font-size: var(--t-sm); color: var(--ink-2); max-width: 26rem; }
.section__more { margin-top: 2rem; }

.empty {
  display: flex; align-items: center; gap: 1rem;
  padding: 2rem; border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--ink-2);
}
.empty .icon { width: 1.5rem; height: 1.5rem; color: var(--ink-3); }

/* ---------- Product visual ---------- */
.pv {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  border-radius: var(--r-md);
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(160deg, var(--navy-2), var(--navy));
  color: var(--on-navy);
  overflow: hidden;
}
.pv__bar {
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--navy-line);
  background: rgba(255,255,255,.02);
}
.pv__icon { width: 28px; height: 28px; border-radius: var(--r-icon); }
.pv__name { font-weight: 600; font-size: var(--t-sm); }
.pv__type { display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; font-size: .75rem; color: var(--on-navy-2); }
.pv__type .icon { width: .9rem; height: .9rem; }

.pv__rows { display: grid; gap: .6rem; padding: clamp(1rem, 2vw, 1.5rem); margin-block: auto; }
.pv__row {
  display: grid; gap: .45rem;
  padding: .75rem .85rem;
  border: 1px solid var(--navy-line); border-radius: var(--r-sm);
  background: rgba(255,255,255,.025);
}
.pv__rule { font-size: .75rem; color: var(--on-navy-2); }
.pv__pair { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; min-width: 0; }
.pv__pair code {
  padding: .2rem .45rem; border-radius: 5px;
  font-size: .8125rem; white-space: pre; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.pv__name-before { color: #c4ceda; background: rgba(255,255,255,.04); }
.pv__name-after { color: #fff; background: rgba(95, 211, 174, .1); box-shadow: inset 0 0 0 1px rgba(95, 211, 174, .35); }
.pv__arrow { display: inline-flex; color: var(--on-navy-2); }
.pv__arrow .icon { width: .95rem; height: .95rem; }
.pv mark { background: none; color: inherit; border-radius: 2px; }
.pv mark.pv-del { background: rgba(240, 177, 75, .28); color: #ffd99a; text-decoration: none; min-width: .5em; display: inline-block; }
.pv mark.pv-ins { background: rgba(95, 211, 174, .3); color: #b6f2dc; }
.pv__caption { padding: .7rem 1rem; border-top: 1px solid var(--navy-line); font-size: .75rem; color: var(--on-navy-2); }

.pv--sm .pv__rows { padding: .9rem; gap: .45rem; }
.pv--sm .pv__row { padding: .55rem .65rem; }

.pv__plinth { position: relative; display: grid; place-items: center; flex: 1; min-height: 12rem; padding: 1.5rem; }
.pv__plinth svg { position: absolute; inset: 50% auto auto 50%; width: min(80%, 20rem); transform: translate(-50%, -42%); }
.pv__plinth img { position: relative; width: 88px; height: 88px; border-radius: var(--r-icon); box-shadow: 0 20px 30px -12px rgba(0,0,0,.6); }

/* ---------- Showcase (featured product) ---------- */
.collection { display: grid; gap: 1.5rem; }
.showcase {
  display: grid; gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.showcase__visual { display: block; padding: .5rem; text-decoration: none; }
.showcase__visual .pv { min-height: 100%; }
.showcase__body { display: flex; flex-direction: column; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
@media (min-width: 56rem) {
  .showcase { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .showcase__visual { padding: .625rem 0 .625rem .625rem; }
}
.showcase__top { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.showcase__id { display: flex; align-items: center; gap: 1rem; }
.app-icon { flex: none; border-radius: var(--r-icon); box-shadow: 0 6px 14px -8px rgba(14,26,43,.45); }
.app-icon--lg { width: 56px; height: 56px; }
.app-icon--xl { width: clamp(64px, 5vw + 40px, 80px); height: auto; aspect-ratio: 1; }
.showcase__name { font-size: var(--t-h2); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.showcase__name a { text-decoration: none; }
.showcase__name a:hover { color: var(--accent-ink); }
.showcase__full { margin-top: .2rem; font-size: var(--t-sm); color: var(--ink-3); }
.showcase__summary { margin-top: 1.1rem; color: var(--ink-2); max-width: 36rem; }

.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  background: var(--line); gap: 1px;
}
.facts > div { background: var(--surface); padding: .8rem .95rem; min-width: 0; }
.facts dt { display: flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--ink-3); margin-bottom: .2rem; }
.facts dt .icon { width: .9rem; height: .9rem; color: var(--accent); }
.facts dd { font-size: var(--t-sm); font-weight: 600; line-height: 1.35; }
.showcase__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: auto; padding-top: 1.5rem; }

/* ---------- Product cards (grid when more products exist) ---------- */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  box-shadow: var(--shadow-1); overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
@media (hover: hover) and (pointer: fine) { .card:hover { box-shadow: var(--shadow-2); border-color: var(--line-2); } }
.card__visual { padding: .45rem .45rem 0; height: 13.5rem; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.card__body .showcase__top { margin-bottom: .6rem; }
.card__name { font-size: var(--t-h3); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.card__name a { text-decoration: none; }
.card__name a:hover { color: var(--accent-ink); }
.card__summary { margin-top: .5rem; font-size: var(--t-sm); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: 1rem; font-size: var(--t-xs); color: var(--ink-2); }
.card__meta li { display: inline-flex; align-items: center; gap: .35rem; }
.card__meta .icon { width: .9rem; height: .9rem; color: var(--accent); }
.card__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: 1.25rem; }

/* ---------- Engineering section ---------- */
.eng { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3rem); }
@media (min-width: 60rem) {
  .eng { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 4rem; }
  .covers { grid-column: 1 / -1; }
}
.eng__intro p:not(.kicker) { margin-top: 1rem; color: var(--ink-2); max-width: 30rem; }
.eng__intro .text-link { margin-top: 1.25rem; }

.flow {
  position: relative; display: grid; gap: 1rem;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--r-lg);
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--navy);
  color: var(--on-navy);
  box-shadow: var(--shadow-2);
  counter-reset: flow;
}
.flow__step { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .25rem; align-items: start; }
.flow__node {
  grid-row: span 3; position: relative; z-index: 1;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: var(--r-md); background: var(--navy-2); border: 1px solid rgba(255,255,255,.14);
  color: var(--on-navy);
}
.flow__step--end .flow__node { background: rgba(95, 211, 174, .12); border-color: rgba(95, 211, 174, .55); color: var(--accent-glow); }
.flow__no { font-size: .75rem; color: var(--on-navy-2); font-weight: 600; }
.flow__step h3 { font-size: var(--t-h3); font-weight: 650; letter-spacing: -.015em; line-height: 1.2; }
.flow__step p { font-size: var(--t-sm); color: var(--on-navy-2); max-width: 22rem; }
/* connector (mobile: vertical) */
.flow__step:not(:last-child)::after {
  content: ""; position: absolute; left: 1.375rem; top: 2.75rem; bottom: -1rem; width: 1px;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.28) 0 3px, transparent 3px 7px);
}
@media (min-width: 44rem) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .flow__step { grid-template-columns: 1fr; }
  .flow__node { grid-row: auto; margin-bottom: 1rem; }
  .flow__step:not(:last-child)::after {
    left: 3.25rem; right: -1rem; top: 1.375rem; bottom: auto; width: auto; height: 1px;
    background: repeating-linear-gradient(to right, rgba(255,255,255,.28) 0 3px, transparent 3px 7px);
  }
}

.covers {
  display: grid; gap: 1rem; align-items: center;
  padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
.covers__title { font-size: var(--t-sm); font-weight: 650; }
.covers__list { display: grid; gap: .65rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.covers__list li { display: flex; align-items: center; gap: .55rem; font-size: var(--t-sm); color: var(--ink-2); }
.covers__list .icon { color: var(--accent); }
@media (min-width: 60rem) { .covers { grid-template-columns: auto 1fr; column-gap: 2.5rem; } }

/* ---------- Page heads ---------- */
.page-head { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) clamp(1rem, .5rem + 1.5vw, 1.75rem); }
.page-head__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.page-head__title { font-size: var(--t-hero); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.page-head__lede { margin-top: .9rem; max-width: 38rem; font-size: var(--t-lede); color: var(--ink-2); }
.page-head__count { font-size: var(--t-sm); color: var(--ink-3); }
.page-head__count .num { color: var(--ink); font-weight: 650; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filters a {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 2.5rem; padding: 0 .9rem;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface);
  font-size: var(--t-sm); font-weight: 500; text-decoration: none; color: var(--ink-2);
  transition: border-color .15s ease, color .15s ease;
}
.filters a:hover { border-color: var(--ink-3); color: var(--ink); }
.filters a .icon { width: 1rem; height: 1rem; }
.filters a .num { color: var(--ink-3); }
.filters a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters a[aria-current] .num { color: var(--on-navy-2); }

/* ---------- Product detail ---------- */
.product-head { padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) clamp(2rem, 1.5rem + 2vw, 3rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--t-xs); color: var(--ink-3); margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.product-head__grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 60rem) { .product-head__grid { grid-template-columns: minmax(0, 1fr) 22rem; column-gap: 4rem; } }
.product-head__title { display: flex; align-items: center; gap: clamp(1rem, .5rem + 1.5vw, 1.5rem); }
.product-head__title .showcase__top { margin-bottom: .4rem; }
.product-head__name { font-size: var(--t-hero); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; overflow-wrap: anywhere; }
.product-head__full { margin-top: .25rem; font-size: var(--t-sm); color: var(--ink-3); }
.product-head__tagline { margin-top: 1.5rem; max-width: 40rem; font-size: var(--t-lede); line-height: 1.55; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chips li {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  font-size: var(--t-xs); font-weight: 500; color: var(--ink-2);
}
.chips .icon { width: .95rem; height: .95rem; color: var(--accent); }

.buy {
  padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-2);
}
.buy__plans { display: grid; gap: .5rem; }
.buy__plans li {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 1rem;
  padding: .8rem .9rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg);
}
.buy__plans li.is-paid { border-color: rgba(22, 121, 95, .45); background: var(--accent-soft); }
.buy__plan { font-weight: 650; font-size: var(--t-sm); }
.buy__price { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; text-align: right; }
.buy__billing { grid-column: 1 / -1; font-size: .75rem; color: var(--ink-3); }
.buy__actions { display: grid; gap: .5rem; margin-top: 1rem; }
.buy__links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: var(--t-xs); }
.buy__links a { color: var(--ink-2); }
.buy__links a:hover { color: var(--accent-ink); }

.subnav {
  position: sticky; top: 4rem; z-index: var(--z-subnav);
  background: rgba(244, 246, 248, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.subnav ul { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .8rem;
  font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.subnav a:hover { color: var(--ink); border-bottom-color: var(--line-2); }

.gallery { padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.gallery__visual { padding: .5rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-2); }
@media (min-width: 52rem) {
  .gallery__visual .pv__rows { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1.75rem; gap: .85rem; }
}
.shots { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shots--single { grid-template-columns: 1fr; } }
.shot a { display: block; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-2); }
.shot figcaption { margin-top: .6rem; font-size: var(--t-xs); color: var(--ink-3); }

.split { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 4.5rem; align-items: start; } }
.split__side { display: grid; gap: 1rem; }
.prose { display: grid; gap: 1rem; margin-top: 1.25rem; color: var(--ink-2); max-width: 40rem; }
.page-head + .section .prose, .split__main.prose { margin-top: 0; }
.prose > p:first-child { color: var(--ink); font-size: var(--t-lede); }
.prose a { color: var(--accent-ink); }

.tokens { padding: 1.25rem; border-radius: var(--r-lg); background: var(--navy); color: var(--on-navy); box-shadow: var(--shadow-2); }
.tokens__title { font-size: var(--t-sm); font-weight: 600; margin-bottom: 1rem; }
.tokens__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr)); gap: .5rem; }
.tokens kbd {
  display: grid; place-items: center; height: 2.75rem;
  border-radius: var(--r-sm); background: var(--navy-2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 -2px 0 rgba(0,0,0,.35);
  font-size: 1.05rem; color: #ffd99a;
}

.limits { padding: 1.25rem; border-radius: var(--r-lg); border: 1px solid #efdcb4; background: var(--amber-soft); }
.limits__title { display: flex; align-items: center; gap: .5rem; font-size: var(--t-sm); font-weight: 650; color: #5e3d05; margin-bottom: .75rem; }
.limits__title .icon { color: var(--amber); }
.limits ul { display: grid; gap: .6rem; }
.limits li { position: relative; padding-left: 1rem; font-size: var(--t-sm); color: #5b4a2d; }
.limits li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 1px; background: var(--amber); }

.feature-groups { display: grid; gap: 1.25rem; }
@media (min-width: 56rem) { .feature-groups { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .feature-groups--single { grid-template-columns: 1fr; } }
.fgroup { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.fgroup--pro { border-color: rgba(22, 121, 95, .4); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 7rem); }
.fgroup__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; font-size: var(--t-h3); font-weight: 700; letter-spacing: -.015em; padding-bottom: 1rem; margin-bottom: .5rem; border-bottom: 1px solid var(--line); }
.fgroup__title span { font-size: var(--t-xs); font-weight: 500; color: var(--accent-ink); letter-spacing: 0; }
.fgroup__list { display: grid; }
.fgroup__list li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding-block: .85rem; font-size: var(--t-sm); color: var(--ink-2); }
.fgroup__list li + li { border-top: 1px dashed var(--line); }
.fgroup__list strong { display: block; color: var(--ink); font-weight: 650; font-size: var(--t-body); margin-bottom: .15rem; }
.fgroup__icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--r-sm); background: var(--bg-tint); color: var(--ink); }
.fgroup--pro .fgroup__icon { background: var(--accent-soft); color: var(--accent-ink); }

.editions { display: grid; gap: 1.5rem; }
@media (min-width: 60rem) { .editions { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 3rem; align-items: start; } }
.plans { display: grid; gap: 1rem; }
@media (min-width: 36rem) { .plans { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); } }
.plan { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.plan--paid { background: var(--navy); border-color: var(--navy); color: var(--on-navy); box-shadow: var(--shadow-2); }
.plan__name { font-size: var(--t-sm); font-weight: 650; }
.plan__price { margin-top: .6rem; font-size: 1.875rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.plan__billing { margin-top: .25rem; font-size: var(--t-xs); color: var(--ink-3); }
.plan--paid .plan__billing { color: var(--on-navy-2); }
.plan__list { display: grid; gap: .6rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-2); }
.plan--paid .plan__list { border-color: var(--navy-line); color: var(--on-navy); }
.plan__list li { display: grid; grid-template-columns: auto 1fr; gap: .55rem; align-items: start; }
.plan__list .icon { width: 1rem; height: 1rem; margin-top: .2rem; color: var(--accent); }
.plan--paid .plan__list .icon { color: var(--accent-glow); }

.license { padding: 1.5rem; border-radius: var(--r-lg); background: var(--bg-tint); border: 1px solid var(--line); }
.license__title { font-size: var(--t-body); font-weight: 650; margin-bottom: 1rem; }
.license__list { display: grid; gap: .9rem; }
.license__list li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; font-size: var(--t-sm); color: var(--ink-2); }
.license__list .icon { color: var(--accent); margin-top: .15rem; }
.license__aside { margin-top: 1.1rem; font-size: var(--t-xs); color: var(--ink-3); }

.req { display: grid; gap: 1.25rem; }
@media (min-width: 60rem) { .req { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; } }
.req__grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 40rem) { .req__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.req__item { padding: 1.25rem; background: var(--surface); }
.req__item dt { display: flex; align-items: center; gap: .5rem; font-size: var(--t-xs); font-weight: 600; color: var(--ink-3); margin-bottom: .4rem; }
.req__item dt .icon { color: var(--accent); }
.req__item dd { font-size: var(--t-sm); color: var(--ink); font-weight: 500; }
.req__version { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.notes { padding: 1.25rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.notes__title { font-size: var(--t-sm); font-weight: 650; margin-bottom: .75rem; }
.notes li { position: relative; padding-left: 1rem; font-size: var(--t-sm); color: var(--ink-2); }
.notes li + li { margin-top: .6rem; }
.notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); }

.steps { display: grid; gap: .75rem; margin-top: 1.25rem; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; color: var(--ink-2); }
.steps li::before { content: counter(s, decimal-leading-zero); font-weight: 600; font-size: var(--t-xs); color: var(--accent-ink); padding-top: .2rem; font-variant-numeric: tabular-nums; }

.checklist { display: grid; gap: .6rem; }
.checklist li {
  display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start;
  padding: .9rem 1rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  font-size: var(--t-sm); color: var(--ink-2);
}
.checklist .icon { color: var(--accent); margin-top: .1rem; }

.faq { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 52rem) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.faq__item { padding: 1.4rem 1.5rem; background: var(--surface); }
.faq__item dt { font-weight: 650; font-size: var(--t-body); letter-spacing: -.01em; margin-bottom: .5rem; }
.faq__item dd { font-size: var(--t-sm); color: var(--ink-2); }

.notice { padding-block: 2rem 0; font-size: .75rem; color: var(--ink-3); max-width: 46rem; }
.product + .footer, .notice { margin-bottom: 0; }
.product > .wrap:last-child { padding-bottom: 3rem; }

/* ---------- Text pages ---------- */
.factsheet { display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.factsheet > div, .factsheet > li { display: grid; gap: .2rem; padding: 1rem 1.25rem; }
.factsheet > * + * { border-top: 1px solid var(--line); }
.factsheet dt { display: flex; align-items: center; gap: .5rem; font-size: var(--t-xs); color: var(--ink-3); }
.factsheet dt .icon { width: 1rem; height: 1rem; color: var(--accent); }
.factsheet dd, .factsheet li a { font-weight: 600; font-size: var(--t-sm); }
.factsheet li span { font-size: var(--t-xs); color: var(--ink-3); }
.factsheet a { color: var(--ink); }
.factsheet a:hover { color: var(--accent-ink); }

.note-panel { padding: 1.25rem; border-radius: var(--r-lg); background: var(--bg-tint); border: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-2); }
.note-panel__title { display: flex; align-items: center; gap: .5rem; font-weight: 650; color: var(--ink); margin-bottom: .5rem; }
.note-panel__title .icon { color: var(--accent); }
.prose--legal h2 { color: var(--ink); font-size: var(--t-h3); margin-top: 1rem; }

.notfound { max-width: 40rem; }
.notfound .code { display: block; margin-bottom: .75rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--on-navy-2); --mark-gap: var(--navy); }
.footer .brand { color: var(--on-navy); }
.footer__grid { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer__brand { grid-column: 1 / -1; display: grid; gap: .9rem; align-content: start; max-width: 22rem; }
.footer__brand p { font-size: var(--t-sm); }
.footer__col h2 { font-size: var(--t-xs); font-weight: 600; color: var(--on-navy); margin-bottom: .85rem; }
.footer__col ul { display: grid; gap: .5rem; }
.footer__col a { font-size: var(--t-sm); color: var(--on-navy-2); text-decoration: none; transition: color .15s ease; }
.footer__col a:hover { color: #fff; }
.footer :focus-visible { outline-color: var(--accent-glow); }
@media (min-width: 48rem) {
  .footer__grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: auto; }
}
.owner { border-top: 1px solid var(--navy-line); }
.owner__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding-block: 1.1rem; }
.owner__logo { display: inline-flex; flex: none; padding: .2rem; border-radius: 4px; }
.owner__logo img { width: 72px; height: auto; }
.owner__text { flex: 1 1 18rem; font-size: var(--t-xs); color: var(--on-navy); }
.owner__copy { font-size: var(--t-xs); color: var(--on-navy-2); font-variant-numeric: tabular-nums; }

/* =========================================================
   Knowledge base (guides)
   ========================================================= */
.glist { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 52rem) { .glist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.glist__item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.25rem 1.35rem; background: var(--surface); transition: background-color .18s ease; }
@media (hover: hover) and (pointer: fine) { .glist__item:hover { background: #fbfcfd; } }
.glist__icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-ink); }
.glist__title { font-size: var(--t-body); font-weight: 650; letter-spacing: -.01em; line-height: 1.35; }
.glist__title a { text-decoration: none; }
.glist__title a:hover { color: var(--accent-ink); text-decoration: underline; }
.glist__summary { margin-top: .35rem; font-size: var(--t-sm); color: var(--ink-2); }
.glist__meta { display: flex; gap: .45rem; margin-top: .5rem; font-size: .75rem; color: var(--ink-3); }

.kb { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .kb { grid-template-columns: 15rem minmax(0, 1fr); column-gap: 3rem; align-items: start; } .kb__nav { position: sticky; top: 5.5rem; } }
.kb__nav ul { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (min-width: 60rem) { .kb__nav ul { flex-direction: column; } }
.kb__nav a {
  display: flex; align-items: center; gap: .55rem; min-height: 2.5rem; padding: 0 .8rem;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface);
  font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.kb__nav a:hover { border-color: var(--line-2); color: var(--ink); }
.kb__nav .icon { width: 1rem; height: 1rem; color: var(--accent); }
.kb__nav .num { margin-left: auto; color: var(--ink-3); font-size: var(--t-xs); }
.kb__groups { display: grid; gap: 2.75rem; }
.kb__head { margin-bottom: 1rem; }
.kb__title { font-size: var(--t-h3); font-weight: 700; letter-spacing: -.015em; }
.kb__head p { margin-top: .3rem; font-size: var(--t-sm); color: var(--ink-2); }
.kb__group .glist { grid-template-columns: 1fr; }

/* Guide article */
.doc-head { padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem); border-bottom: 1px solid var(--line); }
.doc-head__title { max-width: 46rem; font-size: clamp(1.75rem, 1.3rem + 1.3vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; }
.doc-head__summary { margin-top: 1rem; max-width: 44rem; font-size: var(--t-lede); color: var(--ink-2); }
.doc-meta { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin-top: 1.5rem; }
.doc-meta dt { font-size: .75rem; color: var(--ink-3); }
.doc-meta dd { font-size: var(--t-sm); font-weight: 600; }

.doc-body { display: grid; gap: 2rem; padding-block: clamp(2rem, 1.5rem + 2vw, 3rem) var(--sec); }
@media (min-width: 64rem) {
  .doc-body { grid-template-columns: minmax(0, 1fr) 15rem; column-gap: 4rem; align-items: start; }
  .doc-aside { position: sticky; top: 5.5rem; order: 2; }
}
@media (max-width: 63.99rem) { .doc-aside { order: -1; } }
.doc-main { min-width: 0; max-width: 46rem; }
.doc-sec + .doc-sec { margin-top: clamp(2.25rem, 1.75rem + 1.5vw, 3rem); }
.doc-sec__title { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 1rem; }
.doc-sec > p { color: var(--ink-2); }
.doc-sec > p + p { margin-top: .9rem; }
.doc-sec > p:first-of-type { color: var(--ink); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.ref { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: var(--t-sm); }
.ref th, .ref td { padding: .75rem .95rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ref thead th { background: var(--bg); font-size: .75rem; font-weight: 600; color: var(--ink-3); }
.ref tbody tr:last-child > * { border-bottom: 0; }
.ref tbody th { font-weight: 650; color: var(--ink); }
.ref td { color: var(--ink-2); }
.ref td:nth-child(2) { color: var(--ink); }

.doc-note { display: grid; grid-template-columns: auto 1fr; gap: .6rem; margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--r-sm); background: var(--bg-tint); font-size: var(--t-sm); color: var(--ink-2); }
.doc-note .icon { color: var(--accent); margin-top: .15rem; }

.doc-list { display: grid; gap: .55rem; }
.doc-list li { position: relative; padding-left: 1.1rem; color: var(--ink-2); }
.doc-list li::before { content: ""; position: absolute; left: 0; top: .68em; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); }

.errmsg { margin-top: 1rem; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.errmsg figcaption { display: flex; align-items: center; gap: .45rem; padding: .55rem .9rem; background: var(--bg); border-bottom: 1px solid var(--line); font-size: .75rem; font-weight: 600; color: var(--ink-3); }
.errmsg figcaption .icon { width: .95rem; height: .95rem; color: var(--amber); }
.errmsg blockquote { margin: 0; padding: .9rem 1rem; font-family: var(--mono); font-size: .8125rem; color: var(--ink); line-height: 1.55; }

.causes { display: grid; gap: .75rem; }
@media (min-width: 40rem) { .causes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.causes li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.causes__icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--r-sm); background: var(--bg-tint); color: var(--ink); }
.causes h3 { font-size: var(--t-sm); font-weight: 650; margin-bottom: .2rem; }
.causes p { font-size: var(--t-sm); color: var(--ink-2); }

.dsteps { display: grid; counter-reset: ds; }
.dsteps__item { position: relative; counter-increment: ds; padding: 0 0 1.5rem 3rem; }
.dsteps__item::before {
  content: counter(ds); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--r-sm);
  background: var(--navy); color: #fff; font-size: var(--t-xs); font-weight: 700; font-variant-numeric: tabular-nums;
}
.dsteps__item:not(:last-child)::after { content: ""; position: absolute; left: 1rem; top: 2.25rem; bottom: .25rem; width: 1px; background: var(--line-2); }
.dsteps__item h3 { font-size: var(--t-body); font-weight: 650; padding-top: .2rem; }
.dsteps__item p { margin-top: .3rem; color: var(--ink-2); font-size: var(--t-sm); }

.code-block {
  margin: .85rem 0 0; padding: 1rem 1.1rem; overflow-x: auto;
  border-radius: var(--r-md); background: var(--navy); color: #d7e1ec;
  font-family: var(--mono); font-size: .8125rem; line-height: 1.6; tab-size: 2;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.code-block code { font-family: inherit; white-space: pre; }

.recommend {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1.25rem; border-radius: var(--r-lg); border: 1px solid rgba(22, 121, 95, .35);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 6rem);
}
.recommend .app-icon { width: 48px; height: 48px; }
.recommend__heading { font-weight: 650; color: var(--ink); margin-bottom: .3rem; }
.recommend__body p { font-size: var(--t-sm); color: var(--ink-2); }
.recommend__body .recommend__meta { margin-top: .5rem; font-size: .75rem; color: var(--ink-3); }
.recommend .btn { grid-column: 2; justify-self: start; }
@media (min-width: 40rem) { .recommend { grid-template-columns: auto 1fr auto; align-items: center; } .recommend .btn { grid-column: auto; } }

.sources { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.sources li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; padding: .85rem 1rem; background: var(--surface); }
.sources a { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--t-sm); font-weight: 600; color: var(--ink); text-decoration: none; }
.sources a:hover { color: var(--accent-ink); text-decoration: underline; }
.sources a .icon { width: .9rem; height: .9rem; color: var(--ink-3); }
.sources__host { font-size: .75rem; color: var(--ink-3); }
.doc-sec > .doc-fine { margin-top: .9rem; font-size: .75rem; color: var(--ink-3); }

.toc { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.toc__title { font-size: .75rem; font-weight: 600; color: var(--ink-3); margin-bottom: .5rem; }
.toc ul { display: grid; gap: .1rem; }
.toc a { display: block; padding: .3rem 0; font-size: var(--t-sm); color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent-ink); }
@media (max-width: 63.99rem) { .toc ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
