/* Tripami website — tokens follow DESIGN.md §4. Web-only adjustments are marked. */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --navy: #062b63;
  --sunset: #ff6b3d;
  --bg: #f8f6f1;
  --surface: #ffffff;
  --blue: #1687f8;
  --aqua: #20c7cf;
  --ink: #0c2446;
  /* Web adjustment: DESIGN.md textSecondary #6B7890 is 4.1:1 on the background; #56637A is 5.6:1. */
  --ink-muted: #56637a;
  --border: #e4e9ef;
  --tint-sunset: #fff0e9;
  --tint-neutral: #eef1f5;
  --on-navy: #ffffff;
  --on-navy-muted: #c7d3e6;
  --sunset-ink: #a53a14;
  --confirmed: #d8f5f6;
  --confirmed-ink: #0b6b70;
  --tentative: #fff4d6;
  --tentative-ink: #8a5a00;
  --traveler-1: #1687f8;
  --traveler-2: #14c8b6;
  --traveler-3: #ff6b3d;
  --traveler-4: #e0518f;

  --radius-pill: 999px;
  --radius-input: 14px;
  --radius-small: 18px;
  --radius-card: 22px;
  --radius-hero: 26px;
  --shadow-card: 0 1px 0 rgba(6, 43, 99, 0.05), 0 8px 22px rgba(6, 43, 99, 0.06);
  --shadow-hero: 0 14px 34px rgba(6, 43, 99, 0.22);

  --font-display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --container: 1120px;
  --section-space: clamp(72px, 9vw, 120px);
  --header-height: 68px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

img {
  height: auto;
}

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

a:hover {
  text-decoration-thickness: 2.5px;
}

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

.on-navy :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--on-navy);
}

::selection {
  background: var(--confirmed);
  color: var(--ink);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: inherit;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 1.55rem + 4.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 1.45rem + 2.3vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--on-navy);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

.section {
  padding-block: var(--section-space);
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.on-navy .kicker {
  color: var(--aqua);
}

.lead {
  font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-muted);
}

.muted {
  color: var(--ink-muted);
}

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

.on-navy .lead,
.on-navy .muted {
  color: var(--on-navy-muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 100ms ease;
}

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

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

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

.btn-primary:hover {
  background: #0a3a80;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: #c9d2de;
}

.btn-light {
  background: var(--surface);
  color: var(--navy);
}

.btn-light:hover {
  background: #eef3fb;
}

.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
}

.brand img {
  width: auto;
  height: 28px;
}

.site-nav {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.site-nav a:hover {
  background: var(--tint-neutral);
}

.site-nav a[aria-current="page"] {
  background: var(--tint-neutral);
}

@media (min-width: 900px) {
  .site-nav {
    display: block;
  }

  .brand img {
    height: 32px;
  }
}

/* Animated braid background (assets/js/braid-background.js). Fixed behind the page,
   below all content, and never interactive itself. */

.braid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.braid-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.braid-bg.is-static {
  transition: opacity 150ms linear;
}

.braid-bg.is-hidden {
  opacity: 0;
}

@media print {
  .braid-bg {
    display: none;
  }
}

/* Hero */

.hero {
  padding-block: clamp(32px, 6vw, 88px) var(--section-space);
}

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

.hero-copy {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.hero-copy .lead {
  max-width: 34ch;
}

/* A 22px radius reads as a pill on one line and stays tidy if narrow screens wrap it. */
.status-pill {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
  padding: 8px 16px 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
}

/* On narrow phones the text breaks after "to the" on purpose. A forced break lets the
   pill shrink to its longest line instead of stretching to the full width. */
.status-pill .narrow-break {
  display: none;
}

@media (max-width: 439px) {
  .status-pill .narrow-break {
    display: inline;
  }
}

.live-dot {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 5.5px;
  border-radius: 50%;
  background: var(--aqua);
}

@media (prefers-reduced-motion: no-preference) {
  .live-dot::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--aqua);
    opacity: 0;
    animation: pulse 2.2s ease-out infinite;
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.fine-print {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 300px);
  margin: 0 auto;
}

@media (min-width: 960px) {
  .hero .container {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
  }

  .hero-visual {
    width: 320px;
  }
}

/* Phone mockup */

.phone {
  position: relative;
  padding: 9px;
  border-radius: 46px;
  background: #0b1730;
  box-shadow: var(--shadow-hero);
}

.phone img {
  width: 100%;
  border-radius: 37px;
  background: var(--tint-neutral);
}

.phone-sm {
  max-width: 270px;
  margin-inline: auto;
}

/* Floating chips around the hero phone, styled like app components. */

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow-hero);
  font-size: 0.875rem;
  line-height: 1.3;
  white-space: nowrap;
}

.float-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.float-chip span {
  color: var(--ink-muted);
}

/* Small offsets keep the chips inside the 20px page gutter on phones. */
.chip-leave {
  top: 38%;
  left: -14px;
}

.chip-rejoin {
  bottom: 12%;
  right: -14px;
  background: var(--tint-sunset);
}

.chip-rejoin span {
  color: var(--sunset-ink);
}

