/* FitBuddy Pages — ground-up dual-theme redesign */

:root,
[data-theme="light"] {
  color-scheme: light;
  --ink: #07111f;
  --ink-soft: #243447;
  --paper: #eef2f7;
  --paper-deep: #dde5ef;
  --foam: #ffffff;
  --flame: #f05a00;
  --flame-deep: #c44700;
  --mint: #0b8f84;
  --line: rgba(7, 17, 31, 0.14);
  --line-strong: rgba(7, 17, 31, 0.28);
  --surface: #ffffff;
  --surface-muted: rgba(255, 255, 255, 0.72);
  --header-bg: rgba(238, 242, 247, 0.92);
  --atmosphere:
    radial-gradient(ellipse 55% 45% at 85% 10%, rgba(240, 90, 0, 0.18), transparent 60%),
    radial-gradient(ellipse 45% 40% at 10% 90%, rgba(11, 143, 132, 0.14), transparent 55%),
    linear-gradient(165deg, #e4ebf4 0%, var(--paper) 48%, #dce5f0 100%);
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  --max: 920px;
  --radius: 14px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f3f6fb;
  --ink-soft: #c5d0de;
  --paper: #08101c;
  --paper-deep: #121c2c;
  --foam: #101a2a;
  --flame: #ff7a1f;
  --flame-deep: #f05a00;
  --mint: #2ec4b6;
  --line: rgba(243, 246, 251, 0.12);
  --line-strong: rgba(243, 246, 251, 0.24);
  --surface: #121c2c;
  --surface-muted: rgba(18, 28, 44, 0.8);
  --header-bg: rgba(8, 16, 28, 0.92);
  --atmosphere:
    radial-gradient(ellipse 55% 45% at 85% 10%, rgba(255, 122, 31, 0.2), transparent 60%),
    radial-gradient(ellipse 45% 40% at 10% 90%, rgba(46, 196, 182, 0.12), transparent 55%),
    linear-gradient(165deg, #050a14 0%, var(--paper) 48%, #0a1320 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  letter-spacing: 0.01em;
  /* subpixel smoothing reads thicker than antialiased on macOS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 0.22s ease, color 0.22s ease;
}

a {
  color: var(--flame-deep);
  font-weight: 400;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--ink);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--atmosphere);
  pointer-events: none;
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem clamp(1rem, 3.5vw, 1.75rem);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand-lockup img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.brand-lockup span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.45rem;
}

.site-header nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  font-weight: 400;
}

.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 400;
  padding: 0.2rem 0;
  white-space: nowrap;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--ink);
}

.site-header nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--flame);
}

.site-header nav .nav-download {
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper) !important;
  font-weight: 400;
}

[data-theme="dark"] .site-header nav .nav-download {
  background: var(--flame);
  color: #140a02 !important;
}

.site-header nav .nav-download:hover {
  background: var(--flame);
  color: #fff7f0 !important;
}

.nav-toggle,
.theme-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.nav-toggle {
  display: none;
}

.nav-toggle:hover,
.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
}

.nav-toggle:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 2px;
}

.nav-toggle svg,
.theme-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle .icon-close,
.site-header.is-nav-open .nav-toggle .icon-menu {
  display: none;
}

.site-header.is-nav-open .nav-toggle .icon-close {
  display: block;
}

.theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: block;
}

/* ---- Hero: two equal columns, icon stays in frame ---- */

.hero {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  width: fit-content;
  max-width: min(var(--max), 100%);
  min-height: calc(100svh - 4.4rem);
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.15rem, 3.5vw, 1.75rem);
  box-sizing: border-box;
}

.hero-copy {
  flex: 0 1 auto;
  max-width: 28rem;
}

.brand-wordmark {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.6rem, 9vw, 5.75rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--ink);
  animation: rise 0.7s ease-out both;
}

.brand-wordmark::after {
  content: "";
  display: block;
  width: 4.25rem;
  height: 7px;
  margin-top: 0.85rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--flame) 0%, var(--mint) 100%);
  animation: grow 0.85s ease-out 0.15s both;
  transform-origin: left;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  animation: rise 0.7s ease-out 0.06s both;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  animation: rise 0.7s ease-out 0.12s both;
}

.cta-row,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.7s ease-out 0.18s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.75rem 1.45rem;
  border-radius: 11px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--flame);
  color: #fff8f1;
  border: 1.5px solid var(--flame-deep);
}

.btn-primary:hover {
  background: var(--flame-deep);
  color: #fff8f1;
}

.btn-ghost {
  background: var(--surface-muted);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.version-line {
  margin: 1.05rem 0 0;
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--ink-soft);
  animation: rise 0.7s ease-out 0.24s both;
}

.hero-visual {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float-in 0.9s ease-out 0.1s both;
}

.phone-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: min(42vw, 280px);
}

.phone-frame {
  width: 100%;
  padding: 0.55rem;
  border-radius: 1.65rem;
  background: linear-gradient(160deg, #1a2433 0%, #0b121c 55%, #15202e 100%);
  border: 1.5px solid var(--line-strong);
  box-shadow:
    0 18px 40px rgba(7, 17, 31, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .phone-frame {
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.phone-screen {
  overflow: hidden;
  border-radius: 1.2rem;
  background: #0d1410;
  aspect-ratio: 540 / 1124;
}

.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.phone-screen img.is-fading {
  opacity: 0;
}

.carousel-caption {
  margin: 0;
  max-width: 28ch;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-soft);
  min-height: 2.8em;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface-muted);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.carousel-btn:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
}

.carousel-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  max-width: 11rem;
}

.carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.carousel-dot[aria-selected="true"] {
  width: 1.25rem;
  background: linear-gradient(90deg, var(--flame), var(--mint));
}

/* ---- Sections ---- */

.how,
.download,
.doc-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.25rem) clamp(1.15rem, 3.5vw, 1.75rem);
}

