/*
  Unhook website — shared styles.

  Mirrors the app's design system (Tokens.swift, LiquidGlass.swift,
  UHFunIcon.swift): the same sky gradient and blurred blobs behind
  everything, frosted white cards, brand-blue pill buttons, and coloured
  icon discs whose hue carries meaning — money gold, cravings coral,
  breathing teal, health green, people rose, reflection violet, the rest
  blue. Light only, like the app.
*/

:root {
  color-scheme: light;

  /* Sky */
  --sky-top: #C8DFF5;
  --sky-mid: #DEEDF8;
  --sky-bottom: #EDF5FB;

  /* Brand */
  --brand: #2E6DCB;
  --brand-dark: #1A4EA1;
  --brand-medium: #5090C8;
  --brand-subtle: #E8F2FB;
  --brand-border: #C8DCF0;
  --brand-text: #4C8CE0;

  /* Text */
  --text: #0A2540;
  --text-secondary: #4A6A8A;
  --text-muted: #7A9AB8;

  /* Status */
  --success: #1A7A40;
  --success-bg: #E8F8EE;
  --warning: #E05A2B;
  --warning-bg: #FEF0E8;
  --danger: #DC2626;
  --danger-bg: #FDECEA;

  /* Spacing (Spacing.*) */
  --xs: 4px;
  --sm: 8px;
  --md: 12px;
  --lg: 16px;
  --xl: 20px;
  --xxl: 24px;
  --xxxl: 32px;
  --xxxxl: 48px;

  /* Radius (Radius.*) */
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-xxl: 24px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --page: 1040px;
  --doc: 760px;
}

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

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--sky-bottom);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* The backdrop: UnhookBackground's gradient and four soft blobs. Fixed, so
   the sky stays still while the content scrolls over it — like the app,
   where only the cards move. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(80, 144, 200, 0.34) 0, rgba(80, 144, 200, 0) 34vmax),
    radial-gradient(circle at 92% 42%, rgba(46, 109, 203, 0.16) 0, rgba(46, 109, 203, 0) 32vmax),
    radial-gradient(circle at 6% 78%, rgba(232, 242, 251, 0.9) 0, rgba(232, 242, 251, 0) 34vmax),
    radial-gradient(circle at 88% 104%, rgba(80, 144, 200, 0.22) 0, rgba(80, 144, 200, 0) 34vmax),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-bottom) 100%);
}

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

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

:focus-visible {
  outline: 3px solid rgba(46, 109, 203, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: var(--lg);
  top: -60px;
  z-index: 20;
  background: var(--brand);
  color: #fff;
  padding: var(--sm) var(--lg);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--md); color: #fff; }

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

[hidden] { display: none !important; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: var(--md) var(--lg);
  padding-top: max(var(--md), env(safe-area-inset-top));
}

.site-header .bar {
  max-width: var(--page);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lg);
  padding: var(--sm) var(--sm) var(--sm) var(--md);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 5px 18px rgba(26, 78, 161, 0.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--brand);
  text-decoration: none;
}
.brand:hover { color: var(--brand); }
.brand img { width: 30px; height: 30px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
}
.site-nav a:hover { color: var(--brand); background: rgba(232, 242, 251, 0.9); }
.site-nav a[aria-current="page"] {
  color: #fff;
  background: var(--brand);
}

@media (max-width: 520px) {
  .brand span { display: none; }
  .site-nav a { padding: 8px 11px; font-size: 14px; }
}

/* ------------------------------------------------------------------ Layout */

main { flex: 1; }

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--lg);
}

.doc {
  max-width: var(--doc);
  margin: 0 auto;
  padding: 0 var(--lg);
}

.section { padding: var(--xxxxl) 0 0; }

/* ------------------------------------------------------------------- Type */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--brand-text);
  margin: 0 0 var(--sm);
}

h1, h2, h3 { margin: 0; color: var(--text); }

.display {
  font-size: clamp(44px, 9vw, 64px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.02;
  color: var(--brand);
}

.title1 {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.15;
}

.title2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.headline { font-size: 17px; font-weight: 600; line-height: 1.3; }

.lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: var(--md) 0 0;
}

.muted { color: var(--text-muted); }
.secondary { color: var(--text-secondary); }
.small { font-size: 13px; line-height: 1.5; }

.accent { color: var(--brand); }

