:root { --bg: #FAF7F2; --fg: #111; --muted: #6b6560; --line: #e5e0d8; --dark: #111; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Inter", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--fg); line-height: 1.55; }
a { color: inherit; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; letter-spacing: -0.3px; text-decoration: none; }
.brand svg { width: 48px; height: 48px; }
nav a { margin-left: 18px; font-size: 14px; color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--fg); }
.hero { padding: 48px 0 32px; }
.hero h1 { font-size: 52px; line-height: 1.05; margin: 0 0 18px; letter-spacing: -1.5px; font-weight: 800; }
.hero p.lead { font-size: 19px; color: #333; margin: 0 0 28px; max-width: 560px; font-weight: 500; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--dark); color: #fff; padding: 12px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 15px; }
.store small { display: block; font-weight: 400; font-size: 11px; color: #aaa; }
.store.soon { opacity: 0.55; pointer-events: none; }
h2 { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin: 48px 0 14px; }
h3 { font-size: 17px; margin: 22px 0 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.card b { display: block; margin-bottom: 4px; }
.card p { margin: 0; font-size: 14px; color: #444; }
.science li { margin-bottom: 10px; }
.note { font-size: 14px; color: var(--muted); }
footer { margin: 64px 0 32px; font-size: 13px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
footer a { text-decoration: none; }

/* demo */
#demo { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
#demo .q { color: #333; margin: 0 0 14px; }
#demo .counter { font-size: 13px; color: var(--muted); float: right; }
#demo .stem { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; margin: 12px 0 20px; }
#demo .row { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 20px; }
#demo .row .qm, #demo .cell .qm { font-size: 34px; color: #999; }
#demo .matrix { display: grid; grid-template-columns: repeat(3, 84px); margin: 12px auto 20px; width: max-content; }
#demo .cell { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; border: 1px solid #d9d3ca; margin: -0.5px; }
#demo .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#demo .opt { position: relative; min-height: 80px; background: #fff; border: 1px solid #d9d3ca; border-radius: 6px; padding: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-variant-numeric: tabular-nums; cursor: pointer; font-family: inherit; }
#demo .opt:hover { border-color: #888; }
#demo .opt:disabled { cursor: default; }
#demo .opt .idx { position: absolute; top: 6px; left: 8px; font-size: 12px; color: #999; }
#demo .opt.ok { border-color: #000; background: #000; color: #fff; }
#demo .opt.ok svg { filter: invert(1); }
#demo .opt.bad svg { opacity: .45; }
#demo .opt.bad { border-color: #999; background: #eee; }
#demo .explain { margin-top: 18px; }
#demo .verdict { font-weight: 600; margin-bottom: 6px; }
#demo .verdict.ok { color: #000; } #demo .verdict.bad { color: #999; }
#demo .btn { display: inline-block; background: var(--fg); color: #fff; border: 0; border-radius: 6px; padding: 12px 20px; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 14px; font-family: inherit; text-decoration: none; }
#demo .result { text-align: center; }
#demo .result .big { font-size: 48px; font-weight: 700; margin: 8px 0; }

/* article */
article { max-width: 680px; }
article h1 { font-size: 34px; line-height: 1.2; margin: 32px 0 8px; letter-spacing: -0.4px; }
article .meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
article h2 { font-size: 22px; text-transform: none; letter-spacing: 0; color: var(--fg); margin: 36px 0 10px; }
article p, article li { font-size: 17px; }
article .refs { font-size: 14px; color: #444; }
article .refs li { margin-bottom: 6px; }
.cta { background: var(--dark); color: #fff; border-radius: 10px; padding: 24px; margin: 40px 0; }
.cta p { margin: 0 0 14px; color: #ccc; }
@media (max-width: 600px) { .hero h1 { font-size: 36px; letter-spacing: -1px; } #demo .matrix { grid-template-columns: repeat(3, 72px); } #demo .cell { width: 72px; height: 72px; } }

/* hero with phone */
.hero2 { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding: 32px 0 16px; }
.hero2 .stores { margin-top: 4px; }
.phone-wrap { display: flex; flex-direction: column; align-items: center; }
.phone { width: 320px; height: 660px; background: #111; border-radius: 48px; padding: 12px; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,.25), 0 0 0 2px #333; }
.island { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; background: #111; border-radius: 16px; z-index: 2; }
.screen { background: var(--bg); border-radius: 38px; height: 100%; overflow: auto; padding: 58px 12px 18px; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.app-top { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; margin: 0 4px 14px; }
.app-top svg { width: 32px; height: 32px; }
.phone-note { margin-top: 14px; text-align: center; }
.phone #demo { border: 0; padding: 0; background: transparent; }
.phone #demo .q { font-size: 15px; }
.phone #demo .stem { font-size: 22px; letter-spacing: -0.5px; }
.phone #demo .matrix { grid-template-columns: repeat(3, 72px); }
.phone #demo .cell { width: 72px; height: 72px; background: #fff; }
.phone #demo .cell svg { width: 58px; height: 58px; }
.phone #demo .opt { min-height: 72px; padding: 8px; font-size: 16px; }
.phone #demo .opt svg { width: 56px; height: 56px; }
.phone #demo .row svg { width: 46px; height: 46px; }
.phone #demo .result .big { font-size: 32px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--dark); color: #fff; padding: 9px 16px 9px 12px; border-radius: 10px; text-decoration: none; min-width: 168px; }
.store svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 600; font-size: 17px; }
.store small { display: block; font-size: 11px; font-weight: 400; color: #bbb; letter-spacing: .2px; }
@media (max-width: 860px) { .hero2 { grid-template-columns: 1fr; gap: 28px; } .phone { width: 300px; height: 620px; } }
