/* ──────────────────────────────────────────────────────────────
   Datestiny landing — design system pulled from app_theme.dart
   ────────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --coral: #E07A7C;
  --coral-deep: #C85E60;
  --coral-soft: #FFDAD9;
  --coral-tint: #FFF1F0;
  --sage: #5B9A8B;
  --sage-soft: #CCEDE4;
  --amber: #D4A574;
  --amber-soft: #FFDDB8;

  /* Neutrals — warm, on-brand */
  --ink: #1E1416;
  --ink-2: #3F2E31;
  --muted: #7A6B6D;
  --muted-2: #A89898;
  --bg: #FFF8F3;
  --bg-2: #FFFFFF;
  --bg-3: #FDEEE9;
  --line: #EADDD8;
  --line-2: #F2E6DF;

  --font: "Fredoka", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
}

[data-palette="sage"]  { --coral: #5B9A8B; --coral-deep: #3E7A6D; --coral-soft: #CCEDE4; --coral-tint: #E8F6F1; }
[data-palette="amber"] { --coral: #C98A4B; --coral-deep: #9F6B32; --coral-soft: #FFE3C2; --coral-tint: #FFF4E6; }
[data-palette="plum"]  { --coral: #A66384; --coral-deep: #82476A; --coral-soft: #F3D6E4; --coral-tint: #FAECF3; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: auto; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
h1, h2, h3, h4, h5 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
::selection { background: var(--coral); color: #fff; }

/* ────────── Layout frame ────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

/* ────────── Nav ────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 248, 243, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 22px; letter-spacing: -0.02em;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-block;
  object-fit: contain;
  background: var(--coral-soft);
  padding: 4px;
  box-sizing: border-box;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--coral-deep); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 880px) { .nav-links { display: none; } }

/* ────────── Buttons ────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border-radius: 16px;
  font-size: 15px; font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 4px 14px rgba(30, 20, 22, 0.18);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--coral-deep); }
.btn-coral {
  background: var(--coral); color: #fff;
  box-shadow: 0 6px 20px rgba(224, 122, 124, 0.35);
}
.btn-coral:hover { transform: translateY(-1px); background: var(--coral-deep); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 2px solid var(--ink); padding: 0 22px; height: 48px;
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; border-radius: 14px; }

/* ────────── Hero ────────── */
.hero {
  padding: 56px 0 24px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--coral-soft); color: var(--coral-deep);
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }

.hero-tagline {
  font-family: "Caveat", "Brush Script MT", cursive;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--coral-deep);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
  line-height: 1;
}

.hero h1 {
  font-size: clamp(44px, 6.8vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--ink);
}
.hero h1 .accent {
  color: var(--coral);
  display: inline-block;
  position: relative;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.06em;
  height: 0.12em; background: var(--coral-soft);
  border-radius: 999px; z-index: -1;
}

.hero-sub {
  font-size: 19px; line-height: 1.55;
  color: var(--ink-2); max-width: 520px;
  margin-top: 24px; font-weight: 400;
}

.hero-cta {
  display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap;
}

.hero-proof {
  display: flex; align-items: center; gap: 14px;
  margin-top: 28px;
  font-size: 14px; color: var(--muted);
}
.hero-proof b { color: var(--ink); font-weight: 600; }
.avatars { display: inline-flex; }
.avatars > div {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2.5px solid var(--bg);
  margin-left: -10px;
  background: var(--coral-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--coral-deep);
}
.avatars > div:first-child { margin-left: 0; }
.avatars > div:nth-child(2) { background: var(--sage-soft); color: var(--sage); }
.avatars > div:nth-child(3) { background: var(--amber-soft); color: var(--amber); }
.avatars > div:nth-child(4) { background: var(--coral-tint); color: var(--coral-deep); }

/* ────────── Phone column ────────── */
.phone-col { display: flex; justify-content: center; position: relative; min-height: 740px; }
.phone-halo {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--coral-soft) 0%, transparent 70%);
  z-index: 0;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  filter: blur(20px);
}
@media (max-width: 1000px) {
  /* Stacked layout — let the phone determine the column height. */
  .phone-col { min-height: 0; }
}
@media (max-width: 420px) {
  /* On narrow phones, scale the whole mockup so it fits inside .wrap padding
     without clipping. Internal content scales with the transform. */
  .phone {
    transform: scale(0.82);
    transform-origin: top center;
  }
  .phone-col { height: 608px; }
  .phone-halo { width: 360px; height: 360px; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Phone frame */
.phone {
  position: relative; z-index: 1;
  width: 360px; height: 740px;
  background: #1a1418;
  border-radius: 52px;
  padding: 12px;
  box-shadow:
    0 30px 70px rgba(30, 20, 22, 0.25),
    0 0 0 1.5px rgba(255, 255, 255, 0.08) inset;
  animation: floaty 7s ease-in-out infinite;
}
.phone-notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 32px; background: #0a0608;
  border-radius: 18px; z-index: 30;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  background: var(--bg-2);
  border-radius: 42px;
  overflow: hidden;
}

/* Phone status bar */
.phone-status {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px 10px;
  color: var(--ink);
}
.status-time { font-size: 14px; font-weight: 600; }
.status-icons { display: inline-flex; gap: 5px; align-items: center; }

/* Floating sticker cards near phone */
.sticker {
  position: absolute; z-index: 5;
  background: #fff;
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: 0 20px 40px rgba(30,20,22,0.12), 0 2px 8px rgba(30,20,22,0.05);
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  animation: floaty 8s ease-in-out infinite;
}
.sticker .emo {
  width: 36px; height: 36px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.sticker-1 { top: 8%; left: -2%; animation-delay: -2s; }
.sticker-1 .emo { background: var(--coral-soft); color: var(--coral-deep); }
.sticker-2 { bottom: 18%; right: -2%; animation-delay: -4s; }
.sticker-2 .emo { background: var(--sage-soft); color: var(--sage); }
.sticker small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; margin-top: 2px; }
@media (max-width: 560px) { .sticker { display: none; } }

/* ────────── Section rhythm ────────── */
section { padding: 96px 0; }
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .bs, .funnel, .official, .pillars-section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 16px; }
}
.section-head { text-align: center; margin-bottom: 48px; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head .tag {
  display: inline-block;
  color: var(--coral-deep); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(32px, 4.6vw, 54px);
  letter-spacing: -0.03em; line-height: 1.02;
}
.section-head h2 em { font-style: normal; color: var(--coral); }
.section-head p {
  font-size: 18px; color: var(--ink-2); margin-top: 16px;
  line-height: 1.55;
}

/* ────────── Pillars ────────── */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px 30px;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(30,20,22,0.08); border-color: var(--coral-soft); }
.pillar-ico {
  width: 56px; height: 56px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.pillar-ico.coral { background: var(--coral-soft); color: var(--coral-deep); }
.pillar-ico.sage  { background: var(--sage-soft); color: var(--sage); }
.pillar-ico.amber { background: var(--amber-soft); color: var(--amber); }
.pillar h3 { font-size: 22px; margin-bottom: 10px; font-weight: 600; }
.pillar p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }

/* ────────── How it works (split rows) ────────── */
.how { background: var(--bg-3); border-radius: var(--r-xl); margin: 0 28px; }
@media (max-width: 640px) { .how { margin: 0 12px; } }
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  margin-bottom: 72px;
}
.split:last-child { margin-bottom: 0; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > :first-child { order: 0; }
}
.split-step {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--coral-deep); margin-bottom: 12px;
}
.split h3 {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.025em; margin-bottom: 14px;
}
.split p { color: var(--ink-2); font-size: 17px; line-height: 1.6; }

.mock-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(30,20,22,0.08);
  position: relative;
  overflow: hidden;
}
.mock-card-label {
  font-size: 12px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px;
}

/* Chat mock */
.chat-mock { display: flex; flex-direction: column; gap: 10px; }
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 14px;
}
.chat-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 16px;
}
.chat-avatar.sage { background: linear-gradient(135deg, var(--sage-soft), var(--sage)); }
.chat-name { font-weight: 600; font-size: 16px; }
.chat-status { font-size: 12px; color: var(--sage); display: flex; align-items: center; gap: 5px; }
.chat-status::before { content: ""; width: 6px; height: 6px; background: var(--sage); border-radius: 50%; }
.msg {
  max-width: 80%;
  padding: 12px 16px; border-radius: 18px;
  font-size: 14.5px; line-height: 1.45;
}
.msg.coach { background: var(--coral-tint); color: var(--ink); border-bottom-left-radius: 6px; align-self: flex-start; border: 1px solid var(--coral-soft); }
.msg.coach.sage { background: var(--sage-soft); border-color: var(--sage-soft); }
.msg.me { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }

/* Flag-pill mock (Step 01 — green/red flags) */
.flag-group + .flag-group { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.flag-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.flag-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}
.flag-dot.green { background: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }
.flag-dot.red   { background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.flag-title { font-weight: 600; font-size: 15px; color: var(--ink); flex: 1; }
.flag-count { font-size: 12px; color: var(--muted); font-weight: 500; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  background: var(--bg-3); color: var(--muted);
  border: 1px solid var(--line);
}
.pill.on.green {
  background: var(--sage-soft); color: var(--sage);
  border-color: var(--sage-soft); font-weight: 600;
}
.pill.on.red {
  background: var(--coral-soft); color: var(--coral-deep);
  border-color: var(--coral-soft); font-weight: 600;
}

/* Match preview */
.match-preview {
  display: flex; align-items: stretch; gap: 10px;
  border-radius: 20px; background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.match-preview + .match-preview { margin-top: 10px; }
.match-preview:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30,20,22,0.08); }
.match-preview-photo {
  width: 96px; height: 112px; border-radius: 14px; flex-shrink: 0;
}
.match-preview-photo.coral { background: linear-gradient(135deg, var(--coral-soft), var(--coral)); }
.match-preview-photo.sage  { background: linear-gradient(135deg, var(--sage-soft), var(--sage)); }
.match-preview-photo.amber { background: linear-gradient(135deg, var(--amber-soft), var(--amber)); }
.match-preview-body { padding: 8px 2px; display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; }
.match-preview-label { font-size: 11px; font-weight: 600; color: var(--coral-deep); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.match-preview-name { font-size: 17px; font-weight: 600; }
.match-preview-meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.compat-bar { height: 4px; border-radius: 999px; background: var(--line-2); margin-top: 10px; overflow: hidden; }
.compat-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), var(--coral-deep)); border-radius: 999px; }

/* ────────── Testimonials ────────── */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.quote p { font-size: 16.5px; line-height: 1.55; color: var(--ink); margin-bottom: 18px; }
.quote-footer {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--line-2);
}
.quote-av {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: #fff; font-size: 14px;
}
.quote-av.coral { background: var(--coral); }
.quote-av.sage  { background: var(--sage); }
.quote-av.amber { background: var(--amber); }
.quote-who { font-size: 14px; }
.quote-who b { display: block; font-weight: 600; }
.quote-who span { color: var(--muted); font-size: 13px; }
.stars { color: var(--coral); font-size: 14px; letter-spacing: 1px; margin-bottom: 10px; }

/* ────────── FAQ ────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 12px;
  transition: border-color .2s ease;
}
.faq-item[open] { border-color: var(--coral-soft); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; font-weight: 600; font-size: 17px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; width: 24px; height: 24px; border-radius: 50%;
  background: var(--coral-tint);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='none' stroke='%23C85E60' stroke-width='2' stroke-linecap='round' d='M2 4l4 4 4-4'/></svg>");
  background-repeat: no-repeat; background-position: center;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }

/* ────────── CTA band ────────── */
.cta {
  text-align: center; padding: 100px 28px;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  position: relative; overflow: hidden;
  margin: 40px 0;
}
.cta::before, .cta::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.cta::before { width: 300px; height: 300px; top: -100px; left: -100px; }
.cta::after  { width: 220px; height: 220px; bottom: -80px; right: -60px; }
.cta h2 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 16px; letter-spacing: -0.03em; position: relative; }
.cta p { font-size: 18px; max-width: 480px; margin: 0 auto 28px; opacity: 0.92; position: relative; }
.cta-form {
  max-width: 440px; margin: 0 auto;
  background: #fff; border-radius: 16px;
  padding: 6px; display: flex; gap: 6px; position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}
.cta-form input {
  flex: 1; border: 0; padding: 14px 18px; background: transparent;
  font: inherit; font-size: 15px; color: var(--ink); outline: none;
}
.cta-form input::placeholder { color: var(--muted); }
.cta-form button {
  background: var(--ink); color: #fff; border-radius: 12px;
  padding: 0 22px; font-weight: 600; font-size: 14.5px;
  transition: background .2s ease;
}
.cta-form button:hover { background: var(--coral-deep); }
.cta-note { margin-top: 16px; font-size: 13px; opacity: 0.85; position: relative; }

