/* ==========================================================================
   DevMode — design system
   Tuned to feel like iPadOS: system type, grouped surfaces, translucent chrome.
   ========================================================================== */

:root {
  color-scheme: light;

  --bg: #f2f2f7;
  --bg-deep: #e9e9ef;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --surface-sunken: #f2f2f7;

  --text: #1c1c1e;
  --text-2: #6e6e73;
  --text-3: #8e8e93;

  --separator: rgba(60, 60, 67, 0.12);
  --separator-strong: rgba(60, 60, 67, 0.22);

  --accent: #0a84ff;
  --accent-strong: #0071e3;
  --accent-soft: rgba(10, 132, 255, 0.12);
  --green: #28a745;
  --green-soft: rgba(40, 167, 69, 0.12);
  --orange: #f08a00;
  --orange-soft: rgba(240, 138, 0, 0.13);
  --red: #e0342b;
  --red-soft: rgba(224, 52, 43, 0.11);

  --nav-bg: rgba(250, 250, 252, 0.78);
  --nav-border: rgba(60, 60, 67, 0.12);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 11px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.05), 0 14px 34px rgba(16, 24, 40, 0.07);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, 0.06), 0 30px 70px rgba(16, 24, 40, 0.14);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI Variable", "Segoe UI", Inter, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;

  --page: 1080px;
  --gutter: 22px;
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #000000;
  --bg-deep: #0a0a0c;
  --surface: #1c1c1e;
  --surface-2: #242426;
  --surface-sunken: #141416;

  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #8e8e93;

  --separator: rgba(255, 255, 255, 0.12);
  --separator-strong: rgba(255, 255, 255, 0.2);

  --accent: #0a84ff;
  --accent-strong: #409cff;
  --accent-soft: rgba(10, 132, 255, 0.18);
  --green: #32d74b;
  --green-soft: rgba(50, 215, 75, 0.16);
  --orange: #ff9f0a;
  --orange-soft: rgba(255, 159, 10, 0.16);
  --red: #ff453a;
  --red-soft: rgba(255, 69, 58, 0.16);

  --nav-bg: rgba(20, 20, 22, 0.72);
  --nav-border: rgba(255, 255, 255, 0.1);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.6), 0 36px 80px rgba(0, 0, 0, 0.7);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.022em;
  line-height: 1.12;
  font-weight: 700;
}

p {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-narrow {
  max-width: 760px;
}

.section {
  padding: 72px 0;
}

.section-sm {
  padding: 44px 0;
}

.stack {
  display: flex;
  flex-direction: column;
}

.center {
  text-align: center;
}

.muted {
  color: var(--text-2);
}

.tiny {
  font-size: 13px;
  color: var(--text-3);
}

.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;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 54px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 9px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--separator);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--separator);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.icon-btn:hover {
  background: var(--separator);
  color: var(--text);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.nav-toggle {
  display: none;
}

@media (max-width: 700px) {
  .nav-links {
    position: fixed;
    inset: 54px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 18px;
    background: var(--nav-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--nav-border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 16px;
    padding: 12px 10px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-actions .btn {
    display: none;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 590;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, background-color 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.975);
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(10, 132, 255, 0.4), 0 8px 20px rgba(10, 132, 255, 0.25);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--separator-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--surface-2);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding-inline: 14px;
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 14px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 16.5px;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 64px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 620px;
  height: 620px;
  top: -280px;
  right: -120px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.55), transparent 68%);
}

.hero::after {
  width: 480px;
  height: 480px;
  bottom: -300px;
  left: -140px;
  background: radial-gradient(circle, rgba(94, 92, 230, 0.4), transparent 70%);
}

[data-theme="dark"] .hero::before,
[data-theme="dark"] .hero::after {
  opacity: 0.32;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 54px;
  align-items: center;
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(10, 132, 255, 0.22);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(38px, 6.2vw, 62px);
  letter-spacing: -0.035em;
  line-height: 1.03;
  font-weight: 750;
}

