:root {
  --app: #f3eefb;
  --elevated: #ffffff;
  --muted: #f6f4fa;
  --ink: #1a1a1f;
  --secondary: #6e6a7c;
  --tertiary: #a6a2b5;
  --accent: #7f6ee8;
  --accent-muted: #efeafd;
  --lavender: #c8b8f2;
  --yellow: #f4b860;
  --sky: #b6d7e8;
  --pink: #f4b8d2;
  --mint: #b6e4c6;
  --success: #28b071;
  --border: #ece7f4;
  --shadow: 0 24px 80px rgba(26, 26, 31, 0.12);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.72);
  --cta-bg: #1a1a1f;
  --cta-text: #ffffff;
  --panel-ink: #1a1a1f;
  --radius: 28px;
  /* Eased transitions for theme + i18n changes (applied below). */
  --theme-transition: background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --lang-transition: opacity 0.18s ease-out;
  color: var(--ink);
  background: var(--app);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
  --app: #15131b;
  --elevated: #1f1c28;
  --muted: #24202e;
  --ink: #f5f1fa;
  --secondary: #a89db8;
  --tertiary: #6e6680;
  --accent: #9b8bff;
  --accent-muted: #2f2750;
  --success: #3bd485;
  --border: #3a3346;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --glass: rgba(31, 28, 40, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --cta-bg: #f5f1fa;
  --cta-text: #15131b;
  --panel-ink: #0f0d14;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* Floating pills sit just outside the phone; clip (not scroll) any
     overflow so they never trigger a horizontal scrollbar. */
  overflow-x: clip;
  background:
    radial-gradient(circle at 78% 12%, rgba(244, 184, 210, 0.45), transparent 26rem),
    radial-gradient(circle at 10% 22%, rgba(182, 215, 232, 0.55), transparent 24rem),
    var(--app);
  color: var(--ink);
  transition: var(--theme-transition);
}

/* Surfaces and inks that swap on theme toggle — animate the change so it
   doesn't snap. Limited to color/background/border so layout stays still. */
.steps-grid article,
.feature,
.toggle-button,
.button,
.brand,
.site-header,
.legal-card,
.legal-page,
.final-card,
.social-panel,
.faq-list,
.faq-list > li,
.faq-summary {
  transition: var(--theme-transition);
}

/* Lang fade: applyLang flips this attr to fade out → swap text → fade in. */
body[data-lang-state="changing"] main {
  opacity: 0;
  transition: var(--lang-transition);
}
body main {
  transition: var(--lang-transition);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: 0 16px 44px rgba(26, 26, 31, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img {
  border-radius: 10px;
}

.brand.small {
  font-size: 15px;
}

.site-header > nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 650;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--elevated);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
}

.header-cta,
.button.primary {
  background: var(--cta-bg);
  color: var(--cta-text);
}

.button.secondary {
  background: var(--elevated);
  color: var(--ink);
  border: 1px solid var(--border);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  align-items: center;
  gap: 56px;
  min-height: calc(100vh - 96px);
  padding-top: 76px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(54px, 8vw, 96px);
  font-weight: 900;
  line-height: 0.94;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5.4vw, 68px);
  font-weight: 900;
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.05;
}

p {
  color: var(--secondary);
  font-size: 18px;
  line-height: 1.6;
}

.hero-lede {
  max-width: 620px;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.25;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.trust-row {
  margin-top: 28px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 750;
}

.trust-row span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--glass);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 680px;
}

.phone-shell {
  position: relative;
  width: min(390px, 82vw);
  padding: 14px;
  border-radius: 48px;
  background: #15131b;
  box-shadow: var(--shadow);
}

.phone-screen {
  min-height: 720px;
  padding: 22px;
  border-radius: 36px;
  background: var(--app);
  overflow: hidden;
  position: relative;
}

