/* Palette and radii mirror src/constants/theme.ts (light scheme). */
:root {
  --canvas: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-body: #334155;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #dbeafe;
  --primary-tint: #eff6ff;
  --primary-tint-border: #bfdbfe;
  --success: #16a34a;
  --fb-blue: #0866ff;
  --brand-gradient: linear-gradient(150deg, #4a8af6 0%, #2f6cf0 48%, #1d4ed8 100%);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-float: 0 2px 6px rgba(15, 23, 42, 0.06), 0 18px 40px -12px rgba(15, 23, 42, 0.18);
  --header-h: 4.25rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
}

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

p {
  margin: 0;
}

.container {
  width: min(72rem, calc(100% - 2.5rem));
  margin: 0 auto;
}

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

/* —— Header —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(241, 245, 249, 0.8);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: var(--border);
}

.site-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.site-brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.site-nav a:not(.btn) {
  color: var(--text-secondary);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:not(.btn):hover {
  color: var(--text);
}

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn svg {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1), 0 6px 16px -4px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-fb {
  background: var(--fb-blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1), 0 6px 16px -4px rgba(8, 102, 255, 0.45);
}

.btn-fb:hover {
  background: #0757d9;
}

.btn-white {
  background: #fff;
  color: var(--fb-blue);
  box-shadow: 0 6px 18px -6px rgba(15, 23, 42, 0.35);
}

.btn-white:hover {
  background: var(--primary-tint);
}

.btn-sm {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 12px;
}

.btn-lg {
  min-height: 3.5rem;
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  border-radius: 16px;
}

/* —— Hero —— */

.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(52rem 34rem at 82% 18%, rgba(59, 130, 246, 0.16), transparent 62%),
    radial-gradient(30rem 22rem at 8% 90%, rgba(59, 130, 246, 0.08), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

/* Echoes the outlined "USA" badge on the app's home screen. */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem;
  border: 2px solid var(--text);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}

a.badge-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero h1 {
  margin-top: 1.4rem;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.text-gradient {
  background: linear-gradient(120deg, #3b82f6 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.fb-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.fb-inline svg {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
}

.fb-inline span {
  text-align: left;
}

.fb-inline strong {
  color: var(--fb-blue);
  font-weight: 700;
}

.fb-inline:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mirrors the summary tiles on the app's Statistics screen. */
.stat-tiles {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 30rem;
}

.stat-tile {
  padding: 0.95rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.stat-tile strong {
  display: block;
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.stat-tile span {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 34rem;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(30rem, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brand-gradient);
  opacity: 0.95;
  filter: saturate(1.05);
}

.hero-visual .phone {
  position: relative;
  z-index: 2;
  width: clamp(15rem, 23vw, 18.5rem);
}

.hero-visual .phone-back {
  position: absolute;
  z-index: 1;
  width: clamp(13rem, 19vw, 15.5rem);
  transform: translate(-58%, 6%);
  opacity: 0.98;
}

.hero-visual .phone-back + .phone {
  transform: translateX(22%);
}

/* —— Phone frame —— */

.phone {
  position: relative;
  padding: 9px;
  border-radius: 46px;
  background: #0b1120;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(15, 23, 42, 0.12),
    0 30px 60px -18px rgba(15, 23, 42, 0.5),
    0 18px 36px -24px rgba(29, 78, 216, 0.5);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 38px;
  background: var(--canvas);
}

/* —— Sections —— */

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section-white {
  background: var(--card);
}

.section-flush-top {
  padding-top: 0;
}

.section-head {
  max-width: 42rem;
  margin: 0 auto clamp(2.75rem, 6vw, 4.5rem);
  text-align: center;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  letter-spacing: -0.035em;
}

.section-lede {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
}

/* —— Feature showcase rows —— */

.showcase {
  display: grid;
  gap: clamp(4rem, 9vw, 7rem);
}

.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.showcase-row.is-reversed .showcase-copy {
  order: 2;
}

.icon-well {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
}

.icon-well svg {
  width: 1.6rem;
  height: 1.6rem;
}

.showcase-copy h3 {
  margin-top: 1.25rem;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em;
}

.showcase-copy > p {
  margin-top: 1rem;
  font-size: 1.075rem;
  color: var(--text-secondary);
  max-width: 32rem;
}

.check-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-body);
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
      center / 0.8rem no-repeat,
    var(--primary);
}

.showcase-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
  height: clamp(30rem, 48vw, 36rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: var(--radius-xl);
  background: var(--brand-gradient);
  overflow: hidden;
  isolation: isolate;
}

.showcase-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(28rem 18rem at 85% 0%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(22rem 16rem at 0% 100%, rgba(15, 23, 42, 0.18), transparent 70%);
}

.showcase-visual .phone {
  width: clamp(14.5rem, 24vw, 17.5rem);
  flex-shrink: 0;
}

.showcase-visual.is-pair .phone {
  width: clamp(12rem, 19vw, 14.5rem);
}

.showcase-visual.is-pair .phone:nth-child(2) {
  margin-top: 3.5rem;
}

/* —— More features grid —— */

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

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

.section-white .mini-card {
  background: var(--canvas);
  border-color: transparent;
  box-shadow: none;
}

.mini-card .icon-well {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 14px;
}

.mini-card .icon-well svg {
  width: 1.4rem;
  height: 1.4rem;
}

.mini-card h3 {
  margin-top: 1.1rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.mini-card p {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* —— Community —— */

.community-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.75rem, 4.5vw, 3.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-float);
}

.fb-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border-radius: 999px;
  background: #e7f0ff;
  color: var(--fb-blue);
  font-size: 0.8rem;
  font-weight: 700;
}

.fb-chip svg {
  width: 1.5rem;
  height: 1.5rem;
}

.community-card h2 {
  margin-top: 1.1rem;
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  letter-spacing: -0.035em;
}

.community-card > div > p {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.community-card .check-list {
  margin-bottom: 2rem;
}

.community-card .check-list li::before {
  background-color: var(--fb-blue);
}

.community-cover {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border), var(--shadow-float);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.community-cover:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px var(--border), 0 24px 48px -16px rgba(15, 23, 42, 0.3);
}

.community-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 1640 / 856;
  object-fit: cover;
}

/* —— Pricing (mirrors the app's Unlock screen) —— */

.free-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  max-width: 40rem;
  margin: 0 auto 2rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--primary-tint-border);
  border-radius: var(--radius-md);
  background: var(--primary-tint);
  color: var(--text-body);
  text-align: center;
  font-size: 0.975rem;
}

