/* Checklist marketing site. One stylesheet for every page; no build step. */

:root {
  --brand: #1e90ff;
  --brand-dark: #1873cc;
  --brand-light: #4da6ff;
  --brand-soft: #e8f3ff;
  --success: #198754;
  --teal: #0dcaf0;
  --amber: #f59f00;

  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #f0f4f9;
  --border: #e1e7ef;
  --text: #0f1b2d;
  --text-muted: #51607a;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.06), 0 8px 24px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 27, 45, 0.18);

  --radius: 14px;
  --radius-lg: 24px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4da6ff;
    --brand-dark: #1e90ff;
    --brand-soft: #13263d;
    --success: #5cc98a;

    --bg: #0b1320;
    --bg-alt: #0f1a2b;
    --surface: #132136;
    --surface-2: #182a43;
    --border: #22344f;
    --text: #e8eef7;
    --text-muted: #9fb0c8;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);

    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

a {
  color: var(--brand-dark);
  text-underline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
  a {
    color: var(--brand);
  }
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--brand-dark);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 20px;
    box-shadow: var(--shadow);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li a {
    display: block;
    padding: 12px 0;
    font-size: 1.05rem;
  }
  .nav-links .btn {
    margin-top: 8px;
    text-align: center;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

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

.btn-primary {
  background: #1873cc;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(30, 144, 255, 0.35);
}

.btn-primary:hover {
  background: #1565b4;
}

.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border-color: var(--border);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.92rem;
}

.btn[aria-disabled="true"] {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  background: #0f1b2d;
  color: #fff !important;
  text-decoration: none;
  border: 1px solid #2a3a52;
  line-height: 1.15;
}

.store-badge small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.8;
  letter-spacing: 0.02em;
}

.store-badge strong {
  font-size: 1.12rem;
}

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

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle at center, rgba(30, 144, 255, 0.22), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

@media (prefers-color-scheme: dark) {
  .eyebrow {
    color: var(--brand);
  }
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--brand-dark), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 34em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 18px;
  align-items: center;
}

.hero-note {
  font-size: 0.92rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero {
    padding: 40px 0 64px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ---------- Phone mock ---------- */

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

.phone {
  width: 300px;
  max-width: 100%;
  border-radius: 40px;
  padding: 12px;
  background: #0f1b2d;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  background: #f5f8fc;
  color: #0f1b2d;
  min-height: 540px;
}

.app-bar {
  background: #1e90ff;
  color: #fff;
  padding: 18px 18px 16px;
}

.app-bar .status {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  opacity: 0.9;
  margin-bottom: 14px;
}

.app-bar h4 {
  margin: 0;
  font-size: 1.1rem;
}

.app-bar .meta {
  font-size: 0.75rem;
  opacity: 0.9;
}

.progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  margin-top: 10px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: #fff;
  border-radius: inherit;
}

.items {
  list-style: none;
  margin: 0;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.86rem;
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.06);
}

.item .box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #b7c3d4;
  flex: none;
  display: grid;
  place-items: center;
}

.item.done .box {
  background: #198754;
  border-color: #198754;
}

.item.done .box::after {
  content: "";
  width: 9px;
  height: 5px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px, -1px);
}

.item.done .name {
  text-decoration: line-through;
  color: #8a97ab;
}

.item .name {
  flex: 1;
}

.item .price {
  font-weight: 700;
  font-size: 0.8rem;
  color: #198754;
}

.item .who {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  color: #fff;
}

.chip-row {
  display: flex;
  gap: 6px;
  padding: 0 12px 4px;
  flex-wrap: wrap;
}

.chip {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f3ff;
  color: #1873cc;
}

.chip.teal {
  background: #dff8fd;
  color: #087990;
}

.floating-card {
  position: absolute;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 12px 14px;
  font-size: 0.85rem;
  display: flex;
  gap: 10px;
  align-items: center;
  animation: float 6s ease-in-out infinite;
}

.floating-card .icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}

.floating-card strong {
  display: block;
  font-size: 0.88rem;
}

.floating-card span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.fc-1 {
  top: 230px;
  left: -24px;
}

.fc-2 {
  bottom: 70px;
  right: -14px;
  animation-delay: -3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 520px) {
  .fc-1 {
    left: 0;
    top: 200px;
  }
  .fc-2 {
    right: 0;
  }
  .floating-card {
    font-size: 0.78rem;
    padding: 10px 12px;
  }
}

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

section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 10px;
}

@media (prefers-color-scheme: dark) {
  .kicker {
    color: var(--brand);
  }
}

@media (max-width: 700px) {
  section {
    padding: 64px 0;
  }
}

/* Trust strip */

