/* ==========================================================================
   KeeWe — shared site styles
   Brand palette taken from the app's light theme (src/theme/light/colors.ts)
   ========================================================================== */

:root {
  --brand: #7a00e6;
  --brand-600: #6a00c9;
  --brand-700: #5400a0;
  --brand-ink: #23004c;
  --brand-tint: #f4e9fe;
  --brand-tint-2: #ede0fd;

  --coral: #ff6b4a;
  --coral-tint: #ffece7;
  --mint: #0fbf87;
  --mint-tint: #e3f8f0;
  --sun: #ffb020;
  --sun-tint: #fff4de;

  --ink: #171223;
  --ink-2: #3b3450;
  --muted: #665f78;
  --muted-2: #8a839c;
  --line: #ebe5f4;
  --line-2: #f3eff9;
  --paper: #ffffff;
  --page: #fdfcff;

  --shadow-sm: 0 1px 2px rgba(35, 0, 76, .06), 0 2px 8px rgba(35, 0, 76, .04);
  --shadow-md: 0 4px 12px rgba(35, 0, 76, .06), 0 12px 32px rgba(35, 0, 76, .07);
  --shadow-lg: 0 8px 24px rgba(35, 0, 76, .08), 0 32px 64px rgba(35, 0, 76, .12);
  --shadow-brand: 0 8px 20px rgba(122, 0, 230, .22), 0 2px 6px rgba(122, 0, 230, .16);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --wrap: 1160px;
  --gutter: 24px;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-brand: "Merriweather", Georgia, "Times New Roman", serif;

  color-scheme: light;
}

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

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
p { margin: 0; }

::selection { background: var(--brand-tint-2); color: var(--brand-ink); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 700;
}
.skip:focus { left: 12px; color: #fff; }

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

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

section { position: relative; }

.section-pad { padding-block: 88px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.h-sec {
  font-size: clamp(30px, 4.4vw, 44px);
  max-width: 20ch;
}
.sub {
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
  max-width: 58ch;
}

.head-center { text-align: center; }
.head-center .h-sec { margin-inline: auto; }
.head-center .sub { margin-inline: auto; }
.head-center .eyebrow::before { display: none; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  background: var(--brand-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(122, 0, 230, .28);
}

.btn-ghost {
  background: var(--paper);
  color: var(--brand-ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  color: var(--brand-ink);
  border-color: var(--brand-tint-2);
  background: var(--brand-tint);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 15px; }

.btn-on-dark {
  background: #fff;
  color: var(--brand-ink);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}
.btn-on-dark:hover { background: #fff; color: var(--brand-700); transform: translateY(-2px); }

.btn-outline-light {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .16); color: #fff; transform: translateY(-2px); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(35, 0, 76, .05);
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--brand);
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand:hover { color: var(--brand-700); }
.brand img { width: 34px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 15.5px;
  font-weight: 600;
  transition: background .18s ease, color .18s ease;
}
.nav-links a:hover { background: var(--brand-tint); color: var(--brand-700); }

.nav-cta { display: inline-flex; gap: 10px; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .22s ease, opacity .22s ease;
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .22s ease;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { transform: rotate(45deg); }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(-90deg); }
.burger[aria-expanded="true"] span::after { opacity: 0; }

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

.hero {
  position: relative;
  padding-top: 56px;
  padding-bottom: 96px;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  width: 620px; height: 620px;
  right: -180px; top: -260px;
  background: radial-gradient(circle at 30% 30%, rgba(122, 0, 230, .22), rgba(122, 0, 230, 0) 70%);
}
.hero::after {
  width: 520px; height: 520px;
  left: -220px; bottom: -240px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 107, 74, .16), rgba(255, 107, 74, 0) 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 56px;
  align-items: center;
}

.pill-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 8px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 26px;
}
.pill-note b {
  background: var(--brand-ink);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pill-note span { padding-right: 10px; }

.hero h1 {
  font-size: clamp(42px, 6.4vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--brand) 0%, #b44bff 55%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 24px;
  font-size: 19.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 50ch;
}
.hero-cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-fine {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- phone mockup ---------- */

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
}
.phone-glow {
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, rgba(122, 0, 230, .18), rgba(122, 0, 230, 0) 68%);
  filter: blur(30px);
}
.phone {
  position: relative;
  width: 320px;
  aspect-ratio: 320 / 656;
  background: #14121b;
  border-radius: 48px;
  padding: 11px;
  box-shadow:
    0 0 0 2px #2b2637,
    0 30px 60px rgba(35, 0, 76, .28),
    0 8px 20px rgba(35, 0, 76, .16);
}
.phone-screen {
  text-align: left;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #fbf9ff;
  display: flex;
  flex-direction: column;
}
.notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  border-radius: var(--r-pill);
  background: #14121b;
  z-index: 6;
}
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 46px 16px 12px;
  flex: 0 0 auto;
  background: var(--paper);
  border-bottom: 1px solid var(--line-2);
}
.app-bar .app-title {
  font-family: var(--font-brand);
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.app-bar .app-title img { width: 19px; }
.app-bar-action { color: var(--ink); display: grid; place-items: center; }
.app-bar-action svg { width: 19px; height: 19px; }

.deck {
  position: relative;
  flex: 1 1 auto;
  margin: 12px 12px 10px;
}
.swipe-card {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(35, 0, 76, .12);
  display: flex;
  flex-direction: column;
  transform-origin: 50% 120%;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1), opacity .7s ease;
}
.swipe-card .art { position: relative; flex: 1 1 auto; min-height: 0; }
.swipe-card .art > svg { width: 100%; height: 100%; display: block; }
.swipe-card .meta .where svg { width: 12px; height: 12px; flex: 0 0 auto; }
/* caption matches FlatCard: black gradient, serif address + rent */
.swipe-card .meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 64px 16px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .55) 40%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
}
.swipe-card .meta h4 {
  color: #fff;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0;
}
.swipe-card .meta .price {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14.5px;
  margin-top: 4px;
}

