/* Mangio website. Dark only, colours from the app's dark theme (core/design Theme.kt, colors.xml). */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* App theme */
  --bg: #111421;
  --bg-deep: #0c0e18;
  --bg-top: #1c3550;
  --surface: #1a1f38;
  --surface-soft: rgba(26, 31, 56, 0.6);
  --text: #e1e1e4;
  --muted: #b1b2ba;
  --faint: #8a8c97;
  --primary: #54c3e8;
  --on-primary: #151a30;
  --line: rgba(225, 225, 228, 0.09);
  --line-strong: rgba(225, 225, 228, 0.16);

  /* Nutrient colours, as in the app and its logo */
  --calories: #38bfba;
  --carbs: #f2ad24;
  --protein: #f47621;
  --fat: #8f78ff;
  --water: #4a90e8;
  --success: #48c942;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 20px;
  --max: 1160px;
  --radius-lg: 28px;
  --radius-md: 20px;
}

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

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

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #8ad8f2;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}

h1 {
  font-size: clamp(2.6rem, 9vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 6.4vw, 3.1rem);
}

h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--primary);
  color: var(--on-primary);
  padding: 8px 14px;
  border-radius: 999px;
}

.skip:focus {
  left: 8px;
}

/* Page background: the app's blue-to-night gradient, with soft nutrient-coloured glows */
.backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1100px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 85% 18%, rgba(143, 120, 255, 0.16), transparent 70%),
    radial-gradient(55% 40% at 10% 30%, rgba(56, 191, 186, 0.14), transparent 70%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 70%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(17, 20, 33, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.site-header.scrolled {
  background: rgba(17, 20, 33, 0.82);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
}

.brand svg {
  height: 36px;
  width: auto;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

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

@media (min-width: 820px) {
  .nav-links {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: #7bd3ef;
  color: var(--on-primary);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(225, 225, 228, 0.03);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(225, 225, 228, 0.32);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

/* Google Play button, drawn from shapes; "Coming soon" until the listing is live */
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 22px 8px 16px;
  border-radius: 16px;
  background: #000;
  border: 1px solid var(--line-strong);
  color: #fff;
  text-decoration: none;
}

.store:hover {
  color: #fff;
  border-color: rgba(225, 225, 228, 0.36);
}

.store svg {
  width: 26px;
  height: 28px;
  flex: none;
}

.store span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store small {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c9cad0;
}

.store strong {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Small labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(26, 31, 56, 0.55);
  color: var(--muted);
  font-size: 14px;
}

.pill b {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(84, 195, 232, 0.16);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  padding: 40px 0 72px;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin: 22px 0 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--primary);
}

.hero h1 .h1-coda {
  display: block;
  margin-top: 0.12em;
  color: var(--muted);
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  max-width: 520px;
}

.facts li {
  border-left: 1px solid var(--line-strong);
  padding-left: 14px;
}

.facts strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  line-height: 1.1;
  color: var(--text);
}

.facts span {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  margin-top: 4px;
}

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0 0 8px;
}

.hero-phones .phone-back {
  display: none;
}

@media (min-width: 560px) {
  .hero-phones .phone-back {
    display: block;
    position: absolute;
    left: 50%;
    top: 56px;
    transform: translateX(8%) rotate(5deg);
    opacity: 0.85;
  }

  .hero-phones .phone-front {
    transform: translateX(-26%) rotate(-3deg);
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 64px 0 96px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
  }

  .hero-phones {
    min-height: 640px;
  }
}

/* Phone mockup: the Pixel 9 device art from Android Studio (frame, screen, then the mask
   with the camera hole on top). Screen rect from its layout: 1080 x 2424 at (55, 58) in 1198 x 2531. */
.phone {
  position: relative;
  width: min(290px, 74vw);
  aspect-ratio: 1198 / 2531;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 60px rgba(84, 195, 232, 0.16));
}

.phone .frame,
.phone .screen,
.phone .mask {
  position: absolute;
  display: block;
}

.phone .frame {
  inset: 0;
  width: 100%;
  height: 100%;
}

