/* ==========================================================================
   All-In-One Home ESS summary — /products/all-in-one-home-storage/
   Page-scoped styles loaded only by page-templates/aio-summary.php.
   Block design mirrors the Solar Inverters (tsi) and Solar Modules (tsm)
   landing pages: dark gradient hero -> floating stats bar -> numbered system
   overview -> model range cards -> technical comparison table -> RFQ band.
   Every selector is namespaced under .tresun-aio-summary / .aio-* .
   ========================================================================== */

.tresun-aio-summary{--aio-ink:#0b2130;--aio-muted:#5e7180;--aio-green:#389653;--aio-green-dark:#23763d;--aio-line:#dfe8ec;--aio-soft:#f4f8f6;--aio-dark:#071c2b;color:var(--aio-ink);background:#fff}
.tresun-aio-summary *{box-sizing:border-box}
.tresun-aio-summary h1,.tresun-aio-summary h2,.tresun-aio-summary h3,.tresun-aio-summary p{margin-top:0;color:inherit}
.tresun-aio-summary p{color:var(--aio-muted);line-height:1.75}
.tresun-aio-summary .aio-wrap{width:min(1180px,calc(100% - 48px));margin:0 auto}
.tresun-aio-summary .aio-kicker{display:flex;align-items:center;gap:10px;color:var(--aio-green);font-weight:850;font-size:12px;letter-spacing:.16em;text-transform:uppercase}
.tresun-aio-summary .aio-kicker:before{content:"";width:34px;height:2px;background:#75d597}
.tresun-aio-summary h1{font-size:clamp(40px,5vw,68px);line-height:1.02;letter-spacing:-.04em;margin-bottom:22px;font-weight:800}
.tresun-aio-summary h2{font-size:clamp(30px,3.4vw,46px);line-height:1.06;letter-spacing:-.03em;margin-bottom:18px;font-weight:800}
.tresun-aio-summary h3{font-size:22px;line-height:1.15;letter-spacing:-.02em;font-weight:800}

/* Hero */
.tresun-aio-summary .aio-hero{position:relative;padding:82px 0 76px;background:linear-gradient(124deg,#061f2e 0%,#0e3944 58%,#235d55 100%);color:#fff}
.tresun-aio-summary .aio-hero:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 78% 22%,rgba(118,223,154,.19),transparent 34%);pointer-events:none}
.tresun-aio-summary .aio-hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr);gap:68px;align-items:center}
.tresun-aio-summary .aio-hero .aio-kicker{color:#86e6a6}
.tresun-aio-summary .aio-hero .aio-kicker:before{background:#86e6a6}
.tresun-aio-summary .aio-hero-lede{color:#d3e2e6;font-size:18px;max-width:660px}
.tresun-aio-summary .aio-chip-row{display:flex;flex-wrap:wrap;gap:10px;margin:28px 0}
.tresun-aio-summary .aio-chip{padding:9px 13px;border:1px solid rgba(255,255,255,.24);border-radius:999px;background:rgba(255,255,255,.08);font-size:13px;font-weight:750;color:#fff}
.tresun-aio-summary .aio-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.tresun-aio-summary .aio-btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 22px;border-radius:10px;text-decoration:none;font-weight:800;transition:.2s ease}
.tresun-aio-summary .aio-btn-primary{background:#48a960;color:#fff}
.tresun-aio-summary .aio-btn-primary:hover{background:#318a49;color:#fff;transform:translateY(-1px)}
.tresun-aio-summary .aio-btn-ghost{border:1px solid rgba(255,255,255,.5);color:#fff}
.tresun-aio-summary .aio-btn-ghost:hover{background:#fff;color:var(--aio-ink)}
.tresun-aio-summary .aio-btn-outline{border:1px solid var(--aio-green);color:var(--aio-green-dark);background:#fff}
.tresun-aio-summary .aio-btn-outline:hover{background:var(--aio-soft)}
.tresun-aio-summary .aio-hero-visual{position:relative;border-radius:28px;background:#fff;padding:18px;box-shadow:0 30px 68px rgba(0,0,0,.26)}
.tresun-aio-summary .aio-hero-visual img{width:100%;height:auto;object-fit:contain;border-radius:17px;background:#f4f8fa}

/* Stats */
.tresun-aio-summary .aio-stats{position:relative;z-index:2;margin-top:-34px}
.tresun-aio-summary .aio-stats-grid{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border:1px solid var(--aio-line);border-radius:18px;box-shadow:0 18px 55px rgba(12,43,54,.12);overflow:hidden}
.tresun-aio-summary .aio-stat{padding:25px 28px;border-right:1px solid var(--aio-line)}
.tresun-aio-summary .aio-stat:last-child{border-right:0}
.tresun-aio-summary .aio-stat b{display:block;font-size:27px;color:var(--aio-ink);margin-bottom:5px}
.tresun-aio-summary .aio-stat span{font-size:13px;color:var(--aio-muted);font-weight:700}

/* Sections */
.tresun-aio-summary .aio-section{padding:92px 0}
.tresun-aio-summary .aio-section-soft{background:var(--aio-soft)}
.tresun-aio-summary .aio-section-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,460px);gap:54px;align-items:end;margin-bottom:42px}
.tresun-aio-summary .aio-section-head p{margin-bottom:4px}

/* System overview — numbered feature cards */
.tresun-aio-summary .aio-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.tresun-aio-summary .aio-feature{padding:30px 28px;border:1px solid var(--aio-line);border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(12,43,54,.05)}
.tresun-aio-summary .aio-feature-num{display:block;font-size:12px;font-weight:900;letter-spacing:.14em;color:var(--aio-green-dark);margin-bottom:12px}
.tresun-aio-summary .aio-feature h3{font-size:19px;margin-bottom:10px}
.tresun-aio-summary .aio-feature p{margin:0;font-size:14px}

/* Model range cards (same horizontal card as the Solar Modules landing page) */
.tresun-aio-summary .aio-range-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.tresun-aio-summary .aio-range-card{background:#fff;border:1px solid var(--aio-line);border-radius:17px;overflow:hidden;box-shadow:0 7px 22px rgba(8,38,51,.05);display:grid;grid-template-columns:38% 62%;min-height:300px}
.tresun-aio-summary .aio-range-media{background:#eef3f5;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:18px}
.tresun-aio-summary .aio-range-media img{width:auto;max-width:100%;height:auto;max-height:250px;object-fit:contain;display:block}
.tresun-aio-summary .aio-range-body{padding:20px;display:flex;flex-direction:column;min-width:0}
.tresun-aio-summary .aio-range-tag{font-size:10px;letter-spacing:1.25px;font-weight:900;text-transform:uppercase;color:var(--aio-green-dark)}
.tresun-aio-summary .aio-range-body h3{font-size:18px;line-height:1.2;margin:7px 0 10px;overflow-wrap:anywhere}
.tresun-aio-summary .aio-range-body h3 a{color:inherit;text-decoration:none}
.tresun-aio-summary .aio-range-chips{display:flex;gap:6px;flex-wrap:wrap}
.tresun-aio-summary .aio-range-chips span{font-size:10px;font-weight:800;border:1px solid #d9e3e5;background:#f5f8f8;border-radius:18px;padding:5px 8px;color:#38505d}
.tresun-aio-summary .aio-range-body p{font-size:12.5px;margin:12px 0 14px;line-height:1.55}
.tresun-aio-summary .aio-range-link{margin-top:auto;font-size:13px;font-weight:800;color:var(--aio-green-dark);text-decoration:none}
.tresun-aio-summary .aio-range-link:hover{text-decoration:underline}

/* Comparison table */
.tresun-aio-summary .aio-table-shell{border:1px solid var(--aio-line);border-radius:18px;overflow:hidden;background:#fff}
.tresun-aio-summary .aio-table{width:100%;border-collapse:collapse}
.tresun-aio-summary .aio-table-caption{text-align:left;padding:16px 20px;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--aio-muted);background:var(--aio-soft);border-bottom:1px solid var(--aio-line)}
.tresun-aio-summary .aio-table th,.tresun-aio-summary .aio-table td{padding:14px 20px;text-align:left;border-bottom:1px solid var(--aio-line);font-size:14px;vertical-align:top}
.tresun-aio-summary .aio-table thead th{background:var(--aio-dark);color:#fff;font-size:13px;font-weight:800}
.tresun-aio-summary .aio-table thead th a{color:#fff;text-decoration:none}
.tresun-aio-summary .aio-table tbody th{width:26%;font-weight:700;color:#3d5360;background:#fff}
.tresun-aio-summary .aio-table tbody td{font-weight:700}
.tresun-aio-summary .aio-table tbody tr:last-child th,.tresun-aio-summary .aio-table tbody tr:last-child td{border-bottom:0}


/* RFQ band */
.tresun-aio-summary .aio-rfq{display:grid;grid-template-columns:1fr auto;gap:30px;align-items:center;padding:36px;border-radius:20px;background:linear-gradient(120deg,#eaf7ee,#f8fbf9);border:1px solid #cce7d4}
.tresun-aio-summary .aio-rfq h3{font-size:26px;margin-bottom:8px}
.tresun-aio-summary .aio-rfq p{margin:0}
.tresun-aio-summary .aio-rfq-actions{display:flex;flex-wrap:wrap;gap:12px}

@media(max-width:1100px){
 .tresun-aio-summary .aio-hero-grid{grid-template-columns:1fr;gap:38px}
 .tresun-aio-summary .aio-hero-visual{max-width:680px}
 .tresun-aio-summary .aio-hero-visual img{height:auto}
 .tresun-aio-summary .aio-stats-grid{grid-template-columns:1fr 1fr}
 .tresun-aio-summary .aio-stat:nth-child(2){border-right:0}
 .tresun-aio-summary .aio-stat:nth-child(-n+2){border-bottom:1px solid var(--aio-line)}
 .tresun-aio-summary .aio-feature-grid{grid-template-columns:1fr}
 .tresun-aio-summary .aio-range-grid{grid-template-columns:1fr}
}
@media(max-width:720px){
 .tresun-aio-summary .aio-wrap{width:min(100% - 28px,1180px)}
 .tresun-aio-summary .aio-hero{padding:56px 0 50px}
 .tresun-aio-summary .aio-section{padding:64px 0}
 .tresun-aio-summary h1{font-size:36px}
 .tresun-aio-summary h2{font-size:30px}
 .tresun-aio-summary .aio-section-head{grid-template-columns:1fr;gap:14px;margin-bottom:28px}
 .tresun-aio-summary .aio-hero-visual{padding:10px;border-radius:18px}
 .tresun-aio-summary .aio-hero-visual img{height:auto}
  .tresun-aio-summary .aio-stats{margin-top:0}
 .tresun-aio-summary .aio-stats-grid{border-radius:0;grid-template-columns:1fr}
 .tresun-aio-summary .aio-stat{border-right:0;border-bottom:1px solid var(--aio-line);padding:20px}
 .tresun-aio-summary .aio-stat:last-child{border-bottom:0}
 .tresun-aio-summary .aio-feature{padding:24px 20px}
 .tresun-aio-summary .aio-range-card{grid-template-columns:36% 64%;min-height:0}
 .tresun-aio-summary .aio-range-media{padding:12px}
 .tresun-aio-summary .aio-range-media img{max-height:170px}
 .tresun-aio-summary .aio-table-shell{overflow-x:auto}
 .tresun-aio-summary .aio-table{min-width:620px}
 .tresun-aio-summary .aio-rfq{grid-template-columns:1fr;padding:26px}
 .tresun-aio-summary .aio-rfq .aio-btn{width:100%}
 .tresun-aio-summary .aio-btn{padding:0 18px}
}