.app-top,
.ranking-head,
.rank-row,
.proof-card,
.mission-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 120px;
  height: 26px;
  border-radius: 999px;
  background: #15131b;
  transform: translateX(-50%);
  z-index: 2;
}

.streak-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: #1a1a1f;
  font-size: 13px;
  font-weight: 900;
}

.streak-chip svg {
  width: 15px;
  height: 15px;
}

.tiny {
  display: block;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
}

.app-top {
  margin-top: 22px;
}

.app-top strong {
  display: block;
  margin-top: 2px;
  font-size: 24px;
}

.mission-card,
.proof-card,
.pact-card,
.ranking-card {
  margin-top: 18px;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(26, 26, 31, 0.09);
}

.mission-card {
  padding: 20px;
  color: #1a1a1f;
}

.mission-head,
.badge-row {
  display: flex;
  align-items: center;
}

.mission-head {
  justify-content: space-between;
  gap: 10px;
}

.badge-row {
  flex-wrap: wrap;
  gap: 6px;
}

.mission-card h2 {
  margin: 20px 0 10px;
  font-size: 28px;
  line-height: 1.05;
  color: #1a1a1f;
}

.mission-card p,
.mission-meta span,
.mini-mission,
.proof-card span,
.ranking-head span {
  font-size: 14px;
  line-height: 1.4;
}

.mission-card p {
  color: rgba(26, 26, 31, 0.68);
}

.badge {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.badge.accent {
  background: var(--accent);
  color: #fff;
}

.points-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--elevated);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.points-pill svg {
  width: 14px;
  height: 14px;
}

.difficulty {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(232, 156, 74, 0.22);
  color: #8a4d10;
  font-weight: 850;
}

.meta-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(26, 26, 31, 0.72);
  font-weight: 750;
}

.meta-time svg {
  width: 14px;
  height: 14px;
}

.meta-time i {
  font-style: normal;
}

.proof-card,
.pact-card,
.ranking-card {
  padding: 18px;
  background: var(--elevated);
}

.check {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: 12px;
  border-radius: 999px;
  background: var(--mint);
  color: #1a1a1f;
  flex: 0 0 auto;
}

.check svg {
  width: 22px;
  height: 22px;
}

.proof-card {
  justify-content: flex-start;
}

.proof-text strong {
  font-size: 15px;
}

.proof-card span {
  display: block;
  color: var(--secondary);
}

.pact-card {
  display: grid;
  gap: 11px;
}

.pact-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pact-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--accent-muted);
  color: var(--accent);
  flex: 0 0 auto;
}

.pact-icon svg {
  width: 20px;
  height: 20px;
}

.pact-titles {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pact-titles strong {
  font-size: 17px;
}

.pact-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 650;
}

.pact-date svg {
  width: 13px;
  height: 13px;
}

.pact-date i {
  font-style: normal;
}

.pact-divider {
  height: 1px;
  background: var(--border);
  opacity: 0.85;
}

