/* Shared styles for the landing, privacy and terms pages (the editor has its own editor.css). */
:root{--page:#FAF9F3;--surface:#FFF;--raised:#EEEDE7;--text:#3B3A35;--muted:#66645D;--line:#DEDED5;--control:#8B887D;--accent:#F6E85E;--on-accent:#3B3A35;--secondary:#EEEDE7;--focus:#68601F;--shadow:#00000014;--footer:#3B3A35;--footer-text:#FAF9F3;--footer-muted:#D0CEC5;color-scheme:light}
:root[data-mode=dark]{--page:#2B2A26;--surface:#34332E;--raised:#3B3A35;--text:#FAF9F3;--muted:#BBB9B0;--line:#4D4B43;--control:#9C998F;--secondary:#E1DFD5;--focus:#F6E85E;--shadow:#00000066;color-scheme:dark}
*{box-sizing:border-box}
/* #132: hash jumps land 16 px under the sticky header, from one value (--header-h, the header height). Smooth scrolling
   only for clicks on the page (site.js adds .smooth after load), so a page opened with a #hash jumps straight there. */
:root{--header-h:80px;--jump:calc(var(--header-h) + env(safe-area-inset-top,0px) + 16px)}
html{scroll-padding-top:var(--jump)}
@media(prefers-reduced-motion:no-preference){html.smooth{scroll-behavior:smooth}}
/* The footer follows the last section directly (JF, 14 Nov 2026: the empty space a minimum height left above the footer
   on desktop looked like a gap). A link to the last section scrolls as far as the page goes, so it may sit lower. */
body{margin:0;background:var(--page);color:var(--text);font-family:Arial,sans-serif}
[hidden]{display:none!important}
button,select{font:inherit;cursor:pointer}
a{color:inherit}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
.wrap{max-width:1240px;margin:auto;padding:0 32px}
/* header */
.site-header{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;background:#F6E85E;color:#3B3A35}
.site-header :focus-visible{outline-color:#68601F}
.top{max-width:1400px;min-height:80px;margin:auto;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.header-left,.header-right{display:flex;align-items:center;gap:12px}
.brand img{display:block;width:150px;height:auto}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:inherit}
.icon-btn:hover{background:#0000000d}
.i-sun{display:none}:root[data-mode=dark] .i-sun{display:block}:root[data-mode=dark] .i-moon{display:none}
.pill{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:40px;padding:0 20px;border:0;border-radius:999px;font-size:14px;text-decoration:none;background:#fff;color:#3B3A35}
.pill:hover{background:#F5F4EE}
/* drawer */
#nav-scrim{position:fixed;inset:0;z-index:30;background:#00000066}
html.nav-open{overflow:hidden}
#main-nav{position:fixed;z-index:31;right:0;top:0;bottom:0;width:min(calc(100vw - 112px),330px);padding:0 24px 24px;overflow-y:auto;background:var(--surface);color:var(--text);border-radius:20px 0 0 20px;box-shadow:0 0 40px var(--shadow);display:flex;flex-direction:column;animation:navin .2s ease-out}
@keyframes navin{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){#main-nav{animation:none}}
#main-nav :focus-visible{outline-color:var(--focus)}
.nav-head{display:flex;align-items:center;justify-content:flex-end;min-height:64px;margin:0 -12px}
/* #112: the menu button sits at the right end of the header, the drawer opens from the right and the theme button is under the menu items */
.nav-theme{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
#main-nav #theme{margin-left:-11px;color:var(--text)}
#main-nav #theme:hover{background:var(--raised)}
.nav-head .icon-btn:hover{background:var(--raised)}
.nav-primary,.nav-secondary{display:flex;flex-direction:column}
#main-nav a{display:flex;align-items:center;border-radius:12px;padding:0 12px;margin:0 -12px;text-decoration:none;color:inherit}
#main-nav a:hover{background:var(--raised)}
.nav-primary a{min-height:48px;font-size:18px;font-weight:600}
.nav-secondary{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.nav-secondary a{min-height:44px;font-size:14px;color:var(--muted)}
#main-nav a[aria-current=page]{background:var(--secondary);color:#3B3A35}
.nav-cta{margin-top:16px;align-self:flex-start;background:var(--accent)!important;color:#3B3A35!important;min-height:40px!important;font-size:14px!important;font-weight:400!important;border-radius:999px!important;padding:0 20px!important;margin-left:0!important;margin-right:0!important}
/* hero */
.hero{padding:80px 0 40px}
h1{margin:0;font-size:clamp(42px,6.4vw,84px);line-height:1.02;letter-spacing:-.045em;font-weight:700}
h1 span{display:block;font-weight:400}
.intro{max-width:620px;margin:28px 0 0;font-size:18px;line-height:1.5;color:var(--muted)}
.cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:36px}
/* trust line: icon + text items, evenly spaced, the same on every screen size; 16 px text like the buttons, icon and text in one colour */
.trust{display:flex;flex-wrap:wrap;gap:12px 24px;margin:24px 0 0;padding:0;list-style:none}
.trust li{display:inline-flex;align-items:center;gap:8px;font-size:16px;line-height:20px;color:var(--text)}
.trust svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:52px;padding:0 26px;border-radius:999px;font-size:16px;text-decoration:none;border:0;transition:background .15s}
.btn.primary{background:var(--accent);color:var(--on-accent)}
.btn.primary:hover{background:#F0DF46}
.btn.secondary{background:var(--secondary);color:#3B3A35}
.btn.secondary:hover{background:#D8D6CB}
@media(prefers-reduced-motion:reduce){.btn{transition:none}}
/* screenshot */
/* Landing rhythm (JF, 14 Nov 2026): 72 px of visible space between sections on desktop, 48 px on phones. Paddings
   are set so the gap from one section's last text to the next heading is that, allowing for line leading and the FAQ
   summary's own tap padding. */
.shot{margin:24px 0 64px}
.shot-frame{border:1px solid var(--line);border-radius:24px;background:var(--surface);overflow:hidden}
.shot-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.shot-scroll img{display:block;width:100%;height:auto}
.shot .dark{display:none}
/* usage totals (EPIC-12): stat strip under the screenshot, hidden until /api/stats answers */
.stats{margin:-28px 0 64px;text-align:center}.stats[hidden]{display:none}
.stats-nums{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 40px}
.stat{display:flex;flex-direction:column;align-items:center;gap:4px;margin:0}
.stat strong{font-size:22px;line-height:1;font-weight:700;letter-spacing:-.02em;color:var(--text)}
.stat span{font-size:14px;color:var(--muted)}
.stats-since{margin:12px 0 0;font-size:14px;color:var(--muted)}
:root[data-mode=dark] .shot .light{display:none}
:root[data-mode=dark] .shot .dark{display:block}
/* start paths */
.start{padding:0 0 72px}
.start-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px}
.start-card{display:block;padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface);text-decoration:none;transition:background .15s}
.start-card:hover{background:var(--raised)}
.start-card h3{margin:0 0 8px;font-size:22px;font-weight:600}
.start-card p{margin:0;font-size:16px;line-height:1.5;color:var(--muted)}
@media(prefers-reduced-motion:reduce){.start-card{transition:none}}
/* sections */
.two{display:grid;grid-template-columns:1fr 1fr;gap:48px;padding:48px 0 72px}
h2{margin:0;font-size:30px;line-height:1.2;letter-spacing:-.03em;font-weight:700;max-width:480px}
h2 span{font-weight:400}
.two p,.steps p{font-size:18px;line-height:1.6;color:var(--muted);margin:0;max-width:480px}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin-top:40px}
.steps h3{margin:0 0 10px;font-size:22px;font-weight:600}
.ic{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;margin-bottom:16px;border-radius:50%;background:var(--accent);color:#3B3A35}
.how{padding:0 0 66px}
.worth{padding:0 0 52px}
.faq{margin-top:28px;max-width:760px}
.faq details{padding:6px 0}
.faq summary{min-height:44px;padding:10px 0;font-size:18px;cursor:pointer}
.faq p{font-size:18px;line-height:1.6;color:var(--muted);margin:0;max-width:480px}
.faq details p{padding-bottom:12px}
.about{padding:0 0 72px}
.about-card{display:grid;grid-template-columns:1fr 1fr;gap:48px;padding:56px;background:var(--surface);border:1px solid var(--line);border-radius:24px}
.about-card .sym{display:block;width:56px;height:56px;margin-bottom:20px}
.about-card p{font-size:18px;line-height:1.6;color:var(--muted);margin:0;max-width:480px}
.about-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.about-card .more{margin-top:28px;font-size:14px}
/* footer */
.site-footer{background:var(--footer);color:var(--footer-muted);padding:56px 0 24px}
.footer-inner{display:grid;grid-template-columns:1fr auto;gap:32px;max-width:1240px;margin:auto;padding:0 32px}
.footer-brand p{color:var(--footer-text);font-size:18px;line-height:1.3;margin:20px 0 16px}
.footer-brand span{font-size:14px}
.site-footer nav{display:flex;gap:8px 24px;flex-wrap:wrap;justify-content:flex-end;align-self:start}
.site-footer nav a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;text-decoration:none}
.site-footer a:hover{text-decoration:underline;text-underline-offset:4px}
.site-footer :focus-visible{outline-color:#F6E85E}
.footer-bottom a{text-decoration:underline;text-underline-offset:3px}.doc{max-width:none;padding:72px 0 96px}.doc h1{font-size:clamp(34px,5vw,48px);letter-spacing:-.04em;line-height:1.1}.doc .upd{margin:12px 0 40px;font-size:14px;color:var(--muted)}.doc h2{font-size:22px;margin:36px 0 10px;max-width:none}.doc p,.doc li{font-size:16px;line-height:1.7;color:var(--muted);margin:0 0 12px}.doc ul{padding-left:20px;margin:0 0 12px}.doc a{color:var(--text)}.doc h3{font-size:18px;font-weight:600;margin:24px 0 8px}.doc code{font-family:inherit;font-size:16px;background:var(--raised);border-radius:3px;padding:0 4px;overflow-wrap:anywhere}.doc ol{padding-left:20px;margin:0 0 12px}
.doc .table-scroll{overflow-x:auto;margin:0 0 12px}.doc table{border-collapse:collapse;font-size:16px;color:var(--muted);min-width:100%}.doc th,.doc td{text-align:left;vertical-align:top;padding:10px 16px 10px 0;border-bottom:1px solid var(--line);line-height:1.5}.doc th{color:var(--text);font-weight:600}
.footer-bottom{grid-column:1/-1;display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;padding-top:24px;font-size:13px}
@media(max-width:767px){
 :root{--header-h:72px}.wrap{padding:0 20px}.top{min-height:72px;padding:0 12px;gap:8px}.brand img{width:118px}
 .header-pill{display:none}
 .hero{padding:40px 0 28px}h1{font-size:42px}.intro{font-size:18px;margin-top:20px}
 .cta{margin-top:28px}.btn{min-height:52px}
 .start{padding-bottom:48px}.start-row{grid-template-columns:1fr;gap:12px;margin-top:20px}.start-card{padding:20px}
 .shot{margin:16px 0 48px}.shot-scroll img{width:760px;max-width:none}
 .two{grid-template-columns:1fr;gap:18px;padding:32px 0 48px}h2{font-size:26px}
 .steps{grid-template-columns:1fr;gap:28px;margin-top:28px}
 .how{padding:0 0 40px}.worth{padding-bottom:28px}.about{padding:0 0 48px}.stats{margin-bottom:40px}.about-card{grid-template-columns:1fr;gap:20px;padding:28px 24px;border-radius:20px}.about-card p{font-size:16px}.about-actions .btn{flex:1 1 100%}
 .footer-inner{grid-template-columns:1fr;padding:0 20px}.site-footer nav{justify-content:flex-start}
}