.chip-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--confirmed);
  color: var(--confirmed-ink);
}

.chip-icon svg {
  width: 18px;
  height: 18px;
}

.stack {
  display: flex;
  flex: none;
}

/* Avatar ring = traveler color, outer gap = background color (DESIGN.md §4 Avatars). */
.stack img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ring, var(--traveler-1));
  outline: 2px solid var(--tint-sunset);
}

.stack img + img {
  margin-left: -8px;
}

@media (min-width: 960px) {
  .chip-leave {
    left: -120px;
  }

  .chip-rejoin {
    right: -96px;
  }
}

/* Questions strip */

.questions {
  padding-block: 0 var(--section-space);
}

.question-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.question-list li {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
}

.questions .answer {
  max-width: 560px;
  margin: 28px auto 0;
  text-align: center;
}

/* Split and rejoin band */

.split-band .container {
  display: grid;
  gap: 48px;
  align-items: center;
}

.split-copy {
  display: grid;
  gap: 20px;
}

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

.check-list li {
  position: relative;
  padding-left: 34px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062B63' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-hero);
  background: #0a2350;
  isolation: isolate;
}

.stage > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 43, 99, 0.35) 0%, rgba(6, 43, 99, 0.62) 50%, rgba(6, 43, 99, 0.92) 100%);
}

.stage-label {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(6, 43, 99, 0.82);
  color: var(--on-navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
}

.stage-label {
  z-index: 2;
}

.stage-clock {
  font-variant-numeric: tabular-nums;
}

/* 3D day scene (assets/js/split-scene.js). The SVG braid stays for screen readers
   and as the fallback; it's only hidden visually once the scene is running. */

.stage.has-scene .braid {
  opacity: 0;
}

.scene-canvas,
.scene-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene-overlay {
  z-index: 1;
  pointer-events: none;
}

.scene-chip {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.2em 0.75em;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: calc(13px * var(--scene-scale, 1));
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  will-change: transform;
  transition: background-color 200ms ease, color 200ms ease;
}

.scene-chip.is-active {
  background: var(--navy);
  color: var(--on-navy);
  box-shadow: 0 0 0 2px var(--surface);
}

.scene-pill {
  padding: 0.65em 1.1em;
  font-size: calc(16px * var(--scene-scale, 1));
  transition: background-color 300ms ease;
}

/* Everyone has arrived: the plan turns into the meetup (navy on sunset is 4.8:1). */
.scene-pill.is-arrived {
  background: var(--sunset);
}

.braid {
  position: absolute;
  inset: 6% 4% 4%;
  width: 92%;
  height: 90%;
}

.braid text {
  font-family: var(--font-display);
  font-weight: 600;
}

.braid .lane,
.braid .casing {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.braid .casing {
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 11;
}

.braid .lane {
  stroke-width: 6;
}

@media (prefers-reduced-motion: no-preference) {
  .js .braid .lane,
  .js .braid .casing {
    transition: stroke-dashoffset 700ms var(--ease-out);
  }

  .js .braid .node,
  .js .braid .pill {
    transition: opacity 350ms ease 450ms, transform 450ms var(--ease-out) 450ms;
  }

  .js .braid:not(.is-visible) .lane,
  .js .braid:not(.is-visible) .casing {
    stroke-dashoffset: 1;
  }

  .js .braid:not(.is-visible) .node,
  .js .braid:not(.is-visible) .pill {
    opacity: 0;
    transform: translateY(6px);
  }

  .js .braid .lane-2,
  .js .braid .casing-2 {
    transition-delay: 60ms;
  }

  .js .braid .lane-3,
  .js .braid .casing-3 {
    transition-delay: 120ms;
  }

  .js .braid .lane-4,
  .js .braid .casing-4 {
    transition-delay: 180ms;
  }
}

@media (min-width: 960px) {
  .split-band .container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
  }
}

/* How it works */

.steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  counter-increment: step;
}

.step-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--on-navy);
  font-family: var(--font-display);
  font-weight: 600;
}

.step p {
  color: var(--ink-muted);
}

/* Pinned to the card bottom so the three phones line up whatever the text length. */
.step-shot {
  margin-top: auto;
  padding-top: 8px;
  height: 308px;
  overflow: hidden;
}

.step-shot .phone {
  width: 250px;
  margin-inline: auto;
  border-radius: 40px 40px 0 0;
  padding-bottom: 0;
  box-shadow: 0 10px 30px rgba(6, 43, 99, 0.16);
}

.step-shot .phone img {
  border-radius: 31px 31px 0 0;
}

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

/* Feature rows */

.features {
  display: grid;
  gap: clamp(72px, 9vw, 120px);
}

.feature {
  display: grid;
  gap: 40px;
  align-items: center;
}

.feature-copy {
  display: grid;
  gap: 16px;
  max-width: 520px;
}