.pact-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.overline {
  color: var(--tertiary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-count {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.mini-mission {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-mission .dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.mini-mission span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-mission.done span {
  color: var(--tertiary);
  text-decoration: line-through;
}

.mini-points {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.mini-check {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex: 0 0 auto;
}

.see-all {
  justify-self: end;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.rank-row {
  margin-top: 12px;
  gap: 10px;
  justify-content: flex-start;
  padding: 12px;
  border-radius: 16px;
  background: var(--accent-muted);
  font-size: 14px;
}

.rank-row span {
  flex: 1;
  font-weight: 700;
}

.rank-row strong {
  font-weight: 900;
}

.medal {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #1a1a1f;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  flex: 0 0 auto;
}

.medal.gold {
  background: #f5c451;
}

.medal.silver {
  background: #cfd3dc;
}

.medal.bronze {
  background: #e0a875;
}

.ranking-card {
  margin-bottom: 72px;
}

.phone-tabs {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  width: calc(100% - 52px);
  padding: 10px;
  border-radius: 999px;
  background: #1a1a1f;
  transform: translateX(-50%);
}

.phone-tabs span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.phone-tabs span svg {
  width: 21px;
  height: 21px;
}

.phone-tabs .active {
  background: #ffffff;
  color: #1a1a1f;
}

.rank-row.muted {
  background: var(--muted);
}

.float-card {
  position: absolute;
  padding: 9px 13px;
  border-radius: 14px;
  color: #1a1a1f;
  font-weight: 850;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: var(--shadow);
  z-index: 3;
}

/* Pinned to the phone's side edges and pushed mostly OUTSIDE (translateX)
   so they decorate without covering the screen content; the small part
   that overlaps lands on the card padding, not on text/numbers. Hidden on
   small screens — no room beside a near-full-width phone (media query). */
.float-card.score {
  top: 40px;
  right: 0;
  transform: translateX(66%);
  background: var(--yellow);
}

.float-card.rank {
  top: 250px;
  right: 0;
  transform: translateX(66%);
  background: var(--lavender);
}

.float-card.approved {
  top: 150px;
  left: 0;
  transform: translateX(-72%);
  background: var(--mint);
}

.float-card.streak {
  top: 470px;
  left: 0;
  transform: translateX(-66%);
  background: var(--pink);
}

.section-copy {
  max-width: 840px;
}

.section-copy.narrow {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.problem {
  padding-top: 36px;
}

.steps-grid,
.features-grid {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.steps-grid {
  grid-template-columns: repeat(5, 1fr);
}

.steps-grid article,
.feature {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: 0 16px 50px rgba(26, 26, 31, 0.07);
}

.steps-grid article {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 24px;
}

.steps-grid article::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 122px;
  height: 122px;
  border-radius: 34px;
  background: var(--accent-muted);
  transform: rotate(14deg);
}

.steps-grid span {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--accent);
  font-weight: 900;
}

.step-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 26px;
  border-radius: 19px;
  background: var(--ink);
  color: var(--app);
  box-shadow: 0 14px 28px rgba(26, 26, 31, 0.14);
  font-size: 14px;
  font-weight: 950;
}

.step-icon svg {
  width: 27px;
  height: 27px;
}

.steps-grid h3,
.steps-grid p {
  position: relative;
  z-index: 1;
}

.steps-grid p,
.feature p {
  font-size: 15px;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────
   Single column accordion. Each item is a flat row with a soft divider;
   summary toggles between cards by rotating the chevron and revealing
   .faq-content with a smooth height animation (grid-template-rows trick). */
.faq-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.faq-list > li {
  border-bottom: 1px solid var(--border);
}
.faq-list details {
  background: transparent;
}
.faq-list summary {
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq-summary:hover {
  color: var(--accent);
}
.faq-question {
  flex: 1;
  min-width: 0;
}
.faq-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-muted);
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-list details[open] .faq-icon {
  transform: rotate(180deg);
}
/* Smooth open/close: animate a wrapper grid from 0fr → 1fr.
   The inner element clips the overflow until the row gains height. */
.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-list details[open] .faq-content {
  grid-template-rows: 1fr;
}
.faq-content > p {
  overflow: hidden;
  margin: 0;
  padding: 0 4px 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--secondary);
}

.social-panel {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 36px;
  align-items: center;
  padding: clamp(28px, 6vw, 72px);
  border-radius: 40px;
  background: var(--panel-ink);
  box-shadow: var(--shadow);
}

.social-panel h2,
.social-panel p {
  color: #fff;
}

.social-panel p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.chat-preview {
  display: grid;
  gap: 14px;
}

.bubble {
  max-width: 82%;
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--elevated);
  font-weight: 750;
}

.bubble.right {
  justify-self: end;
  background: var(--mint);
}

.features-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 250px;
  padding: 28px;
  color: #1a1a1f;
  overflow: hidden;
}

/* Title sits right above its subtitle — let the flex gap own the spacing
   instead of the global h3 margin (which made the title↔text gap too big). */
.feature h3 {
  margin-bottom: 0;
}

.feature.white {
  color: var(--ink);
}

.feature p {
  color: rgba(26, 26, 31, 0.68);
}

.feature.white p {
  color: var(--secondary);
}

.feature-visual {
  display: grid;
  min-height: 96px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.52);
}

.mission-mini {
  align-content: center;
  gap: 8px;
  padding: 16px;
}

.mission-mini span,
.mission-mini b {
  justify-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.mission-mini strong {
  font-size: 20px;
}

.proof-mini {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}

.proof-mini span {
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(127, 110, 232, 0.2), rgba(255, 255, 255, 0.64)),
    #fff;
}

.proof-mini strong {
  grid-column: 1 / -1;
  align-self: end;
  font-size: 14px;
}

.validate-mini {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: center;
  padding: 16px;
}

.validate-mini b {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  font-weight: 950;
}

.validate-mini b {
  height: 54px;
}

.validate-mini b svg {
  width: 24px;
  height: 24px;
}

.validate-mini b.ok {
  color: var(--success);
}

.validate-mini b.pending {
  color: var(--secondary);
}

.validate-mini b:last-child {
  opacity: 0.55;
}

.medal-mini {
  grid-auto-flow: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.medal-mini b {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #1a1a1f;
  font-size: 17px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(26, 26, 31, 0.12);
}

/* The winner sits taller + centered → a little podium. */
.medal-mini .gold {
  width: 58px;
  height: 58px;
  font-size: 20px;
  background: #f5c451;
}

.medal-mini .silver {
  background: #cfd3dc;
}

.medal-mini .bronze {
  background: #e0a875;
}

.stats-mini {
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 8px;
  padding: 16px;
}

.stats-mini i {
  display: block;
  border-radius: 999px 999px 10px 10px;
  background: rgba(26, 26, 31, 0.72);
}

.stats-mini i:nth-child(1) {
  height: 34px;
}

.stats-mini i:nth-child(2) {
  height: 52px;
}

.stats-mini i:nth-child(3) {
  height: 44px;
}

.stats-mini i:nth-child(4) {
  height: 70px;
}

.stats-mini i:nth-child(5) {
  height: 86px;
}

.share-mini {
  align-content: center;
  gap: 8px;
  padding: 16px;
}

.share-mini strong,
.share-mini span {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--muted);
  font-weight: 900;
}

.lavender {
  background: var(--lavender);
}

.yellow {
  background: var(--yellow);
}

.sky {
  background: var(--sky);
}

.pink {
  background: var(--pink);
}

.mint {
  background: var(--mint);
}

.white {
  background: var(--elevated);
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.category-list span {
  padding: 15px 18px;
  border-radius: 999px;
  background: var(--elevated);
  box-shadow: 0 10px 28px rgba(26, 26, 31, 0.06);
  font-weight: 800;
}

.final-card {
  padding: clamp(34px, 7vw, 86px);
  border-radius: 44px;
  background:
    linear-gradient(135deg, rgba(200, 184, 242, 0.95), rgba(246, 244, 250, 0.88)),
    var(--elevated);
  box-shadow: var(--shadow);
  color: #1a1a1f;
  text-align: center;
}

.final-card p {
  color: rgba(26, 26, 31, 0.68);
}

.final-card h2,
.final-card p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Download / store badges ──────────────────────────────────────────────
   App Store + Google Play CTAs. Built from the same cta-bg/cta-text tokens as
   .button so they invert correctly on the theme toggle. Links are placeholders
   (#) until the apps are live on the stores. */
.download .section-copy {
  margin: auto;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 60px;
  padding: 0 24px;
  border-radius: 18px;
  background: var(--cta-bg);
  color: var(--cta-text);
  box-shadow: 0 14px 34px rgba(26, 26, 31, 0.12);
  transition: var(--theme-transition), transform 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge svg {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
}

.store-badge span {
  display: grid;
  gap: 1px;
  text-align: left;
  line-height: 1.05;
}

.store-badge small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.82;
}

.store-badge strong {
  font-size: 19px;
  font-weight: 850;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 52px;
  color: var(--secondary);
}

footer p {
  margin: 0;
  font-size: 15px;
}

.footer-brand {
  display: grid;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass);
  color: var(--secondary);
  font-size: 14px;
  font-weight: 800;
}

.legal-page {
  background:
    radial-gradient(circle at 78% 12%, rgba(244, 184, 210, 0.32), transparent 24rem),
    radial-gradient(circle at 10% 16%, rgba(182, 215, 232, 0.38), transparent 22rem),
    var(--app);
}

.legal-shell {
  width: min(940px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 92px;
}

.legal-hero {
  padding: 62px 0 34px;
}

.legal-hero h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 76px);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.legal-meta span {
  padding: 10px 13px;
  border-radius: 999px;
  background: var(--glass);
  color: var(--secondary);
  font-size: 14px;
  font-weight: 800;
}

.legal-card {
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--glass-border);
  border-radius: 34px;
  background: var(--glass);
  box-shadow: 0 16px 50px rgba(26, 26, 31, 0.07);
  backdrop-filter: blur(18px);
}

.legal-card h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.72;
}

.legal-card ul {
  padding-left: 22px;
}

.legal-card a {
  color: var(--accent);
  font-weight: 850;
}

.legal-note {
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--accent-muted);
  color: var(--ink);
  font-weight: 750;
}

