/* Breakup Coach AI — landing page
   Visual DNA from marketing/store-template.mjs (dark cosmic, Fraunces italic, gold "accept" palette). */

:root {
  --ink-black: #0d0a0c;
  --ink-2: #15101a;
  --ink: #2a1a20;
  --paper: #FAF3E7;

  /* accept palette (hero / brand optimistic) */
  --sky-1: #2E3A2E;
  --sky-2: #5A7560;
  --sky-3: #C8A878;
  --gold: #E8C89F;
  --dust: #D4C898;
  --glow: rgba(232, 200, 159, .5);

  --white-95: rgba(255,255,255,.95);
  --white-70: rgba(255,255,255,.70);
  --white-55: rgba(255,255,255,.55);
  --white-40: rgba(255,255,255,.40);
  --line: rgba(255,255,255,.10);
  --card: rgba(255,255,255,.05);
  --card-2: rgba(255,255,255,.08);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --hand: "Caveat", cursive;

  --maxw: 1140px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--white-95);
  background: var(--ink-black);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- shared type ---------- */
.display { font-family: var(--display); font-weight: 300; font-style: italic; letter-spacing: -0.5px; line-height: 1.05; }
.display--gold { color: var(--gold); }
.eyebrow {
  font-family: var(--body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--white-55);
  margin: 0 0 14px;
}
.lede { font-size: clamp(16px, 2.1vw, 19px); color: var(--white-70); margin: 0; }

.section__head { max-width: 720px; margin: 0 auto 46px; text-align: center; padding: 0 22px; }
.section__title { font-size: clamp(28px, 5vw, 46px); margin: 0 0 16px; }
.section__body { color: var(--white-70); font-size: clamp(15px, 1.9vw, 18px); margin: 0; }

/* ---------- buttons / badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: none;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--dust));
  color: var(--ink);
  box-shadow: 0 8px 24px var(--glow);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--glow); }

.badges { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 16px; }
.badges--center { justify-content: center; margin: 32px 0 0; }
.storebadge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 18px; border-radius: 14px;
  background: #fff; color: #000;
  border: 1px solid rgba(255,255,255,.6);
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 26px rgba(0,0,0,.35);
}
.storebadge:hover { transform: translateY(-2px); }
.storebadge svg { width: 26px; height: 26px; fill: #000; flex: none; }
.storebadge span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.storebadge small { font-size: 10px; letter-spacing: .3px; opacity: .8; }
.storebadge strong { font-size: 18px; font-weight: 600; letter-spacing: -.2px; }
.storebadge--soon { background: rgba(255,255,255,.08); color: #fff; border: 1px solid var(--line); box-shadow: none; }
.storebadge--soon svg { fill: #fff; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(13,10,12,.55);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.is-scrolled { background: rgba(13,10,12,.85); border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--gold), var(--dust));
  color: var(--ink); font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: 16px; box-shadow: 0 4px 14px var(--glow);
}
.brand__name { font-size: 16px; letter-spacing: -.2px; }
.nav__links { display: flex; gap: 26px; margin-left: 14px; }
.nav__links a { color: var(--white-70); font-size: 15px; transition: color .2s ease; }
.nav__links a:hover { color: #fff; }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.langswitch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langswitch button {
  background: none; border: none; color: var(--white-55);
  font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.langswitch button.is-active { background: var(--card-2); color: #fff; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; }
.hero__sky {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, var(--sky-1) 0%, #20281f 45%, var(--ink-black) 100%);
}
.hero__glow {
  position: absolute; top: -6%; left: 50%; transform: translateX(-50%);
  width: 620px; height: 620px; max-width: 90vw; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  filter: blur(26px); opacity: .8;
}
.stars { position: absolute; inset: 0; }
.stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: var(--dust); opacity: .5;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: .25; } 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .stars i { animation: none; } }

.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 9vw, 110px) 22px clamp(40px, 7vw, 80px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.hero__copy { max-width: 560px; }
.hero h1 { font-size: clamp(44px, 8.5vw, 86px); margin: 0 0 22px; }
.hero h1 span { display: block; }
.hero__micro { color: var(--white-55); font-size: 14px; margin: 0; }

/* ---------- hero screenshot fan (composite store shots, shown flat) ---------- */
.hero__fan {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  min-height: 520px;
}
.fan__card {
  position: absolute;
  width: clamp(180px, 22vw, 248px);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .4s ease;
}
.fan__card--c { z-index: 3; transform: translateY(-6px) scale(1.04); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 70px var(--glow); }
.fan__card--l { z-index: 1; transform: translateX(-58%) rotate(-9deg) scale(.92); opacity: .92; }
.fan__card--r { z-index: 2; transform: translateX(58%) rotate(9deg) scale(.92); opacity: .92; }
.hero__fan:hover .fan__card--l { transform: translateX(-66%) rotate(-11deg) scale(.92); }
.hero__fan:hover .fan__card--r { transform: translateX(66%) rotate(11deg) scale(.92); }
@media (prefers-reduced-motion: reduce) { .fan__card { transition: none; } }