.phone .screen,
.phone .mask {
  left: 4.591%;
  top: 2.292%;
  width: 90.150%;
  height: 95.772%;
}

.phone .screen {
  object-fit: cover;
  border-radius: 8.06% / 3.59%;
  background: var(--bg);
}

.phone .mask {
  pointer-events: none;
}

/* Sections */
.section {
  padding: 72px 0;
}

@media (min-width: 960px) {
  .section {
    padding: 112px 0;
  }
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.card p {
  color: var(--muted);
  margin-top: 10px;
}

.grid-3 {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.icon-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 3px solid currentColor;
}

.icon-dot svg {
  width: 22px;
  height: 22px;
}

.c-calories { color: var(--calories); }
.c-carbs { color: var(--carbs); }
.c-protein { color: var(--protein); }
.c-fat { color: var(--fat); }
.c-water { color: var(--water); }
.c-primary { color: var(--primary); }

/* Feature switcher */
.features {
  display: grid;
  gap: 40px;
  align-items: center;
}

.features .phone-wrap {
  display: flex;
  justify-content: center;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-tab {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  transition: background 0.2s, border-color 0.2s;
}

.feature-tab:hover {
  background: rgba(26, 31, 56, 0.4);
}

.feature-tab[aria-selected="true"] {
  background: var(--surface-soft);
  border-color: var(--line-strong);
}

.feature-tab .num {
  grid-row: span 2;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--faint);
  padding-top: 3px;
}

.feature-tab[aria-selected="true"] .num {
  color: var(--primary);
}

.feature-tab h3 {
  font-size: 1.25rem;
}

.feature-tab p {
  color: var(--muted);
  font-size: 15px;
}

.phone-swap .screen {
  transition: opacity 0.25s;
}

/* 7 days / 3 months switch under the phone, shown with the trends feature */
.phone-wrap {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.span-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(26, 31, 56, 0.6);
}

.span-switch[hidden] {
  display: none;
}

.span-switch button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  min-height: 36px;
  cursor: pointer;
}

.span-switch button[aria-pressed="true"] {
  background: var(--primary);
  color: var(--on-primary);
}

@media (min-width: 900px) {
  .features {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .features .phone-wrap {
    order: 2;
  }

  .phone-swap {
    width: 310px;
  }
}

/* "And also" grid */
.also {
  display: grid;
  gap: 12px;
  margin-top: 56px;
}

@media (min-width: 560px) {
  .also {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .also {
    grid-template-columns: repeat(3, 1fr);
  }
}

.also .card {
  padding: 22px;
  border-radius: var(--radius-md);
}

.also h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.also h3 svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.also p {
  font-size: 15px;
  margin-top: 6px;
}

/* The widgets card spans the grid, with the Today widget beside its text */
.also .card.wide {
  grid-column: 1 / -1;
  display: grid;
  gap: 22px;
  align-items: center;
}

.widget-shot {
  width: 100%;
  max-width: 476px;
  height: auto;
  justify-self: center;
  border-radius: 6.7% / 11.3%;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(225, 225, 228, 0.06);
}

@media (min-width: 760px) {
  .also .card.wide {
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    padding: 32px;
  }

  .widget-shot {
    justify-self: end;
  }
}

/* Private by design */
.promises {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .promises {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .promises {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sends {
  margin-top: 16px;
  display: grid;
  gap: 20px;
  border-color: rgba(143, 120, 255, 0.28);
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(143, 120, 255, 0.12), transparent 70%),
    var(--surface-soft);
}

.sends h3 {
  font-size: 1.5rem;
}

.sends-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  text-decoration: none;
}

.sends-link::after {
  content: " →";
}

.sends ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.sends li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
}

.sends li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fat);
}

.sends li strong {
  color: var(--text);
  font-weight: 600;
}

@media (min-width: 900px) {
  .sends {
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    padding: 36px;
  }
}

/* Food sources */
.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sources li {
  border: 1px solid var(--line-strong);
  background: rgba(26, 31, 56, 0.45);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text);
}

.sources li span {
  color: var(--faint);
}

