/* tolerize.ca homepage. Same palette as the app (shared/app/app.css), light and dark. */
:root {
  --bg: #f5f7f9; --panel: #ffffff; --panel-2: #eef2f5; --line: #d6dde4; --line-2: #b7c2cc;
  --text: #17202a; --muted: #5d6b79; --accent: #1f7a5e; --accent-ink: #ffffff;
  --dose: #d9b778; --dose-edge: #b8944f; --dose-hi: #ecd7a8; --tape: #fff8e3; --tape-ink: #4a3610;
  --stopper: #44515e; --ok: #1d6b3c;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161b; --panel: #1a2027; --panel-2: #212933; --line: #2e3844; --line-2: #4a5866;
    --text: #e6ebf0; --muted: #93a1b0; --accent: #5cc5a2; --accent-ink: #0c1f19;
    --dose: #e8d3a6; --dose-edge: #c9ae74; --dose-hi: #f5e8c8; --tape: #f4ead2; --stopper: #8796a5; --ok: #78d39a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
.muted { color: var(--muted); }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.nav img { border-radius: 9px; }
.brand { font-weight: 700; font-size: 1.15rem; }
.spacer { flex: 1; }
.nav-link { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav-link:hover { color: var(--text); }
@media (max-width: 560px) { .nav-link { display: none; } }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center;
  padding-top: 64px; padding-bottom: 40px; }
@media (max-width: 820px) { .hero { grid-template-columns: minmax(0, 1fr); padding-top: 36px; gap: 28px; } }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px; padding: 5px 12px; margin: 0 0 18px; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); letter-spacing: -.02em; margin: 0 0 16px; }
.sub { color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.2rem); margin: 0 0 26px; max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; font-weight: 600; text-decoration: none; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: var(--panel); color: var(--text); }
.btn:hover { filter: brightness(1.06); }

.hero-art { margin: 0; }
.mock { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 14px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .35); max-width: 420px; margin: 0 auto; }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.mock-head span { color: var(--muted); font-size: .85rem; }
.mock svg { display: block; width: 100%; height: auto; overflow: visible; }
.mock-hint { text-align: center; color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.glass { fill: var(--panel-2); stroke: var(--line-2); stroke-width: 2; }
.liquid { fill: var(--dose); }
.liquid-top { fill: none; stroke: var(--dose-hi); stroke-width: 2.5; }
.next { stroke: var(--dose-edge); stroke-width: 1.5; stroke-dasharray: 4 3; }
.marks line { stroke: var(--stopper); stroke-width: 1.5; opacity: .6; }
.nums text { font-size: 12px; fill: var(--muted); text-anchor: end; }
.nums text.on { fill: var(--text); font-weight: 700; }
.bracket { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.small { font-size: 13px; fill: var(--muted); }
.tape { fill: var(--tape); stroke: var(--dose-edge); stroke-width: .75; }
.hand { font: 600 17px "Caveat", "Bradley Hand", "Segoe Print", cursive; fill: var(--tape-ink); text-anchor: middle; }
.stopper { fill: var(--stopper); }
.count { font-size: 54px; font-weight: 700; fill: var(--text); }
.good { font-size: 13px; font-weight: 600; fill: var(--ok); }

.block { padding-top: 48px; padding-bottom: 24px; }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 8px; }
.block h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 0 0 14px; }
.lead { color: var(--muted); max-width: 40em; margin: 0 0 20px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.feature h3 { font-size: 1.05rem; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }

.store-badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badge { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.badge img { height: 46px; width: auto; display: block; }
.badge.soon img { filter: grayscale(1); opacity: .5; }
.soon-label { font-size: .8rem; color: var(--muted); }

.note { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.note h2 { font-size: 1.3rem; margin: 0 0 8px; }
.note p { margin: 0; color: var(--muted); max-width: 46em; }

.foot { padding-top: 32px; padding-bottom: 40px; border-top: 1px solid var(--line); margin-top: 32px; font-size: .95rem; }
.foot p { margin: 4px 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { filter: none; } }
