/* Unroll website — monochrome film-roll design system matching Unroll iOS & Android */
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito_medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito_semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito_extrabold.ttf") format("truetype");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #f4f4f1;
  --surface: #ffffff;
  --well: #eaeae5;
  --hero: #111111;
  --hero-ink: #f5f5f3;
  --hero-dim: #a5a5a1;
  --ink: #101010;
  --dim: #5e5e60;
  --faint: #8b8b8d;
  --line: #e2e2dd;
  --inverse-bg: #101010;
  --inverse-ink: #f5f5f3;
  --ok: #1b7a3d;
  --ok-bg: #e4f3e9;
  --shadow-card: 0 1px 2px rgba(16, 16, 16, 0.04), 0 10px 26px -14px rgba(16, 16, 16, 0.12);
  --shadow-phone: 0 24px 60px -22px rgba(0, 0, 0, 0.34), 0 2px 8px rgba(0, 0, 0, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --font: "Nunito", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #090909;
    --surface: #141414;
    --well: #1f1f1e;
    --hero: #161616;
    --hero-ink: #f4f4f2;
    --hero-dim: #9e9e9a;
    --ink: #f2f2ef;
    --dim: #9d9d9a;
    --faint: #6c6c6a;
    --line: #262624;
    --inverse-bg: #f2f2ef;
    --inverse-ink: #0b0b0b;
    --ok: #5cd085;
    --ok-bg: #152b1d;
    --shadow-card: none;
    --shadow-phone: 0 28px 68px -20px rgba(0, 0, 0, 0.78);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --canvas: #090909;
  --surface: #141414;
  --well: #1f1f1e;
  --hero: #161616;
  --hero-ink: #f4f4f2;
  --hero-dim: #9e9e9a;
  --ink: #f2f2ef;
  --dim: #9d9d9a;
  --faint: #6c6c6a;
  --line: #262624;
  --inverse-bg: #f2f2ef;
  --inverse-ink: #0b0b0b;
  --ok: #5cd085;
  --ok-bg: #152b1d;
  --shadow-card: none;
  --shadow-phone: 0 28px 68px -20px rgba(0, 0, 0, 0.78);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 500 17px/1.62 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--inverse-bg);
  color: var(--inverse-ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.num { font-variant-numeric: tabular-nums; }
.caps {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 20px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
}
.top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--dim);
  transition: background 0.16s, color 0.16s;
}
.nav a:hover { color: var(--ink); background: var(--well); }
.nav a[aria-current="page"] {
  background: var(--inverse-bg);
  color: var(--inverse-ink);
}
.pill-ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  color: var(--ink);
}
.pill-ctrl:hover { background: var(--well); }

/* Film sprocket motif (matches Unroll ConnectHero) */
.sprockets {
  height: 10px;
  width: 100%;
  background-image: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.18) 0 16px,
    transparent 16px 32px
  );
  background-size: 32px 10px;
  border-radius: 3px;
  opacity: 0.85;
}
@media (prefers-reduced-motion: no-preference) {
  .sprockets.moving {
    animation: film-roll 3.6s linear infinite;
  }
}
@keyframes film-roll {
  from { background-position-x: 0; }
  to { background-position-x: -32px; }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: center;
  padding: 26px 0 36px;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 16px; }
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}
h1 {
  font-size: clamp(38px, 6.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.032em;
  font-weight: 900;
  margin: 16px 0 16px;
}
.lede {
  font-size: clamp(17px, 2vw, 19.5px);
  color: var(--dim);
  max-width: 560px;
  margin: 0;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.14s, opacity 0.14s, background 0.16s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--inverse-bg);
  color: var(--inverse-ink);
}
.btn-primary:hover { opacity: 0.9; }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { background: var(--well); }
.btn small { font-weight: 700; opacity: 0.72; font-size: 12.5px; }

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 8px;
}

/* Hero Phone Showcase */
.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.phone-bezel {
  width: min(320px, 100%);
  background: #0c0c0c;
  border: 1px solid #2b2b29;
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow-phone);
}
.phone-screen {
  border-radius: 27px;
  overflow: hidden;
  background: #000;
  border: 1px solid #222;
  aspect-ratio: 720 / 1373;
  position: relative;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.screen-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.screen-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--dim);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.screen-pill[aria-pressed="true"] {
  background: var(--inverse-bg);
  color: var(--inverse-ink);
  border-color: var(--inverse-bg);
}