/* ------------------------------------------------------------------- Cards */

/* lightGlassCard: frosted white, hairline white rim, soft blue shadow. */
.card {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-xl);
  box-shadow: 0 5px 18px rgba(26, 78, 161, 0.07);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  padding: var(--xxl);
}

/* subtleCard: quieter, no shadow — for asides inside a page. */
.card.subtle {
  background: rgba(255, 255, 255, 0.4);
  box-shadow: none;
  border-radius: var(--r-lg);
  padding: var(--lg) var(--xl);
}

/* darkHeroCard: the brand gradient with a light rim. */
.card.hero {
  color: #fff;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 30px rgba(26, 78, 161, 0.3);
}
.card.hero h2,
.card.hero h3 { color: #fff; }
.card.hero p { color: rgba(255, 255, 255, 0.82); }

.card + .card { margin-top: var(--lg); }

.card p { margin: 0; }
.card p + p { margin-top: var(--md); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sm);
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 8px 20px rgba(46, 109, 203, 0.25);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { color: #fff; background: var(--brand-dark); }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; }

.btn.ghost {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
  border: 1px solid var(--brand-border);
}
.btn.ghost:hover { color: var(--brand-dark); background: rgba(255, 255, 255, 0.8); }

.btn.block { width: 100%; }

.btn .glyph { width: 18px; height: 18px; }

/* "Coming soon" pill in place of a store badge until the listing is live. */
.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px 0 8px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(10, 37, 64, 0.22);
}
.store-pill .icon { --size: 36px; }
.store-pill strong { display: block; font-size: 15px; line-height: 1.15; }
.store-pill small { display: block; font-size: 12px; opacity: 0.72; line-height: 1.2; }

/* ------------------------------------------------------------- Icon discs */

/* UHFunIcon: a glyph on a disc. `.icon` is the solid, glossy style that
   leads a card; `.icon.soft` is the pale wash for rows and lists. */
.icon {
  --size: 48px;
  --g1: #6DB0F7;
  --g2: #2E6DCB;
  --wash: #E3F0FD;
  position: relative;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 calc(var(--size) * 0.1) calc(var(--size) * 0.3) color-mix(in srgb, var(--g2) 34%, transparent);
}
/* Gloss across the upper half. */
.icon::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}
.icon .glyph {
  position: relative;
  width: calc(var(--size) * 0.46);
  height: calc(var(--size) * 0.46);
}

.icon.soft {
  color: var(--g2);
  background: var(--wash);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: none;
}
.icon.soft::before { display: none; }

.icon.sm { --size: 36px; }
.icon.lg { --size: 64px; }
.icon.xl { --size: 84px; }

