/* The hero shows the map with Forecast closed; feature captures show the sidebar. */
.app-status-stack{display:contents}
.demo-map{--sidebar:0%;height:auto;aspect-ratio:1.3}
#demo-map-canvas{left:var(--sidebar)}
.app-weather,.app-radar-status{left:calc(var(--sidebar) + 16px * var(--app-scale))}
.app-weather{width:calc(194px * var(--app-scale))}
.app-weather strong img{display:none}
.app-weather b{font-size:calc(14px * var(--app-scale))}
.app-weather span{font-size:calc(13px * var(--app-scale))}
.app-window-dots{z-index:3}
.preview-forecast{position:absolute;inset:0 auto 0 0;width:var(--sidebar);background:var(--surface);border-right:1px solid #71839155;overflow:hidden;font-size:calc(13px * var(--app-scale));color:#eef0f5}
.preview-forecast-hero{height:calc(210px * var(--app-scale));position:relative;background:linear-gradient(transparent 35%,var(--surface)),var(--forecast-scene,url('assets/app-scenes/asteroid/night.webp')) center/cover}
.preview-forecast-heading{display:flex;justify-content:space-between;padding:calc(52px * var(--app-scale)) calc(16px * var(--app-scale)) 0;font-size:calc(18px * var(--app-scale))}
.preview-forecast-heading span{font-weight:400;color:#d8e4ec}
.preview-current{position:absolute;inset:auto calc(16px * var(--app-scale)) calc(18px * var(--app-scale));font-size:calc(17px * var(--app-scale))}
.preview-current>div{display:flex;align-items:baseline;justify-content:space-between;gap:4px;margin-top:calc(12px * var(--app-scale))}
.preview-current strong{font-size:calc(40px * var(--app-scale));letter-spacing:-.03em}.preview-current span{font-size:calc(13px * var(--app-scale))}
.preview-forecast-content{padding:calc(16px * var(--app-scale));border-top:1px solid #a2b4c32b}
.preview-metrics{display:flex;justify-content:space-between;color:#b7c5cf;gap:4px}
.preview-metrics b{display:block;color:#eef0f5;font-size:calc(17px * var(--app-scale));margin-top:calc(8px * var(--app-scale))}
.preview-section-label{font:calc(12px * var(--app-scale)) var(--mono);color:#a7bdc7;margin:calc(16px * var(--app-scale)) 0 calc(12px * var(--app-scale));display:flex;justify-content:space-between}
.preview-section-label span{font-family:var(--sans)}
.preview-sun{display:flex;gap:calc(20px * var(--app-scale));padding:calc(12px * var(--app-scale));border-radius:7px;background:#ffffff05;color:var(--accent)}
.preview-sun span{flex:1}.preview-sun b{display:block;color:#eef0f5;margin-top:calc(8px * var(--app-scale));font-size:calc(17px * var(--app-scale))}
.preview-hours{display:flex;gap:calc(6px * var(--app-scale))}
.preview-hours>span{flex:1;display:flex;align-items:center;flex-direction:column;gap:calc(8px * var(--app-scale));border-radius:6px;background:#ffffff05;padding:calc(10px * var(--app-scale)) 2px;font-size:calc(14px * var(--app-scale))}
.preview-hours img{width:calc(24px * var(--app-scale));height:calc(24px * var(--app-scale));object-fit:contain}.preview-hours small,.preview-day small{color:#8dd1ed}
.preview-day{display:flex;align-items:center;justify-content:space-between;gap:calc(10px * var(--app-scale));background:#ffffff05;padding:calc(9px * var(--app-scale)) calc(10px * var(--app-scale));border-radius:6px;margin-bottom:calc(6px * var(--app-scale))}
.preview-day>b:first-child{width:calc(42px * var(--app-scale))}.preview-day i{height:3px;flex:1;border-radius:3px;background:var(--accent);opacity:.6}.preview-day>span:first-of-type{color:var(--accent)}
.preview-forecast-footer{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;gap:4px;padding:calc(12px * var(--app-scale));background:var(--surface);border-top:1px solid #a2b4c32b;font-size:calc(9px * var(--app-scale));color:#adc1cc}
.preview-forecast-footer img{width:calc(116px * var(--app-scale))}
.demo-legend{left:calc(var(--sidebar) + 16px * var(--app-scale));bottom:calc(20px * var(--app-scale));width:calc(235px * var(--app-scale));padding:calc(12px * var(--app-scale));font-size:calc(11px * var(--app-scale))}
.demo-legend strong{font-size:calc(13px * var(--app-scale));display:flex;justify-content:space-between}.demo-legend>div,.demo-legend small{font-size:calc(11px * var(--app-scale))}.demo-legend small{display:none}
.demo-map-credits{font-size:calc(10px * var(--app-scale))}
/* Art-directed native captures: focused crops, shared framing, room to breathe. */
.capture-zoom{display:block;background:none;border:0;padding:0;cursor:zoom-in;color:inherit}
.capture-zoom:focus-visible{outline:2px solid #fff;outline-offset:5px;border-radius:12px}
.forecast-visual{background:radial-gradient(ellipse at 12% 0%,#548da655,transparent 65%),#142637}
.forecast-background{opacity:.2!important;filter:blur(14px)!important}
.forecast-stack{position:absolute;inset:0}
.forecast-capture{position:absolute;top:8%;left:50%;height:76%;width:auto;aspect-ratio:1090/1380;border:1px solid #bdcfdf40;border-radius:10px;overflow:hidden;box-shadow:0 16px 30px #030a1366;transform:translateX(-50%)}
.forecast-left{left:28%;transform:translateX(-50%) rotate(-7deg);z-index:1}
.forecast-right{left:72%;transform:translateX(-50%) rotate(7deg);z-index:1}
.forecast-front{top:16%;height:80%;z-index:2;box-shadow:0 18px 35px #030a1380}
.forecast-capture:focus-visible{z-index:3}
.forecast-capture img{display:block;width:100%;height:100%;object-fit:contain}

/* A composed desktop, with the real app window and familiar macOS Dock assets. */
.mac-visual{padding:0;container-type:inline-size;background:radial-gradient(ellipse at 18% 5%,#34485f,transparent 75%),linear-gradient(135deg,#1d2d40,#111c2c)}
.mac-visual::before{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(145deg,#182c4255,#12223599),url('assets/app-scenes/mountains/night.webp') center/cover;opacity:.5;filter:saturate(.7)}
.mac-visual .mac-desktop{position:absolute;inset:0;width:100%;height:100%;transform:none}
.mac-window{position:absolute;inset:5% 5% 19%;display:flex;justify-content:center;align-items:center}
.mac-visual .feature-capture{position:static;transform:none;display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;border:1px solid #35496044;border-radius:8px;box-shadow:0 16px 28px #20354f38,0 3px 8px #20354f22}
.mac-dock{position:absolute;bottom:4%;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:.65cqw;width:max-content;padding:.75cqw 1.05cqw 1.45cqw;border:1px solid #93a8c14d;border-radius:2.1cqw;background:linear-gradient(#344051c9,#1b2535d9);box-shadow:0 6px 18px #030a163d,inset 0 1px 0 #ffffff14;backdrop-filter:blur(16px)}
.dock-app{position:relative;display:block;width:4.1cqw;height:4.1cqw;flex:none}
.dock-app img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 1px 1px #34485d30)}
.dock-running::after{content:'';position:absolute;width:clamp(2px,.45cqw,3px);height:clamp(2px,.45cqw,3px);left:50%;bottom:-.85cqw;transform:translateX(-50%);border-radius:50%;background:#e4ecf5}
.dock-dreadcast img{border-radius:.9cqw}
.dock-divider{height:3.6cqw;width:1px;margin:0 .3cqw;background:#acbfd13d}
.wind-visual{padding:0;background:#102332}
.wind-visual .wind-geography{filter:brightness(.82) saturate(.7)}
.wind-style-tray{min-width:min(268px,calc(100% - 20px))}
.preview-picker-heading{display:flex;align-items:baseline;justify-content:flex-start;gap:8px;align-self:stretch;padding:0 5px;text-align:left;white-space:nowrap}
.preview-picker-label{font:500 13px/1.3 var(--sans);color:#adbfce;letter-spacing:.025em}
.preview-picker-heading #palette-name,.preview-picker-heading #wind-style-name{margin-left:auto;text-align:right}
#wind-style-name{font:500 14px/1.4 var(--sans)}
.wind-style-choices{gap:18px}
.wind-style-glyph{display:block;width:30px;height:30px;border-radius:50%;padding:2px;color:var(--accent);background:linear-gradient(135deg,#365267,#172d41);box-shadow:inset 0 0 0 1px #ffffff3b}
.preview-timestamp{position:absolute;top:14px;left:14px;border:1px solid #73889b55;border-radius:8px;padding:7px 9px;background:#132435ed;color:#dce8ef;font:11px/1.4 var(--sans);pointer-events:none}
/* Native Layers identity above the event grid, with room for every label. */
.alerts-visual{flex-direction:column;gap:16px;padding:24px}
.layers-preview-heading{display:flex;align-items:center;gap:9px;flex:none;padding:8px 13px;border:1px solid #869daf45;border-radius:11px;background:#1e3247cc;color:#e6edf5;font:500 14px/1.2 var(--sans);box-shadow:0 5px 16px #07162526}
.layers-preview-heading img{display:block;width:22px;height:22px;object-fit:contain}
.alerts-visual .event-preview{gap:12px}
/* Staggered native-style notification examples, readable at thumbnail size. */
.notifications-visual{container-type:inline-size;padding:24px}
.notification-stack{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;max-width:460px}
.notification-stack .notification-sample{width:91%;padding:clamp(10px,2.4cqw,16px);gap:clamp(9px,2cqw,12px);border-radius:15px;box-shadow:0 10px 24px #0716253d}
.notification-stack .notification-sample:first-child{align-self:flex-start;background:linear-gradient(120deg,#33485deb,#243d53eb)}
.notification-stack .notification-sample:nth-child(2){align-self:flex-end}
.notification-stack .notification-sample:last-child{background:linear-gradient(120deg,#3b5269f5,#294259f5);border-color:#b4c9dc70}
.notification-stack .notification-sample>img{width:clamp(28px,6cqw,36px);height:clamp(28px,6cqw,36px)}
.notification-stack .notification-sample span{font-size:clamp(10px,2.2cqw,12px);margin-bottom:3px}
.notification-stack .notification-sample small{display:inline;font-size:inherit}
.notification-stack .notification-sample strong{font-size:clamp(12px,2.8cqw,16px);line-height:1.3}
.notification-stack .notification-sample p{font-size:clamp(11px,2.5cqw,14px);line-height:1.4;margin:3px 0 0;max-width:none}
@media(max-width:1100px) and (min-width:761px){.layers-preview-heading{padding:6px 11px;font-size:12px}.layers-preview-heading img{width:20px;height:20px}.notifications-visual{padding:16px}.notification-stack{gap:7px}.notification-stack .notification-sample{padding:9px}.notification-stack .notification-sample p{display:none}}
@media(max-width:480px){.forecast-left{left:32%}.forecast-right{left:68%}.layers-preview-heading{padding:6px 11px;font-size:12px}.layers-preview-heading img{width:20px;height:20px}.notifications-visual{padding:16px;min-height:285px;max-width:100%}.notification-stack{gap:8px}.notification-stack .notification-sample{width:95%}}
.image-dialog{border:1px solid #8799b944;background:#111e2d;color:#e8edf4;max-height:95svh}.image-dialog img{max-height:calc(95svh - 125px)}.image-dialog::backdrop{background:#050c16dc}.image-dialog-heading button{cursor:pointer;color:#e8edf4}.image-dialog a{text-decoration:underline}
@media(max-width:760px){.demo-map{height:auto;min-height:300px;aspect-ratio:1.2}}
@media(max-width:380px){.wind-style-tray{min-width:232px}.wind-style-glyph{width:28px;height:28px}}

/* Phone chrome uses readable sizes and a content-sized stack, not desktop offsets. */
@media(max-width:760px){
  .app-window-dots{top:9px;left:10px;gap:4px}
  .app-window-dots i{width:6px;height:6px}
  .app-status-stack{position:absolute;top:24px;left:10px;display:grid;gap:6px;width:146px;max-width:calc(100% - 64px)}
  .app-status-stack .app-weather{position:relative;top:auto;left:auto;width:100%;padding:8px;gap:7px;border:1px solid #75899b8c;border-radius:7px}
  .app-weather-icon,.app-weather::before{width:20px;height:20px;flex:none}
  .app-weather::before{left:8px}
  .app-weather strong{font-size:24px;letter-spacing:-.5px}
  .app-weather b{font-size:11px;margin-top:3px;line-height:1.3}
  .app-weather span{font-size:10px;margin-top:2px;line-height:1.3}
  .app-status-stack .app-radar-status{position:relative;top:auto;left:auto;padding:7px 8px 12px;gap:5px;border:1px solid #75899b8c;border-radius:7px;font-size:11px;white-space:nowrap}
  .app-radar-status span{font-size:9px}
  .app-radar-status b{margin-right:auto}
  .app-radar-status img{width:14px;height:14px;padding:0;flex:none}
  .app-radar-status>i{bottom:5px;left:8px;right:8px;height:2px}
  .app-toolbar{top:24px;right:10px;padding:3px;gap:2px;border:1px solid #75899b8c;border-radius:8px}
  .app-toolbar img,.app-toolbar svg{width:26px;height:26px;padding:5px}
  .app-toolbar img:last-child{padding:6px}
  .demo-legend{left:10px;bottom:10px;width:132px;padding:8px;border-radius:9px}
  .demo-legend strong{font-size:11px}
  .demo-legend>div{font-size:9px}
  .demo-map-credits{top:4px;right:8px;padding:3px 5px;font-size:9px;line-height:1.2}
}
/* Below desktop, the alert grid scales with its card instead of shrinking inside it.
   The card's aspect ratio sets its height, so size containment is safe here. */
@media(max-width:1100px){.alerts-visual{container-type:size;padding:16px}.alerts-visual .event-preview{max-width:none;gap:min(4cqw,5cqh) 8px}.alerts-visual .event-type{gap:min(1.4cqw,2cqh);font-size:clamp(11px,min(4cqw,5.4cqh),17px)}.alerts-visual .event-symbol{width:clamp(28px,min(13cqw,18cqh),64px);height:clamp(28px,min(13cqw,18cqh),64px)}.alerts-visual .event-symbol .site-icon,.alerts-visual .event-symbol img{width:54%;height:54%}}
