/* /aircond only (HTML from tools/render-aircond.cjs, behaviour in aircond.js). Builds on landing.css and the
   site tokens in experience.css: --blue, --ink, --paper, --accent, --line, --muted, --display, --body.
   Two colours belong to the room drawing alone: cooled floor (pale blue) and still-warm floor (sand). */

.lp-ac{padding-bottom:120px}

/* ---------- Room tool: slider and model list on the left, the room drawing on the right ---------- */
.ac-room{grid-template-columns:minmax(260px,.72fr) minmax(0,1.5fr);grid-template-areas:"control stage" "list stage";gap:20px clamp(28px,4vw,64px);align-items:start}
.ac-control{grid-area:control}
/* Room type buttons, for customers who don't know the size: 2 × 2, HP under each name.
   The slider label below them becomes the second way in ("Or set the room size"). */
.lp-hero .ac-presets-label{margin:0 0 10px;font-size:16px;font-weight:600;color:#fff;max-width:none}
.ac-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:22px}
.ac-presets button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-height:60px;padding:8px 14px;border:1.5px solid #ffffff66;border-radius:12px;background:transparent;color:#fff;font-size:15px;font-weight:700;line-height:1.25;text-align:left;transition:background .2s,color .2s,border-color .2s}
.ac-presets small{font-size:14px;font-weight:600;color:var(--accent)}
.ac-presets button:hover{border-color:#fff}
.ac-presets button[aria-pressed="true"]{background:#fff;border-color:#fff;color:var(--ink)}
.ac-presets button[aria-pressed="true"] small{color:var(--blue)}
/* m² sits on its own line under the number, so the number never wraps differently as it grows */
.ac-control output small{display:block;margin-top:8px}
.ac-stage{grid-area:stage}
.ac-list{grid-area:list}
.lp-hero .ac-need{display:flex;align-items:baseline;justify-content:space-between;gap:12px;max-width:none;margin-top:16px;padding-top:14px;border-top:1px solid #ffffff40}
.ac-need span{font-size:15px;font-weight:600;color:#dce9ff}
.ac-need strong{font-family:var(--display);font-size:40px;line-height:1;color:var(--accent);font-variant-numeric:tabular-nums;white-space:nowrap}

.ac-rows{list-style:none;margin:0;padding:0}
.ac-rows li+li{border-top:1px solid #ffffff26}
.ac-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;min-height:64px;padding:8px;border:0;border-radius:8px;background:none;color:#fff;text-align:left;transition:background .2s,opacity .25s}
.ac-row:hover{background:#ffffff12}
.ac-row img{width:72px;height:32px;object-fit:contain}
.ac-row-name b{display:block;font-family:var(--display);font-size:22px;line-height:1.05;font-weight:700;text-decoration:underline 2px transparent;text-underline-offset:5px;transition:color .2s,text-decoration-color .2s}
.ac-row-name small{display:block;margin-top:3px;font-size:14px;color:#dce9ff}
.ac-row[aria-pressed="true"] .ac-row-name b{color:var(--accent);text-decoration-color:var(--accent)}
.ac-row-tag{display:none;padding:4px 10px;border-radius:999px;background:#fff;color:var(--ink);font-size:14px;font-weight:700}
.ac-row[data-fit="yes"] .ac-row-tag{display:inline-block}
/* Too small for the room: still tappable (to see why), but quieter. Only the photo fades, so the text keeps its contrast. */
.ac-row img{transition:opacity .25s}
.ac-row[data-fit="small"] img{opacity:.35}
.ac-row[data-fit="small"]:not([aria-pressed="true"]) .ac-row-name b{font-weight:600}
.ac-row[data-fit="small"]:hover img,.ac-row[data-fit="small"][aria-pressed="true"] img{opacity:1}
.lp-hero .ac-list .lp-stage-note{margin-top:14px}

/* The drawing: a light board on the blue band (it needs the contrast for the warm / cool floor to read).
   Shadow: it is the one raised object in the hero. */
.ac-stage{margin:0;border-radius:16px;overflow:hidden;background:#f5f8fc;box-shadow:0 24px 48px -28px #00153a80}
.ac-view{position:relative;aspect-ratio:16/10.5;isolation:isolate}
.ac-canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
/* Placed by aircond.js at its real width on the back wall; the fallbacks keep it sensible without JavaScript */
.ac-unit{position:absolute;left:var(--ux,50%);top:var(--uy,9%);z-index:1;width:var(--uw,22%);height:auto;max-width:none;transform:translateX(-50%);filter:drop-shadow(0 6px 8px rgb(7 30 57 / .2));transition:opacity .2s;pointer-events:none}
.ac-unit.is-swapping{opacity:0}
.lp-hero .ac-key{position:absolute;left:12px;top:10px;z-index:2;display:flex;flex-wrap:wrap;gap:4px 14px;max-width:none;margin:0;padding:6px 10px;border-radius:10px;background:rgb(255 255 255 / .85);font-size:14px;font-weight:600;line-height:1.3;color:var(--ink)}
.ac-key span{display:inline-flex;align-items:center;gap:7px}
.ac-key i{width:14px;height:14px;border-radius:4px}
.ac-key .is-cool{background:#cde1fc;box-shadow:inset 0 0 0 1px #9dbff0}
.ac-key .is-warm{background:#f2dfc3;box-shadow:inset 0 0 0 1px #d6b88c}
.lp-hero .ac-key-warm{display:none}
.lp-hero .ac-stage.is-warm .ac-key-warm{display:inline-flex}
/* What the drawing means, in words, in a strip under it. Accent colour once the room is fully cooled. */
.ac-verdict{display:flex;align-items:center;min-height:56px;padding:12px 16px;border-top:1px solid var(--line);background:#fff;color:var(--ink);font-size:16px;font-weight:700;line-height:1.35;transition:background .35s}
.ac-verdict.is-small,.ac-verdict.is-none{background:#fbf0de}
.ac-verdict.is-done{background:var(--accent);animation:ac-done .5s cubic-bezier(.16,1,.3,1)}
@keyframes ac-done{40%{transform:scale(1.015)}}

/* ---------- Model panels: the aircond on a strip of wall above the floor, the way it hangs at home ---------- */
.ac-art{height:auto;aspect-ratio:5/4;align-items:flex-start;padding-top:20%;border-bottom:0;border-radius:10px;background:linear-gradient(#e9eff6 0 80%,#dbe3ed 80%)}
.ac-art .lp-model-img{width:86%;height:auto;object-position:center}
.ac-colours{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.ac-colours button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px 0 10px;border:1.5px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:14px;font-weight:700;transition:border-color .2s}
.ac-colours button:hover{border-color:var(--ink)}
.ac-colours button[aria-pressed="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.ac-colours i{width:20px;height:20px;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px #071e3940}

/* Energy rating as stars out of 5: gold with a dark edge so they hold up on the white card; unearned stars are outlines */
.ac-stars{display:inline-flex;gap:2px;vertical-align:middle}
.ac-stars i{display:block;width:22px;height:22px}
.ac-stars svg{width:100%;height:100%;fill:none;stroke:#b8c6d6;stroke-width:1.6;stroke-linejoin:round}
.ac-stars i.is-on svg{fill:#f5b301;stroke:#9a6a00}

/* ---------- Free standard installation: lengths on the left (bars to scale), fixed items on the right ---------- */
.ac-install{background:#fff;margin-top:72px}
.ac-install-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,6vw,96px);align-items:end}
.ac-install h2{font-size:clamp(46px,5.4vw,80px);text-wrap:balance}
.ac-install h2 span{color:var(--blue)}
.ac-install-head p{font-size:16px;color:var(--muted);max-width:48ch}
.ac-kit{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:0 clamp(28px,5vw,80px);margin-top:44px}
.ac-kit ul{list-style:none;margin:0;padding:0;border-bottom:1px solid var(--line)}
.ac-kit li{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:baseline;gap:6px 18px;padding:16px 0;border-top:1px solid var(--line)}
.ac-kit b{font-family:var(--display);font-size:40px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.ac-kit span{font-size:16px;font-weight:600;line-height:1.4}
.ac-kit i{grid-column:2;display:block;width:calc(var(--len) * 100%);height:8px;border-radius:4px;background:var(--blue)}
.ac-kit-items b{font-size:22px;color:var(--blue)}

/* ---------- 7-Step Aircond Care sits on the page colour, between the white installation band and the blue terms ---------- */
.ac-care{background:transparent}

@media(max-width:1000px){
  .ac-room{grid-template-columns:minmax(0,1fr);grid-template-areas:"control" "stage" "list"}
  /* the "which HP do I need?" button is longer than the other pages' hero buttons: stack the hero earlier */
  .lp-ac .lp-hero-head{grid-template-columns:minmax(0,1fr);gap:16px}
}
@media(max-width:760px){
  .lp-ac{padding-bottom:84px}
  .lp-ac h1{font-size:clamp(42px,12vw,64px)}
  .lp-ac .lp-jump,.lp-ac .lp-room-hint{display:none}
  .ac-view{aspect-ratio:4/3.4}
  .ac-need strong{font-size:34px}
  .ac-row{grid-template-columns:56px minmax(0,1fr) auto;gap:10px;padding:8px 4px}
  .ac-row img{width:56px;height:26px}
  .ac-row-name b{font-size:19px}
  .ac-verdict{font-size:15px;padding:10px 14px}
  .ac-art{padding-top:16%}
  .ac-install{margin-top:48px}
  .ac-install-head,.ac-kit{grid-template-columns:1fr;gap:14px}
  .ac-kit{gap:0}
  .ac-kit-items{border-top:0}
  .ac-kit li{grid-template-columns:76px minmax(0,1fr);gap:6px 14px}
  .ac-kit b{font-size:32px}
  .ac-kit-items b{font-size:19px}
}
@media(prefers-reduced-motion:reduce){
  .ac-row,.ac-row-name b,.ac-unit,.ac-colours button,.ac-verdict,.ac-presets button{transition:none}
  .ac-verdict.is-done{animation:none}
}
