:root{color-scheme:dark;--bg:#09131d;--surface:#132533;--line:#294354;--muted:#abbfce;--text:#eaf2f6;--orange:#ff883f;--blue:#8dcced;--max:1140px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at 78% 6%,#14374d 0,transparent 41%),var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.65}
a{color:var(--blue)}a:hover{color:#fff}.wrap{max-width:var(--max);padding:0 26px;margin:auto}header{position:sticky;z-index:10;top:0;background:#09131df2;border-bottom:1px solid var(--line);backdrop-filter:blur(13px)}
.top{min-height:75px;display:flex;align-items:center;justify-content:space-between;gap:25px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:1.28rem;letter-spacing:.1em;font-weight:900;color:#fff}.brand strong{color:var(--orange)}.brand-icon{width:30px;height:30px;border:2px solid var(--orange);border-radius:50%;position:relative}.brand-icon:before{content:"";position:absolute;inset:7px;border:2px solid var(--orange);border-radius:50%}.brand-icon:after{content:"";position:absolute;width:40px;height:2px;background:var(--orange);top:12px;left:-6px;transform:rotate(-35deg)}
nav{display:flex;gap:4px;flex-wrap:wrap}nav a{color:#b9cbd5;text-decoration:none;font-weight:800;letter-spacing:.035em;font-size:.82rem;border-radius:6px;padding:9px 11px}nav a:hover,nav a[aria-current="page"]{color:#fff;background:#1b3547}nav a[aria-current="page"]{box-shadow:inset 0 -2px var(--orange)}
main{min-height:65vh}.hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:48px;padding:76px 0 48px}.hero img{width:100%;display:block}.hero-image{position:relative;background:#19384a;border:1px solid #3a5667;border-radius:18px;overflow:hidden;box-shadow:0 24px 64px #0007}.img-note{font-size:.72rem;color:#dbe5e8;background:#091722c9;position:absolute;bottom:8px;right:9px;border-radius:4px;padding:2px 8px}
h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2.65rem,5.5vw,5rem);line-height:1.06;letter-spacing:-.052em;margin:14px 0 22px}h1 em,h2 em{font-style:normal;color:var(--orange)}h2{font-size:clamp(1.8rem,3.1vw,2.7rem);line-height:1.2;letter-spacing:-.038em;margin-bottom:16px}h3{font-size:1.17rem;line-height:1.32;margin-bottom:9px}.lead{font-size:1.12rem;color:#c4d4de;max-width:650px}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;font-size:.76rem;letter-spacing:.17em;font-weight:900;color:var(--orange)}.small{font-size:.83rem;color:var(--muted)}
.pill{display:inline-block;border:1px solid #506071;border-radius:99px;padding:5px 11px;font-size:.72rem;color:#d0dee4;letter-spacing:.045em;font-weight:800;background:#102536}.pill:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--orange);margin-right:7px}.btns{display:flex;gap:11px;flex-wrap:wrap;margin:25px 0}.btn{display:inline-block;color:white;background:#193447;border:1px solid #436074;border-radius:8px;padding:11px 18px;font-size:.9rem;font-weight:850;text-decoration:none}.btn:hover{background:#29516a;color:white}.btn.primary{background:var(--orange);border-color:var(--orange);color:#191a1b}.btn.primary:hover{background:#ffac7b;color:#191a1b}.btn.disabled{opacity:.55;pointer-events:none;cursor:not-allowed}
.section{padding:48px 0;border-top:1px solid #253e4e}.section-head{max-width:760px;margin-bottom:23px}.section-head p{color:#b9cbd5}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.cards.two{grid-template-columns:repeat(2,1fr)}.card{background:linear-gradient(140deg,#152d3e,#0e202d);border:1px solid #304a5b;border-radius:12px;padding:25px;min-width:0}.card p{color:#b9cbd5}.card a{font-weight:750}.number{font-weight:900;font-size:.74rem;color:var(--orange);letter-spacing:.1em;margin-bottom:19px}
.feature{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center}.page-intro{padding:66px 0 25px;max-width:800px}.page-intro h1{font-size:clamp(2.7rem,5vw,4.5rem)}.notice{margin:18px 0;padding:17px 21px;border:1px solid #866044;background:#32251d;color:#f7e2d1;border-radius:10px}.notice strong{color:#ffc095}
.device{height:auto;aspect-ratio:640/172;border:9px solid #05080c;border-radius:17px;background:linear-gradient(to bottom,#4b9fea 0 56%,#7d9f79 56% 100%);position:relative;overflow:hidden;box-shadow:0 16px 36px #0006}.device:before{content:"";position:absolute;left:46%;bottom:23%;height:21px;width:84px;background:#3a3a35;clip-path:polygon(10% 0,90% 0,100% 100%,0 100%)}.device:after{content:"";position:absolute;left:66%;top:22%;height:12px;width:23px;border:2px solid #201513;border-radius:50%;background:#fa7229;transform:rotate(-14deg)}.device span{font-size:.63rem;position:absolute;bottom:5px;right:8px;color:#15212c;font-weight:850}
.steps{counter-reset:item}.step{display:grid;grid-template-columns:51px 1fr;gap:17px;padding:19px 0;border-bottom:1px solid #304757}.step:before{counter-increment:item;content:counter(item);height:41px;width:41px;border-radius:50%;display:grid;place-items:center;background:var(--orange);color:#111a1d;font-weight:900}.step p{color:#bacbd7;margin:3px 0}.table{border-collapse:collapse;width:100%;margin:18px 0}.table td,.table th{text-align:left;border-bottom:1px solid #2c485a;padding:12px}.table td:first-child{font-weight:750;width:35%}.table th{color:var(--orange)}
.graph{background:#091d2c;border:1px solid #2c4758;border-radius:13px;padding:13px}.graph svg{width:100%;display:block}.note{border-left:3px solid var(--blue);background:#132d3b;padding:12px 16px;color:#c4d7e2}.community-list{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.footer{border-top:1px solid #2b4455;padding:28px 0;color:#9fb1bc;font-size:.83rem}.footer a{color:#b9ddea}.foot{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}.links{display:flex;gap:17px;flex-wrap:wrap}
@media(max-width:900px){.hero,.feature{grid-template-columns:1fr}.hero{padding-top:38px;gap:24px}.top{flex-direction:column;align-items:flex-start;padding:14px 0;gap:10px}.cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:580px){.wrap{padding:0 17px}.cards,.cards.two,.community-list{grid-template-columns:1fr}nav a{padding:7px 8px;font-size:.73rem}h1{font-size:2.85rem}.section{padding:33px 0}.page-intro{padding-top:35px}.step{grid-template-columns:38px 1fr;gap:10px}.step:before{width:34px;height:34px}.card{padding:21px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.home-banner{padding-top:32px}.home-banner img{display:block;width:100%;max-width:100%;height:auto;object-fit:contain;background:#000;border:1px solid #344e61;border-radius:10px;box-shadow:0 12px 42px #0008}.home-banner .small{text-align:right;margin:6px 0 0}.hero{padding-top:42px}


/* Homepage: full-width guide below the introduction, no squeezed sidebar */
.hero{display:block;max-width:900px;padding-bottom:42px}
.holder-section{padding-top:38px;padding-bottom:58px}
.holder-feature{max-width:900px;margin:0 auto;background:#081b27;border:1px solid #345468;border-radius:14px;overflow:hidden;box-shadow:0 12px 34px #0005}
.holder-feature a{display:block;line-height:0}
.holder-feature img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.holder-link{max-width:900px;margin:12px auto 0}
.build-guide{max-width:870px;margin:0 auto;background:#081b27;border:1px solid #345468;border-radius:14px;overflow:hidden;box-shadow:0 12px 34px #0005}
.build-guide img{display:block;width:100%;height:auto}
.guide-caption{max-width:870px;margin:12px auto 0}
@media(max-width:900px){.hero{max-width:100%}.holder-feature{max-width:100%}}

/* V2 USB installer */
.install-check{display:flex;gap:12px;align-items:flex-start;margin:14px 0;padding:12px;border:1px solid #365365;background:#0d2130;border-radius:9px;line-height:1.4;cursor:pointer}
.install-check input{flex:none;width:20px;height:20px;accent-color:var(--orange);margin:2px 0 0}
.installer-controls{padding:14px 0 6px}
.installer-controls[hidden]{display:none!important}
.install-card esp-web-install-button{display:block;--esp-tools-button-color:#ff883f;--esp-tools-button-text-color:#17212a}
.install-card esp-web-install-button .btn{font-family:inherit;font-size:1rem;cursor:pointer}

/* FAQ: native accessible HTML disclosure, no scripts or server needed */
.faq-intro{max-width:860px}.faq-list-section{padding-top:20px}
.faq-list{display:grid;gap:12px;max-width:980px}
.faq-item{border:1px solid #355267;border-radius:12px;background:linear-gradient(115deg,#152d3d,#0e202e);overflow:hidden}
.faq-item summary{display:flex;align-items:center;gap:17px;list-style:none;cursor:pointer;padding:19px 22px;color:#f1f5f7;font-weight:750;font-size:1.08rem;line-height:1.35}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";margin-left:auto;flex-shrink:0;color:var(--orange);font-size:1.7rem;font-weight:350;line-height:1;min-width:24px;text-align:center}
.faq-item[open] summary::after{content:"−"}
.faq-item summary:hover{background:#1a3749}
.faq-item summary:focus-visible{outline:3px solid var(--orange);outline-offset:-3px}
.faq-number{font-size:.75rem;color:var(--orange);font-weight:900;letter-spacing:.04em;flex-shrink:0}
.faq-answer{padding:0 22px 17px 58px;color:#c6d5df}
.faq-answer p{margin:0;max-width:800px}.faq-answer strong{color:#fff}
@media(max-width:580px){.faq-item summary{padding:16px 13px;gap:10px;font-size:1rem}.faq-answer{padding:0 15px 18px 40px}}

/* Simplified V2-only installer: one hardware check, one install button */
.install-page-simple{max-width:920px}
.install-page-simple .page-intro{padding-bottom:15px}
.install-panel{border:1px solid #355267;border-radius:14px;background:#112838;padding:clamp(20px,4vw,38px);margin:15px 0 24px}
.install-panel h2{margin-bottom:12px}
.install-panel .install-check{max-width:560px;margin:15px 0}
.install-panel .installer-controls{padding:2px 0 0}
.install-panel .installer-controls .btn{font-size:1.05rem;padding:15px 30px}
.install-panel .install-backup-note{margin:18px 0 0;max-width:650px}
.install-finish-note{border-left:3px solid var(--orange);padding:7px 0 7px 16px;color:#c4d4de;max-width:740px}
.install-finish-note strong{color:#fff}
.install-support{padding:4px 0 42px}

/* BUILD: real Waveshare hardware photograph replaces illustrative screen */
.hardware-photo-card{padding:20px}
.hardware-photo-link{display:block;line-height:0;border-radius:10px;overflow:hidden;background:#e6effc}
.hardware-photo{display:block;width:100%;height:auto;aspect-ratio:960/820;object-fit:contain}
.hardware-photo-card .small{margin:13px 2px 0}

/* HOME: actual 640x172 simulator screenshot instead of illustration */
.screen-card{padding:20px}
.screen-shot-link{display:block;line-height:0;border-radius:10px;overflow:hidden;background:#112333}
.screen-shot{display:block;width:100%;height:auto;aspect-ratio:640/172;object-fit:contain;image-rendering:auto;border:1px solid #355267;border-radius:10px}
.screen-card .small{margin:12px 2px 0}