/* ---------- TRUST ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.trust__line {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 22px; text-align: center;
  color: var(--white-55); font-size: 14px; letter-spacing: .3px;
}

/* ---------- section rhythm ---------- */
section { padding: clamp(64px, 10vw, 120px) 0; }
.journey, .tools, .how, .pricing, .faq { max-width: var(--maxw); margin: 0 auto; }

/* ---------- JOURNEY / starmap ---------- */
.starmap { padding: 0 22px; }
.starmap__svg { width: 100%; height: auto; max-height: 220px; overflow: visible; }
.stages {
  list-style: none; margin: 26px auto 0; padding: 0; max-width: 880px;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.stages li {
  flex: 1 1 0; min-width: 110px; text-align: center;
  font-family: var(--display); font-style: italic; font-size: clamp(14px, 2vw, 18px);
  color: var(--white-55); position: relative;
}
.stages li.is-current { color: #fff; }
.stages__dot {
  display: block; width: 12px; height: 12px; border-radius: 50%; margin: 0 auto 12px;
  background: rgba(255,255,255,.25);
}
.stages li[data-stage="denial"] .stages__dot { background: #C9B8D4; }
.stages li[data-stage="anger"] .stages__dot { background: #F5A88A; }
.stages li[data-stage="bargain"] .stages__dot { background: #D8C99B; }
.stages li[data-stage="sadness"] .stages__dot { background: #9FB8D4; }
.stages li[data-stage="accept"] .stages__dot { background: var(--gold); box-shadow: 0 0 14px var(--glow); }

/* ---------- WHY / differentiators ---------- */
.why { max-width: var(--maxw); margin: 0 auto; }
.whygrid {
  list-style: none; margin: 0; padding: 0 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.whygrid li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px 24px; transition: transform .2s ease, border-color .2s ease;
}
.whygrid li:hover { transform: translateY(-4px); border-color: rgba(232,200,159,.3); }
.whygrid__ico { font-size: 26px; display: block; margin-bottom: 16px; }
.whygrid h3 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 21px; margin: 0 0 9px; color: #fff; }
.whygrid p { color: var(--white-55); font-size: 14.5px; margin: 0; line-height: 1.55; }

/* ---------- GALLERY (composite store shots, flat) ---------- */
.gallery { max-width: 100%; }
.gallery__row {
  list-style: none; margin: 0 auto; padding: 4px 22px 8px;
  max-width: var(--maxw);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; justify-items: center;
}
.gallery__row li { width: 100%; max-width: 320px; }
.gallery__row img {
  width: 100%; border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery__row img:hover { transform: translateY(-6px); box-shadow: 0 28px 64px rgba(0,0,0,.55), 0 0 50px var(--glow); }
.gallery__hint { display: none; text-align: center; color: var(--white-40); font-size: 13px; margin: 14px 0 0; }

/* ---------- TOOLS grid ---------- */
.tools { padding-bottom: clamp(64px,10vw,120px); }
.toolgrid {
  list-style: none; margin: 0; padding: 0 22px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.toolgrid li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px 24px; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.toolgrid li:hover { transform: translateY(-4px); background: var(--card-2); border-color: rgba(232,200,159,.3); }
.toolgrid__ico { font-size: 26px; display: block; margin-bottom: 14px; }
.toolgrid h4 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 21px; margin: 0 0 8px; color: #fff; }
.toolgrid p { color: var(--white-55); font-size: 14.5px; margin: 0; line-height: 1.5; }

/* ---------- HOW ---------- */
.steps {
  list-style: none; margin: 0; padding: 0 22px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s;
}
.steps li { text-align: center; padding: 12px; }
.steps__n {
  display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px;
  border-radius: 50%; font-family: var(--display); font-style: italic; font-size: 24px; color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--dust)); box-shadow: 0 8px 22px var(--glow);
}
.steps h4 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 22px; margin: 0 0 10px; color: #fff; }
.steps p { color: var(--white-55); font-size: 15px; margin: 0; max-width: 280px; margin-inline: auto; }

/* ---------- PRIVACY ---------- */
.privacy { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy__inner { max-width: 680px; margin: 0 auto; text-align: center; padding: 0 22px; }
.privacy__ico { font-size: 40px; display: block; margin-bottom: 18px; }

/* ---------- PRICING ---------- */
.plans {
  display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 22px;
  justify-content: center; padding: 0 22px;
}
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px 30px; position: relative;
}
.plan--pro {
  background: linear-gradient(165deg, rgba(232,200,159,.14), rgba(255,255,255,.04));
  border-color: rgba(232,200,159,.4);
  box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 50px rgba(232,200,159,.12);
}
.plan__tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--dust)); color: var(--ink);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plan__name { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 26px; margin: 0 0 10px; }
.plan__price { font-size: 42px; font-weight: 800; margin: 0; letter-spacing: -1px; color: #fff; }
.plan__price small { font-size: 16px; font-weight: 500; color: var(--white-55); letter-spacing: 0; }
.plan__alt { color: var(--white-55); font-size: 14px; margin: 4px 0 16px; }
.plan__body { color: var(--white-70); font-size: 15px; margin: 16px 0 0; }
.plan--pro .plan__body { margin-top: 0; }
.plan__cancel { color: var(--gold); font-size: 13px; margin: 14px 0 0; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq__list { max-width: 760px; margin: 0 auto; padding: 0 22px; }
.faq__list details {
  border-bottom: 1px solid var(--line); padding: 8px 0;
}
.faq__list summary {
  list-style: none; cursor: pointer; padding: 16px 36px 16px 0; position: relative;
  font-size: clamp(16px, 2.2vw, 19px); font-weight: 500; color: #fff;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--gold); font-weight: 300; transition: transform .25s ease;
}
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list p { color: var(--white-70); margin: 0 0 18px; font-size: 16px; max-width: 660px; }

/* ---------- FINAL CTA ---------- */
.final { position: relative; overflow: hidden; text-align: center; background: linear-gradient(180deg, var(--ink-black), #1a2018); }
.final__sky { position: absolute; inset: 0; }
.final__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 22px; }
.final__title { font-size: clamp(34px, 6.5vw, 64px); margin: 0 0 18px; }
.final__title span { display: block; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink-black); border-top: 1px solid var(--line); padding: 56px 22px 40px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer__tag { color: var(--white-55); font-size: 14px; margin: 14px 0 0; max-width: 320px; font-family: var(--display); font-style: italic; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: var(--white-70); font-size: 15px; transition: color .2s ease; }
.footer__links a:hover { color: var(--gold); }
.footer__disclaimer { max-width: var(--maxw); margin: 40px auto 14px; color: var(--white-40); font-size: 12.5px; line-height: 1.6; text-align: center; }
.footer__copy { text-align: center; color: var(--white-40); font-size: 13px; margin: 0; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .whygrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { margin: 0 auto; }
  .badges { justify-content: center; }
  .hero__fan { order: -1; margin-bottom: 8px; min-height: 440px; }
  .fan__card--l { transform: translateX(-50%) rotate(-9deg) scale(.9); }
  .fan__card--r { transform: translateX(50%) rotate(9deg) scale(.9); }
  .toolgrid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .plans { grid-template-columns: minmax(0, 380px); }
  /* gallery → horizontal scroll-snap strip */
  .gallery__row {
    display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 16px; padding: 4px 22px 16px; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery__row::-webkit-scrollbar { display: none; }
  .gallery__row li { flex: 0 0 70%; max-width: 260px; scroll-snap-align: center; }
  .gallery__hint { display: block; }
}
@media (max-width: 520px) {
  .toolgrid { grid-template-columns: 1fr; }
  .whygrid { grid-template-columns: 1fr; }
  .nav__cta { display: none; }
  .stages li { min-width: 80px; }
  .footer__inner { flex-direction: column; }
  .gallery__row li { flex-basis: 78%; }
}
