/* Liftkin website. Black and white, mobile first, system type.
   A web translation of the app's Liquid Glass design (LiftKin-IOS design/tokens.ts):
   studio lighting on black glass, dark tinted glass surfaces with a specular top edge. */

:root {
  color-scheme: dark;

  /* color (tokens.color) */
  --bg: #000000;
  --bg-elevated: #0A0A0B;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: #111113;
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.18);
  --text: #FFFFFF;
  --text-2: rgba(235, 235, 245, 0.66);
  --text-3: #8E8E93;
  --gray: #A1A1AA;

  /* glass materials (tokens.color, fallback path values, since the web has no native Liquid Glass) */
  --glass-fill: rgba(22, 22, 25, 0.58);
  --glass-fill-hero: rgba(34, 34, 38, 0.56);
  --glass-chrome: rgba(18, 18, 20, 0.62);
  --glass-inset: rgba(255, 255, 255, 0.07);
  --glass-stroke: rgba(255, 255, 255, 0.10);
  --glass-separator: rgba(255, 255, 255, 0.11);
  --specular: rgba(255, 255, 255, 0.30);
  --specular-sheen: rgba(255, 255, 255, 0.06);
  --hero-light: rgba(255, 255, 255, 0.09);
  --primary-shade: #E8E8E8; /* white under primaryShade, rgba(0,0,0,0.09) */
  --blur: blur(24px) saturate(160%);
  --blur-chrome: blur(20px) saturate(180%);

  /* Glass layers, drawn as background layers on the border box so they sit on the hairline
     and survive overflow clipping. Order: specular edge, sheen, (hero light), fill. */
  --edge: linear-gradient(90deg, rgba(255, 255, 255, 0) 8%, var(--specular) 50%, rgba(255, 255, 255, 0) 92%) border-box top center / 100% 1px no-repeat;
  --sheen: linear-gradient(180deg, var(--specular-sheen), rgba(255, 255, 255, 0) 45%) border-box;
  --glow: linear-gradient(140deg, var(--hero-light), rgba(255, 255, 255, 0) 62%) border-box;

  --gutter: max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --col: 540px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* motion (tokens.spring.press, approximated as an overshooting curve) */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  /* transparent so the fixed ambient layers behind it show through */
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

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

/* ---------- ambient backdrop (tokens.ambient) ----------
   A near-black base with a gentle vertical falloff, plus three very soft, large gray light volumes:
   an overhead key, a cool fill on the left, and a low rim at the bottom right.
   Each light is a fixed layer with a long radial falloff; only its transform animates. */

html::before,
html::after,
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