.free-note strong {
  color: var(--primary);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.6rem 1.5rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.price-card.is-featured {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 18px 36px -14px rgba(37, 99, 235, 0.6);
}

.price-label {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 800;
}

.price-amount {
  margin-top: 0.4rem;
  color: var(--text);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-term {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.price-card.is-featured .price-label,
.price-card.is-featured .price-amount {
  color: #fff;
}

.price-card.is-featured .price-term {
  color: var(--primary-soft);
}

.price-tag {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.benefits-card {
  max-width: 56rem;
  margin: 1rem auto 0;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.section-white .benefits-card {
  background: var(--canvas);
  border-color: transparent;
}

.benefits-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.benefits-card .check-list {
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.6rem 1.5rem;
}

.fine-print {
  max-width: 44rem;
  margin: 1.5rem auto 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
}

/* —— Store badges (placeholders until launch) —— */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 11.5rem;
  padding: 0.6rem 1.15rem 0.6rem 0.95rem;
  border-radius: 14px;
  background: #0b1120;
  color: #fff;
  text-decoration: none;
  cursor: default;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2), 0 8px 18px -8px rgba(15, 23, 42, 0.45);
}

.store-badge svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: currentColor;
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-badge-text small {
  color: #93c5fd;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.store-badge-text strong {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* —— Download CTA —— */

.cta-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  background: var(--brand-gradient);
  color: #fff;
  text-align: center;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(30rem 20rem at 90% -10%, rgba(255, 255, 255, 0.25), transparent 70%),
    radial-gradient(26rem 18rem at 0% 110%, rgba(15, 23, 42, 0.22), transparent 70%);
}

.cta-panel .cta-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto;
  border-radius: 1.15rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 14px 30px -10px rgba(15, 23, 42, 0.5);
}

.cta-panel h2 {
  margin-top: 1.5rem;
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3rem);
  letter-spacing: -0.035em;
}

.cta-panel > p {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: #dbeafe;
  font-size: 1.1rem;
}

.cta-panel .store-badges {
  justify-content: center;
  margin-top: 2rem;
}

.cta-panel .store-badge {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 22px -10px rgba(15, 23, 42, 0.6);
}

.cta-divider {
  width: min(28rem, 100%);
  height: 1px;
  margin: 2.25rem auto;
  background: rgba(255, 255, 255, 0.22);
}

.cta-community p {
  margin-bottom: 1.1rem;
  color: #fff;
  font-weight: 600;
}

/* —— FAQ —— */

.faq {
  max-width: 48rem;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.faq summary {
  position: relative;
  padding: 1.15rem 3.25rem 1.15rem 1.4rem;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-md);
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 1.35rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq details > div {
  padding: 0 1.4rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.975rem;
}

/* —— Footer —— */

.site-footer {
  margin-top: auto;
  padding: clamp(3rem, 6vw, 4rem) 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  font-size: 0.925rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 22rem;
}

.footer-heading {
  margin-bottom: 0.9rem;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.site-footer a:not(.site-brand) {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer a:not(.site-brand):hover {
  color: var(--primary);
}

.site-footer .jmea-link {
  color: var(--text);
  font-weight: 700;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* —— Legal / support pages —— */

.legal-page {
  flex: 1;
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
  background: radial-gradient(48rem 26rem at 80% 0%, rgba(59, 130, 246, 0.1), transparent 65%);
}

.legal {
  width: min(46rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-float);
  line-height: 1.7;
}

.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.legal .back:hover {
  color: var(--primary);
}

.legal h1 {
  font-size: clamp(2.1rem, 5vw, 2.75rem);
  letter-spacing: -0.035em;
}

.legal h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.legal p,
.legal li {
  font-size: 0.975rem;
}

.legal p + p {
  margin-top: 0.85rem;
}

.legal ul {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.6rem;
}

.legal strong {
  color: var(--text);
}

.legal .updated,
.legal .intro {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.legal .intro {
  font-size: 1rem;
  color: var(--text-secondary);
}

.legal-community {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 0.75rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--primary-tint-border);
  border-radius: var(--radius-md);
  background: var(--primary-tint);
}

.legal-community p {
  flex: 1 1 18rem;
  color: var(--text-body);
}

.legal .email-cta {
  font-weight: 700;
}

/* —— Utilities —— */

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

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* —— Responsive —— */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lede,
  .stat-tiles {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    align-items: center;
  }

  .store-badges {
    justify-content: center;
  }

  .hero-visual {
    min-height: 0;
    padding: 1rem 0;
  }

  .showcase-row {
    grid-template-columns: 1fr;
  }

  .showcase-row.is-reversed .showcase-copy {
    order: 0;
  }

  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-card {
    grid-template-columns: 1fr;
  }

  .price-grid {
    grid-template-columns: 1fr;
    max-width: 26rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-nav a:not(.btn) {
    display: none;
  }
}

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

  .stat-tile strong {
    font-size: 1.2rem;
  }

  .hero-visual .phone-back {
    display: none;
  }

  .hero-visual .phone-back + .phone {
    transform: none;
  }

  .showcase-visual.is-pair .phone:nth-child(2) {
    display: none;
  }

  .showcase-visual.is-pair .phone {
    width: clamp(14.5rem, 62vw, 17.5rem);
  }
}

@media (max-width: 440px) {
  .hide-narrow {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .site-brand {
    font-size: 0.95rem;
  }
}
