:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --ink: #1f1a17;
  --muted: #6b625b;
  --line: #e8e0d7;
  --accent: #c2553a;
  --accent-ink: #ffffff;
  --accent-soft: #f6e4dc;
  --lean: #2f5d50;
  --lean-soft: #dcebe5;
  --radius: 14px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151210;
    --surface: #1e1a17;
    --ink: #f3ece6;
    --muted: #b0a59c;
    --line: #342d28;
    --accent: #e57a5c;
    --accent-ink: #1a0f0b;
    --accent-soft: #3a241c;
    --lean: #7cc0aa;
    --lean-soft: #1d322b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151210; --surface: #1e1a17; --ink: #f3ece6; --muted: #b0a59c; --line: #342d28;
  --accent: #e57a5c; --accent-ink: #1a0f0b; --accent-soft: #3a241c; --lean: #7cc0aa; --lean-soft: #1d322b;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.logo { font: 600 20px/1 var(--font-head); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
nav.site a { color: var(--muted); text-decoration: none; font-size: 15px; margin-left: 16px; }
nav.site a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
h1 { font-size: clamp(34px, 8vw, 52px); margin: 28px 0 14px; }
h2 { font-size: clamp(24px, 5vw, 30px); margin: 48px 0 12px; }
h3 { font-size: 20px; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; }
.small { font-size: 14px; color: var(--muted); }

.tracks { display: grid; gap: 14px; margin: 28px 0 8px; }
@media (min-width: 600px) { .tracks { grid-template-columns: 1fr 1fr; } }
.track {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.track p { color: var(--muted); margin: 0; }
.track .tag { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.track.lean .tag { color: var(--lean); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); border: 0;
  font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }
.btn.lean { background: var(--lean); color: var(--bg); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.track .btn { margin-top: auto; }

.steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; counter-reset: step; }
.steps li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 16px 16px 60px; position: relative;
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
}

.prices { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 600px) { .prices { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .prices { grid-template-columns: repeat(4, 1fr); } }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.price .amount { font: 600 28px/1.1 var(--font-head); margin: 4px 0 8px; }
.price p { color: var(--muted); font-size: 15px; margin: 0; }

.chat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin: 20px 0; display: grid; gap: 8px;
}
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.45; }
.bubble.bot { background: var(--accent-soft); justify-self: start; border-bottom-left-radius: 4px; }
.bubble.me { background: var(--lean-soft); justify-self: end; border-bottom-right-radius: 4px; }

details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

.notice {
  background: var(--accent-soft); border-radius: var(--radius); padding: 14px 16px; font-size: 15px; margin: 18px 0;
}

.legal h2 { font-size: 22px; margin-top: 32px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }

.center { text-align: center; }
.big-tick {
  width: 64px; height: 64px; margin: 40px auto 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--lean-soft); color: var(--lean); font-size: 30px; font-weight: 700;
}

footer.site { margin: 64px 0 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer.site a { color: var(--muted); margin-right: 14px; }
footer.site p { margin: 10px 0 0; }

/* ---------- product pages (/glow, /lean) ---------- */
body.glow { --track: var(--accent); --track-soft: var(--accent-soft); }
body.lean { --track: var(--lean); --track-soft: var(--lean-soft); }
.p-hero { padding: 24px 0 8px; }
.p-hero .tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--track); background: var(--track-soft); border-radius: 999px; padding: 5px 12px; margin-top: 12px; }
.p-hero h1 mark { background: var(--track-soft); color: inherit; padding: 0 .1em; border-radius: 6px; }
.p-hero .cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 8px; }
body.lean .btn:not(.ghost) { background: var(--lean); color: var(--bg); }

.p-grid { display: grid; gap: 28px; align-items: center; margin-top: 28px; }
@media (min-width: 700px) { .p-grid { grid-template-columns: 1.1fr 1fr; } }

.phone { background: #efe7dc; border-radius: 22px; padding: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.18); width: 100%; max-width: 360px; justify-self: center; }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; border-bottom: 1px solid #d9cfc2; color: #1f1a17; }
.phone-head .av { width: 34px; height: 34px; border-radius: 50%; background: var(--track); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.phone-head b { display: block; font-size: 15px; line-height: 1.2; }
.phone-head small { color: #6b625b; font-size: 12px; }
.msgs { display: grid; gap: 8px; padding: 14px 2px 4px; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; color: #1f1a17; }
.msg.in { background: #fff; justify-self: start; border-top-left-radius: 4px; }
.msg.out { background: #d6f2c4; justify-self: end; border-top-right-radius: 4px; }
.msg time { display: block; text-align: right; font-size: 11px; color: #8a8178; margin-top: 2px; }
.qr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 86%; }
.qr span { background: #fff; border-radius: 10px; text-align: center; padding: 7px 0; font-size: 14px; font-weight: 600; color: #2f7fb5; }

.week { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.week li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: baseline;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.week .d { font-weight: 700; color: var(--track); font-size: 14px; }
.week .m { color: var(--muted); font-size: 13px; white-space: nowrap; }
.week li.rest { background: transparent; }
@media (max-width: 480px) { .week li { grid-template-columns: 52px 1fr; } .week .m { grid-column: 2; } }

.cover { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 640px) { .cover { grid-template-columns: 1fr 1fr; } }
.cover > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.cover h3 { font-family: var(--font-body); font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.cover ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.cover li { margin-bottom: 4px; }

.band { background: var(--track); color: #fff; border-radius: 20px; padding: 26px 22px; margin-top: 48px; }
body.lean .band { color: var(--bg); }
.band h2 { margin: 0 0 14px; }
.band .g4 { display: grid; gap: 12px; }
@media (min-width: 640px) { .band .g4 { grid-template-columns: 1fr 1fr; } }
.band .g4 div { background: rgba(255,255,255,.12); border-radius: 12px; padding: 14px 16px; }
.band .g4 strong { display: block; margin-bottom: 2px; }
.band .g4 span { opacity: .85; font-size: 15px; }
.crumbs { font-size: 14px; margin-top: 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