.how-head {
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

.how h2,
.download h2,
.doc-band h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  letter-spacing: -0.035em;
  color: var(--ink);
}

.section-lede {
  margin: 0;
  max-width: 42ch;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.55;
}

.doc-band .section-lede,
.download .section-lede {
  margin-bottom: 2rem;
}

.steps,
.doc-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}

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

.steps li {
  padding: 1.15rem 0 0;
  border-top: 4px solid var(--mint);
}

.step-num {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--mint);
}

.steps h3,
.doc-grid h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.steps p,
.doc-grid p {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.55;
}

.doc-grid a {
  display: block;
  padding: 1.35rem 1.3rem 1.45rem;
  border-left: 5px solid var(--flame);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.doc-grid a:hover {
  transform: translateY(-3px);
  color: inherit;
  border-left-color: var(--mint);
}

.doc-kicker {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
}

.download-panel {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1.5px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--flame) 12%, transparent), transparent 48%),
    var(--surface);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.store-badges a {
  display: inline-flex;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.store-badges a:hover {
  opacity: 0.8;
}

.store-badges img {
  height: 60px;
  width: auto;
}

.download .fineprint {
  margin: 1.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 400;
  max-width: 50ch;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem clamp(1.15rem, 3.5vw, 1.75rem) 2.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 400;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 400;
}

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

/* ---- Docs ---- */

.docs-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem clamp(1.15rem, 3.5vw, 1.75rem) 4rem;
}

.docs-nav {
  position: sticky;
  top: 4.6rem;
  align-self: start;
  padding: 0.75rem 0;
}

.docs-nav h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}

.docs-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.docs-nav a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 9px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
}

.docs-nav a:hover,
.docs-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
}

.docs-article {
  min-width: 0;
}

.docs-hero {
  margin-bottom: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 2px solid var(--line);
}

.docs-hero .eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
}

.docs-hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}

.docs-hero p {
  margin: 0;
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.55;
}

.docs-article h2 {
  margin: 2.4rem 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.docs-article h3 {
  margin: 1.55rem 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--ink);
}

.docs-article p,
.docs-article li {
  color: var(--ink);
  font-weight: 400;
}

.docs-article p {
  margin: 0 0 1rem;
  max-width: 62ch;
  line-height: 1.65;
}

.docs-article ul,
.docs-article ol {
  margin: 0 0 1.2rem;
  padding-left: 1.25rem;
  max-width: 62ch;
}

.docs-article li + li {
  margin-top: 0.4rem;
}

.docs-article strong {
  color: var(--ink);
  font-weight: 400;
}

.docs-article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  font-weight: 400;
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: var(--paper-deep);
  color: var(--ink);
}

.callout {
  margin: 1.15rem 0 1.4rem;
  padding: 1.05rem 1.2rem;
  border-left: 5px solid var(--flame);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: color-mix(in srgb, var(--flame) 12%, transparent);
  max-width: 62ch;
}

.callout p {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
}

.callout p + p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.ui-label {
  display: inline-block;
  padding: 0.14em 0.5em;
  border-radius: 7px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9em;
  font-weight: 400;
  white-space: nowrap;
}

.faq details {
  margin: 0 0 0.65rem;
  padding: 0.95rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: 68ch;
}

.faq summary {
  cursor: pointer;
  font-weight: 400;
  color: var(--ink);
  list-style: none;
}

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

.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.15em;
  margin-right: 0.3em;
  color: var(--flame);
  font-weight: 400;
}

.faq details[open] summary::before {
  content: "–";
}

.faq details p {
  margin: 0.75rem 0 0;
  font-weight: 400;
}

.toc {
  margin: 0 0 1.75rem;
  padding: 1.1rem 1.2rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: 40ch;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 400;
  color: var(--ink);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 400;
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grow {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes bob {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-actions {
    position: static;
  }

  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 45;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  }

  .site-header.is-nav-open nav {
    display: flex;
  }

  .site-header nav a {
    padding: 0.85rem clamp(1rem, 3.5vw, 1.75rem);
    border-top: 1px solid var(--line);
    white-space: normal;
  }

  .site-header nav a[aria-current="page"] {
    box-shadow: inset 4px 0 0 var(--flame);
  }

  .site-header nav .nav-download {
    margin: 0.65rem clamp(1rem, 3.5vw, 1.75rem) 0.25rem;
    text-align: center;
    border-top: none;
  }

  .site-header nav .nav-hide-sm {
    display: block;
  }

  .hero-inner {
    flex-direction: column;
    min-height: auto;
    gap: 1.35rem;
    padding-top: 1.5rem;
    text-align: left;
    width: 100%;
  }

  .hero-visual {
    order: -1;
  }

  .phone-carousel {
    width: min(62vw, 260px);
  }

  .hero-copy {
    max-width: none;
    width: 100%;
  }

  .brand-wordmark {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .cta-row,
  .download-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .steps,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-nav {
    position: static;
    padding: 0 0 1rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.75rem;
  }

  .docs-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .brand-lockup {
    font-size: 1.05rem;
  }

  .brand-lockup img {
    width: 32px;
    height: 32px;
  }
}

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

  .brand-wordmark,
  .brand-wordmark::after,
  .hero h1,
  .lede,
  .cta-row,
  .version-line,
  .hero-visual,
  .hero-visual img {
    animation: none;
  }

  body,
  .btn,
  .theme-toggle {
    transition: none;
  }
}
