/* Flexi Stretch — palette lifted verbatim from the app's FlexiColors
   (composeApp/.../ui/theme/Theme.kt), so web and app read as one product. */
:root {
  --pink: #FF5985;
  --pink-deep: #F0547D;
  --pink-pale: #FFEDE8;
  --pink-soft: #FFB3CC;
  --bg: #FCFAF7;
  --surface: #FFFFFF;
  --card-warm: #FFFFFC;
  --text: #332626;
  --muted: #9E9E9E;
  --muted-light: #A3A3A3;
  --section-header: rgba(61, 61, 66, 0.6);
  --blue: #2670FF;
  --blue-pale: #D9E6FF;
  --border: rgba(51, 38, 38, 0.10);

  /* Radii mirror FlexiShapes. */
  --r-card: 10px;
  --r-panel: 15px;
  --r-button: 12px;
  --r-pill: 8px;

  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.125rem); font-weight: 700; }
h3 { font-size: 1.1875rem; font-weight: 700; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-deep); }
a:hover { color: var(--pink); }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--pink); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r-button) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 250, 247, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.0625rem; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text); text-decoration: none; font-size: .9375rem; font-weight: 600; opacity: .78; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--pink-deep); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }
@media (max-width: 560px) {
  /* At this width the wordmark and a nav link and a button will not all fit on
     one line, and letting them wrap turns the header into three stacked rows. */
  .nav a:not(.btn) { display: none; }
  .nav { gap: 12px; }
  .brand { font-size: .9375rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .site-header .wrap { min-height: 60px; padding: 0 16px; }
  .btn { padding: .625rem 1.125rem; font-size: .9375rem; }
}

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8125rem 1.5rem; border-radius: var(--r-button);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 6px 18px rgba(255, 89, 133, .28); }
.btn-primary:hover { background: var(--pink-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 89, 133, .34); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--pink-soft); background: var(--pink-pale); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; background: linear-gradient(180deg, var(--pink-pale) 0%, var(--bg) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.eyebrow {
  display: inline-block; background: var(--surface); color: var(--pink-deep);
  border: 1px solid var(--pink-soft); border-radius: var(--r-pill);
  padding: .3125rem .75rem; font-size: .8125rem; font-weight: 700;
  letter-spacing: .02em; margin-bottom: 1rem;
}
.lede { font-size: 1.1875rem; color: #5b4c4c; max-width: 34em; }
.hero-note { font-size: .875rem; color: var(--muted); margin-top: 1rem; }

/* Phone mock-up, drawn in CSS so the page ships no extra weight. */
.phone {
  width: 288px; margin: 0 auto; background: var(--card-warm);
  border: 10px solid #2b2222; border-radius: 42px;
  box-shadow: 0 28px 60px rgba(51, 38, 38, .22); overflow: hidden;
}
.phone-screen { background: var(--bg); padding: 22px 18px 26px; }
.phone-greet { font-size: .8125rem; color: var(--section-header); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.phone-title { font-size: 1.375rem; font-weight: 800; margin: .15rem 0 1rem; }
.ring { position: relative; width: 168px; height: 168px; margin: 0 auto 1rem; border-radius: 50%;
  background: conic-gradient(var(--pink) 0 68%, var(--pink-pale) 68% 100%); display: grid; place-items: center; }
.ring::after { content: ""; position: absolute; inset: 13px; background: var(--surface); border-radius: 50%; }
.ring span { position: relative; z-index: 1; font-size: 2rem; font-weight: 800; }
.ring small { position: relative; z-index: 1; display: block; font-size: .75rem; font-weight: 600; color: var(--muted); text-align: center; }
.phone-row { display: flex; gap: 8px; }
.phone-chip { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); padding: .5rem; text-align: center; }
.phone-chip b { display: block; font-size: 1rem; }
.phone-chip small { font-size: .6875rem; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 44rem; margin-bottom: 40px; }
.section-head p { color: #5b4c4c; font-size: 1.0625rem; }
.kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-deep); margin: 0 0 .5rem; }
.alt { background: var(--surface); }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-panel); padding: 24px;
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: #5b4c4c; font-size: .9688rem; }
.icon {
  width: 42px; height: 42px; border-radius: var(--r-pill);
  background: var(--pink-pale); color: var(--pink-deep);
  display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 14px;
}