.hero h1 .grad {
  background: linear-gradient(120deg, #0a84ff 10%, #5e5ce6 55%, #bf5af2 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.45;
  color: var(--text-2);
  max-width: 34em;
}

.hero .btn-row {
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--text-3);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

/* ---------- ipad mockup ---------- */

.device {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1.34 / 1;
  padding: 13px;
  border-radius: 34px;
  background: linear-gradient(160deg, #3a3a3c, #1c1c1e 55%, #101012);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.device::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 29px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.screen {
  position: relative;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg);
  display: grid;
  grid-template-columns: 31% 1fr;
  font-size: 10px;
}

.mock-sidebar {
  background: rgba(120, 120, 128, 0.1);
  border-right: 1px solid var(--separator);
  padding: 12px 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mock-side-title {
  font-weight: 700;
  font-size: 11px;
  padding: 2px 6px 10px;
  letter-spacing: -0.01em;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 6px;
  color: var(--text-2);
  font-weight: 500;
  font-size: 9px;
}

.mock-row .sq {
  width: 12px;
  height: 12px;
  border-radius: 3.5px;
  background: var(--text-3);
  opacity: 0.5;
}

.mock-row.active {
  background: var(--accent);
  color: #fff;
}

.mock-row.active .sq {
  background: #fff;
  opacity: 0.9;
}

.mock-main {
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: hidden;
}

.mock-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mock-card {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mock-hstack {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-glyph {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(150deg, #2f7bff, #0540bf);
  flex: none;
}

.mock-pill {
  font-size: 7px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  padding: 2px 6px;
  border-radius: 999px;
}

.mock-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--separator);
  overflow: hidden;
}

.mock-bar i {
  display: block;
  height: 100%;
  width: 66%;
  background: var(--accent);
  border-radius: 999px;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mock-tile {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: 8px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-tile b {
  font-size: 8px;
  font-weight: 650;
}

.mock-tile span {
  font-size: 6.5px;
  color: var(--text-3);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
}

.mock-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-lines i {
  height: 3px;
  border-radius: 999px;
  background: var(--separator-strong);
  display: block;
}

.mock-lines i:nth-child(2) {
  width: 88%;
}

.mock-lines i:nth-child(3) {
  width: 62%;
}

/* ---------- cards & grids ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card-pad-lg {
  padding: 30px;
}

.card-hover {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--separator-strong);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.icon-tile {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}

.icon-tile svg {
  width: 21px;
  height: 21px;
}

.icon-tile.green {
  background: var(--green-soft);
  color: var(--green);
}

.icon-tile.orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.icon-tile.red {
  background: var(--red-soft);
  color: var(--red);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.card p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head.center {
  margin-inline: auto;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 17px;
}

/* ---------- callout ---------- */

.callout {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--separator);
  border-left: 4px solid var(--accent);
}

.callout.warn {
  border-left-color: var(--orange);
  background: linear-gradient(90deg, var(--orange-soft), transparent 60%), var(--surface);
}

.callout.danger {
  border-left-color: var(--red);
  background: linear-gradient(90deg, var(--red-soft), transparent 60%), var(--surface);
}

.callout.ok {
  border-left-color: var(--green);
}

.callout .ct-icon {
  flex: none;
  color: var(--accent);
  margin-top: 2px;
}

.callout.warn .ct-icon {
  color: var(--orange);
}

.callout.danger .ct-icon {
  color: var(--red);
}

.callout.ok .ct-icon {
  color: var(--green);
}

.callout svg {
  width: 20px;
  height: 20px;
}

.callout h4 {
  font-size: 15px;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.callout p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ---------- segmented control ---------- */

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 11px;
  background: var(--separator);
  gap: 2px;
  margin-bottom: 26px;
}

.segmented button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  padding: 7px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.segmented button[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.panel[hidden] {
  display: none;
}

/* ---------- download bits ---------- */

.dl-head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.dl-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 6px;
}

.dl-meta b {
  color: var(--text-2);
  font-weight: 600;
}

.hash {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  background: var(--surface-sunken);
  border: 1px solid var(--separator);
  padding: 9px 12px;
  border-radius: 9px;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.hash code {
  font-family: inherit;
  overflow-wrap: anywhere;
}

/* ---------- code ---------- */

.code {
  position: relative;
  background: #101014;
  color: #e6e6ea;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 18px 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.code code {
  font-family: inherit;
  white-space: pre;
}

.code .c-dim {
  color: #8b8b93;
}

.code .c-key {
  color: #7dc4ff;
}

.code .c-str {
  color: #a5e8a0;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #d7d7de;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.copy-btn.done {
  color: #9ff0a6;
  border-color: rgba(159, 240, 166, 0.4);
}

/* ---------- steps ---------- */

.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding-bottom: 26px;
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14.5px;
  top: 32px;
  bottom: 2px;
  width: 1.5px;
  background: var(--separator-strong);
}

.step h4 {
  font-size: 15.5px;
  margin-bottom: 4px;
}

.step p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ---------- table ---------- */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--separator);
  vertical-align: top;
}

.table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  font-weight: 650;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--separator);
  border-radius: var(--radius);
  background: var(--surface);
}