/* Film Strip Banner */
.film-banner {
  margin-top: 20px;
  background: var(--hero);
  color: var(--hero-ink);
  border-radius: 26px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid #262624;
}
.film-banner-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 22px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-dim);
}
.film-banner-row strong { color: var(--hero-ink); }

/* Sections */
.sec { padding: 68px 0 0; }
.sec-head { max-width: 680px; margin-bottom: 24px; }
.sec-head h2 {
  font-size: clamp(28px, 4.3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 900;
  margin: 8px 0 10px;
}
.sec-head p { margin: 0; color: var(--dim); font-size: 17px; }

/* Interactive Workflow Tour */
.tour-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.tour-tab {
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--dim);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.tour-tab[aria-selected="true"] {
  background: var(--inverse-bg);
  color: var(--inverse-ink);
  border-color: var(--inverse-bg);
}
.tour-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 780px) {
  .tour-card { grid-template-columns: 1fr; padding: 20px; }
}
.tour-copy h3 {
  font-size: 26px;
  line-height: 1.15;
  margin: 8px 0 10px;
  font-weight: 900;
}
.tour-copy p { margin: 0 0 16px; color: var(--dim); }
.tour-points {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.tour-points li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  display: flex;
  gap: 10px;
}
.tour-points li b { font-weight: 800; min-width: 24px; color: var(--dim); font-variant-numeric: tabular-nums; }
.tour-visual {
  display: flex;
  justify-content: center;
}
.tour-visual .phone-bezel { width: min(272px, 100%); }

/* Interactive Frame Studio Preview */
.studio-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  align-items: center;
}
@media (max-width: 820px) {
  .studio-box { grid-template-columns: 1fr; padding: 18px; }
}
.studio-stage {
  background: #0d0d0d;
  border-radius: 20px;
  min-height: 390px;
  padding: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #242422;
}
.frame-canvas {
  --f-bg: #fbfbf9;
  --f-ink: #121212;
  --f-sub: rgba(18, 18, 18, 0.56);
  background: var(--f-bg);
  color: var(--f-ink);
  width: min(330px, 100%);
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  transition: all 0.2s ease;
  position: relative;
}
.frame-canvas[data-dark="true"],
.frame-canvas[data-style="film"] {
  --f-bg: #111111;
  --f-ink: #f3f3f0;
  --f-sub: rgba(243, 243, 240, 0.56);
}
.frame-canvas[data-style="caption"] { padding: 0 0 14px; }
.frame-canvas[data-style="minimal"] { padding: 9px; }
.frame-canvas[data-style="polaroid"] { padding: 15px 15px 34px; }
.frame-canvas[data-style="film"] {
  padding: 24px 11px 28px;
  background-image:
    repeating-linear-gradient(to right, rgba(255,255,255,0.22) 0 11px, transparent 11px 22px),
    repeating-linear-gradient(to right, rgba(255,255,255,0.22) 0 11px, transparent 11px 22px);
  background-size: 22px 7px, 22px 7px;
  background-position: 10px 8px, 10px calc(100% - 8px);
  background-repeat: repeat-x;
}
.frame-canvas[data-ratio="1:1"] { aspect-ratio: 1 / 1; }
.frame-canvas[data-ratio="4:5"] { aspect-ratio: 4 / 5; }
.frame-canvas[data-ratio="9:16"] { aspect-ratio: 9 / 16; max-width: 220px; }

.frame-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: linear-gradient(180deg, #b86c25 0%, #6d3a16 62%, #19120c 62%, #110c07 100%);
  position: relative;
  overflow: hidden;
}
/* Minimal skyline matching Unroll's Demo Roll art */
.frame-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, #23211e 0 12%, transparent 12% 14%, #23211e 14% 28%, transparent 28% 30%, #23211e 30% 42%, transparent 42% 45%, #23211e 45% 63%, transparent 63% 65%, #23211e 65% 81%, transparent 81% 83%, #23211e 83% 96%, transparent 96%);
  mask: linear-gradient(to bottom, transparent 22%, #000 22% 62%, transparent 62%);
  -webkit-mask: linear-gradient(to bottom, transparent 22%, #000 22% 62%, transparent 62%);
}
.frame-meta {
  padding: 11px 10px 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.45;
}
.frame-canvas[data-style="gallery"] .frame-meta,
.frame-canvas[data-style="polaroid"] .frame-meta { padding-inline: 2px; }
.frame-canvas[data-style="caption"] .frame-meta { padding-inline: 12px; }
.frame-camera { font-weight: 800; font-size: 12px; color: var(--f-ink); }
.frame-sub { color: var(--f-sub); font-variant-numeric: tabular-nums; margin-top: 2px; }
.frame-recipe-grid {
  display: none;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--f-sub);
  grid-template-columns: repeat(2, 1fr);
  gap: 3px 10px;
  text-align: left;
  font-size: 10px;
  color: var(--f-sub);
}
.frame-canvas[data-style="recipe"] .frame-recipe-grid { display: grid; }
.frame-mark {
  text-align: right;
  font-size: 9px;
  color: var(--f-sub);
  margin-top: 6px;
}

