/* ==========================================================================
   90 Days Slim Plan — landing site
   "Ninety quiet days" editorial theme (sage), lifted from the app palette.
   ========================================================================== */

:root {
  /* Semantic palette — matches shared/…/core/ui/theme/Color.kt (SageColors) */
  --bg:          #f4eee1;
  --surface:     #fbf6ea;
  --text:        #1f261f;
  --muted:       #736a58;
  --line:        #e6dfcd;
  --accent:      #516b4d;
  --accent-soft: #dfe6d3;
  --warn:        #b85c40;
  --warn-soft:   #f1d9cc;
  --starch:      #b78a2e;
  --starch-soft: #efe3c6;
  --vitamins:    #6e8b3d;
  --vitamins-soft:#e1e8cf;
  --water:       #3e7a87;
  --water-soft:  #d9e6e6;

  --maxw: 1080px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(31,38,31,.04), 0 12px 32px -18px rgba(31,38,31,.22);

  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

.serif-em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

p { margin: 0 0 1rem; }
.lead { font-size: 1.18rem; color: #3a4038; max-width: 42ch; }

/* ---------- Header ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,238,225,.82);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { color: var(--text); font-size: 1.02rem; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .btn-sm { }
@media (max-width: 720px) { .nav a:not(.btn-sm) { display: none; } }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--surface);
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 1px solid var(--accent); cursor: pointer; transition: transform .15s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--text); color: var(--bg);
  border-radius: 14px; padding: 11px 20px 11px 18px; min-width: 200px;
  transition: transform .15s ease, filter .15s ease;
}
.store-badge:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.08); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .b-top { font-size: .68rem; letter-spacing: .04em; opacity: .8; line-height: 1; }
.store-badge .b-main { font-size: 1.15rem; font-weight: 700; line-height: 1.15; }
.store-badge.soon { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.store-badge.soon:hover { transform: none; filter: none; }
.store-badge.soon .b-main { color: var(--text); }
.badge-note { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--mono); opacity: .75; }

/* ---------- Hero --------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; }
.hero .stats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.stat .n { font-family: var(--serif); font-style: italic; font-size: 2.1rem; color: var(--accent); line-height: 1; }
.stat .l { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* Ring motif device (echoes the app icon) */
.ring-art { position: relative; aspect-ratio: 1; max-width: 440px; margin-inline: auto; width: 100%; }
.ring-art .disc {
  position: absolute; inset: 0; border-radius: 32px; background: var(--accent);
  box-shadow: var(--shadow); overflow: hidden;
}
.ring-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-art .cap {
  position: absolute; left: 0; right: 0; bottom: 26px; text-align: center;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .34em; text-transform: uppercase;
  color: rgba(244,238,225,.6);
}

/* ---------- Sections ----------------------------------------------------- */
section { padding: 72px 0; }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.card .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 16px; background: var(--accent-soft); color: var(--accent);
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }

/* Day-type legend (the food-dissociation method) */
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 8px; }
@media (max-width: 720px) { .days { grid-template-columns: 1fr 1fr; } }
.day {
  border-radius: var(--radius-sm); padding: 20px 18px; border: 1px solid var(--line);
  background: var(--surface);
}
.day .dot { width: 12px; height: 12px; border-radius: 50%; margin-bottom: 14px; }
.day .name { font-weight: 700; font-size: 1.02rem; }
.day .desc { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.day.protein  { background: var(--warn-soft); }      .day.protein  .dot { background: var(--warn); }
.day.starch   { background: var(--starch-soft); }    .day.starch   .dot { background: var(--starch); }
.day.carbs    { background: var(--accent-soft); }    .day.carbs    .dot { background: var(--accent); }
.day.vitamins { background: var(--vitamins-soft); }  .day.vitamins .dot { background: var(--vitamins); }
.day.water    { background: var(--water-soft); }     .day.water    .dot { background: var(--water); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step .num {
  font-family: var(--serif); font-style: italic; font-size: 2.4rem; color: var(--accent);
  line-height: 1; margin-bottom: 10px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

/* Premium */
.premium-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .premium-grid { grid-template-columns: 1fr; gap: 32px; } }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; }
.perks .chk {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent);
  color: var(--surface); display: grid; place-items: center; margin-top: 1px;
}
.perks .chk svg { width: 14px; height: 14px; }
.perks strong { font-weight: 700; }
.perks span { color: var(--muted); }

.pricecard {
  background: var(--accent); color: var(--bg); border-radius: 24px; padding: 40px 34px;
  box-shadow: var(--shadow);
}
.pricecard .tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.pricecard h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.2rem; margin: 12px 0 6px; color: var(--bg); }
.pricecard p { opacity: .82; font-size: .98rem; }
.pricecard .mini { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; font-size: .95rem; }
.pricecard .mini li { display: flex; gap: 10px; opacity: .92; }
.pricecard .mini li::before { content: "•"; opacity: .6; }

/* CTA band */
.cta {
  text-align: center; background:
    radial-gradient(120% 120% at 50% -10%, var(--accent-soft), transparent 60%);
}
.cta .ring-mini { width: 68px; height: 68px; margin: 0 auto 22px; }
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--muted); max-width: 46ch; margin: 0 auto 30px; }
.cta .stores { justify-content: center; }

/* ---------- Footer ------------------------------------------------------- */
.site-footer { background: var(--text); color: #cdc7b8; padding: 56px 0 40px; }
.site-footer a { color: #e7e1d2; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer .brand span { color: #f4eee1; }
.site-footer .fnav { display: flex; gap: 40px; flex-wrap: wrap; }
.site-footer .fcol { display: grid; gap: 10px; align-content: start; }
.site-footer .fcol .h { font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #8f887a; }
.site-footer .fcol a { color: #cdc7b8; font-size: .95rem; }
.site-footer .fcol a:hover { color: #fff; }
.site-footer .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: #8f887a; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Legal / support article pages -------------------------------- */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.doc .updated { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 36px; }
.doc h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.doc h3 { font-size: 1.08rem; margin: 24px 0 8px; }
.doc p, .doc li { color: #3a4038; font-size: 1.02rem; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .note {
  background: var(--warn-soft); border: 1px solid #e6c3b4; border-radius: var(--radius-sm);
  padding: 16px 18px; font-size: .92rem; color: #5c3324; margin-bottom: 32px;
}
.doc a { text-decoration: underline; }
.back { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

/* Support specifics */
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); margin: 8px 0 12px;
}
.contact-card + .contact-card { margin-top: 20px; }

/* ---------- Forms (delete-account page) ---------------------------------- */
.auth-form { display: grid; gap: 12px; margin-bottom: 4px; }
.auth-form input, .check-row input[type="email"] {
  font: inherit; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; color: var(--text);
}
.auth-form input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: .85rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; cursor: pointer; }
.check-row input[type="checkbox"] { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--warn); }
.check-row span { color: var(--muted); font-size: .95rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; filter: none !important; }
.form-error {
  background: var(--warn-soft); border: 1px solid #e6c3b4; border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: .9rem; color: #5c3324; margin-top: 14px;
}
.form-ok { color: var(--accent); font-size: .9rem; margin-top: 14px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 16px; margin: 0; }
