:root {
  color-scheme: light;
  --canvas:#f7f8f2; --paper:#fff; --ink:#14261b; --muted:#46594c;
  --green:#237045; --deep:#12271c; --edge:#d8e2d7; --soft:#eaf1e6;
  --wrap:72rem;
  font: 16px/1.5 "Aptos", "Segoe UI", system-ui, sans-serif;
  color:var(--ink); background:var(--canvas);
}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
a{color:inherit;text-underline-offset:.2em}
button{font:inherit;color:inherit;cursor:pointer}
button:disabled{opacity:.55;cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #177d60;outline-offset:3px}
h1,h2,h3,p{margin:0}
.wrap{width:min(calc(100% - 3rem),var(--wrap));margin-inline:auto}
.header{background:var(--paper);border-bottom:1px solid #e6ece2}
.header-inner{min-height:4.7rem;display:flex;align-items:center;justify-content:space-between;gap:1.25rem}
.brand{display:inline-flex;padding:.22rem .45rem;border-radius:.5rem;background:var(--deep)}
.brand img{width:8.6rem;height:auto}
.header nav,.footer nav{display:flex;gap:1.45rem;font-weight:650}
.header nav a,.footer nav a{text-decoration:none}
.header nav a:hover,.footer nav a:hover{text-decoration:underline}
.pill,.button{border:1px solid transparent;border-radius:.65rem;min-height:2.9rem;display:inline-flex;gap:.45rem;align-items:center;justify-content:center;padding:.65rem 1rem;font-weight:700;text-decoration:none}
.cart-toggle{border-color:var(--edge);background:var(--paper)}
.cart-toggle:hover{background:var(--soft)}
.cart-toggle svg{width:1.1rem;height:1.1rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cart-toggle span{border-radius:1rem;background:var(--soft);min-width:1.35rem;font-size:.82rem;text-align:center;padding:0 .25rem}
.hero{background:#13291f url("assets/hero.webp") 63% 50%/cover;color:#fff;position:relative;isolation:isolate}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(8,24,17,.94),rgba(8,24,17,.64) 47%,rgba(8,24,17,.08) 80%)}
.hero-inner{display:grid;align-content:center;justify-items:start;gap:1.25rem;min-height:clamp(23rem,42vw,34rem);padding-block:3.5rem}
.hero h1{font-size:clamp(2.65rem,6.1vw,5.1rem);letter-spacing:-.06em;line-height:1.02}
.hero p{max-width:31rem;color:#e3ebe1;font-size:clamp(1rem,1.8vw,1.2rem)}
.primary-on-dark{margin-top:.45rem;background:#d7e8ba;color:#172818}
.primary-on-dark:hover{background:#e8f4d2}
.section{padding-block:clamp(2.5rem,5vw,5rem)}
h2{font-size:clamp(2rem,4.2vw,3rem);line-height:1.15;letter-spacing:-.045em}
h3{font-size:1.23rem;letter-spacing:-.02em}
.profile-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-block:1.4rem 1.65rem}
.profile-tabs button{min-width:0;display:grid;grid-template-columns:4rem minmax(0,1fr);align-items:center;gap:.8rem;text-align:left;background:var(--paper);border:1px solid var(--edge);padding:.5rem;border-radius:.8rem;font-size:1.18rem;font-weight:750}
.profile-tabs button[aria-pressed=true]{border-color:#347854;background:var(--soft)}
.profile-tabs img{width:4rem;height:3.35rem;object-fit:cover;border-radius:.45rem}
.profile-tabs small{display:block;color:var(--muted);font-size:.875rem;font-weight:550}
.configuration{display:grid;grid-template-columns:minmax(0,1fr) minmax(17rem,.5fr);gap:clamp(1.1rem,3vw,2.4rem);align-items:start}
.hardware-select{display:grid;gap:.45rem;margin-bottom:1.35rem;font-size:1.15rem;font-weight:750}
.hardware-select select{width:100%;padding:.75rem .85rem;color:var(--ink);background:var(--paper);border:1px solid var(--edge);
  border-radius:.7rem;font:inherit;font-size:1rem}
.hardware-select select:focus-visible{outline:2px solid #177d60;outline-offset:3px}
.sensor-note{font-size:.9rem;color:var(--muted);margin-top:.7rem}
.config-note{border-left:3px solid #e8c783;padding:.5rem .7rem;margin-top:.85rem;color:#ffe7b5;font-size:.92rem}
.config-note a{display:block;margin-top:.3rem}
.cart-item .cart-status{font-size:.9rem;color:#765208}
fieldset{min-width:0;border:0;padding:0;margin:0 0 1.5rem}
legend{font-size:1.15rem;font-weight:750;padding:0;margin-bottom:.6rem}
.options{display:grid;gap:.55rem}
.option{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.75rem;align-items:start;padding:.85rem 1rem;border:1px solid var(--edge);background:var(--paper);border-radius:.7rem;cursor:pointer}
.option:has(input:checked){background:var(--soft);border-color:#7ca58a}
.option:hover{border-color:#729b81}
.option input{width:1.1rem;height:1.1rem;margin:.22rem 0 0;accent-color:var(--green)}
.option strong,.option small{display:block}
.option small{font-size:.875rem;color:var(--muted);margin-top:.15rem}
.option-price{font-weight:730;white-space:nowrap;font-variant-numeric:tabular-nums}
.summary{background:var(--deep);color:#fff;border-radius:1rem;padding:1.4rem;position:sticky;top:1.1rem}
.panel-preview{margin:0 0 1rem}
.panel-preview a,.panel-preview img{display:block}
.panel-preview img{width:100%;height:auto;border-radius:.6rem}
.panel-preview figcaption{font-size:.82rem;color:#d6e5d7;margin-top:.4rem}
.summary-intro,.summary ul{color:#d6e5d7}
.summary-intro{margin-top:.4rem}
.summary ul{padding-left:1.15rem;margin:1rem 0}
.summary li{margin:.25rem 0}
.summary-price{display:flex;justify-content:space-between;align-items:baseline;gap:.4rem;border-top:1px solid #4d6657;padding-top:.85rem;margin-bottom:.85rem}
.summary-price strong{font-size:1.65rem;letter-spacing:-.025em;white-space:nowrap}
.primary{color:#fff;background:var(--green);border-color:var(--green)}
.primary:hover{background:#195f37}
.summary .primary{background:#d7e8ba;color:#172818;border-color:#d7e8ba;width:100%}
.summary .primary:hover{background:#e8f4d2}
.cloud{background:#e8efe7;border-block:1px solid #dfe8de}
.lead{margin-top:.7rem;max-width:43rem;color:var(--muted)}
.cloud-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem;margin-top:1.45rem}
.cloud-card{display:flex;flex-direction:column;align-items:flex-start;gap:.55rem;background:var(--paper);border:1px solid var(--edge);border-radius:.8rem;padding:1.15rem}
.cloud-card p{color:var(--muted);font-size:.94rem}
.cloud-card .plan-price{font-size:1.4rem;font-weight:750;color:var(--ink);white-space:nowrap}
.cloud-card .plan-price span{font-size:.875rem;color:var(--muted);font-weight:550}
.cloud-card button{margin-top:auto;min-height:2.6rem;background:var(--paper);border-color:#82a48b}
.cloud-card button:hover{background:var(--soft)}
.credits-help{max-width:35rem;margin-top:1.4rem}
.credits-help summary{cursor:pointer;font-weight:730}
.credits-help dl{margin:.75rem 0}
.credits-help dl div{display:flex;justify-content:space-between;gap:.7rem;padding:.3rem 0;border-bottom:1px solid #cedccd}
.credits-help dd{margin:0;white-space:nowrap}
.credits-help p{color:var(--muted)}
.footer{min-height:6rem;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6rem 1.5rem;padding-block:1.3rem}
.footer span{font-weight:800}.footer small{color:var(--muted)}
.cart{width:min(100%,29rem);height:100%;max-height:none;max-width:none;margin:0 0 0 auto;padding:1.3rem;border:0;background:var(--canvas);color:var(--ink)}
.cart::backdrop{background:#1422199c}
.cart-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}
.cart-header h2{font-size:1.8rem}
.close{border:1px solid var(--edge);border-radius:.55rem;width:2.6rem;height:2.6rem;background:white;font-size:1.5rem}
.cart-items{display:grid;gap:.6rem}
.cart-item{padding:.75rem;background:white;border:1px solid var(--edge);border-radius:.6rem}
.cart-item h3{font-size:1.02rem}
.cart-item p,.cart-totals small{color:var(--muted)}
.cart-item-actions,.cart-totals div{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-top:.4rem}
.quantity{display:flex;align-items:center;gap:.4rem}
.quantity button{height:2.2rem;min-width:2.2rem;border:1px solid var(--edge);border-radius:.35rem;background:#f8faf5}
.quantity .remove{padding:0 .4rem}
.cart-totals{display:grid;gap:.55rem;margin-top:1rem}
.cart-totals button{margin-top:.35rem}
.toast{position:fixed;z-index:4;bottom:1rem;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 2rem);padding:.75rem 1rem;background:var(--deep);color:white;border-radius:.65rem;pointer-events:none}
@media(max-width:45rem){
  .wrap{width:min(calc(100% - 1.5rem),var(--wrap))}
  .header-inner{gap:.65rem;min-height:4.1rem}
  .header nav{gap:.65rem;font-size:.88rem}
  .brand img{width:6.4rem}
  .cart-toggle{padding:.45rem .6rem;min-height:2.5rem;font-size:.85rem}
  .cart-toggle svg{display:none}
  .hero{background-position:66% 50%}
  .hero::before{background:linear-gradient(90deg,#0b2018ed 0%,#0b2018a3 67%,#0b20183d 100%)}
  .hero-inner{min-height:23rem}
  .configuration,.cloud-grid{grid-template-columns:1fr}
  .summary{position:static}
  .options .option{padding:.7rem;gap:.45rem}
  .profile-tabs button{grid-template-columns:3rem minmax(0,1fr);gap:.5rem}
  .profile-tabs img{width:3rem;height:3rem}
}
@media(max-width:340px){.header nav{gap:.35rem;font-size:.78rem}.brand img{width:5.25rem}}
.guide{display:grid;grid-template-columns:1fr minmax(0,.92fr);align-items:center;gap:clamp(1.05rem,3vw,2.1rem);padding:1.2rem 0;border-bottom:1px solid var(--edge)}
.guide:first-of-type{margin-top:.7rem}
.guide ol{padding-left:1.3rem;margin:.75rem 0}
.guide li+li{margin-top:.45rem}
.guide p{color:var(--muted)}
.guide figure{margin:0;min-width:0}
.guide img{display:block;width:100%;height:auto;border-radius:.65rem;background:var(--deep)}
.guide figcaption{color:var(--muted);font-size:.875rem;margin-top:.35rem}
.web-guide{grid-template-columns:minmax(0,.72fr) 1fr}
.web-guide img{width:min(100%,12.5rem)}
.showcase{background:#15281f;color:#f7faec}
.showcase .lead{color:#d3dfd2}
.showcase-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;flex-wrap:wrap}
.scene-controls{display:flex;gap:.4rem;border:1px solid #577364;border-radius:.7rem;padding:.3rem}
.scene-controls button{border:0;border-radius:.45rem;min-height:44px;padding:.3rem 1rem;background:transparent;color:inherit;font-weight:700}
.scene-controls button[aria-pressed=true]{background:#d7e8ba;color:#172818}
.scene-controls button:focus-visible{outline-color:#a5ddaf}
.scene-grid,.creation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1.35rem}
.scene-card{min-width:0;margin:0;background:#20382c;border:1px solid #506b5b;border-radius:1rem;overflow:hidden}
.scene-frame{aspect-ratio:16/10;position:relative;background:#132218;isolation:isolate}
.scene-frame img{display:block}
.scene-background{width:100%;height:100%;object-fit:cover}
.scene-animal{position:absolute;inset:auto 0 6%;margin-inline:auto;width:55%;height:69%;object-fit:contain;object-position:center bottom}
.showcase[data-night] .scene-tera .scene-background{filter:brightness(.46) saturate(.72)}
.scene-card figcaption{padding:.75rem 1rem 1rem}
.scene-card figcaption span{display:block;color:#d3dfd2;font-size:.92rem}
.example-link{display:inline-block;margin-top:1.05rem;font-weight:700}
.creation-guides{margin-top:2rem}
.creation-guides>p{margin-top:.35rem;color:var(--muted)}
.creation-grid article{min-width:0;padding:1.2rem;background:var(--paper);border:1px solid var(--edge);border-radius:.8rem}
.creation-grid h4{font-size:1.1rem;margin:0}
.creation-grid ol{padding-left:1.3rem}
.creation-grid li+li{margin-top:.4rem}
.prompt-example{border-left:3px solid #86a990;padding:.45rem .7rem;margin:.75rem 0;color:var(--muted);background:var(--soft)}
.prompt-example strong{display:block}
@media(max-width:45rem){
  .header-inner{flex-wrap:wrap;padding:.45rem 0 .6rem}
  .header nav{width:100%;order:3;gap:.45rem 1.05rem;justify-content:center;flex-wrap:wrap}
  .guide,.web-guide,.scene-grid,.creation-grid{grid-template-columns:1fr}
  .web-guide figure{order:2}
}