.studio-controls { display: flex; flex-direction: column; gap: 18px; }
.ctrl-group h4 {
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-btn {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--canvas);
  color: var(--dim);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.chip-btn[aria-pressed="true"] {
  background: var(--inverse-bg);
  color: var(--inverse-ink);
  border-color: var(--inverse-bg);
}
.chip-btn .pro-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.72;
  margin-left: 3px;
}

/* Bento Grid Features */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 900; line-height: 1.25; }
.card p { margin: 0; color: var(--dim); font-size: 15.5px; }
.card-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}

/* Gallery strip */
.shots-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 820px) {
  .shots-row {
    grid-template-columns: repeat(4, 68%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .shots-row figure { scroll-snap-align: start; }
}
.shots-row figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px;
}
.shots-row img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.shots-row figcaption {
  padding: 10px 4px 2px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dim);
}

/* Tables */
.table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td {
  text-align: left;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
tr:first-child th { border-top: 0; }
th {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  background: var(--canvas);
}
td code, p code, li code {
  font: 13.5px var(--mono);
  background: var(--well);
  padding: 2px 6px;
  border-radius: 6px;
  word-break: break-word;
}

/* Pricing */
.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow-card);
}
.plan-card.featured {
  background: var(--hero);
  color: var(--hero-ink);
  border-color: #2b2b29;
}
.plan-card.featured p,
.plan-card.featured li { color: var(--hero-dim); }
.plan-price { font-size: 32px; font-weight: 900; letter-spacing: -0.02em; margin: 6px 0; }
.plan-list { list-style: none; padding: 0; margin: 12px 0 0; }
.plan-list li {
  padding: 7px 0;
  border-top: 1px solid rgba(128, 128, 128, 0.22);
  font-size: 15px;
}
.plan-list li:first-child { border-top: 0; }

/* Download Center */
.dl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
}
.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.meta-tag {
  font-size: 12.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--well);
  color: var(--ink);
}
.meta-tag.ok { background: var(--ok-bg); color: var(--ok); }
.sha-box {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: 12px/1.45 var(--mono);
  color: var(--dim);
  word-break: break-all;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.copy-btn {
  flex: none;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: 700 12px var(--font);
  cursor: pointer;
}
.steps-ol {
  margin: 4px 0 0;
  padding-left: 20px;
  color: var(--dim);
  font-size: 15px;
}
.steps-ol li { margin: 5px 0; }

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 20px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 800;
  color: var(--dim);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--dim); font-size: 15.5px; }

/* Legal & Support Document Layout */
.doc { max-width: 760px; padding: 28px 0 12px; }
.doc h1 { font-size: clamp(34px, 6vw, 50px); margin: 10px 0 8px; }
.doc .meta { color: var(--dim); font-size: 15px; margin: 0 0 22px; }
.tldr {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}
.tldr strong { display: block; font-size: 15px; font-weight: 900; margin-bottom: 4px; }
.tldr p { margin: 0; color: var(--dim); font-size: 15.5px; }
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 26px;
}
.toc a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--dim);
}
.toc a:hover { color: var(--ink); background: var(--well); }
.doc section { margin-top: 34px; }
.doc h2 { font-size: 22px; font-weight: 900; margin: 0 0 10px; letter-spacing: -0.015em; }
.doc p { margin: 0 0 12px; color: var(--ink); }
.doc ul { padding-left: 20px; margin: 8px 0 14px; }
.doc li { margin: 7px 0; color: var(--ink); }

/* Footer */
footer {
  margin-top: 72px;
  padding: 26px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 600px) {
  .top { padding-block: 14px; }
  .nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .nav a { white-space: nowrap; }
}
