/* ============================================================
   Anthe — marketing site
   A calm, warm system built on the app's rose + sunrise language.
   ============================================================ */

:root {
  /* Rose accent (from the app) */
  --rose:        #C85C86;
  --rose-soft:   #F7E9EF;
  --rose-deep:   #8E3B5C;
  --rose-vivid:  #EA6FA0;
  /* Sunrise (from the tab icons) */
  --gold:        #F4A544;
  --coral:       #EC7A76;
  /* Ground + ink */
  --bg:          #FBF6F8;
  --bg-warm:     #FDF7F3;
  --panel:       #FFFFFF;
  --ink:         #2C2126;
  --ink-2:       #6E5C64;
  --ink-3:       #A08D96;
  --line:        #EFE3E8;
  --line-2:      #E7D8DE;
  /* Effects */
  --shadow-sm:   0 1px 2px rgba(44,33,38,.05), 0 4px 14px rgba(142,59,92,.06);
  --shadow-md:   0 10px 40px rgba(142,59,92,.12);
  --shadow-lg:   0 30px 80px rgba(142,59,92,.18);
  --radius:      22px;
  --gutter:      max(20px, env(safe-area-inset-left));
  --grad-rose:   linear-gradient(135deg, var(--rose-vivid), var(--rose));
  --grad-sun:    linear-gradient(100deg, var(--gold), var(--coral) 55%, var(--rose));
  --maxw:        1120px;
}

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

body {
  margin: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* The living ground: warm off-white lit by soft rose + sunrise glows */
.ground {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 85% -5%, rgba(244,165,74,.18), transparent 60%),
    radial-gradient(55% 40% at 92% 4%, rgba(234,111,160,.16), transparent 60%),
    radial-gradient(45% 40% at 4% 8%, rgba(124,122,224,.08), transparent 60%),
    radial-gradient(60% 50% at 50% 108%, rgba(224,128,95,.07), transparent 60%),
    var(--bg);
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}
a { color: var(--rose-deep); text-decoration: none; }
a:hover { color: var(--rose); }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: "DM Sans", sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rose); margin: 0 0 14px;
}
.muted { color: var(--ink-2); }

/* ---- Bloom mark (the app's signature) ---- */
.bloom { position: relative; display: inline-block; border-radius: 50%; filter: blur(.2px); }
.bloom::before, .bloom::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(38% 44% at 34% 32%, var(--rose-vivid), transparent 70%),
    radial-gradient(40% 40% at 66% 30%, var(--gold), transparent 72%),
    radial-gradient(46% 48% at 60% 64%, var(--coral), transparent 72%),
    radial-gradient(40% 46% at 34% 66%, #7C7AE0, transparent 74%);
  filter: blur(6px); opacity: .95;
}
.bloom::after { transform: scale(.7) rotate(18deg); filter: blur(3px); opacity: .8; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(150%) blur(18px); -webkit-backdrop-filter: saturate(150%) blur(18px);
  background: rgba(251,246,248,.72);
  border-bottom: 1px solid rgba(231,216,222,.7);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand .mark { width: 26px; height: 26px; }
.brand .word { font-family: "Fraunces", serif; font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.nav .links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav .links a { color: var(--ink-2); font-weight: 500; font-size: 15.5px; }
.nav .links a:hover { color: var(--rose-deep); }
.nav .cta { padding: 9px 18px; }
@media (max-width: 720px) { .nav .links a.hide-sm { display: none; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  font-family: "DM Sans", sans-serif; font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; cursor: pointer; border: 0;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary { background: var(--grad-rose); color: #fff; box-shadow: 0 10px 26px rgba(200,92,134,.36); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(200,92,134,.44); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--rose-deep); border: 1px solid var(--line-2); }
.btn-ghost:hover { color: var(--rose-deep); border-color: var(--rose); transform: translateY(-2px); }

/* App Store badge (built, not imported) */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: #171216; color: #fff; padding: 11px 20px 11px 18px; border-radius: 15px;
  box-shadow: var(--shadow-md); transition: transform .18s ease;
}
.appstore:hover { color: #fff; transform: translateY(-2px); }
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore .t { line-height: 1.15; }
.appstore .t small { display: block; font-size: 10.5px; letter-spacing: .04em; opacity: .85; }
.appstore .t b { font-size: 18px; font-weight: 600; font-family: "Fraunces", serif; }

/* ---- Sections ---- */
section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 42px); }
.section-head p { font-size: 18px; color: var(--ink-2); margin-top: 14px; }

/* ---- Hero ---- */
.hero { padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(30px, 5vw, 60px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6.6vw, 70px); font-weight: 600; }
.hero h1 .grad { background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(18px, 2.3vw, 21px); color: var(--ink-2); max-width: 44ch; margin-top: 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }
.hero .trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; color: var(--ink-2); }
.hero .trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero .trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad-rose); }

