/* ============ TOKENS ============ */
:root {
  --warm-white: #FBF8F3;
  --warm-white-2: #F6F1E8;
  --ink: #1A1814;
  --ink-soft: #514C44;
  --ink-muted: #8A847B;
  --line: rgba(26, 24, 20, 0.08);

  --pink: #F4C9D8;
  --blue: #C9D9F4;
  --purple: #D9C9F4;
  --accent: #1A1814;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  --max: 1180px;
  --pad: clamp(20px, 4vw, 64px);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; cursor: pointer; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--warm-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* ============ AURORA BACKDROP ============ */
.aurora-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 780px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora-container {
  width: 100%;
  height: 100%;
}
.aurora-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ============ LAYOUT ============ */
.section,
.hero,
.footer-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 1;
}

.section { padding-block: clamp(80px, 11vw, 140px); }

/* ============ NAV ============ */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-top: 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: #fff;
  border-radius: 0;
  padding: 16px var(--pad);
  box-shadow: 0 8px 24px -16px rgba(26, 24, 20, 0.18);
}
.nav-logo img {
  height: 30px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 15px;
  color: var(--ink-soft);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-accent {
  background: var(--ink);
  color: var(--warm-white);
}
.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -12px rgba(26, 24, 20, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--warm-white);
  border-color: var(--ink);
}

/* Primary (App Store) + Secondary (How it works) for hero */
.btn-primary {
  background: var(--ink);
  color: #fff;
  padding: 14px 24px;
  gap: 12px;
  font-size: 15px;
  border-radius: 999px;
}
.btn-primary svg { width: 22px; height: 22px; }
.btn-primary span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}
.btn-primary small {
  font-size: 10px;
  letter-spacing: 0.04em;
  opacity: 0.85;
  font-weight: 400;
}
.btn-primary strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.btn-secondary {
  background: #fff;
  color: var(--ink);
  padding: 16px 26px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.btn-primary:hover,
.btn-secondary:hover {
  box-shadow: 0 0 16px 0 #DCE4FF;
}

/* Gradient primary (Uiverse — Allyhere) */
.btn-donate {
  --clr-font-main: hsla(0, 0%, 20%, 1);
  --btn-bg-1: hsla(261, 85%, 70%, 1);
  --btn-bg-2: hsla(258, 44%, 48%, 1);
  --btn-bg-color: hsla(0, 0%, 100%, 1);
  --radii: 1.5em;
  cursor: pointer;
  padding: 0.9em 1.4em;
  min-width: 120px;
  min-height: 44px;
  font-size: var(--size, 1rem);
  font-weight: 500;
  transition: 0.8s;
  background-size: 280% auto;
  background-image: linear-gradient(
    325deg,
    var(--btn-bg-2) 0%,
    var(--btn-bg-1) 55%,
    var(--btn-bg-2) 90%
  );
  border: none;
  border-radius: var(--radii);
  color: var(--btn-bg-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0px 0px 20px rgba(178, 150, 233, 0.5),
    0px 5px 5px -1px rgba(178, 150, 233, 0.25),
    inset 4px 4px 8px rgba(178, 150, 255, 0.5),
    inset -4px -4px 8px rgba(206, 185, 248, 0.35);
}
.btn-donate:hover { background-position: right top; }
.btn-donate:is(:focus, :focus-visible, :active) {
  outline: none;
  box-shadow:
    0 0 0 3px var(--btn-bg-color),
    0 0 0 6px var(--btn-bg-2);
}
@media (prefers-reduced-motion: reduce) {
  .btn-donate { transition: linear; }
}

/* ============ HERO ============ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(70px, 10vw, 130px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 7.5vw, 96px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: #000;
}
.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 0 40px;
}
.lede.center {
  margin-inline: auto;
  text-align: center;
}
.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.social-proof {
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.stars {
  color: #E8B339;
  letter-spacing: 1px;
  font-size: 13px;
}
.social-proof strong { color: var(--ink); font-weight: 600; }

/* ============ HERO VISUAL (PHONE) ============ */
.hero-visual {
  display: flex;
  justify-content: center;
}
.phone-frame {
  width: 320px;
  height: 640px;
  background: linear-gradient(160deg, #fff 0%, #FBF8F3 100%);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 40px 80px -20px rgba(181, 140, 201, 0.35),
    0 20px 40px -20px rgba(143, 166, 214, 0.3),
    0 0 0 1px var(--line);
  position: relative;
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 22px;
  background: var(--ink);
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at top right, rgba(217, 201, 244, 0.5), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(244, 201, 216, 0.5), transparent 60%),
    var(--warm-white);
  border-radius: 32px;
  padding: 52px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.phone-bar { display: none; }
.phone-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  text-align: center;
}
.phone-verse {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--ink);
  line-height: 1.3;
}
.phone-ref {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0;
  letter-spacing: 0.05em;
}
.phone-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 13px;
  max-width: 80%;
  line-height: 1.4;
}
.bubble.user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--warm-white);
  border-bottom-right-radius: 6px;
}
.bubble.bot {
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}

