/* Shared website refinement; existing semantic palette remains authoritative. */
.brand-copy { display:grid; gap:3px; line-height:1.1; }
.brand-copy strong { font:inherit; }
.brand-copy small { font:11px/1.25 system-ui,sans-serif; letter-spacing:0; color:var(--muted); font-weight:400; }
.donate-heart { display:inline-flex; align-items:center; justify-content:center; width:40px; height:44px; flex:none; color:var(--accent); border-radius:8px; text-decoration:none; }
.donate-heart svg { width:23px; height:23px; animation:kind-heart 14s ease-in-out infinite; transform-origin:center; }
.donate-heart:hover svg { transform:scale(1.1); }
@keyframes kind-heart { 0%,85%,100% { transform:scale(1); } 89%,94% { transform:scale(1.08); } 91%,97% { transform:scale(1); } }
:where(a,button,summary):focus-visible { outline:2px solid var(--focus-ring); outline-offset:4px; }
.site-nav .nav-links a:hover,.site-dropdown summary:hover { background:transparent; color:var(--accent); }
.refined-footer.site-footer { background:var(--paper); color:var(--text); padding:52px 0 24px; border-top:1px solid var(--border); }
.refined-footer .footer-intro { margin-bottom:30px; }
.footer-intro strong { font:27px/1.25 var(--serif); }
.footer-intro p { color:var(--muted); margin:8px 0 0; }
.footer-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:28px; }
.footer-grid h2 { font:600 13px/1.5 system-ui,sans-serif; letter-spacing:.07em; text-transform:uppercase; color:var(--text); margin:0 0 12px; }
.footer-grid ul { list-style:none; padding:0; margin:0; display:grid; gap:4px; }
.refined-footer a { display:inline-block; padding:6px 0; color:var(--muted); text-decoration:none; font-size:14px; line-height:1.5; }
.refined-footer a:hover { color:var(--accent); text-decoration:underline; text-underline-offset:4px; }
.footer-copyright { border-top:1px solid var(--border); padding-top:24px; margin:32px 0 0; color:var(--muted); font-size:13px; }
.btn.pro-cta,.btn.pro-cta:hover,.btn.pro-cta:focus-visible { background:var(--button-primary-bg); color:var(--button-primary-text); border:1px solid var(--button-primary-bg); box-shadow:var(--button-primary-shadow); }
.btn.pro-cta:hover { background:var(--button-primary-hover); border-color:var(--button-primary-hover); }
.btn.pro-cta { transition:background .18s ease,box-shadow .18s ease; }
.shared-page-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:36px; align-items:center; padding:70px 0 56px; }
.pro-page .shared-page-hero h1 { font-size:clamp(36px,4vw,56px); }
.shared-page-hero .hero-copy { min-width:0; }
.shared-page-hero .hero-product,.shared-donation-hero .hero-product { width:100%; min-width:0; transform:none; margin:0; position:relative; }
.shared-page-hero .product-frame,.shared-donation-hero .product-frame { transform:none; }
.shared-page-hero .lead { font-size:18px; }
.pro-page .shared-page-hero::before { inset:24px -20px 20px; }
.shared-donation-hero { background:none; min-height:0; margin-bottom:36px; }
.shared-donation-hero .hero-inner { display:grid; grid-template-columns:1fr 1.1fr; gap:40px; align-items:center; min-height:0; padding-block:52px; }
.shared-donation-hero .hero-copy { max-width:none; }
.shared-donation-hero .hero-copy h1 { font-size:clamp(38px,4vw,58px); }
.free-value { padding:24px 0 28px; max-width:850px; }
.free-value h2 { font:clamp(26px,3vw,36px)/1.2 var(--serif); margin:0 0 16px; }
.free-value p { color:var(--muted); line-height:1.75; }
.pro-faq { display:grid; grid-template-columns:1fr 1fr; gap:14px 22px; align-items:start; }
.pro-faq>h2,.pro-faq>.pro-guide-links { grid-column:1/-1; }
.pro-faq .pro-question { margin:0; padding:18px 20px; border:1px solid var(--border); border-radius:10px; background:var(--paper); }
.pro-faq .pro-question summary { padding:0 25px 0 0; min-height:40px; }
.pro-faq .pro-question summary::after { top:12px; right:2px; }
.pro-faq .pro-question p { padding:12px 0 0; margin:0; }
.refinement-page { padding-block:64px 80px; }
.page-heading { max-width:820px; margin-bottom:36px; }
.page-heading h1 { font:clamp(40px,5vw,68px)/1.1 var(--serif); margin:14px 0 22px; }
.page-heading .lead { font-size:20px; color:var(--muted); line-height:1.7; }
.decision-grid,.roadmap-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start; }
.decision-card,.roadmap-card { border:1px solid var(--border); border-radius:12px; background:var(--paper); padding:24px; }
.decision-card summary { cursor:pointer; font-size:18px; font-weight:600; line-height:1.5; }
.decision-card[open] { border-color:var(--accent-border); }
.decision-card p,.roadmap-card p { color:var(--muted); line-height:1.8; }
.decision-card a { color:var(--accent); }
.roadmap-card h2 { font:30px/1.2 var(--serif); margin:16px 0; }
.guide-visuals { margin-block:36px; }
.guide-visuals figure { margin:24px 0; }
.guide-visuals img { display:block; max-width:100%; height:auto; border:1px solid var(--border); border-radius:8px; }
.guide-visuals figcaption { font-size:13px; color:var(--muted); margin-top:10px; line-height:1.6; }
.hero-product img { width:100%; height:auto; }
@media(max-width:1250px) and (min-width:981px) { .site-header-inner { gap:18px; } .nav-links { gap:14px; } .nav-controls { gap:8px; } .brand { font-size:20px; gap:8px; } }
@media(max-width:980px) { .footer-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .shared-page-hero,.shared-donation-hero .hero-inner { grid-template-columns:1fr; gap:32px; } .shared-page-hero .hero-product,.shared-donation-hero .hero-product { max-width:740px; margin:auto; } .pro-page .shared-page-hero::before { inset:16px -12px; } }
@media(max-width:600px) { .brand-copy small { font-size:10px; } .footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px 16px; } .decision-grid,.roadmap-grid,.pro-faq { grid-template-columns:1fr; } .refinement-page { padding-block:36px 56px; } .shared-page-hero { padding:44px 0; } .decision-card,.roadmap-card { padding:20px; } .shared-donation-hero .hero-inner { padding-inline:0; } }
@media(prefers-reduced-motion:reduce) { .donate-heart svg { animation:none; transform:none; } .donate-heart:hover svg { transform:none; } .btn.pro-cta { transition:none; } }
/* Shared laptop layout: include the base inside the allotted grid column. */
.hero-inner:has(> .hero-product),.shared-page-hero { grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); }
.hero-inner:has(> .hero-product)>*,.shared-page-hero>* { min-width:0; }
.hero-product,.shared-page-hero .hero-product,.shared-donation-hero .hero-product {
 width:min(100%,760px); max-width:100%; min-width:0; margin:0 auto; padding:24px 0 0;
 position:relative; transform:none; align-self:center;
}
.hero-product .product-frame { width:89.285714%; max-width:100%; margin:0 auto; transform:none; }
.hero-product .product-frame img { display:block; width:100%; max-width:100%; height:auto; aspect-ratio:auto; object-fit:contain; }
.hero-product .laptop-base { width:100%; max-width:100%; left:auto; margin:0 auto; height:14px; }
@media(max-width:900px) {
 .hero-inner:has(> .hero-product),.shared-page-hero,.shared-donation-hero .hero-inner { grid-template-columns:minmax(0,1fr); gap:30px; }
 .hero-product,.shared-page-hero .hero-product,.shared-donation-hero .hero-product { width:min(100%,740px); padding-top:0; }
}
/* An occasional double beat, then a long rest; no layout movement. */
:root { --support-heart:#ba2848; }
:root[data-theme=dark] { --support-heart:#ff7b8d; }
.donate-heart { cursor:pointer; transition:color .2s ease; }
.donate-heart svg { animation:support-heartbeat 6.5s ease-in-out infinite; transform-origin:center; }
.donate-heart:hover,.donate-heart:focus-visible { color:var(--support-heart); background:transparent; }
.donate-heart:hover svg { animation:support-heartbeat 6.5s ease-in-out infinite; }
@keyframes support-heartbeat {
 0%,24%,100% { transform:scale(1); opacity:.92; filter:none; }
 5% { transform:scale(1.15); opacity:1; filter:drop-shadow(0 0 3px currentColor); }
 10% { transform:scale(1); opacity:.96; }
 16% { transform:scale(1.1); opacity:1; filter:drop-shadow(0 0 2px currentColor); }
}
@media(prefers-reduced-motion:reduce) {
 .donate-heart,.donate-heart svg,.donate-heart:hover svg { animation:none; transform:none; filter:none; transition:none; }
}
/* Desktop fit override; final threshold is selected from measured EN/EL geometry. */
@media(min-width:900px) {
 .site-header-inner { min-height:72px; gap:16px; }
 .menu-toggle { display:none; }
 .site-nav,.site-nav.is-open { display:flex; position:static; flex-direction:row; align-items:center; gap:12px; padding:0; background:transparent; border:0; box-shadow:none; }
 .nav-links { flex-direction:row; flex-wrap:nowrap; width:auto; gap:12px; align-items:center; justify-content:center; }
 .nav-links a { padding:10px 2px; }
 .nav-controls { margin-left:0; gap:6px; flex-shrink:0; }
 .lang-toggle button { min-width:32px; min-height:44px; }
 .site-dropdown { width:auto; }
 .site-dropdown summary { padding:.45rem 0; }
 .site-dropdown-panel { position:absolute; top:100%; right:0; min-width:210px; width:auto; max-width:min(300px,calc(100vw - 40px)); box-shadow:0 8px 20px rgb(0 0 0 / .12); }
}
@media(min-width:900px) and (max-width:1379px) {
 .site-header-inner { width:calc(100% - 40px); gap:12px; }
 .brand { font-size:20px; gap:8px; flex-shrink:0; }
 .nav-links { gap:8px; }
 .site-nav { font-size:13px; gap:10px; }
 .site-dropdown summary { font-size:13px; }
}

/* Visual consistency 003: shared shell, invariant media and uncompressed controls. */
:root { --site-content-max:var(--max-width); --site-gutter:clamp(20px,2.223vw,32px); --reading-content-max:740px; --gutter:var(--site-gutter); }
.container,.page-shell,.page-shell.pro-page,html[data-knowledge-layout] .knowledge-main {
 width:min(calc(100% - var(--site-gutter)*2),var(--site-content-max)); max-width:var(--site-content-max); margin-inline:auto;
}
html[data-site-page=about] .knowledge-main,html[data-site-page=about-panos] .knowledge-main,html[data-site-page=donate] .knowledge-main { width:100%; max-width:none; }
.site-header-inner { width:min(calc(100% - var(--site-gutter)*2),var(--site-content-max)); }
.hero-product .product-frame { aspect-ratio:1496/875; }
.hero-product .product-frame img { width:100%; height:100%; aspect-ratio:auto; object-fit:contain; object-position:center; max-height:100%; }
.lang-toggle { flex:0 0 auto; }
.lang-toggle button { flex:0 0 40px; width:40px; min-width:40px; padding-inline:6px; white-space:nowrap; text-align:center; }
.theme-button,.donate-heart { flex-shrink:0; }
@media(min-width:900px) and (max-width:1050px) { .site-header-inner { gap:8px; } .nav-links { gap:6px; } .site-nav { gap:8px; } .nav-controls { gap:4px; } }
.donate-heart svg { animation:none; transform:none; filter:none; opacity:1; }
.donate-heart:is(:hover,:focus-visible) svg { animation:interaction-heartbeat 1.2s ease-in-out infinite; }
@keyframes interaction-heartbeat { 0%,40%,100% { transform:scale(1); } 12% { transform:scale(1.1); } 25% { transform:scale(1); } 32% { transform:scale(1.06); } }
.screenshot-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; }
.screenshot-item { display:flex; flex-direction:column; min-width:0; }
.screenshot-item img { display:block; flex:none; width:100%; height:auto; aspect-ratio:1496/875; object-fit:contain; object-position:center; padding:8px; box-sizing:border-box; background:var(--paper); }
/* Definite media height prevents HTML intrinsic dimensions from sizing the viewport. */
.screenshot-item { container-type:inline-size; }
.screenshot-item img { height:calc(100cqw * 875 / 1496); }
.screenshot-item span { flex:1; margin:0; line-height:1.5; }
@media(max-width:700px) { .screenshot-gallery { grid-template-columns:minmax(0,1fr); } }
@media(prefers-reduced-motion:reduce) { .donate-heart svg,.donate-heart:is(:hover,:focus-visible) svg { animation:none; transform:none; filter:none; } }

/* 004: light scenery contained a second laptop; show only the shared foreground device. */
:root[data-theme=light] .hero:has(.hero-product)::before { background-image:url("assets/optimized/bg-author-light-no-device.webp"); }
