/* ==========================================================================
   Trezor Suite Guide — independent informational resource
   Single stylesheet: design tokens, layout, components, utilities
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f8f6;
  --surface-3: #eaf2ee;
  --border: #dde7e3;
  --border-strong: #c8d8d2;

  --ink: #081713;
  --ink-2: #3f5651;
  --ink-3: #6b817c;

  --brand: #0f9d63;
  --brand-strong: #0a7d4e;
  --brand-soft: #e6f6ee;
  --brand-ring: rgba(15, 157, 99, 0.28);

  --dark: #05120e;
  --dark-2: #0a1f18;
  --dark-3: #102c23;
  --dark-ink: #f2f8f5;
  --dark-ink-2: #a9c4bb;

  --warn-bg: #fff8e6;
  --warn-border: #f3d99b;
  --warn-ink: #6b4c05;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(8, 23, 19, 0.06), 0 1px 3px rgba(8, 23, 19, 0.05);
  --shadow: 0 6px 18px -6px rgba(8, 23, 19, 0.14), 0 2px 6px rgba(8, 23, 19, 0.05);
  --shadow-lg: 0 30px 60px -25px rgba(5, 18, 14, 0.35);

  --container: 1140px;
  --gutter: 20px;
  --section-y: clamp(56px, 7vw, 96px);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); letter-spacing: -0.01em; }
h4 { font-size: 1.02rem; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: 0.45em; }
li::marker { color: var(--brand); }
strong { font-weight: 700; }

code, kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(36px, 4vw, 56px); }
.section--alt { background: var(--surface-2); border-block: 1px solid var(--border); }
.section--dark { background: var(--dark); color: var(--dark-ink); }
.section--dark h2, .section--dark h3 { color: var(--dark-ink); }
.section--dark p { color: var(--dark-ink-2); }

.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--ink-2); font-size: 1.06rem; }
.section--dark .section__head p { color: var(--dark-ink-2); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: 0.7rem;
}
.section--dark .eyebrow { color: #5fe0a5; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

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

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 650;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-strong); color: #fff; }
.btn--ghost { border-color: var(--border-strong); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn--on-dark { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); color: #fff; }
.btn--on-dark:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.btn--sm { padding: 11px 18px; font-size: 0.94rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 650;
  text-decoration: none;
}
.link-arrow::after { content: "\2192"; transition: transform 0.15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 18, 14, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 750;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand:hover { color: #fff; }
.brand__mark {
  width: 32px; height: 32px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(150deg, #12b472, #0a7d4e);
  display: grid;
  place-items: center;
  color: #fff;
}
.brand__mark svg { width: 19px; height: 19px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 1rem; }
.brand__tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7fd6ac;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li { margin: 0; }
.nav-list a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  color: #d5e6df;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
}
.nav-list a:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.nav-list a[aria-current="page"] { background: rgba(18, 180, 114, 0.18); color: #fff; }
.header-cta { display: inline-flex; }

/* details-based mobile menu (no JavaScript) */
.menu { display: none; position: relative; }
.menu > summary {
  list-style: none;
  cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  color: #fff;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: rgba(255, 255, 255, 0.1); }
.menu__bars, .menu__bars::before, .menu__bars::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.menu__bars { position: relative; }
.menu__bars::before, .menu__bars::after { content: ""; position: absolute; left: 0; }
.menu__bars::before { top: -6px; }
.menu__bars::after { top: 6px; }
.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(78vw, 290px);
  background: #0a1f18;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: grid;
  gap: 2px;
}
.menu__panel a {
  padding: 11px 12px;
  border-radius: 10px;
  color: #dbeae4;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
}
.menu__panel a:hover, .menu__panel a[aria-current="page"] {
  background: rgba(18, 180, 114, 0.18);
  color: #fff;
}
.menu__panel .btn { margin-top: 8px; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(18, 180, 114, 0.30), transparent 65%),
    radial-gradient(620px 380px at 8% 12%, rgba(18, 180, 114, 0.14), transparent 70%),
    linear-gradient(180deg, var(--dark) 0%, #071a14 100%);
  color: var(--dark-ink);
  padding-block: clamp(48px, 7vw, 92px) clamp(56px, 8vw, 104px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero h1 { color: #fff; max-width: 19ch; }
.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: #bed6cd;
  max-width: 60ch;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(18, 180, 114, 0.14);
  border: 1px solid rgba(18, 180, 114, 0.35);
  color: #8ff0c2;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.hero__badge svg { width: 15px; height: 15px; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
  color: #a7c3ba;
}
.hero__facts li { display: flex; align-items: center; gap: 7px; margin: 0; }
.hero__facts svg { width: 16px; height: 16px; color: #5fe0a5; flex: none; }

/* App-window illustration (pure CSS/SVG) */
.mock {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0d241c, #081712);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}
.mock__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.mock__title { margin-left: 8px; font-size: 0.78rem; color: #93b1a7; font-weight: 600; letter-spacing: 0.02em; }
.mock__body { padding: 18px; display: grid; gap: 14px; }
.mock__balance {
  border-radius: var(--radius);
  background: rgba(18, 180, 114, 0.10);
  border: 1px solid rgba(18, 180, 114, 0.26);
  padding: 16px;
}
.mock__balance span { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #7fd6ac; font-weight: 700; }
.mock__balance strong { display: block; font-size: 1.75rem; color: #fff; letter-spacing: -0.02em; }
.mock__balance em { font-style: normal; color: #8ff0c2; font-size: 0.86rem; font-weight: 650; }
.mock__chart { border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); padding: 12px; }
.mock__rows { display: grid; gap: 9px; }
.mock__row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.88rem;
}
.mock__coin {
  width: 26px; height: 26px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #04120d;
  background: #7fd6ac;
}
.mock__name { color: #e8f3ef; font-weight: 620; }
.mock__val { margin-left: auto; color: #a7c3ba; font-variant-numeric: tabular-nums; }
.mock__lock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #8ff0c2;
  padding-top: 2px;
}
.mock__lock svg { width: 15px; height: 15px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--ink-2); font-size: 0.97rem; }
.card__icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.card__icon svg { width: 21px; height: 21px; }
.card__meta {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--brand-strong);
}
.card--link { text-decoration: none; color: inherit; display: block; }
.card--link:hover { color: inherit; }
.card--link h3 { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.card--link:hover h3 { text-decoration-color: currentColor; }
.card--plain:hover { transform: none; box-shadow: var(--shadow-sm); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  position: relative;
  padding: 22px 24px 22px 72px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 0.95rem;
}
.step h3 { margin-bottom: 0.3em; }
.step p { color: var(--ink-2); margin: 0; font-size: 0.97rem; }

/* ---------- Prose / article ---------- */
.prose { max-width: 74ch; }
.prose > h2 { margin-top: 1.9em; }
.prose > h3 { margin-top: 1.5em; }
.prose ul, .prose ol { color: var(--ink-2); }
.prose li strong { color: var(--ink); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }

.layout--doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 262px;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.toc {
  position: sticky;
  top: 92px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.toc h2 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 600;
  border-left: 3px solid transparent;
}
.toc a:hover { background: var(--brand-soft); color: var(--brand-strong); border-left-color: var(--brand); }

/* ---------- Callouts ---------- */
.callout {
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  margin: 26px 0;
}
.callout__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 8px;
}
.callout__head svg { width: 20px; height: 20px; flex: none; }
.callout p, .callout ul { color: var(--ink-2); margin-bottom: 0.6em; font-size: 0.97rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout--warn { background: var(--warn-bg); border-color: var(--warn-border); }
.callout--warn .callout__head { color: var(--warn-ink); }
.callout--warn p, .callout--warn ul { color: var(--warn-ink); }
.callout--warn svg { color: var(--warn-ink); }
.callout--brand { background: var(--brand-soft); border-color: #bfe7d4; }
.callout--brand .callout__head { color: var(--brand-strong); }
.callout--brand p, .callout--brand ul { color: #0d5c3d; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li {
  position: relative;
  padding-left: 34px;
  margin: 0;
  color: var(--ink-2);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a7d4e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist li strong { color: var(--ink); }
.section--dark .checklist li { color: var(--dark-ink-2); }
.section--dark .checklist li strong { color: #fff; }

/* ---------- Spec table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
table.specs {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.92rem;
}
table.specs col:first-child { width: 15%; }
table.specs col { width: 17%; }
table.specs caption {
  caption-side: top;
  text-align: left;
  padding: 16px 18px 4px;
  font-weight: 700;
  color: var(--ink-2);
  font-size: 0.9rem;
}
table.specs th, table.specs td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.specs thead th {
  background: var(--surface-2);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
table.specs tbody tr:last-child th,
table.specs tbody tr:last-child td { border-bottom: 0; }
table.specs tbody th { font-weight: 650; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 30px 16px 0;
  font-weight: 650;
  font-size: 1.02rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand-strong);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] { border-color: var(--brand-ring); }
.faq__body { padding: 0 0 18px; color: var(--ink-2); font-size: 0.98rem; }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 82% 0%, rgba(18, 180, 114, 0.28), transparent 70%),
    linear-gradient(135deg, var(--dark-2), var(--dark));
  color: var(--dark-ink);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 26px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cta-band h2 { color: #fff; margin-bottom: 0.35em; }
.cta-band p { color: #b8d2c9; margin: 0; max-width: 62ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.86rem;
  padding-block: 16px 0;
  color: var(--ink-3);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--border-strong); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { color: var(--brand-strong); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink-3); }

/* ---------- Page header (inner pages) ---------- */
.page-head {
  background:
    radial-gradient(720px 320px at 85% -20%, rgba(18, 180, 114, 0.26), transparent 68%),
    linear-gradient(180deg, var(--dark) 0%, #071a14 100%);
  color: var(--dark-ink);
  padding-block: clamp(34px, 5vw, 64px) clamp(38px, 5vw, 68px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.page-head h1 { color: #fff; max-width: 24ch; font-size: clamp(1.85rem, 4.4vw, 2.9rem); }
.page-head p { color: #b8d2c9; max-width: 68ch; font-size: 1.08rem; margin-bottom: 0; }
.page-head .breadcrumbs { color: #8fb0a6; padding-top: 0; margin-bottom: 14px; }
.page-head .breadcrumbs a { color: #b8d2c9; }
.page-head .breadcrumbs li:not(:last-child)::after { color: #4d6b62; }
.page-head .breadcrumbs [aria-current="page"] { color: #8fb0a6; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #b8d2c9;
  padding-block: clamp(40px, 5vw, 60px) 28px;
  margin-top: var(--section-y);
  font-size: 0.94rem;
}
.site-footer a { color: #d5e6df; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: #93b1a7; font-size: 0.92rem; max-width: 34ch; }
.footer-col h2 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7fd6ac;
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col li { margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 34px;
  padding-top: 22px;
  display: grid;
  gap: 12px;
  font-size: 0.85rem;
  color: #8fb0a6;
}
.footer-bottom p { margin: 0; }

/* ---------- Utilities ---------- */
.stack-sm > * + * { margin-top: 12px; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.lead { font-size: 1.08rem; color: var(--ink-2); }
.muted { color: var(--ink-3); font-size: 0.9rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pill-list li {
  margin: 0;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
}
.section--dark .pill-list li { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #cfe4dc; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .layout--doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; order: -1; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-list, .header-cta { display: none; }
  .menu { display: block; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: none; }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .step { padding: 20px 20px 20px 20px; }
  .step::before { position: static; margin-bottom: 12px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  table.specs { min-width: 560px; }
}

@media print {
  .site-header, .site-footer, .cta-band, .toc { display: none; }
  body { font-size: 12pt; }
  a { color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .card:hover { transform: none; }
}