/* ============ SECTION TITLES ============ */
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 auto 56px;
  max-width: 820px;
  text-align: center;
}
.section-title em {
  font-style: italic;
  background: linear-gradient(120deg, #B58CC9, #8FA6D6, #D89BB0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-title.big { font-size: clamp(44px, 5.4vw, 72px); text-align: center; margin-inline: auto; }

/* ============ DILEMMA ============ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 48px;
}
.card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(26, 24, 20, 0.12);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--ink);
}
.icon-pink { background: var(--pink); }
.icon-blue { background: var(--blue); }
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* ============ TRUTH (quote) ============ */
.truth {
  text-align: center;
  padding-block: clamp(140px, 16vw, 220px);
  max-width: none;
  padding-inline: var(--pad);
  background-image: url("assets/BG_Healing.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.truth > * { position: relative; z-index: 1; }
.truth-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 auto;
  max-width: 900px;
  text-align: center;
}

/* ============ EVERYTHING YOU NEED ============ */
.everything {
  background: linear-gradient(180deg, #F3F6FF 0%, #D8E1FF 100%);
  max-width: none;
  padding-inline: var(--pad);
}
.everything > .section-title,
.everything > .everything-grid {
  max-width: var(--max);
  margin-inline: auto;
}
.everything .section-title {
  text-align: center;
  margin-bottom: 56px;
}
.everything-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ecard {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: 0 20px 40px -28px rgba(75, 100, 200, 0.25);
}
.ecard h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ink);
}
.ecard p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ============ TRUSTPILOT STARS ============ */
.tp-stars {
  display: inline-flex;
  gap: 3px;
  margin-bottom: 16px;
}
.tp-star {
  width: 22px;
  height: 22px;
  background: #00B67A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.tp-star::after {
  content: "";
  width: 14px;
  height: 14px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/></svg>") center/contain no-repeat;
}

/* ============ STORE BUTTONS ============ */
.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--warm-white);
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store-btn:hover {
  box-shadow: 0 0 16px 0 #DCE4FF;
}
.store-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}
.store-text small {
  font-size: 10px;
  letter-spacing: 0.04em;
  opacity: 0.85;
  text-transform: uppercase;
}
.store-text strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
/* ============ FEATURES ============ */
.features-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}
.features-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-align: left;
  color: var(--ink);
}
.features-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  text-align: left;
  max-width: 480px;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-block: 60px;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
}
.feature-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 16px;
}
.feature-copy h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.feature-copy p {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 440px;
  line-height: 1.6;
}
.feature-visual {
  display: flex;
  justify-content: center;
}
.mini-phone {
  width: 280px;
  min-height: 320px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: 0 30px 60px -25px rgba(143, 166, 214, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.mini-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 85%;
}
.mini-bubble.user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--warm-white);
}
.mini-bubble.bot {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: var(--ink);
}
.mini-verse {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  text-align: center;
  margin: 0;
  line-height: 1.3;
}
.mini-ref {
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
  letter-spacing: 0.05em;
}
.mini-phone.chart {
  flex-direction: row;
  align-items: flex-end;
  gap: 14px;
  padding: 40px 26px;
}
.bar {
  flex: 1;
  background: linear-gradient(180deg, var(--purple), var(--blue));
  border-radius: 8px 8px 4px 4px;
  min-height: 20px;
  animation: grow 1.2s ease-out backwards;
}
.bar:nth-child(1) { animation-delay: 0.1s; }
.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.3s; }
.bar:nth-child(4) { animation-delay: 0.4s; }
.bar:nth-child(5) { animation-delay: 0.5s; }
.bar:nth-child(6) { animation-delay: 0.6s; }
@keyframes grow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); }
}

/* ============ REVIEWS ============ */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  margin: 0;
}
.review .stars { margin-bottom: 16px; font-size: 14px; }
.review p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
  margin: 0 0 18px;
  color: var(--ink);
}
.review footer {
  font-size: 14px;
  color: var(--ink-muted);
  font-style: normal;
}

