/* Alchemilla — website styles.
   Dark theme mirroring the app (alchemilla-app/src/theme/tokens.ts → dark). */

:root {
  --bg:          #1d1a19;
  --surface:     #26211f;
  --raised:      #332b28;
  --ink:         #f0e7e3;
  --ink-muted:   #b09b96;
  --ink-soft:    #8a7a75;
  --border:      #3a3330;
  --green:       #8ea35f;   /* accent */
  --green-bright:#a7c178;   /* accent text on dark */
  --green-deep:  #6f8a45;
  --green-soft:  #2b3320;   /* chips / icon bg */
  --sage:        #84945a;
  --yellow:      #aea05a;   /* flower */
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif { font-family: "Newsreader", Georgia, "Times New Roman", serif; font-weight: 500; }
a { color: var(--green-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 600; color: var(--green-bright); margin: 0 0 14px; }

/* ── Header / nav ─────────────────────────────────────────── */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(29,26,25,0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand img { width: 24px; height: 24px; }
.wordmark { font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 22px; letter-spacing: -0.3px; color: var(--ink); }
nav.links a { color: var(--ink-muted); font-size: 15px; margin-left: 22px; }
nav.links a.btn { color: var(--bg); }

/* Buttons — primary is cream w/ dark text, like the app's primary action */
.btn { display: inline-block; background: var(--ink); color: var(--bg) !important; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none !important; transition: opacity .15s ease, background .15s ease; }
.btn:hover { opacity: 0.88; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink) !important; border: 1.5px solid var(--border); }
.btn.ghost:hover { background: var(--surface); opacity: 1; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding: 80px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -1.2px; margin: 0 0 18px; color: var(--ink); }
.hero .lede { font-size: 19px; color: var(--ink-muted); max-width: 30em; margin: 0 0 28px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .micro { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }

/* ── Hero phone frame (holds a real screenshot or looping GIF) ─ */
.phone {
  justify-self: center; width: 322px; aspect-ratio: 1206 / 2622; border-radius: 48px;
  background: #191716; border: 11px solid #000;
  box-shadow: 0 34px 70px -18px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.05);
  padding: 0; color: var(--ink); overflow: hidden;
}
/* Real iPhone proportions. The video sits inside, letterboxed with the app's own
   screen colour (#191716 = the recordings' edge), so the top/bottom bars vanish. */
.phone-screen { width: 100%; height: 100%; display: block; background: #191716; border-radius: 38px; overflow: hidden; }
.phone-screen video, .phone-screen img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ── Sections ─────────────────────────────────────────────── */
section { padding: 72px 0; }
section.tint { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.8px; margin: 0 0 12px; color: var(--ink); }
.section-head p { font-size: 18px; color: var(--ink-muted); margin: 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature { background: var(--bg); border: 1px solid var(--border); border-radius: 22px; padding: 28px; }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--green-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; }
.feature h3 { font-size: 21px; letter-spacing: -0.3px; margin: 0 0 8px; color: var(--ink); }
.feature p { color: var(--ink-muted); font-size: 16px; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; }
.step .n { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--green); color: var(--green-bright); display: flex; align-items: center; justify-content: center; font-weight: 600; margin: 0 auto 16px; font-size: 17px; }
.step h3 { font-size: 20px; margin: 0 0 6px; color: var(--ink); }
.step p { color: var(--ink-muted); font-size: 15px; margin: 0; }

/* Privacy band */
.privacy-band { text-align: center; }
.privacy-band h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.6px; margin: 0 0 16px; color: var(--ink); }
.privacy-band p { font-size: 18px; color: var(--ink-muted); max-width: 34em; margin: 0 auto; }
.privacy-band .privacy-note { font-size: 15px; color: var(--ink-soft); max-width: 34em; margin: 14px auto 0; }
.privacy-band .privacy-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.pill { background: var(--green-soft); color: var(--green-bright); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 500; }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; }
.price { background: var(--bg); border: 1px solid var(--border); border-radius: 22px; padding: 28px 24px; text-align: center; position: relative; }
.price.best { border-color: var(--green); border-width: 2px; }
.price .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--green); color: var(--bg); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.price h3 { font-family: "Public Sans", sans-serif; font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-muted); margin: 0 0 10px; }
.price .amt { font-family: "Newsreader", serif; font-size: 40px; letter-spacing: -1px; color: var(--ink); }
.price .cad { color: var(--ink-soft); font-size: 14px; }
.price .blurb { color: var(--ink-muted); font-size: 14px; margin-top: 10px; min-height: 2.6em; }