/* Phone mockup */
.phone {
  position: relative; width: min(330px, 78vw); margin-inline: auto;
  border-radius: 46px; padding: 11px;
  background: linear-gradient(160deg, #2a2027, #120e12);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.08);
}
.phone::after { /* glow behind */
  content: ""; position: absolute; inset: -12% -18% -8%; z-index: -1; border-radius: 60px;
  background: radial-gradient(60% 50% at 60% 30%, rgba(234,111,160,.35), transparent 70%),
              radial-gradient(50% 40% at 30% 70%, rgba(244,165,74,.28), transparent 70%);
  filter: blur(30px);
}
.phone img { border-radius: 36px; width: 100%; display: block; }

.hero-visual { display: flex; justify-content: center; }

/* Fanned trio of phones — showcases the journey (onboarding · daily check-in · report) */
.fan { position: relative; width: min(460px, 94vw); height: 620px; margin-inline: auto; }
.fan .phone { position: absolute; padding: 9px; border-radius: 40px; }
.fan .phone img { border-radius: 31px; }
.fan .fan .p-front { width: 252px; left: 50%; top: 8px; transform: translateX(-50%); z-index: 3; }
.fan .p-left  { width: 206px; left: 1%;  top: 132px; transform: rotate(-10deg); z-index: 1; }
.fan .p-right { width: 206px; right: 1%; top: 132px; transform: rotate(10deg);  z-index: 2; }
.fan .p-left::after, .fan .p-right::after { opacity: .5; }
.fan .badge {
  position: absolute; z-index: 4; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); border-radius: 14px; padding: 9px 13px; box-shadow: var(--shadow-md);
  font-size: 13px; font-weight: 600; color: var(--rose-deep); display: flex; align-items: center; gap: 8px;
}
.fan .badge .d { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-sun); flex: none; }
.fan .badge.b1 { left: 3%; top: 58px; }
.fan .badge.b2 { right: 3%; bottom: 92px; }
@media (max-width: 1040px) { .fan { transform: scale(.92); } }
@media (max-width: 860px) {
  .fan { width: min(420px, 96vw); height: 560px; transform: scale(.94); }
  .fan .badge { display: none; }
}
@media (max-width: 440px) {
  .fan { height: 500px; transform: scale(.86); }
  .fan .p-left { left: -6%; } .fan .p-right { right: -6%; }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero .actions, .hero .trust { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 8px; }
}

/* ---- Feature rows (alternating) ---- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 9vw, 112px); }
.feature .shot { display: flex; justify-content: center; }
.feature:nth-child(even) .copy { order: 2; }
.feature h3 { font-size: clamp(25px, 3.4vw, 34px); }
.feature .copy p { font-size: 18px; color: var(--ink-2); margin-top: 14px; }
.feature ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.feature ul li { position: relative; padding-left: 30px; color: var(--ink); font-size: 16px; }
.feature ul li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--grad-rose);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/></svg>") center / 13px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/></svg>") center / 13px no-repeat;
}
.feature .phone { width: min(300px, 74vw); }
@media (max-width: 780px) {
  .feature { grid-template-columns: 1fr; text-align: center; }
  .feature:nth-child(even) .copy { order: 0; }
  .feature .shot { order: -1; }
  .feature ul { text-align: left; max-width: 340px; margin-inline: auto; }
}

/* ---- Cards grid ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; background: var(--rose-soft); }
.card .ico svg { width: 23px; height: 23px; }
.card h4 { font-family: "Fraunces", serif; font-size: 19px; font-weight: 600; margin: 0 0 7px; }
.card p { font-size: 15px; color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

/* ---- Privacy band ---- */
.band {
  background: linear-gradient(160deg, #241a20, #160f14); color: #fff; border-radius: 34px;
  padding: clamp(34px, 6vw, 64px); position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 88% 8%, rgba(234,111,160,.34), transparent 60%),
             radial-gradient(46% 60% at 6% 96%, rgba(244,165,74,.22), transparent 60%);
}
.band > * { position: relative; z-index: 1; }
.band .eyebrow { color: var(--rose-vivid); }
.band h2 { font-size: clamp(28px, 4.4vw, 44px); color: #fff; max-width: 18ch; }
.band p { color: rgba(255,255,255,.78); font-size: 18px; max-width: 56ch; margin-top: 16px; }
.band .pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.band .pill { font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); color: #fff; }

/* ---- CTA ---- */
.cta-final { text-align: center; }
.cta-final .card {
  background: linear-gradient(160deg, #fff, var(--rose-soft));
  border: 1px solid var(--line-2); padding: clamp(40px, 7vw, 72px); border-radius: 34px;
  box-shadow: var(--shadow-md);
}
.cta-final h2 { font-size: clamp(30px, 5vw, 48px); }
.cta-final p { color: var(--ink-2); font-size: 19px; margin: 16px auto 30px; max-width: 46ch; }
.cta-final .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---- Footer ---- */
footer { padding-block: 54px 60px; border-top: 1px solid var(--line); margin-top: 30px; }
footer .grid { display: flex; flex-wrap: wrap; gap: 26px 44px; align-items: flex-start; }
footer .brand { margin-right: auto; }
footer .col h5 { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; font-weight: 700; }
footer .col a { display: block; color: var(--ink-2); font-size: 15px; margin-bottom: 9px; }
footer .col a:hover { color: var(--rose-deep); }
footer .fine { margin-top: 34px; color: var(--ink-3); font-size: 13.5px; max-width: 70ch; }
footer .fine a { color: var(--ink-2); }

/* ---- Doc pages (privacy / support) ---- */
.doc { padding-block: clamp(44px, 7vw, 84px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5.5vw, 52px); }
.doc .lede { font-size: 20px; color: var(--ink-2); margin-top: 16px; }
.doc h2 { font-size: 24px; margin-top: 44px; }
.doc h3 { font-family: "Fraunces", serif; font-size: 19px; margin-top: 28px; }
.doc p, .doc li { color: var(--ink); font-size: 17px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .note { color: var(--ink-2); font-size: 15px; border-left: 3px solid var(--rose); padding: 4px 0 4px 16px; margin: 22px 0; }
.doc .updated { color: var(--ink-3); font-size: 14px; }
.doc .glasscard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); margin: 18px 0; }

/* FAQ */
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rose); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .a { padding: 14px 0 18px; color: var(--ink-2); }

.center { text-align: center; }
.mt-lg { margin-top: 40px; }