/* full-card wash, as the app draws its Like / Nope overlay */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.overlay svg { width: 28px; height: 28px; }
.overlay-yes { background: rgba(102, 187, 106, .82); }
.overlay-no { background: rgba(255, 59, 48, .8); }
.swipe-card.is-front .overlay.show { opacity: 1; }

.tabbar {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 9px 8px 15px;
  border-top: 1px solid var(--line-2);
  background: var(--paper);
}
.tabbar .tab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--ink-2);
}
.tabbar .tab svg { width: 18px; height: 18px; }
.tabbar .tab em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tabbar .tab.is-on { color: var(--brand); }

/* floating cards next to phone */
.float-card {
  position: absolute;
  white-space: nowrap;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  z-index: 4;
  border: 1px solid var(--line-2);
}
.float-card .fc-ico {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.float-card .fc-ico svg { width: 17px; height: 17px; }
.float-card strong { display: block; font-size: 14px; letter-spacing: -0.01em; }
.float-card small { color: var(--muted-2); font-size: 12.5px; }

.fc-match { top: 25%; left: -15%; animation: bob 5.5s ease-in-out infinite; }
.fc-match .fc-ico { background: var(--coral-tint); color: var(--coral); }
.fc-viewing { bottom: 13%; right: -11%; animation: bob 6.5s ease-in-out .8s infinite; }
.fc-viewing .fc-ico { background: var(--mint-tint); color: var(--mint); }

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

/* ---------- trust strip ---------- */

.trust {
  border-block: 1px solid var(--line);
  background: var(--paper);
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-block: 26px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  text-align: left;
}
.trust-item svg { width: 22px; height: 22px; color: var(--brand); flex: 0 0 auto; }
.trust-item strong { display: block; font-size: 15px; letter-spacing: -0.015em; }
.trust-item small { color: var(--muted-2); font-size: 13px; }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 54px;
}
.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-tint-2); }
.step-n {
  width: 42px; height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: 18px;
}
.step:nth-child(2) .step-n { background: var(--coral-tint); color: var(--coral); }
.step:nth-child(3) .step-n { background: var(--mint-tint); color: var(--mint); }
.step:nth-child(4) .step-n { background: var(--sun-tint); color: #c07800; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15.5px; color: var(--muted); line-height: 1.6; }

/* ---------- feature bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 54px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-tint-2); }
.card h3 { font-size: 21px; margin-bottom: 10px; letter-spacing: -0.03em; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.62; }
.card-ico {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card-ico svg { width: 22px; height: 22px; }

.b-wide { grid-column: span 3; }
.b-third { grid-column: span 2; }
.b-half { grid-column: span 3; }

.card-dark {
  background: linear-gradient(150deg, var(--brand-ink) 0%, #3c0a7d 55%, var(--brand) 130%);
  border-color: transparent;
  color: #fff;
}
.card-dark h3 { color: #fff; }
.card-dark p { color: rgba(255, 255, 255, .78); }
.card-dark .card-ico { background: rgba(255, 255, 255, .14); color: #fff; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.filter-chips span {
  font-size: 13.5px;
  font-weight: 650;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--brand-tint);
  color: var(--brand-700);
  border: 1px solid var(--brand-tint-2);
}
.card-dark .filter-chips span {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
}


/* ---------- split (two audiences) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 54px;
}
.side {
  position: relative;
  border-radius: var(--r-xl);
  padding: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.side::after {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  right: -110px; top: -130px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .5;
}
.side-a::after { background: rgba(122, 0, 230, .3); }
.side-b::after { background: rgba(255, 107, 74, .28); }
.side .tag {
  position: relative;
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
}
.side-a .tag { background: var(--brand-tint); color: var(--brand-700); }
.side-b .tag { background: var(--coral-tint); color: #cc3f1f; }
.side h3 { position: relative; font-size: 28px; letter-spacing: -0.035em; }
.side > p { position: relative; margin-top: 14px; color: var(--muted); font-size: 16px; }
.ticks { position: relative; list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.ticks svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; }
.side-a .ticks svg { color: var(--brand); }
.side-b .ticks svg { color: var(--coral); }

/* ---------- safety ---------- */

.safety {
  background: linear-gradient(165deg, var(--brand-ink) 0%, #34076b 60%, #48069a 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}
.safety::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 320px at 88% 8%, rgba(255, 107, 74, .22), transparent 60%),
    radial-gradient(600px 300px at 6% 96%, rgba(122, 0, 230, .5), transparent 62%);
  pointer-events: none;
}
.safety > * { position: relative; }
.safety h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.safety .eyebrow { color: #d9b6ff; }
.safety .sub { color: rgba(255, 255, 255, .8); }
.safe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.safe-item {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--r-md);
  padding: 24px 22px;
  backdrop-filter: blur(6px);
}
.safe-item .si-ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: #fff;
}
.safe-item .si-ico svg { width: 19px; height: 19px; }
.safe-item h4 { color: #fff; font-size: 16.5px; margin-bottom: 7px; }
.safe-item p { color: rgba(255, 255, 255, .72); font-size: 14.5px; line-height: 1.55; }

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

.faq { max-width: 800px; margin: 48px auto 0; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--brand-tint-2); box-shadow: var(--shadow-md); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 21px 58px 21px 24px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  position: relative;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 11px; height: 11px;
  margin-top: -7px;
  border-right: 2.4px solid var(--brand);
  border-bottom: 2.4px solid var(--brand);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .answer { padding: 0 24px 22px; color: var(--muted); font-size: 15.8px; line-height: 1.65; }
.faq .answer p + p { margin-top: 12px; }

/* ---------- download CTA ---------- */

.download {
  text-align: center;
  border-radius: var(--r-xl);
  padding: 64px 40px;
  background:
    radial-gradient(600px 260px at 50% 0%, var(--brand-tint), transparent 70%),
    var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.dl-icon {
  width: 84px;
  border-radius: 22px;
  margin: 0 auto 26px;
  box-shadow: var(--shadow-brand);
}
.download h2 { font-size: clamp(30px, 4.4vw, 44px); }
.download .sub { margin-inline: auto; }

.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 38px;
  text-align: left;
}
.join-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.join-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-tint-2);
}
.join-card .jc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.join-card .jc-ico {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
  flex: 0 0 auto;
}
.join-card .jc-ico svg { width: 22px; height: 22px; }
.join-card.is-beta .jc-ico { background: var(--coral-tint); color: var(--coral); }
.join-card h3 { font-size: 20px; letter-spacing: -0.03em; }
.join-card > p {
  flex: 1 1 auto;
  margin: 10px 0 24px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}