.feature-copy h3 {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.feature-copy p {
  color: var(--ink-muted);
  font-size: 1.125rem;
}

.feature-media {
  display: grid;
  place-items: center;
  padding: 40px 20px;
  border-radius: var(--radius-hero);
  background: var(--tint-neutral);
}

.feature-media.tint-sunset {
  background: var(--tint-sunset);
}

.feature-media.tint-aqua {
  background: var(--confirmed);
}

.feature-media.tint-navy {
  background: var(--navy);
}

.feature-media .phone {
  width: min(100%, 280px);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.badge {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-suggested {
  background: var(--tint-neutral);
  color: #3b4a68;
}

.badge-tentative {
  background: var(--tentative);
  color: var(--tentative-ink);
}

.badge-confirmed {
  background: var(--confirmed);
  color: var(--confirmed-ink);
}

.badge-changed {
  background: #ffe1d4;
  color: var(--sunset-ink);
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
  }

  .feature:nth-child(even) .feature-media {
    order: -1;
  }
}

/* Trust grid */

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

.trust-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.trust-card p {
  color: var(--ink-muted);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: var(--tint-neutral);
  color: var(--navy);
}

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

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

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

/* FAQ */

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

.faq-list details {
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 16px 64px 16px 24px;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius-small);
}

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

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 24px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tint-neutral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062B63' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 200ms ease;
}

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

.faq-answer {
  padding: 0 24px 22px;
  color: var(--ink-muted);
}

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

/* Final call to action */

.cta-band .container {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}

.cta-band img.cta-logo {
  width: 180px;
  height: auto;
  margin-bottom: 8px;
}

.cta-band .lead {
  max-width: 36ch;
}

/* Footer */

.site-footer {
  padding-block: 64px 40px;
  background: #041f49;
  color: var(--on-navy-muted);
  font-size: 0.9375rem;
}

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

.footer-brand {
  display: grid;
  gap: 14px;
  max-width: 300px;
}

.footer-brand img {
  width: 132px;
  height: auto;
}

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

.footer-cols h2 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-navy);
}

.footer-cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--on-navy-muted);
  text-decoration: none;
}

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

.footer-bottom {
  display: grid;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(199, 211, 230, 0.2);
  font-size: 0.8125rem;
}

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

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

/* Document pages: legal, support and account deletion */

.page-hero {
  padding-block: clamp(40px, 6vw, 80px) 32px;
}

.page-hero .container {
  display: grid;
  gap: 16px;
}

.page-hero .lead {
  max-width: 60ch;
}

.meta-line {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.draft-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 760px;
  margin-top: 8px;
  padding: 14px 18px;
  border-radius: var(--radius-small);
  background: var(--tentative);
  color: var(--tentative-ink);
  font-size: 0.9375rem;
}

.draft-note strong {
  white-space: nowrap;
}

.doc-layout {
  display: grid;
  gap: 40px;
  padding-bottom: var(--section-space);
}

.toc {
  align-self: start;
}

.toc h2 {
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 0;
  color: var(--ink);
  font-size: 0.9375rem;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.doc {
  max-width: 720px;
}

.doc > section + section {
  margin-top: 48px;
}

.doc h2 {
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  line-height: 1.2;
}

.doc h3 {
  margin: 28px 0 10px;
  font-size: 1.1875rem;
}

.doc p,
.doc ul,
.doc ol {
  margin: 0 0 16px;
}

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

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

.doc .summary {
  padding: 24px 26px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.doc .summary h2 {
  font-size: 1.375rem;
}

.doc .summary ul {
  margin-bottom: 0;
}

.placeholder {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--tentative);
  color: var(--tentative-ink);
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.card {
  padding: 26px 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.card-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 48px;
}

.card h2,
.card h3 {
  margin-bottom: 10px;
}

.card h2 {
  font-size: 1.5rem;
  line-height: 1.2;
}

.card ol {
  margin: 0;
  padding-left: 1.3em;
}

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

.faq-list.align-start {
  margin-inline: 0;
}

.security-block {
  margin-top: clamp(56px, 7vw, 88px);
  padding-bottom: var(--section-space);
}

.delete-details {
  padding-bottom: var(--section-space);
}

.card p + p,
.card p + .btn-row,
.card ol + p {
  margin-top: 12px;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .doc-layout {
    grid-template-columns: 240px minmax(0, 720px);
    gap: 72px;
  }

  .toc {
    position: sticky;
    top: calc(var(--header-height) + 24px);
  }
}

/* Not found */

.not-found {
  display: grid;
  gap: 20px;
  justify-items: center;
  padding-block: clamp(80px, 14vw, 160px);
  text-align: center;
}

/* Increase Contrast swaps soft shadows and tints for solid borders (DESIGN.md §8). */

@media (prefers-contrast: more) {
  .step,
  .trust-card,
  .card,
  .faq-list details,
  .doc .summary,
  .float-chip {
    border: 1.5px solid var(--ink);
    box-shadow: none;
  }

  .question-list li,
  .status-pill,
  .btn-secondary {
    border-color: var(--ink);
  }
}

/* Reveal on scroll. Content stays visible without JavaScript. */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 350ms ease, transform 350ms var(--ease-out);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 0;
    transition: opacity 150ms ease;
  }

  .js .reveal.is-visible {
    opacity: 1;
  }
}