/* ---------- prose (legal) ---------- */

.prose {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}

.prose > * + * {
  margin-top: 16px;
}

.prose h2 {
  font-size: 24px;
  color: var(--text);
  margin-top: 44px;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: 18px;
  color: var(--text);
  margin-top: 28px;
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 22px;
}

.prose li + li {
  margin-top: 7px;
}

.prose strong {
  color: var(--text);
  font-weight: 620;
}

.prose a {
  font-weight: 500;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-sunken);
  border: 1px solid var(--separator);
  padding: 1px 5px;
  border-radius: 5px;
  color: var(--text);
}

.page-head {
  padding: 58px 0 10px;
}

.page-head h1 {
  font-size: clamp(32px, 5vw, 46px);
  letter-spacing: -0.03em;
}

.page-head p {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 17px;
  max-width: 60ch;
}

.page-head .updated {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-3);
}

.toc {
  position: sticky;
  top: 78px;
  align-self: start;
  font-size: 14px;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--text-2);
}

.toc a:hover {
  color: var(--text);
}

.legal-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 56px;
  align-items: start;
}

@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc {
    display: none;
  }
}

/* ---------- accordion ---------- */

details.faq {
  border-bottom: 1px solid var(--separator);
  padding: 18px 0;
}

details.faq:first-of-type {
  border-top: 1px solid var(--separator);
}

details.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-3);
  flex: none;
  transition: transform 0.2s ease;
}

details.faq[open] summary::after {
  transform: rotate(45deg);
}

details.faq p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--separator);
  margin-top: 40px;
  padding: 46px 0 40px;
  font-size: 14px;
  color: var(--text-3);
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
}

.footer h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin: 0 0 12px;
  font-weight: 650;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer a {
  color: var(--text-2);
  font-size: 14px;
}

.footer a:hover {
  color: var(--text);
}

.footer-brand p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 30ch;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--separator);
  font-size: 12.5px;
}

/* ---------- misc ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--separator);
  color: var(--text-2);
}

.pill.ok {
  background: var(--green-soft);
  color: var(--green);
}

.pill.warn {
  background: var(--orange-soft);
  color: var(--orange);
}

.pill.bad {
  background: var(--red-soft);
  color: var(--red);
}

.pill.accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.hr {
  height: 1px;
  background: var(--separator);
  border: 0;
  margin: 0;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--separator);
  font-size: 14.5px;
}

.kv:last-child {
  border-bottom: 0;
}

.kv span {
  color: var(--text-2);
}

.kv b {
  font-weight: 600;
  text-align: right;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-2);
}

.feature-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.feature-list svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--green);
  margin-top: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card-hover:hover {
    transform: none;
  }
}