.join-card .btn { width: 100%; }
.jc-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--coral-tint);
  color: #c2401f;
  white-space: nowrap;
}
.jc-tag.is-open { background: var(--mint-tint); color: #0a7a56; }

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 16px;
  background: var(--brand-ink);
  color: #fff;
  min-width: 236px;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.store-badge:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-badge svg { width: 26px; height: 26px; flex: 0 0 auto; }
.store-badge small { display: block; font-size: 11.5px; opacity: .75; line-height: 1.35; }
.store-badge strong { display: block; font-size: 17px; letter-spacing: -0.02em; line-height: 1.2; }

.store-badge.is-soon {
  background: var(--paper);
  color: var(--ink);
  border: 1.5px dashed var(--line);
  cursor: default;
  opacity: .95;
}
.store-badge.is-soon:hover { transform: none; box-shadow: none; }
.store-badge.is-soon small { color: var(--muted-2); opacity: 1; }
.soon-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--sun-tint);
  color: #a06a00;
  margin-left: auto;
}

.beta-note {
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--muted-2);
}
.beta-note a { font-weight: 700; }

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

.site-footer {
  margin-top: 24px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-block: 56px 34px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot-brand p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  max-width: 34ch;
}
.foot-col h4 {
  font-size: 13px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 800;
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot-col a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.foot-col a:hover { color: var(--brand); }
.foot-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 14px;
}
.foot-bottom .made { display: inline-flex; align-items: center; gap: 7px; }
.foot-bottom .made svg { color: var(--coral); }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fc-match, .fc-viewing { animation: none; }
  .swipe-card { transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   Legal document pages
   ========================================================================== */

/* keep the title column in line with the body column */
.legal-hero .wrap { max-width: calc(78ch + var(--gutter) * 2); }

.legal-hero {
  background:
    radial-gradient(700px 300px at 20% 0%, var(--brand-tint), transparent 70%),
    var(--page);
  border-bottom: 1px solid var(--line);
  padding-block: 56px 44px;
}
.crumbs { font-size: 14px; color: var(--muted-2); margin-bottom: 18px; }
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--brand); }
.legal-hero h1 { font-size: clamp(34px, 5vw, 52px); }
.legal-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.legal-meta span {
  font-size: 13.5px;
  font-weight: 650;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.legal-layout { padding-block: 52px 24px; }

.legal-body { max-width: 78ch; margin-inline: auto; }

.legal-intro {
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-2);
  border-radius: var(--r-md);
  padding: 22px 24px;
  font-size: 15.5px;
  color: var(--brand-ink);
  line-height: 1.6;
  margin-bottom: 44px;
}
.legal-intro strong { font-weight: 800; }