/* CTA band */
.cta-band { text-align: center; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-band h2 { color: var(--ink); font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.7px; margin: 0 0 14px; }
.cta-band p { color: var(--ink-muted); font-size: 18px; margin: 0 0 26px; }

/* ── Legal documents (privacy/terms) ──────────────────────── */
.doc { padding: 56px 0 72px; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); letter-spacing: -0.6px; margin: 0 0 6px; color: var(--ink); }
.doc .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: 21px; letter-spacing: -0.3px; margin: 36px 0 10px; color: var(--ink); }
.doc p, .doc li { color: #d3c8c2; font-size: 16px; }
.doc strong { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.callout { background: var(--green-soft); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin: 24px 0; font-size: 15px; color: var(--green-bright); }
.callout strong { color: var(--ink); }

/* ── Footer ───────────────────────────────────────────────── */
footer.site { border-top: 1px solid var(--border); padding: 40px 0; color: var(--ink-soft); font-size: 14px; background: var(--surface); }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
footer.site .f-brand { display: flex; align-items: center; gap: 8px; }
footer.site .f-brand img { width: 22px; height: 22px; }
footer.site a { color: var(--ink-muted); margin-right: 18px; }

/* ── The report showcase ──────────────────────────────────── */
#report .report-wrap { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 52px; align-items: center; }
.section-head.left { text-align: left; max-width: 34em; margin: 0; }
.section-head.left p { font-size: 17px; }
.report-points { list-style: none; padding: 0; margin: 24px 0 0; }
.report-points li { position: relative; padding-left: 26px; color: var(--ink-muted); font-size: 16px; margin-bottom: 10px; }
.report-points li::before { content: "✓"; position: absolute; left: 0; color: var(--green-bright); font-weight: 600; }
.report-shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 34px 70px -22px rgba(0,0,0,0.7); background: #fff; margin: 0; }
.report-shot img { width: 100%; display: block; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center; }
.report-shot figcaption { background: var(--surface); color: var(--ink-soft); font-size: 12.5px; text-align: center; padding: 10px; border-top: 1px solid var(--border); }

/* Pricing footnote */
.price-foot { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: 26px; }

/* ── Phone gallery (screenshots) ──────────────────────────── */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 720px; margin: 0 auto; }
/* Basal temperature is a wide card, not a phone screen — show it at its own shape. */
.wide-shot { max-width: 600px; margin: 44px auto 0; }
.wide-shot img { width: 100%; display: block; border-radius: 18px; border: 1px solid var(--border); }
.wide-shot figcaption { margin-top: 16px; text-align: center; color: var(--ink-muted); font-size: 13.5px; line-height: 1.5; max-width: 30em; margin-left: auto; margin-right: auto; }
.shot { margin: 0; }
.shot-phone { width: 100%; max-width: 320px; aspect-ratio: 1206 / 2622; margin: 0 auto; border-radius: 38px; background: #191716; border: 10px solid #000; box-shadow: 0 28px 56px -18px rgba(0,0,0,0.62); overflow: hidden; }
/* Real iPhone proportions; video letterboxed into the app's own screen colour. */
.shot-screen { width: 100%; height: 100%; display: block; background: #191716; border-radius: 28px; overflow: hidden; }
.shot-screen video, .shot-screen img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shot figcaption { margin-top: 16px; text-align: center; color: var(--ink-muted); font-size: 13.5px; line-height: 1.5; max-width: 320px; margin-left: auto; margin-right: auto; }

/* ── Grounded in research ─────────────────────────────────── */
.gtk-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.gtk-wrap .section-head.left { margin: 0; }
.gtk-card { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: 0 20px 44px -24px rgba(0,0,0,0.6); }
.gtk-eyebrow { text-transform: uppercase; letter-spacing: 1.6px; font-size: 11px; font-weight: 600; color: var(--green-bright); margin-bottom: 14px; }
.gtk-body { font-family: "Newsreader", Georgia, serif; font-size: 22px; line-height: 1.4; color: var(--ink); margin: 0 0 18px; }
.gtk-src { font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--border); padding-top: 14px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .cta-row { justify-content: center; }
  .features, .prices { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  #report .report-wrap { grid-template-columns: 1fr; gap: 32px; }
  .section-head.left { text-align: center; margin: 0 auto; }
  .shots { grid-template-columns: 1fr; gap: 40px; }
  .gtk-wrap { grid-template-columns: 1fr; gap: 32px; }
  nav.links a:not(.btn) { display: none; }
}