.tone-sky    { --g1: #6DB0F7; --g2: #2E6DCB; --wash: #E3F0FD; }
.tone-leaf   { --g1: #5FD59B; --g2: #1C9A5E; --wash: #E2F7EC; }
.tone-sun    { --g1: #FFD166; --g2: #F29D0B; --wash: #FFF3D6; }
.tone-coral  { --g1: #FFA585; --g2: #E8603C; --wash: #FFE9E0; }
.tone-violet { --g1: #A99BF7; --g2: #6B5BD2; --wash: #ECE9FD; }
.tone-teal   { --g1: #5FD8CE; --g2: #0E96A0; --wash: #DDF6F4; }
.tone-rose   { --g1: #FF9DBA; --g2: #DE5683; --wash: #FFE6EE; }

.glyph {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.glyph .fill { fill: currentColor; stroke: none; }

/* ------------------------------------------------------------------- Home */

.home-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: var(--xxxl);
  padding: var(--xxxl) 0 var(--xl);
}

.home-hero .copy .title1 { font-weight: 700; }
.home-hero .display { margin-top: var(--xs); }
.home-hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--md);
  margin-top: var(--xxl);
}

/* The welcome screen's floating lungs: a cut-out over a pool of light,
   ringed by four drifting badges. */
.hero-art {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.6) 32%,
    rgba(255, 255, 255, 0.2) 58%,
    rgba(255, 255, 255, 0) 72%);
}
.hero-art .lungs {
  position: relative;
  width: 64%;
  animation: float 5s ease-in-out infinite alternate;
}
.hero-art .icon {
  position: absolute;
  animation: drift 4.2s ease-in-out infinite alternate;
}
.hero-art .b1 { --size: 58px; left: 4%;  top: 24%; }
.hero-art .b2 { --size: 52px; right: 6%; top: 16%; animation-duration: 5s; animation-delay: -1.2s; }
.hero-art .b3 { --size: 46px; left: 11%; bottom: 20%; animation-duration: 4.6s; animation-delay: -2s; }
.hero-art .b4 { --size: 54px; right: 5%; bottom: 26%; animation-duration: 5.4s; animation-delay: -0.6s; }

@keyframes float { from { transform: translateY(-8px); } to { transform: translateY(8px); } }
@keyframes drift { from { transform: translateY(-6px); } to { transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  .hero-art .lungs,
  .hero-art .icon { animation: none; }
}

@media (max-width: 820px) {
  .home-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--md);
    padding-top: var(--md);
  }
  .home-hero .art { order: -1; }
  .home-hero .actions { justify-content: center; }
  .hero-art { width: min(100%, 340px); }
}

.section-head {
  max-width: 620px;
  margin: 0 auto var(--xxl);
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--lg);
}
.feature { display: flex; flex-direction: column; gap: var(--md); }
.feature h3 { font-size: 18px; font-weight: 600; }
.feature p { color: var(--text-secondary); font-size: 15px; }
.feature + .feature { margin-top: 0; }

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

.stat-band {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--xxl);
  padding: var(--xxxl);
}
.stat-band .number {
  font-size: clamp(72px, 14vw, 112px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 0.9;
}
.stat-band .number small {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  margin-top: var(--sm);
  opacity: 0.85;
}
.stat-band .source { font-size: 13px; margin-top: var(--md); opacity: 0.7; }

@media (max-width: 600px) {
  .stat-band { grid-template-columns: 1fr; text-align: center; padding: var(--xxl); gap: var(--md); }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--lg);
}
.split .card + .card { margin-top: 0; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Rows: icon left, title and note right — MoreView's menu rows. */
.rows { display: grid; gap: var(--lg); margin-top: var(--lg); }
.row {
  display: flex;
  align-items: flex-start;
  gap: var(--md);
}
.row .icon { margin-top: 2px; }
.row h3 { font-size: 16px; font-weight: 600; }
.row p { font-size: 15px; color: var(--text-secondary); margin: 2px 0 0; }

.cta {
  text-align: center;
  padding: var(--xxxl) var(--xxl);
}
.cta .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--md);
  margin-top: var(--xl);
}

/* --------------------------------------------------------------- Page head */

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--lg);
  padding: var(--xxxl) 0 var(--xxl);
}
.page-head .lead { margin-top: var(--sm); }
.page-head .updated { font-size: 14px; color: var(--text-muted); margin: var(--sm) 0 0; }
.page-head .icon { --size: 64px; }

@media (max-width: 520px) {
  .page-head { padding-top: var(--xl); }
  .page-head .icon { --size: 52px; }
}

/* ------------------------------------------------------------ Legal docs */

.summary .rows { margin-top: var(--lg); }