.trust {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 36px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust svg {
  color: var(--success);
  width: 18px;
  height: 18px;
}

/* Feature grid */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

.card p {
  color: var(--text-muted);
  margin: 0;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.bg-blue {
  background: linear-gradient(135deg, #4da6ff, #1873cc);
}
.bg-green {
  background: linear-gradient(135deg, #3cc27a, #146c43);
}
.bg-teal {
  background: linear-gradient(135deg, #3fd9f5, #0a8aa6);
}
.bg-amber {
  background: linear-gradient(135deg, #ffc046, #d9480f);
}
.bg-violet {
  background: linear-gradient(135deg, #9b8cff, #5b3cc4);
}
.bg-pink {
  background: linear-gradient(135deg, #ff8fb1, #c2255c);
}

@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Split / spotlight rows */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split + .split {
  margin-top: 96px;
}

.split.reverse > :first-child {
  order: 2;
}

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

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 7px;
  background: var(--success)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 15px no-repeat;
}

.checks strong {
  display: block;
}

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

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 14px;
}

.panel-title small {
  color: var(--text-muted);
  font-weight: 600;
}

.receipt-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}

.receipt-row:last-of-type {
  border-bottom: 0;
}

.receipt-row .m {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  padding-top: 12px;
  border-top: 2px solid var(--border);
  margin-top: 6px;
}

.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 15%, transparent);
  color: var(--success);
}

.pill.blue {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

@media (prefers-color-scheme: dark) {
  .pill.blue {
    color: var(--brand);
  }
}

.store-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-2);
}

.store-row + .store-row {
  margin-top: 10px;
}

.store-row .rank {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  flex: none;
}

.store-row .info {
  flex: 1;
}

.store-row .info small {
  display: block;
  color: var(--text-muted);
}

.store-row .amt {
  font-weight: 800;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  font-size: 0.82rem;
}

.calendar .dow {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.72rem;
  padding-bottom: 4px;
}

.calendar .d {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
}

.calendar .d.on {
  background: var(--brand-dark);
  color: #fff;
  font-weight: 700;
}

.calendar .d.today {
  outline: 2px solid var(--brand);
}

.member-stack {
  display: flex;
  margin: 14px 0;
}

.member-stack span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  margin-left: -10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  font-size: 0.85rem;
}

.member-stack span:first-child {
  margin-left: 0;
}

.activity {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
}

.activity li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
}

.activity time {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .split.reverse > :first-child {
    order: 0;
  }
  .split + .split {
    margin-top: 72px;
  }
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 64px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 28px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(24px);
}

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

/* Platforms */

.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.platform {
  text-align: center;
}

.platform .feature-icon {
  margin: 0 auto 18px;
}

.platform .btn,
.platform .store-badge {
  margin-top: 18px;
}

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

/* Privacy highlight */

.privacy-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.privacy-band .card {
  padding: 22px;
}

.privacy-band h3 {
  font-size: 1.05rem;
}

@media (max-width: 960px) {
  .privacy-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .privacy-band {
    grid-template-columns: 1fr;
  }
}

/* FAQ */

.faq {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 22px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--brand-dark);
  transition: transform 0.2s;
}

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

.faq details p {
  color: var(--text-muted);
  padding-bottom: 8px;
}

/* CTA */

.cta {
  background: linear-gradient(135deg, #1873cc 0%, #1e90ff 55%, #0dcaf0 130%);
  color: #fff;
  border-radius: 32px;
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  max-width: 36em;
  margin: 0 auto 28px;
}

.cta .btn-light {
  background: #fff;
  color: #1873cc !important;
}

.cta .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff !important;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 560px) {
  .cta {
    padding: 48px 22px;
    border-radius: 24px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h4 {
  color: var(--text);
  font-size: 0.95rem;
  margin: 0 0 12px;
}

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

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

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

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Legal / document pages ---------- */

.doc-hero {
  padding: 56px 0 24px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.doc-hero p {
  color: var(--text-muted);
  margin: 0;
}

.doc {
  padding-top: 48px;
  padding-bottom: 88px;
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 92px;
  font-size: 0.92rem;
}

.toc h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.toc ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

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

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

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.2em;
  padding-top: 0.2em;
  scroll-margin-top: 90px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.6em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.6em;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

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

.prose th {
  background: var(--surface-2);
  font-weight: 700;
}

.callout {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 1.2em 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.steps-list {
  counter-reset: s;
  list-style: none;
  padding: 0 !important;
}

.steps-list > li {
  counter-increment: s;
  position: relative;
  padding-left: 48px;
  margin-bottom: 18px;
}

.steps-list > li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand-dark);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0 8px;
}

@media (max-width: 860px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .toc {
    position: static;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* 404 */

.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}

.notfound .big {
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(90deg, var(--brand-dark), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Reveal on scroll (enhancement only; content is visible without JS) */

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

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