/* ────────── Store badges ────────── */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
  position: relative;
}
.store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge img {
  display: block;
  height: 48px !important;
  width: auto !important;
  max-width: none;
}
.store-badge--soon {
  cursor: default;
}
.store-badge--soon img {
  opacity: 0.55;
  filter: grayscale(0.3);
}
.store-badge--soon:hover { transform: none; }
.store-badge-soon-tag {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--coral-deep, #C85E60);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* ────────── Newsletter ────────── */
.newsletter {
  padding: 80px 0;
  background: var(--bg-3);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.newsletter-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 14px;
}
.newsletter-copy h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
}
.newsletter-copy p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 460px;
}
.newsletter-form {
  width: 100%;
}
.newsletter-form > * {
  width: 100%;
}
@media (max-width: 880px) {
  .newsletter { padding: 60px 0; }
  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ────────── Legal pages (privacy, terms) ────────── */
.legal-page {
  padding: 80px 0 120px;
  background: var(--bg);
}
.legal-container {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.7;
  box-sizing: border-box;
}
.legal-container h1 {
  font-size: 44px;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.legal-updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.legal-container section {
  padding: 0;
  margin-bottom: 40px;
}
.legal-container section:last-child {
  margin-bottom: 0;
}
.legal-container h2 {
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.legal-container h3 {
  font-size: 17px;
  color: var(--ink);
  margin: 24px 0 10px;
  font-weight: 600;
}
.legal-container p {
  margin: 0 0 14px;
}
.legal-container p:last-child {
  margin-bottom: 0;
}
.legal-container ul {
  list-style: disc;
  padding-left: 24px;
  margin: 0 0 16px;
}
.legal-container ul li {
  margin-bottom: 10px;
}
.legal-container ul li::marker {
  color: var(--coral-deep);
}
.legal-container strong {
  color: var(--ink);
  font-weight: 600;
}
.legal-container a {
  color: var(--coral-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal-container a:hover {
  color: var(--coral);
}
@media (max-width: 720px) {
  .legal-page { padding: 56px 0 80px; }
  .legal-container { font-size: 15px; }
  .legal-container h1 { font-size: 34px; }
  .legal-container h2 { font-size: 20px; }
  .legal-updated { margin-bottom: 40px; }
}

/* ────────── Footer ────────── */
footer { padding: 60px 0 40px; border-top: 1px solid var(--line-2); }
.foot {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 720px) { .foot { grid-template-columns: 1fr 1fr; } }
.foot h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot a { font-size: 14.5px; color: var(--ink-2); }
.foot a:hover { color: var(--coral-deep); }
.foot-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 280px; }
.foot-base {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-2);
  font-size: 13px; color: var(--muted);
}

/* ────────── In-phone app mockup — 3Bs carousel ────────── */
.app-top {
  padding: 56px 18px 8px;
  background: linear-gradient(180deg, var(--coral-tint) 0%, #fff 100%);
}
.app-date-line { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.app-greet { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.app-sub { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 8px; }

.carousel-card {
  margin: 14px 14px 8px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #E6A8AA 0%, #D48486 60%, #B56C6E 100%);
  aspect-ratio: 0.78 / 1;
  position: relative;
  box-shadow: 0 14px 36px rgba(184, 88, 90, 0.32);
}
.carousel-photo {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,0.28) 0%, transparent 42%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 12px, transparent 12px 24px);
}
.cat-chip {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 11px;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em;
}
.cat-brains { color: var(--coral-deep); }
.cat-brand  { color: var(--sage); }
.cat-body   { color: var(--amber); }

.carousel-name {
  position: absolute; left: 14px; right: 14px; bottom: 86px;
  font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.02em;
}
.carousel-loc {
  position: absolute; left: 14px; right: 14px; bottom: 68px;
  font-size: 11.5px; color: rgba(255,255,255,0.85);
}

.carousel-actions {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; gap: 8px;
}
.carousel-actions .ac {
  flex: 1; text-align: center;
  padding: 11px 10px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
}
.ac-pass    { background: rgba(255,255,255,0.18); color: #fff; backdrop-filter: blur(4px); }
.ac-connect { background: #fff; color: var(--coral-deep); }

.carousel-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 8px 0 10px;
}
.carousel-dots .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line);
  transition: width .18s ease;
}
.carousel-dots .dot.active { width: 18px; border-radius: 3px; background: var(--coral); }

.app-tabbar {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 18px 22px;
  display: flex; justify-content: space-around;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-2);
}
.app-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--muted); }
.app-tab.active { color: var(--coral); }
.app-tab svg { width: 22px; height: 22px; }