/* ============ FOUNDERS' CIRCLE (single card) ============ */
.founders-card {
  position: relative;
  width: 100%;
  margin-inline: auto;
  padding: 64px clamp(40px, 7vw, 96px) 56px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse at top right, rgba(217, 201, 244, 0.5), transparent 70%),
    radial-gradient(ellipse at bottom left, rgba(244, 201, 216, 0.4), transparent 70%),
    #fff;
  border: 1px solid rgba(181, 140, 201, 0.25);
  box-shadow: 0 40px 80px -28px rgba(181, 140, 201, 0.3);
  text-align: center;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 0;
  margin: 4px 0 18px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00B67A;
  animation: livePulse 1.8s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 182, 122, 0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(0, 182, 122, 0);  }
  100% { box-shadow: 0 0 0 0 rgba(0, 182, 122, 0);    }
}
.founders-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
}
.founders-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 auto 36px;
  max-width: 460px;
}
.founders-counter {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1;
  margin: 0 0 36px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
}
.counter-num {
  font-size: 120px;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.counter-denom {
  font-size: 56px;
  letter-spacing: -0.02em;
  color: var(--ink-muted);
}
.counter-label {
  display: block;
  width: 100%;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 14px;
}
.founders-benefits {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto 36px;
  text-align: left;
  padding: 0;
  list-style: none;
}
.founders-benefits li {
  font-size: 15px;
  color: var(--ink);
  padding-left: 26px;
  position: relative;
  line-height: 1.45;
}
.founders-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #0E7F4F;
  font-weight: 700;
}
.founders-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.founders-primary { min-width: 240px; }
.founders-cta-sub {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
}
.link-secondary {
  background: transparent;
  border: 0;
  padding: 4px 2px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.link-secondary:hover { color: var(--ink); }

/* ============ FAQ ============ */
.faq .section-title { text-align: center; margin-inline: auto; }
.faq-list {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
details {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 28px;
  transition: background 0.25s ease;
}
details[open] { background: rgba(255, 255, 255, 0.85); }
summary {
  font-family: var(--serif);
  font-size: 22px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 300;
  color: var(--ink-muted);
  transition: transform 0.25s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

/* ============ JOIN MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 20, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFade 0.25s ease;
}
.modal-card {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 40px 80px -20px rgba(26, 24, 20, 0.35);
  animation: modalPop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-close:hover {
  background: var(--warm-white-2);
  color: var(--ink);
}
.modal-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 24px;
  text-align: center;
  color: var(--ink);
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal-field span {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}
.modal-field input {
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--warm-white);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.modal-field input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(220, 228, 255, 0.6);
}
.modal-submit {
  margin-top: 6px;
  width: 100%;
}
.modal-view[hidden] { display: none; }
.modal-view[data-view="success"] {
  text-align: center;
}
.modal-message {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 24px;
  line-height: 1.5;
}
.modal-view[data-view="success"] .btn {
  min-width: 140px;
}

@keyframes modalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 40px var(--pad) 40px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.footer-logo {
  height: 28px;
  opacity: 1;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}
.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-links a {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--ink); }

/* ============ LEGAL PAGES ============ */
.legal-toc {
  position: fixed;
  top: 110px;
  right: clamp(20px, 3vw, 40px);
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 20px;
  box-shadow: 0 20px 40px -28px rgba(26, 24, 20, 0.2);
  min-width: 180px;
}
.legal-toc ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.legal-toc a {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 8px;
  margin-inline: -8px;
  border-radius: 8px;
  display: block;
  transition: background 0.2s ease, color 0.2s ease;
}
.legal-toc a:hover {
  color: var(--ink);
  background: var(--warm-white-2);
}
.legal-toc a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}
@media (max-width: 960px) {
  .legal-toc { position: static; margin: 24px auto 0; max-width: 720px; }
}
.legal-main {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(60px, 9vw, 120px) var(--pad);
  position: relative;
  z-index: 1;
}
.legal-main h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}
.legal-updated {
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 40px;
}
.legal-main h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
  color: var(--ink);
}
.legal-main p,
.legal-main li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.legal-main p { margin: 0 0 16px; }
.legal-main ul,
.legal-main ol {
  padding-left: 22px;
  margin: 0 0 20px;
}
.legal-main a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-placeholder {
  padding: 24px 28px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.5);
  font-style: italic;
  color: var(--ink-muted);
}

/* ============ BLUR-IN REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(16px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, filter, transform;
}
.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; filter: none; transform: none; transition: none; }
  .blob, .ring, .bar { animation: none; }
}

/* ============ DESKTOP-FIRST: tighter breakpoints ============ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .two-col,
  .feature-row,
  .review-grid,
  .plans { grid-template-columns: 1fr; }
  .feature-row.reverse { direction: ltr; }
  .nav-links { display: none; }
}