.legal-body section { scroll-margin-top: 96px; margin-bottom: 44px; }
.legal-body section > h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.legal-body section > h2 .s-num {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

.clauses, .clauses ul { list-style: none; margin: 0; padding: 0; }
.clauses > li { margin-bottom: 16px; }
.clauses ul > li { margin-bottom: 9px; }
.clauses li > .cl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}
.clauses .n {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 14.5px;
  color: var(--brand);
  white-space: nowrap;
  min-width: 34px;
}
.clauses .t { font-size: 16px; line-height: 1.68; color: var(--ink-2); }
.clauses ul {
  margin-top: 10px;
  margin-left: 46px;
  padding-left: 18px;
  border-left: 2px solid var(--line-2);
}
.clauses ul .n { color: var(--muted-2); font-weight: 700; min-width: 26px; }
.clauses ul .t { font-size: 15.5px; color: var(--muted); }
.clauses ul ul .t { font-size: 15px; }

.todo {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: .86em;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--sun-tint);
  color: #9a5b00;
  border: 1px dashed #ffca6a;
  white-space: nowrap;
}

.legal-foot-note {
  margin-top: 56px;
  padding: 24px 26px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}
.legal-foot-note h3 { font-size: 17px; margin-bottom: 10px; }

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 90;
  border: 0;
  cursor: pointer;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 19px; height: 19px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .hero-sub, .hero h1 { margin-inline: auto; }
  .hero-cta, .hero-fine { justify-content: center; }
  .phone-stage { min-height: 560px; margin-top: 26px; }
  .fc-match { left: 0; }
  .fc-viewing { right: 0; }
  .phone-stage { width: 100%; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .b-wide, .b-half { grid-column: span 4; }
  .b-third { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .safe-grid { grid-template-columns: repeat(2, 1fr); }
  .legal-body { max-width: none; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: grid; }
  .site-header.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 20px;
    box-shadow: var(--shadow-md);
  }
  .site-header.nav-open .nav-links a { padding: 13px 14px; font-size: 17px; }
  .site-header.nav-open .nav-cta {
    display: flex;
    position: absolute;
    top: 74px;
    left: 0; right: 0;
    padding: 0 var(--gutter) 20px;
    background: var(--paper);
    transform: translateY(100%);
    z-index: -1;
  }
  .section-pad { padding-block: 66px; }
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .split { grid-template-columns: 1fr; }
  .join-grid { grid-template-columns: 1fr; }
  .safety { padding: 44px 26px; border-radius: var(--r-lg); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: span 2; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  :root { --gutter: 18px; }
  .hero { padding-top: 34px; padding-bottom: 60px; }
  .phone { width: 285px; }
  .float-card { padding: 10px 13px; }
  .float-card strong { font-size: 13px; }
  .float-card small { font-size: 11.5px; }
  .float-card { white-space: normal; max-width: 176px; padding: 9px 12px; }
  .fc-match { left: 0; top: 17%; }
  .fc-viewing { right: 0; bottom: 30%; }
  .bento { grid-template-columns: 1fr; }
  .b-wide, .b-half, .b-third { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .safe-grid { grid-template-columns: 1fr; }
  .card, .side { padding: 26px 22px; }
  .download { padding: 44px 22px; }
  .store-badge { min-width: 100%; }
  .join-card { padding: 26px 22px; }
  .clauses ul { margin-left: 0; padding-left: 14px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-brand { grid-column: span 1; }
  .legal-body section > h2 { font-size: 21px; }
}