/* base: #0C0C0E at the top, #060607 at 42 percent, black at the bottom */
html::before {
  inset: 0;
  background: linear-gradient(180deg, #0C0C0E 0%, #060607 42%, #000000 100%);
}

/* falloff stops [0, 1] [0.2, 0.78] [0.42, 0.44] [0.65, 0.17] [0.85, 0.04] [1, 0], times each light's peak */
html::after,
body::before,
body::after {
  width: var(--w);
  height: calc(var(--w) * var(--squash));
  left: calc(var(--x) - var(--w) / 2);
  top: calc(var(--y) - var(--w) * var(--squash) / 2);
  will-change: transform;
}

/* overhead key light, wide and flat */
html::after {
  --w: min(190vw, 1600px);
  --squash: 0.6;
  --x: 50%;
  --y: -6%;
  --d: min(3.5vw, 30px);
  background: radial-gradient(closest-side,
    rgba(255, 255, 255, 0.085) 0%,
    rgba(255, 255, 255, 0.066) 20%,
    rgba(255, 255, 255, 0.037) 42%,
    rgba(255, 255, 255, 0.014) 65%,
    rgba(255, 255, 255, 0.0034) 85%,
    rgba(255, 255, 255, 0) 100%);
}

/* cool fill from the left, mid screen */
body::before {
  --w: min(130vw, 1200px);
  --squash: 0.85;
  --x: -8%;
  --y: 48%;
  --d: min(5vw, 44px);
  background: radial-gradient(closest-side,
    rgba(214, 214, 222, 0.045) 0%,
    rgba(214, 214, 222, 0.035) 20%,
    rgba(214, 214, 222, 0.02) 42%,
    rgba(214, 214, 222, 0.0077) 65%,
    rgba(214, 214, 222, 0.0018) 85%,
    rgba(214, 214, 222, 0) 100%);
}

/* low rim light at the bottom right */
body::after {
  --w: min(115vw, 1100px);
  --squash: 0.75;
  --x: 106%;
  --y: 86%;
  --d: min(4.5vw, 40px);
  background: radial-gradient(closest-side,
    rgba(196, 196, 204, 0.035) 0%,
    rgba(196, 196, 204, 0.027) 20%,
    rgba(196, 196, 204, 0.015) 42%,
    rgba(196, 196, 204, 0.006) 65%,
    rgba(196, 196, 204, 0.0014) 85%,
    rgba(196, 196, 204, 0) 100%);
}

/* slow figure eight wander with a faint breathe (tokens.ambient.breathe 0.03) */
@media (prefers-reduced-motion: no-preference) {
  html::after { animation: drift 52s linear infinite; }
  body::before { animation: drift 61s linear infinite reverse; }
  body::after { animation: drift 67s linear infinite; }
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  12.5% { transform: translate3d(calc(var(--d) * 0.707), calc(var(--d) * 0.5), 0) scale(1.021); }
  25% { transform: translate3d(var(--d), 0, 0) scale(1.03); }
  37.5% { transform: translate3d(calc(var(--d) * 0.707), calc(var(--d) * -0.5), 0) scale(1.021); }
  50% { transform: translate3d(0, 0, 0) scale(1); }
  62.5% { transform: translate3d(calc(var(--d) * -0.707), calc(var(--d) * 0.5), 0) scale(0.979); }
  75% { transform: translate3d(calc(var(--d) * -1), 0, 0) scale(0.97); }
  87.5% { transform: translate3d(calc(var(--d) * -0.707), calc(var(--d) * -0.5), 0) scale(0.979); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

/* ---------- glass materials ----------
   content glass: cards, FAQ items, the privacy list, the footer panel, tables
   hero glass: the score explainer, the "short version" panels, the closing panel (brighter, with inner light)
   chrome glass: the floating header bar */

.card,
.promises,
.faq details,
.footer-panel,
.doc .table-scroll {
  background: var(--edge), var(--sheen), var(--glass-fill);
  border: 1px solid var(--glass-stroke);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

.glass-card,
.doc .glance,
.closing-panel {
  background: var(--edge), var(--glow), var(--sheen), var(--glass-fill-hero);
  border: 1px solid var(--glass-stroke);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.025);
}

/* ---------- layout ---------- */

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

/* ---------- site header (floating glass bar) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--gutter) 0;
  /* the gaps around the bar let clicks through to the page */
  pointer-events: none;
}
.site-header .bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  max-width: 960px;
  margin-inline: auto;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: var(--edge), var(--sheen), var(--glass-chrome);
  border: 1px solid var(--glass-stroke);
  -webkit-backdrop-filter: var(--blur-chrome);
  backdrop-filter: var(--blur-chrome);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-right: 6px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.025em;
}
.brand svg { width: 30px; height: 30px; flex: none; }

/* ---------- buttons ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 380ms var(--spring), background-color 150ms ease;
}
.pill:active { transform: scale(0.96); transition-duration: 120ms; }

/* secondary: glass pill. It sits on the header glass, so it is inset glass (no second live blur). */
.pill-glass {
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 12%, rgba(255, 255, 255, 0.34) 50%, rgba(255, 255, 255, 0) 88%) border-box top center / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 60%) border-box,
    var(--glass-inset);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.pill-glass:hover { background-color: rgba(255, 255, 255, 0.12); }

/* primary: solid white pill with a faint lower shade */
.store,
.lost .pill {
  background: linear-gradient(180deg, #FFFFFF 45%, var(--primary-shade) 100%);
  color: #000000;
  box-shadow:
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.25);
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 30px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 380ms var(--spring), filter 150ms ease;
}
.store:active { transform: scale(0.96); transition-duration: 120ms; }
.store:hover, .lost .pill:hover { filter: brightness(0.95); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 12px; font-weight: 500; letter-spacing: 0.01em; }
.store strong { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.store:focus-visible, .pill:focus-visible { outline-offset: 4px; }

.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-2);
}
.soon::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* ---------- type ---------- */

/* tokens.type.eyebrow: 12 / 16, semibold, uppercase, tracking 1.1 */
.eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-top: 40px;
  padding-bottom: 32px;
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  display: grid;
  gap: 44px;
  max-width: calc(960px + 2 * var(--gutter));
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; max-width: var(--col); }

.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 1px 0 1px rgba(255, 255, 255, 0.06),
    0 14px 34px rgba(0, 0, 0, 0.6);
  margin-bottom: 22px;
}
/* tokens.numeric.hero tracking, about -0.042em */
.hero h1 {
  margin-top: 12px;
  font-size: clamp(46px, 13vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.042em;
  font-weight: 800;
}
.hero .sub {
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--text-2);
  max-width: 34ch;
}
.hero .cta { margin-top: 30px; display: flex; flex-direction: column; align-items: flex-start; }