.foods-panel {
  display: grid;
  gap: 32px;
  padding: 32px 26px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(242, 173, 36, 0.1), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(244, 118, 33, 0.08), transparent 60%),
    var(--surface-soft);
}

@media (min-width: 900px) {
  .foods-panel {
    grid-template-columns: 1.25fr 1fr;
    align-items: start;
    padding: 56px;
    gap: 56px;
  }
}

.curation {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.curation li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  color: var(--muted);
  font-size: 15px;
}

.curation li svg {
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.curation strong {
  color: var(--text);
  font-weight: 600;
}

.foods-side h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.foods-side p {
  margin-top: 18px;
  font-size: 14px;
  color: var(--faint);
}

/* Statement */
.statement {
  text-align: center;
}

.statement blockquote {
  margin: 0 auto;
  max-width: 860px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.statement blockquote span {
  color: var(--faint);
}

.statement p {
  margin-top: 22px;
  color: var(--muted);
}

/* Plans */
.plans {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 760px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

.plan {
  padding: 30px 26px;
}

.plan.premium {
  border-color: rgba(242, 173, 36, 0.38);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(242, 173, 36, 0.12), transparent 70%),
    var(--surface-soft);
}

.plan .tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan.premium .tag {
  color: var(--carbs);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.diamond {
  width: 20px;
  height: 20px;
  flex: none;
}

.plan .diamond-big {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 44px;
  height: 44px;
  opacity: 0.95;
}

.plan {
  position: relative;
}

.plan h3 {
  font-size: 1.9rem;
  margin: 8px 0 6px;
}

.plan ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.plan li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  color: var(--text);
  font-size: 15px;
}

.plan li svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--calories);
}

.plan.premium li svg {
  color: var(--carbs);
}

.plan li small {
  color: var(--faint);
  font-size: 13px;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

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

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

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}

.faq .answer {
  padding: 0 4px 24px;
  color: var(--muted);
  max-width: 44em;
}

.faq .answer p + p {
  margin-top: 10px;
}

/* Closing call to action */
.cta {
  text-align: center;
  padding: 56px 24px;
  border-radius: 36px;
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(84, 195, 232, 0.2), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(143, 120, 255, 0.14), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(56, 191, 186, 0.14), transparent 70%),
    var(--surface-soft);
}

.cta .mark {
  width: 76px;
  height: auto;
  margin: 0 auto 26px;
}

.cta p {
  margin: 16px auto 0;
  color: var(--muted);
  max-width: 32em;
}

.cta .hero-actions {
  justify-content: center;
}

.cta .note {
  font-size: 14px;
  color: var(--faint);
  margin-top: 18px;
}

@media (min-width: 760px) {
  .cta {
    padding: 88px 48px;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-grid .brand svg {
  height: 38px;
}

.footer-grid p {
  margin-top: 12px;
  max-width: 24em;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer-cols h2 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-cols a {
  color: var(--muted);
  text-decoration: none;
}

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

.legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

/* Long-form pages (privacy policy) */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 0 24px;
}

.doc h1 {
  font-size: clamp(2.3rem, 8vw, 3.4rem);
  margin: 12px 0 14px;
}

.doc .updated {
  color: var(--faint);
  font-size: 14px;
}

.doc .summary {
  margin: 32px 0 8px;
}

.doc h2 {
  font-size: clamp(1.5rem, 5vw, 1.9rem);
  margin: 48px 0 14px;
}

.doc h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 28px 0 8px;
}

.doc p,
.doc li {
  color: #cfd0d6;
}

.doc p + p {
  margin-top: 12px;
}

.doc ul {
  padding-left: 20px;
  margin: 12px 0;
}

.doc li + li {
  margin-top: 8px;
}

.doc strong {
  color: var(--text);
}

.doc .table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: #cfd0d6;
}

.doc th {
  color: var(--text);
  font-weight: 600;
  background: rgba(26, 31, 56, 0.6);
}

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

/* 404 */
.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}

.not-found p {
  color: var(--muted);
  margin: 16px 0 28px;
}

/* Reveal on scroll (only when JS runs) */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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