/* ────────── The 3Bs framework section ────────── */
.bs { padding: 90px 0 80px; }
.bs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  max-width: 1080px; margin: 0 auto;
}
@media (max-width: 880px) {
  .bs-grid { grid-template-columns: 1fr; gap: 18px; }
}
.bs-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px 30px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(30,20,22,0.08);
}
.bs-emoji {
  font-size: 32px;
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 22px;
  margin-bottom: 18px;
}
.bs-brains .bs-emoji { background: var(--coral-soft); }
.bs-brand  .bs-emoji { background: var(--sage-soft); }
.bs-body   .bs-emoji { background: var(--amber-soft); }
.bs-brains:hover { border-color: var(--coral-soft); }
.bs-brand:hover  { border-color: var(--sage-soft); }
.bs-body:hover   { border-color: var(--amber-soft); }
.bs-card h3 { font-size: 26px; margin-bottom: 4px; font-weight: 700; }
.bs-lede {
  font-family: "Caveat", cursive;
  font-size: 22px;
  color: var(--coral-deep);
  margin-bottom: 12px;
}
.bs-brand .bs-lede { color: var(--sage); }
.bs-body  .bs-lede { color: var(--amber); }
.bs-card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.bs-foot {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  max-width: 580px;
  margin: 36px auto 0;
  font-style: italic;
}

/* ────────── How it works — full funnel ────────── */
.funnel { padding: 90px 0; background: var(--bg-3); }
.funnel-rail {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 36px;
}
.funnel-rail::before {
  content: "";
  position: absolute;
  left: 12px; top: 14px; bottom: 60px;
  width: 2px;
  background: linear-gradient(180deg, var(--coral), var(--sage), var(--amber));
  opacity: 0.5;
  border-radius: 2px;
}
.funnel-step {
  position: relative;
  padding: 6px 0 36px;
}
.funnel-step:last-child { padding-bottom: 0; }
.funnel-num {
  position: absolute;
  left: -36px; top: 0;
  width: 30px; height: 30px;
  background: var(--bg-2);
  border: 2px solid var(--coral);
  border-radius: 50%;
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--coral-deep);
}
.funnel-step:nth-child(2) .funnel-num { border-color: var(--sage); color: var(--sage); }
.funnel-step:nth-child(3) .funnel-num { border-color: var(--amber); color: #9F6B32; }
.funnel-step:nth-child(4) .funnel-num { border-color: var(--coral); color: var(--coral-deep); }
.funnel-step:nth-child(5) .funnel-num {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}
.funnel-step h3 {
  font-size: 22px;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.funnel-step p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}
.funnel-step p + p { margin-top: 8px; }
.funnel-meta {
  font-style: italic;
  color: var(--muted);
  font-size: 14.5px;
}
.funnel-step-end {
  background: var(--bg-2);
  border-radius: var(--r-lg);
  border: 1px solid var(--coral-soft);
  padding: 22px 26px;
  margin-top: 6px;
}
.funnel-step-end .funnel-num { left: -48px; top: 16px; }

/* ────────── Pillars-section spacing ────────── */
.pillars-section { padding: 90px 0 80px; }

/* ────────── The "official" moment ────────── */
.official { padding: 90px 0; background: var(--bg-3); }
.official-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .official-grid { grid-template-columns: 1fr; gap: 36px; }
}
.official-copy .tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--coral-soft);
  color: var(--coral-deep);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.official-copy h2 {
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 18px;
}
.official-copy h2 em { color: var(--coral); font-style: normal; }
.official-copy p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
}
.official-copy p + p { margin-top: 14px; }

.official-card {
  background: linear-gradient(135deg, rgba(224, 122, 124, 0.16), rgba(91, 154, 139, 0.18));
  border: 1.5px solid rgba(224, 122, 124, 0.35);
  border-radius: var(--r-xl);
  padding: 32px 26px 26px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(30, 20, 22, 0.08);
}
.official-card-brand {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.32em;
  color: var(--coral-deep);
  margin-bottom: 22px;
}
.official-card-portraits {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}
.op-circle {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 4px solid var(--bg-2);
  box-shadow: 0 6px 16px rgba(30,20,22,0.1);
}
.op-coral { background: linear-gradient(135deg, var(--coral-soft), var(--coral)); }
.op-sage  { background: linear-gradient(135deg, var(--sage-soft), var(--sage)); }

.official-card-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.official-card-names {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.official-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 16px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(224, 122, 124, 0.25);
  border-radius: 18px;
  margin-bottom: 16px;
}
.op-stat-label {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
  font-weight: 600;
}
.op-stat-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--coral-deep);
}
.official-card-foot {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
@media (max-width: 420px) {
  .official-card { padding: 26px 18px 22px; }
  .op-circle { width: 78px; height: 78px; }
  .official-card-title { font-size: 24px; }
  .official-card-names { font-size: 16px; }
  .official-card-stats { padding: 14px; gap: 12px; }
  .op-stat-value { font-size: 16px; }
}