/* Plan cards */
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); overflow: hidden; display: flex; flex-direction: column; }
.plan-img { background: var(--pink-pale); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 12px; }
.plan-img img { max-height: 100%; width: auto; object-fit: contain; }
.plan-body { padding: 16px 18px 18px; }
.plan-body h3 { font-size: 1.0625rem; margin-bottom: .25em; }
.plan-meta { font-size: .8125rem; color: var(--muted); }
.tag { display: inline-block; font-size: .6875rem; font-weight: 700; padding: .1875rem .5rem; border-radius: var(--r-pill); margin-left: .375rem; vertical-align: middle; }
.tag-free { background: var(--blue-pale); color: var(--blue); }
.tag-prem { background: var(--pink-pale); color: var(--pink-deep); }

/* Feature split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split + .split { margin-top: 72px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.rev > *:first-child { order: 2; } }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: .625rem; color: #5b4c4c; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 1.125rem; height: 1.125rem; border-radius: 50%;
  background: var(--pink-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23F0547D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat b { display: block; font-size: 2.25rem; font-weight: 800; color: var(--pink-deep); line-height: 1.1; }
.stat span { font-size: .875rem; color: var(--muted); }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 720px; }
@media (max-width: 700px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); padding: 26px; }
.tier.featured { border-color: var(--pink); box-shadow: 0 10px 30px rgba(255, 89, 133, .14); }
.tier .price { font-size: 1.75rem; font-weight: 800; }
.tier .price small { font-size: .875rem; font-weight: 600; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--pink); color: #fff; border-radius: var(--r-panel); padding: 48px 32px; text-align: center; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { opacity: .92; max-width: 34em; margin-inline: auto; }
.cta-band .btn-ghost { background: #fff; border-color: #fff; color: var(--pink-deep); }
.cta-band .btn-ghost:hover { background: var(--pink-pale); color: var(--pink-deep); }
.cta-band .btn-row { justify-content: center; margin-top: 1.25rem; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pink-deep); font-size: 1.375rem; line-height: 1; font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { margin: .75rem 0 0; color: #5b4c4c; }

/* ---------- Article pages ---------- */
.article-head { padding: 56px 0 8px; background: linear-gradient(180deg, var(--pink-pale) 0%, var(--bg) 100%); }
.crumbs { font-size: .8125rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--pink-deep); }
.article { padding: 32px 0 72px; }
.article h2 { margin-top: 2.25em; }
.article h3 { margin-top: 1.75em; }
.article ul, .article ol { padding-left: 1.25rem; color: #5b4c4c; }
.article li { margin-bottom: .5rem; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); padding: 20px 24px; margin: 0 0 2.5rem; }
.toc h2 { font-size: 1rem; margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .06em; color: var(--section-header); }
.toc ol { margin: 0; padding-left: 1.125rem; }
.toc li { margin-bottom: .25rem; }
.callout { background: var(--pink-pale); border-left: 4px solid var(--pink); border-radius: 0 var(--r-card) var(--r-card) 0; padding: 18px 20px; margin: 2rem 0; }
.callout p:last-child { margin-bottom: 0; }
.byline { font-size: .875rem; color: var(--muted); }
.step { counter-reset: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 18px 20px; margin-bottom: 14px; }
.step h3 { margin: 0 0 .35em; font-size: 1.0625rem; }
.step p { margin: 0; color: #5b4c4c; font-size: .9688rem; }
.step .dur { font-size: .8125rem; font-weight: 700; color: var(--pink-deep); }

/* Related links */
.related a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px 18px; text-decoration: none; color: var(--text); }
.related a:hover { border-color: var(--pink-soft); background: var(--pink-pale); color: var(--text); }
.related b { display: block; margin-bottom: .2rem; }
.related span { font-size: .875rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 32px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h3 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .07em; color: var(--section-header); margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--text); text-decoration: none; opacity: .8; }
.site-footer a:hover { color: var(--pink-deep); opacity: 1; }
.site-footer .muted { color: var(--muted); font-size: .875rem; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; color: var(--muted); font-size: .8125rem; }
.disclaimer { margin-top: 12px; color: var(--muted); font-size: .8125rem; max-width: 60em; }

mark { background: #FFF4D6; color: #7a5a00; padding: 0 .25em; border-radius: 3px; font-weight: 600; }
code { background: var(--pink-pale); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