.hero-shot { display: flex; justify-content: center; }
.hero-shot .phone { width: min(74vw, 310px); }

@media (min-width: 900px) {
  .hero { padding-top: 80px; padding-bottom: 64px; }
  .hero .wrap { grid-template-columns: 1fr auto; align-items: center; gap: 64px; }
  .hero-shot .phone { width: 320px; }
}

/* one motion moment: the hero phone rises in */
@media (prefers-reduced-motion: no-preference) {
  .hero-shot .phone { animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(28px) scale(0.98); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- phone frame (glass rimmed device) ---------- */

.phone {
  position: relative;
  padding: 7px;
  border-radius: 46px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 14%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 86%) border-box top center / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 38%, rgba(255, 255, 255, 0.02) 70%, rgba(255, 255, 255, 0.08)) border-box,
    rgba(30, 30, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 24px 48px -12px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(255, 255, 255, 0.03);
}
.phone img {
  width: 100%;
  aspect-ratio: 1179 / 2386;
  object-fit: cover;
  border-radius: 38px;
  background: #0A0A0B;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9);
}
/* a faint reflection across the glass */
.phone::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 38px;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 32%);
  pointer-events: none;
}

/* ---------- tagline band ---------- */

.band { padding-block: 48px 16px; }
.band p {
  font-size: clamp(32px, 9vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.038em;
  font-weight: 800;
}
.band p span { color: var(--text-3); }

/* ---------- sections ---------- */

.section { padding-block: 72px 8px; }
/* tokens.type.display tracking, about -0.036em */
.section h2 {
  margin-top: 10px;
  font-size: clamp(32px, 8.6vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.036em;
  font-weight: 800;
}
.section .lead {
  margin-top: 14px;
  font-size: 18px;
  color: var(--text-2);
}

.ticks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 16px;
  color: var(--text);
}
/* inset glass check */
.ticks li::before {
  content: "";
  width: 20px; height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 70%),
    rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* horizontal scroll-snap strip of phones */
.strip {
  display: flex;
  gap: 16px;
  margin: 32px calc(-1 * var(--gutter)) 0;
  padding: 8px var(--gutter) 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.strip::-webkit-scrollbar { display: none; }
/* centers the strip when it fits, scrolls from the start when it does not */
.strip::before, .strip::after { content: ""; flex: 0 0 0; margin: auto; }
.strip:focus-visible { outline-offset: -2px; border-radius: 12px; }
.strip figure {
  flex: 0 0 auto;
  width: min(64vw, 250px);
  margin: 0;
  scroll-snap-align: start;
}
.strip figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-2);
  text-align: center;
}
.strip.single figure { width: min(70vw, 270px); }

/* ---------- cards ---------- */

.card {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.glass-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 24px;
}

.progress-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.progress-grid .card { padding: 18px; }
.progress-grid h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.progress-grid p { margin-top: 6px; font-size: 15px; color: var(--text-2); line-height: 1.4; }

/* ---------- score explainer ---------- */

.score { margin-top: 30px; }
.score-mix {
  display: flex;
  height: 12px;
  gap: 4px;
  margin: 2px 0 24px;
}
.score-mix i { display: block; border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.score-mix .c { flex: 40; background: var(--text); }
.score-mix .p { flex: 40; background: var(--gray); }
.score-mix .r { flex: 20; background: #52525B; }
.score dl { margin: 0; display: grid; gap: 20px; }
.score dl div { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline; }
/* tokens.numeric.large, heavy and tabular */
.score dt {
  grid-row: span 2;
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.036em;
  font-variant-numeric: tabular-nums;
  min-width: 2.7ch;
}
.score dt small { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-left: 1px; }
.score dd { margin: 0; }
.score dd strong { display: block; font-size: 17px; letter-spacing: -0.02em; }
.score dd span { font-size: 15px; color: var(--text-2); }
.score .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.score .foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--glass-separator);
  font-size: 15px;
  color: var(--text-2);
}

/* ---------- privacy promise ---------- */

.promises {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-radius: var(--radius-lg);
}
.promises li { padding: 18px 20px; }
.promises li + li { border-top: 1px solid var(--glass-separator); }
.promises strong { display: block; font-size: 17px; letter-spacing: -0.02em; }
.promises span { display: block; margin-top: 4px; font-size: 15px; color: var(--text-2); line-height: 1.45; }

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