[hidden] {
  display: none !important;
}

/* Below ~1080px the two-column hero gets too tight for the side pills to
   clear the phone, so hide them here and in every smaller layout. */
@media (max-width: 1080px) {
  .float-card {
    display: none;
  }
}

@media (max-width: 920px) {
  .site-header > nav {
    display: none;
  }

  .hero,
  .social-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
    min-height: 0;
  }

  .hero-visual {
    min-height: 610px;
  }

  .phone-screen {
    min-height: 650px;
  }

  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* One-column hero → center everything. */
  .hero-copy {
    text-align: center;
  }

  .hero-copy h1,
  .hero-lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .trust-row {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
    gap: 10px;
  }

  .header-cta {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .toggle-button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .section {
    width: min(100% - 24px, 1180px);
    padding: 64px 0;
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 38px;
  }

  p,
  .hero-lede {
    font-size: 18px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .phone-shell {
    width: min(342px, 92vw);
    border-radius: 42px;
    transform: none;
  }

  .phone-screen {
    min-height: 640px;
    padding: 18px;
  }

  .mission-card h2 {
    font-size: 24px;
  }


  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid article,
  .feature {
    min-height: 0;
  }

  .steps-grid span {
    margin-bottom: 24px;
  }

  .social-panel,
  .final-card {
    border-radius: 30px;
  }

  /* Section headers + "announcement" blocks center in mobile so they
     match the hero rhythm. Card content and FAQ items stay left-aligned
     (long-form text reads better left-aligned). */
  .section-copy,
  .social-panel > div:first-child,
  .final-card {
    text-align: center;
  }

  .section-copy > *,
  .social-panel > div:first-child > *,
  .final-card > * {
    margin-left: auto;
    margin-right: auto;
  }

  /* The final CTA button is inline by default; keep it block + auto so
     it centers cleanly under its paragraph. */
  .final-card .button {
    display: inline-flex;
  }

  /* Categories pills: with text-align center on the parent .section-copy,
     the wrap-flex pills still flow from the left and look ragged. Center
     the flex line so the chips group in the middle. */
  .category-list {
    justify-content: center;
  }

  /* Center the brand block inside .footer-brand so the logo + tagline
     stack matches the centered footer links below. */
  .footer-brand {
    align-items: center;
    text-align: center;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
