/* PromiseTap marketing site
   Brand tokens mirror PromiseTapApp/lib/core/theme/app_theme.dart and docs/DESIGN.md. */

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-var.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --navy: #17245a;
  --ink: #172447;
  --muted: #556384;
  --line: #d5def4;
  --lavender: #e9e5ff;
  --mint: #e1f5ed;
  --mint-ink: #1d5c43;
  --peach: #fff0e7;
  --peach-ink: #9b421b;
  --brand: #8135d5;
  --accent: #7138e6;
  --surface: #ffffff;
  --gradient: linear-gradient(135deg, #b52b96 0%, #8135d5 48%, #384bd4 100%);
  --bg-gradient: linear-gradient(135deg, #e8e8ff 0%, #f5f2ff 48%, #e3f5ff 100%);
  --header-gradient: linear-gradient(120deg, #172453 0%, #303f89 55%, #4d45a8 100%);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.9);
  --shadow: 0 1px 2px rgba(23, 36, 90, 0.06), 0 12px 32px rgba(67, 91, 168, 0.12);
  --shadow-lg: 0 2px 6px rgba(23, 36, 90, 0.08), 0 30px 60px rgba(67, 91, 168, 0.18);

  /* Type */
  --font-head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Shape + rhythm */
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
  --focus: 0 0 0 3px #fff, 0 0 0 6px #7138e6;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: #f5f2ff var(--bg-gradient) fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.625rem); font-weight: 800; }
h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

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

.section { padding-block: var(--section); }
.section[data-flush] { padding-top: 0; }
.template-header { padding-block: 24px; font-weight: 800; }
.template-content { max-width: 800px; padding-top: 32px; }
.template-content h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-top: 32px; }
.template-quote { margin: 28px 0; padding: clamp(20px, 4vw, 32px); border-inline-start: 4px solid #8135d5; border-radius: 16px; background: #f5f2ff; font-size: clamp(1.15rem, 3vw, 1.5rem); line-height: 1.6; }
.template-quote p { margin: 0; }
.template-languages { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin-top: 40px; }
.template-languages a { display: flex; align-items: center; min-height: 48px; padding: 8px 14px; border: 1px solid #d9d1ee; border-radius: 999px; text-decoration: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
}
.eyebrow svg { width: 16px; height: 16px; color: var(--brand); }

.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p:not(.eyebrow) { font-size: 1.125rem; color: var(--muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  font: 600 1rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 10px 24px rgba(129, 53, 213, 0.3);
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(129, 53, 213, 0.38); }
.btn-secondary {
  color: var(--navy);
  background: var(--glass);
  border-color: rgba(129, 53, 213, 0.22);
}
.btn-secondary:hover { color: var(--navy); background: #fff; }
.btn-light { color: var(--navy); background: #fff; }
.btn-light:hover { color: var(--navy); transform: translateY(-1px); }
.btn-small { min-height: 48px; padding: 10px 18px; font-size: 0.9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 255, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(213, 222, 244, 0.7);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font: 800 1.25rem/1 var(--font-head);
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--navy); }
.brand img { width: 36px; height: 36px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  padding: 0;
  color: var(--navy);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-menu { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0; padding: 0;
  list-style: none;
}
.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 12px;
}
.site-nav a:not(.btn):hover { background: rgba(233, 229, 255, 0.8); color: var(--navy); }
.site-nav .nav-cta { margin-left: 8px; }

@media (max-width: 879px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: 8px var(--gutter) 20px;
    background: #faf9ff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(23, 36, 90, 0.1);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; }
  .js .site-nav a:not(.btn) { width: 100%; }
  .js .site-nav .nav-cta { margin: 8px 0 0; }
  .js .site-nav .nav-cta .btn { width: 100%; }
  /* Without JS: wrap the links under the brand. */
  .no-js .header-inner { flex-wrap: wrap; padding-block: 8px; }
  .no-js .site-nav ul { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}
.hero::before { width: 520px; height: 520px; top: -160px; right: -120px; background: radial-gradient(circle, #d7b8ff 0%, transparent 70%); }
.hero::after { width: 460px; height: 460px; bottom: -200px; left: -160px; background: radial-gradient(circle, #b9e3ff 0%, transparent 70%); }

.hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.02fr 1fr; }
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Fallback colour if background-clip:text is unsupported */
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .grad { color: var(--brand); -webkit-text-fill-color: currentColor; }
}
.hero-lead {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 20px;
}
@media (max-width: 479px) {
  .hero-actions .btn { width: 100%; }
}
.platform-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.platform-note span { display: inline-flex; align-items: center; gap: 6px; }
.platform-note > span { flex-wrap: wrap; }
.platform-note svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.soon {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--peach-ink);
  background: var(--peach);
  border-radius: 999px;
}

/* Composition: artwork card top-right, phone overlapping bottom-left.
   Fixed aspect ratio reserves space up-front (no layout shift). */
.hero-art {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  aspect-ratio: 100 / 74;
}
.hero-photo {
  position: absolute;
  top: 2%;
  right: 0;
  width: 84%;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1264 / 848;
  background: #3b3566;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34%;
}
.hero-phone .phone { padding: 6px; border-radius: 26px; }
.hero-phone .phone img { border-radius: 20px; }
.phone {
  padding: 8px;
  background: #0f1736;
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
}
.phone img { border-radius: 26px; width: 100%; }
.hero-chip {
  position: absolute;
  right: 0;
  bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 60%;
  padding: 12px 16px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--ink);
}
.hero-chip strong { display: block; color: var(--navy); font-size: 0.9375rem; }
.hero-chip .tick {
  flex: none;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 12px;
  color: #fff;
  background: var(--gradient);
}
.hero-chip .tick svg { width: 20px; height: 20px; }
@media (max-width: 479px) {
  .hero-chip { display: none; }
}

/* ---------- Trust strip ---------- */
.trust {
  padding-block: 0 clamp(24px, 4vw, 40px);
}
.trust ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px;
  margin: 0; padding: 0;
  list-style: none;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.trust svg { width: 22px; height: 22px; flex: none; color: var(--brand); }

/* ---------- Cards ---------- */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  max-width: 980px;
  margin-inline: auto;
}
.plan { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 4px; }
.plan h3 { margin: 0; }
.plan .price { margin: 8px 0 0; color: var(--muted); }
.plan .amount { font: 800 clamp(2rem, 4vw, 2.5rem)/1.1 var(--font-head); color: var(--navy); }
.plan .plan-lead { margin: 8px 0 0; color: var(--ink); font-weight: 600; }
.plan .plan-badge { align-self: flex-start; margin: 0 0 8px; padding: 2px 10px; border-radius: 999px; background: var(--gradient); color: #fff; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.01em; }
.plan .plan-badge[hidden] { display: none; }
.plan .plan-trial { margin: 4px 0 0; color: var(--mint-ink); font-weight: 600; }
.plan .check-list { margin-bottom: 24px; }
.plan .btn { margin-top: auto; }
.plan-featured { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box; box-shadow: var(--shadow-lg); }
.pricing-note { max-width: 680px; margin: 24px auto 0; text-align: center; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  margin: 0; padding: 0;
  list-style: none;
  counter-reset: step;
}
.step { padding: 28px 24px; position: relative; }
.step .num {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 20px;
  font: 800 1.125rem/1 var(--font-head);
  color: #fff;
  background: var(--gradient);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(129, 53, 213, 0.28);
}
.step p { margin: 0; color: var(--muted); }
.step .quote {
  margin-top: 16px;
  padding: 10px 14px;
  font: 700 0.9375rem/1.4 var(--font-head);
  color: var(--navy);
  background: var(--lavender);
  border-radius: 12px;
}

/* ---------- Features (bento) ---------- */
.bento {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .f-family { grid-column: span 4; grid-row: span 2; }
  .f-changes { grid-column: span 2; }
  .f-notes { grid-column: span 2; }
  .f-history, .f-done, .f-langs { grid-column: span 2; }
  .f-platforms { grid-column: span 3; }
  .f-control { grid-column: span 3; }
}
.feature { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; }
.feature p { color: var(--muted); margin: 0; }
.feature .icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 18px;
  color: var(--accent);
  background: var(--lavender);
  border-radius: 14px;
}
.feature .icon svg { width: 24px; height: 24px; }
.feature-art { width: 120px; height: 120px; margin-top: auto; align-self: flex-end; border-radius: 20px; }

.f-family { display: grid; gap: 24px; }
@media (min-width: 720px) and (max-width: 1039px) { .f-family { grid-column: 1 / -1; } }
@media (min-width: 720px) { .f-family { grid-template-columns: 1fr 1fr; align-items: center; } }

/* Fictional "responses" mini-UI, mirrors Figma node 46:1766 */
.responses {
  padding: 18px;
  background: rgba(245, 242, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.responses .promise-quote {
  margin: 0 0 4px;
  font: 800 1.125rem/1.3 var(--font-head);
  color: var(--navy);
}
.responses .meta { margin: 0 0 14px; font-size: 0.8125rem; color: var(--muted); }
.responses ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.responses li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(23, 36, 90, 0.05);
}
.avatar {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-initial {
  display: grid; place-items: center;
  font: 700 0.9375rem/1 var(--font-head);
  color: var(--navy);
  background: var(--lavender);
}
.responses .who { flex: 1; min-width: 0; font-size: 0.875rem; line-height: 1.35; }
.responses .who strong { display: block; color: var(--navy); font-size: 0.9375rem; }
.responses .who span { color: var(--muted); }
.example-note { margin: 10px 0 0; font-size: 0.75rem; color: var(--muted); }

.pill {
  flex: none;
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 999px;
}
.pill-active { color: var(--navy); background: var(--lavender); }
.pill-pending { color: var(--peach-ink); background: var(--peach); }
.pill-declined { color: #3d4a6b; background: #e6ecf7; }
.pill-done { color: var(--mint-ink); background: var(--mint); }

.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0; padding: 0;
  list-style: none;
}
.lang-list li {
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.check-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.check-list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--brand); }

/* ---------- Privacy band ---------- */
.privacy-band {
  position: relative;
  color: #e9ecff;
  background: var(--header-gradient);
  border-radius: clamp(24px, 4vw, 40px);
  padding: clamp(32px, 6vw, 72px);
  overflow: hidden;
}
.privacy-band::after {
  content: "";
  position: absolute;
  inset: auto -120px -160px auto;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 43, 150, 0.45), transparent 70%);
  pointer-events: none;
}
.privacy-band h2 { color: #fff; }
.privacy-band .lead { max-width: 640px; font-size: 1.125rem; color: #cfd6f6; }
.privacy-band .eyebrow { color: #fff; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }
.privacy-band .eyebrow svg { color: #f3c4ff; }
.principles {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 36px 0 0; padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .principles { grid-template-columns: repeat(4, 1fr); } }
.principles li {
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}
.principles h3 { color: #fff; font-size: 1.0625rem; display: flex; gap: 10px; align-items: center; }
.principles h3 svg { width: 22px; height: 22px; color: #f3c4ff; flex: none; }
.principles p { margin: 0; color: #cfd6f6; font-size: 0.9688rem; }

/* ---------- Screens ---------- */
.screens {
  display: grid;
  gap: 24px;
  align-items: end;
}
@media (min-width: 900px) {
  .screens { grid-template-columns: 2.8fr 1fr 1fr; align-items: start; }
}
.screens figure { margin: 0; }
.screens figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--muted); text-align: center; }
.browser {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #f0f3ff;
  border-bottom: 1px solid var(--line);
}
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #c9d1ea; }
.screens .phone { max-width: 260px; margin-inline: auto; }
.mobile-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (min-width: 900px) { .mobile-pair { display: contents; } }
.screens-note { margin: 24px 0 0; text-align: center; font-size: 0.875rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(23, 36, 90, 0.04);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 20px;
  font: 700 1.0625rem/1.4 var(--font-head);
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--accent); transition: transform 0.2s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details > div { padding: 0 20px 20px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* ---------- Final CTA ---------- */
.cta-final {
  position: relative;
  overflow: hidden;
  border-radius: clamp(24px, 4vw, 40px);
  color: #fff;
  text-align: center;
  padding: clamp(56px, 9vw, 112px) clamp(20px, 5vw, 64px);
  background: #1a1d45;
  isolation: isolate;
}
.cta-final img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 19, 48, 0.78) 0%, rgba(23, 36, 90, 0.7) 55%, rgba(14, 19, 48, 0.86) 100%);
}
.cta-final h2 { color: #fff; max-width: 720px; margin-inline: auto; }
.cta-final p { max-width: 560px; margin: 0 auto 28px; color: #e3e7ff; font-size: 1.125rem; }
.cta-final .hero-actions { justify-content: center; margin: 0 0 18px; }
.cta-final .platform-note { justify-content: center; color: #e3e7ff; }
.cta-final .platform-note svg { color: #f3c4ff; }
.cta-final .platform-note > span { flex-wrap: nowrap; }
.cta-final .btn-secondary { color: #fff; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); }
.cta-final .btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }
.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.store-badges--hero { justify-content: flex-start; margin: 16px 0 0; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 172px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  text-align: left;
}
a.store-badge:hover { color: #fff; background: #1a1a1a; }
.store-badge svg { width: 28px; height: 28px; flex: none; }
.store-badge > span { display: flex; flex-direction: column; font-size: 1.15rem; font-weight: 600; line-height: 1.15; }
.store-badge small { font-size: 0.7rem; font-weight: 500; opacity: 0.85; }
.store-badge.is-soon { opacity: 0.6; cursor: default; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--section);
  padding-block: 40px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.9375rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 10px;
  color: var(--ink);
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }

/* "Cookie settings" reopen link (a button styled like the footer links; shown by js/consent.js) */
.footer-link-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 10px;
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
}
.footer-link-button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Consent banner (js/consent.js) ---------- */
.consent {
  position: fixed;
  z-index: 90;
  inset: auto 0 0 0;
  padding: 0 max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  pointer-events: none;
}
.consent[hidden] { display: none; }
html.has-consent-banner { scroll-padding-bottom: var(--consent-h, 0px); }
html.has-consent-banner body { padding-bottom: var(--consent-h, 0px); }
.consent-inner {
  pointer-events: auto;
  max-width: 760px;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  margin-inline: auto;
  padding: 20px clamp(16px, 4vw, 28px);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.consent-title { margin: 0 0 6px; font-size: 1.125rem; }
.consent-title:focus { outline: none; box-shadow: none; }
.consent-title:focus-visible { box-shadow: var(--focus); }
.consent-text { margin: 0 0 16px; font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }
.consent-text a { color: var(--accent); font-weight: 600; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Accept and Reject are deliberately identical: same colour, size and weight (no nudging). */
.consent-btn {
  flex: 1 1 180px;
  min-height: 48px;
  padding: 12px 20px;
  color: #fff;
  background: var(--navy);
}
.consent-btn:hover { background: #26357a; }
.consent-btn[aria-pressed="true"]::before { content: "✓"; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .consent-inner { animation: consent-in 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes consent-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}
@media (forced-colors: active) {
  .consent-inner { border: 2px solid CanvasText; }
}

/* ---------- Simple content pages (privacy / terms / 404) ---------- */
.doc { max-width: 760px; margin-inline: auto; padding-block: clamp(40px, 7vw, 80px); }
.doc .card { padding: clamp(24px, 5vw, 48px); }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); }
.doc h2 { font-size: 1.375rem; margin-top: 1.6em; }
.doc ul { padding-left: 1.25em; }
.draft-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 28px;
  padding: 14px 18px;
  color: var(--peach-ink);
  background: var(--peach);
  border: 1px solid #f6cfb6;
  border-radius: var(--radius);
  font-weight: 500;
}
.draft-banner svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.doc-meta { color: var(--muted, #556384); font-size: 0.9375rem; margin-top: -0.25em; }
.legal-body { overflow-wrap: anywhere; }
.legal-body h3 { font-size: 1.125rem; margin-top: 1.4em; }
.legal-body ol { padding-left: 1.25em; }
.legal-body li + li { margin-top: 0.35em; }
.legal-body a { text-decoration: underline; text-underline-offset: 3px; }
.legal-body .table-scroll { overflow-x: auto; margin: 1em 0; border: 1px solid rgba(23, 36, 71, 0.12); border-radius: 12px; }
.legal-body .table-scroll:focus-visible { outline: 3px solid #8135d5; outline-offset: 2px; }
.legal-body table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.9375rem; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(23, 36, 71, 0.1); }
.legal-body th { background: rgba(129, 53, 213, 0.06); font-weight: 600; }
.legal-body tr:last-child td { border-bottom: 0; }
.legal-body code { font-size: 0.875em; overflow-wrap: anywhere; }
.center { text-align: center; }
.not-found img { width: 160px; height: 160px; margin: 0 auto 16px; border-radius: 24px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .reveal-2 { animation-delay: 0.08s; }
  .reveal-3 { animation-delay: 0.16s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Reduced transparency / forced colours: opaque surfaces (mirrors the app's accessibility setting) */
@media (prefers-reduced-transparency: reduce) {
  .card, .trust li, .faq details, .site-header, .hero-chip, .eyebrow { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .hero h1 .grad { color: CanvasText; -webkit-text-fill-color: CanvasText; background: none; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