.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { border-radius: var(--radius-lg); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 14px 14px 18px;
  border-radius: calc(var(--radius-lg) - 1px);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: rgba(255, 255, 255, 0.03); }
/* inset glass toggle */
.faq summary::after {
  content: "";
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(var(--text), var(--text)) center / 12px 2px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 2px 12px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 60%),
    var(--glass-inset);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}
.faq details[open] summary::after {
  background:
    linear-gradient(var(--text), var(--text)) center / 12px 2px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 60%),
    var(--glass-inset);
}
.faq summary:focus-visible { outline-offset: -3px; }
.faq details p { padding: 0 18px 18px; color: var(--text-2); font-size: 16px; max-width: 60ch; }

/* ---------- closing CTA ---------- */

.closing { margin-top: 88px; padding-bottom: 24px; }
.closing-panel {
  border-radius: var(--radius-xl);
  padding: 40px 22px 36px;
  text-align: center;
}
.closing img { margin: 0 auto 20px; }
.closing h2 {
  font-size: clamp(32px, 9vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.closing p.sub { margin-top: 12px; color: var(--text-2); font-size: 18px; }
.closing .cta { margin-top: 28px; display: flex; flex-direction: column; align-items: center; }

/* ---------- footer ---------- */

.site-footer {
  padding-top: 24px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  color: var(--text-3);
  font-size: 15px;
}
.footer-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 20px 18px;
  border-radius: var(--radius-lg);
}
.site-footer nav ul {
  list-style: none;
  margin: 0 0 0 -12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.site-footer nav a:hover { text-decoration: underline; }
.site-footer nav a[aria-current="page"] { color: var(--text-2); }

/* ---------- legal and support pages ---------- */

.doc { padding-block: 36px 72px; }
.doc .wrap { display: flex; flex-direction: column; gap: 36px; }
.doc header { display: flex; flex-direction: column; gap: 16px; }
.doc h1 {
  font-size: clamp(36px, 10vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.038em;
  font-weight: 800;
}
.doc .meta {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--text-3);
}
.doc .lede { font-size: 19px; line-height: 1.5; color: var(--text); }
.doc .glance {
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.doc .glance h2 {
  border: 0;
  padding: 0;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 600;
}
.doc .glance ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.doc .glance li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.doc .glance li::before { content: ""; width: 7px; height: 7px; margin-top: 10px; border-radius: 50%; background: var(--text); }
.doc section { display: flex; flex-direction: column; gap: 12px; }
.doc section h2 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 700;
  padding-top: 28px;
  border-top: 1px solid var(--stroke);
}
.doc h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; margin-top: 8px; }
.doc p, .doc ul { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.doc .lede, .doc .glance li { color: var(--text); }
.doc ul { padding-left: 20px; display: grid; gap: 8px; }
.doc strong { color: var(--text); font-weight: 650; }
.doc a { color: var(--text); }
.doc .table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-md);
}
.doc table { border-collapse: collapse; width: 100%; min-width: 500px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--glass-separator); color: var(--text-2); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font-size: 12px; letter-spacing: 1.1px; text-transform: uppercase; font-weight: 600; background: rgba(255, 255, 255, 0.04); }
.doc td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }

/* ---------- 404 ---------- */

.lost {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-block: 64px;
}
.lost h1 { margin-top: 10px; font-size: clamp(44px, 12vw, 64px); letter-spacing: -0.042em; line-height: 1; font-weight: 800; }
.lost p { margin-top: 14px; color: var(--text-2); font-size: 18px; }
.lost p.eyebrow { margin-top: 0; font-size: 12px; }
.lost .pill { margin-top: 28px; padding-inline: 24px; }

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .store { transition: none; }
}

/* ---------- fallbacks ---------- */

/* no backdrop blur: denser washes so text keeps its contrast over the backdrop */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --glass-fill: rgba(17, 17, 19, 0.94);
    --glass-fill-hero: rgba(26, 26, 29, 0.94);
    --glass-chrome: rgba(12, 12, 14, 0.96);
  }
  .phone { background-color: #1C1C1F; }
}

/* Reduce Transparency: every glass surface becomes solid surfaceStrong with a hairline, like the app */
@media (prefers-reduced-transparency: reduce) {
  .card,
  .promises,
  .faq details,
  .footer-panel,
  .doc .table-scroll,
  .glass-card,
  .doc .glance,
  .closing-panel,
  .site-header .bar,
  .phone {
    background: var(--surface-strong);
    border-color: var(--stroke-strong);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-header .bar { background: var(--bg-elevated); }
  .pill-glass { background: #1C1C1F; }
  .phone::after { display: none; }
}