.toc ol {
  margin: var(--md) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  columns: 2;
  column-gap: var(--xxl);
}
.toc li {
  counter-increment: toc;
  break-inside: avoid;
  padding: 5px 0;
  font-size: 15px;
}
.toc li::before {
  content: counter(toc) ".";
  display: inline-block;
  min-width: 26px;
  color: var(--text-muted);
  font-weight: 600;
}
.toc a { text-decoration: none; font-weight: 500; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

.prose h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 0 0 var(--md);
}
.prose h3 { font-size: 17px; font-weight: 600; margin: var(--xl) 0 var(--sm); }
.prose p,
.prose li { color: var(--text-secondary); }
.prose p { margin: 0 0 var(--md); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul {
  margin: 0 0 var(--md);
  padding: 0;
  list-style: none;
}
.prose ul:last-child { margin-bottom: 0; }
.prose ul li {
  position: relative;
  padding: 4px 0 4px 20px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.prose .card { scroll-margin-top: 88px; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: var(--sm) 0 var(--md);
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-top: 1px solid var(--brand-border);
}
.prose th { color: var(--text); font-weight: 600; width: 34%; }
.prose td { color: var(--text-secondary); }

/* Values the publisher must fill in before the site goes live. */
mark.fill {
  background: #FFF3D6;
  color: #8A5A00;
  border-radius: 4px;
  padding: 0 4px;
  box-shadow: inset 0 0 0 1px #F2C14E;
}

/* ---------------------------------------------------------------- Callouts */

.callout {
  display: flex;
  gap: var(--md);
  align-items: flex-start;
}
.callout p { color: var(--text-secondary); font-size: 15px; }
.callout h2,
.callout h3 { font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.callout.warn { background: rgba(254, 240, 232, 0.8); border-color: rgba(224, 90, 43, 0.25); }

/* --------------------------------------------------------------------- FAQ */

.faq-group + .faq-group { margin-top: var(--xxl); }
.faq-group > h2 {
  display: flex;
  align-items: center;
  gap: var(--md);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--md);
}

details.faq {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 14px rgba(26, 78, 161, 0.06);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
details.faq + details.faq { margin-top: var(--sm); }
details.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--md);
  padding: var(--lg) var(--xl);
  font-weight: 600;
  font-size: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .glyph {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex: none;
}
details.faq[open] summary .glyph { transform: rotate(180deg); }
details.faq .answer {
  padding: 0 var(--xl) var(--lg);
  color: var(--text-secondary);
  font-size: 15px;
}
details.faq .answer p { margin: 0 0 var(--sm); }
details.faq .answer p:last-child { margin: 0; }

/* -------------------------------------------------------------------- Form */

.form { display: grid; gap: var(--lg); margin-top: var(--xl); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.field .hint { font-size: 13px; color: var(--text-muted); }

.input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--brand-border);
  border-radius: var(--r-md);
  padding: 13px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder { color: var(--text-muted); }
.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(46, 109, 203, 0.14);
}
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { min-height: 150px; resize: vertical; line-height: 1.5; }
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A9AB8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lg); }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.error-text { font-size: 13px; color: var(--danger); margin: 0; }

/* Honeypot: present for bots, invisible and unreachable for people. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: flex;
  gap: var(--md);
  align-items: flex-start;
  border-radius: var(--r-lg);
  padding: var(--lg);
  font-size: 15px;
}
.form-status.ok { background: var(--success-bg); color: var(--success); }
.form-status.bad { background: var(--danger-bg); color: #9B1C1C; }
.form-status p { margin: 0; }
.form-status strong { display: block; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ------------------------------------------------------------------ Steps */

.steps { display: grid; gap: var(--md); margin: var(--lg) 0 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: var(--md); }
.steps .num {
  --size: 36px;
  font-weight: 700;
  font-size: 15px;
}
.steps p { margin: 0; color: var(--text-secondary); }
.steps strong { color: var(--text); }

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

.site-footer {
  margin-top: var(--xxxxl);
  padding: var(--xxxl) var(--lg) max(var(--xxxl), env(safe-area-inset-bottom));
}
.site-footer .inner {
  max-width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--xxl);
  padding-top: var(--xxl);
  border-top: 1px solid rgba(122, 154, 184, 0.3);
}
.site-footer h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sm);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: var(--text-secondary); text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--brand); }
.site-footer p { margin: var(--sm) 0 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 680px) {
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
  .site-footer .about { grid-column: 1 / -1; }
}

/* -------------------------------------------------------------- Entrance */

/* The app's cascade: sections rise into place a beat apart. Only runs when
   scripting is on and motion is welcome, so nothing is ever left hidden. */
.js .rise { opacity: 0; transform: translateY(18px); }
.js .rise.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.46s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- Spacing glue */

.prose { margin-top: var(--lg); }
.section.prose { margin-top: 0; }
.rows + p { margin-top: var(--lg); }
.cta .icon { margin-bottom: var(--md); }
.cta .lead { max-width: 520px; margin-left: auto; margin-right: auto; }
.icon > span { position: relative; }
.feature .icon { margin-bottom: var(--xs); }
.card.callout { padding: var(--xl) var(--xxl); }
.card .callout + .form { margin-top: var(--xl); }
.home-hero p.title1 { margin: 0; }
.callout h2.title2 { font-size: 22px; margin-bottom: var(--xs); }

/* Two-column tables read badly at phone width: stack label over value. */
@media (max-width: 520px) {
  .prose th,
  .prose td { display: block; width: auto; padding-right: 0; }
  .prose td { border-top: 0; padding-top: 0; }
}
