/* Tot Week landing. Brand accent = Captivio violet; light warm theme by default, Captivio dark in dark mode.
   No external fonts, scripts or cookies. */
:root {
  --bg: #fbf8f3;
  --bg-soft: #f4efe7;
  --surface: #ffffff;
  --outline: #e6dfd3;
  --text: #24212b;
  --text-2: #5d5866;
  --text-3: #8a8494;
  --accent: #8b6cf6;        /* Captivio accent */
  --accent-deep: #7250e6;   /* Captivio accentDeep — text-safe on light bg */
  --accent-soft: #efe9ff;
  --on-accent: #ffffff;
  /* Food groups: soft, never red */
  --veg: #7cbf86;
  --fruit: #f3ab61;
  --protein: #b998e6;
  --grains: #e3c46a;
  --dairy: #84b9e3;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(52, 37, 102, 0.10);
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c10;           /* Captivio background */
    --bg-soft: #121218;
    --surface: #16161c;      /* Captivio surface */
    --outline: #2c2c36;      /* Captivio outline */
    --text: #f5f5f7;         /* Captivio textPrimary */
    --text-2: #b4b4bf;       /* Captivio textSecondary */
    --text-3: #7d7d89;       /* Captivio textTertiary */
    --accent-deep: #a68bff;  /* Captivio accentLight — readable on dark */
    --accent-soft: #221d36;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h1 em, h2 em { font-style: italic; color: var(--accent-deep); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--text-3); margin-bottom: .8em; }
.lead { font-size: 1.2rem; color: var(--text-2); }
.muted { color: var(--text-2); }
.small { font-size: .9rem; }
.fineprint { font-size: .88rem; color: var(--text-3); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--text); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 20px; font-size: .95rem; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 24px; border-radius: 999px; font: 600 1rem var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 22px rgba(139, 108, 246, .35); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { color: var(--text); border-color: var(--outline); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }

/* Hero */
.hero { padding: 36px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .phone { margin-inline: auto; } .nav .hide-sm { display: none; } }

/* Phone mockup of the "Week" screen */
.phone { width: 300px; max-width: 100%; background: var(--surface); border: 1px solid var(--outline); border-radius: 38px; padding: 14px; box-shadow: var(--shadow); }
.screen { background: var(--bg); border-radius: 28px; padding: 22px 18px 18px; }
.screen-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.screen-top b { font-family: var(--serif); font-size: 1.25rem; }
.screen-top span { font-size: .8rem; color: var(--text-3); }
.verdict { font-family: var(--serif); font-size: 1.08rem; line-height: 1.4; margin-bottom: 18px; }
.rings { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 16px; }
.ring { text-align: center; font-size: .68rem; color: var(--text-2); }
.ring svg { width: 46px; height: 46px; margin: 0 auto 4px; }
.ring circle.track { stroke: var(--outline); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip { font-size: .75rem; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--text-2); }
.days { display: flex; justify-content: space-between; padding: 10px 6px; border-top: 1px solid var(--outline); font-size: .7rem; color: var(--text-3); }
.days span { display: grid; justify-items: center; gap: 4px; }
.days i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .85; }
.days i.off { background: var(--outline); }
.fab { margin: 10px auto 0; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.8rem; line-height: 1; box-shadow: 0 6px 16px rgba(139,108,246,.4); }

/* Sections */
section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 24px; }
.steps .card::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; margin-bottom: 14px; }
.steps .card p:last-child, .card p:last-child { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .steps, .grid-2 { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.facts li { background: var(--surface); border: 1px solid var(--outline); border-radius: 14px; padding: 16px 18px; }
.facts b { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--accent-deep); line-height: 1.1; margin-bottom: 4px; }
.promises { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 640px) { .promises { grid-template-columns: 1fr; } }
.promises li { display: flex; gap: 12px; align-items: flex-start; }
.promises svg { flex: none; width: 24px; height: 24px; color: var(--veg); margin-top: 3px; }
.quote { font-family: var(--serif); font-size: 1.5rem; font-style: italic; line-height: 1.35; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan h3 { margin-bottom: 4px; }
.price { font-family: var(--serif); font-size: 2rem; margin: 6px 0 2px; }
.price small { font-family: var(--sans); font-size: .95rem; color: var(--text-2); }
.plan ul { padding-left: 1.1em; margin: 14px 0 0; }
.plan li { margin-bottom: 6px; }
.plan.plus { border-color: var(--accent); box-shadow: var(--shadow); }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); }

/* FAQ */
details { border-bottom: 1px solid var(--outline); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--text-3); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--text-2); }

/* Waitlist form */
.waitlist { background: var(--surface); border: 1px solid var(--outline); border-radius: 26px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
.form .btn { justify-self: start; }
@media (max-width: 600px) { .form .btn { justify-self: stretch; } }
label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
input[type=email], select { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--outline); background: var(--bg); color: var(--text); font: 1rem var(--sans); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { padding: 40px 0 56px; color: var(--text-3); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--text-2); }
.sources { font-size: .85rem; color: var(--text-3); }

/* Legal pages */
.legal { padding: 24px 0 64px; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal li { margin-bottom: 6px; }
