/* Live desktop preview. Widgets are laid out in the app's own 1707 × 960 logical space
   (2560 × 1440 at 150%) and scaled to the stage, so positions and sizes match the app. */

.hero-head { max-width: 760px; }
.wide { width: min(1280px, 100% - 32px); margin-top: 44px; }

.desk {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
  background: #1b2630; isolation: isolate; user-select: none; -webkit-user-select: none;
  box-shadow: 0 40px 80px -40px rgb(10 20 30 / .55), 0 0 0 1px rgb(10 20 30 / .08);
}
.desk-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.desk[data-scene="hana"] .desk-bg img[data-scene="hana"],
.desk[data-scene="reina"] .desk-bg img[data-scene="reina"],
.desk[data-scene="yours"] .desk-bg img[data-scene="yours"] { opacity: 1; }
.desk.dragging::after { content: "Drop an image to try it as your wallpaper"; position: absolute; inset: 12px; z-index: 5; display: grid; place-items: center;
  border: 2px dashed rgb(255 255 255 / .85); border-radius: calc(var(--radius) - 6px); background: rgb(10 20 30 / .5); color: #fff; font: 600 18px var(--sans); pointer-events: none; }
.desk-space { position: absolute; left: 0; top: 0; width: 1707px; height: 960px; transform-origin: 0 0; transform: scale(var(--k, .5)); }
.desk-noscript { position: absolute; left: 16px; bottom: 16px; margin: 0; padding: 8px 12px; border-radius: 10px; background: rgb(0 0 0 / .55); color: #fff; font-size: 14px; }

/* Materials and ink. Tone names the surface: light surfaces carry dark ink. */
.tone-light { --ink: #292d2e; --ink2: #43494b; --surf: 238 238 234; --line: rgb(36 55 71 / .2); --hover: rgb(36 55 71 / .09); --alpha: .62; }
.tone-dark { --ink: #f1f1eb; --ink2: #d0d3cd; --surf: 48 54 56; --line: rgb(255 255 255 / .25); --hover: rgb(255 255 255 / .13); --alpha: .5; }
.mat { position: absolute; inset: 0; border-radius: inherit; border: 1px solid transparent; transition: background-color .24s, border-color .24s, opacity .24s; }
.mode-mist > .panel > .mat, .mode-mist.mat { background: rgb(var(--surf) / .86); border-color: var(--line); }
.mode-frosted > .panel > .mat, .mode-frosted.mat {
  background: rgb(var(--surf) / var(--alpha)); border-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
}
.mode-editorial > .panel > .mat { background: transparent; }
.mode-editorial > .panel:hover > .mat { border-color: var(--line); }

.w { position: absolute; left: 0; top: 0; transform-origin: 0 0; color: var(--ink);
  transition: transform .5s cubic-bezier(.22,.61,.36,1), opacity .3s ease, visibility .3s; }
.w.hidden, .quiet .w, .quiet .launcher { opacity: 0; visibility: hidden; pointer-events: none; }
.panel { position: relative; border-radius: 18px; overflow: hidden; transition: width .24s cubic-bezier(.33,1,.68,1), height .24s cubic-bezier(.33,1,.68,1); }
.panel > *, .xp > *, [data-k="forecast"] > *, [data-k="location"] > *, .launcher-pill > .mat { position: absolute; }
.launcher-pill { position: absolute; }
.panel .hit { left: 0; top: 0; width: 100%; cursor: pointer; border-radius: 18px; z-index: 1; }
.panel .hit:focus-visible { outline: 2px solid #d6c3a2; outline-offset: -2px; }
.xp { opacity: 0; visibility: hidden; transition: opacity .24s cubic-bezier(.33,1,.68,1), visibility .24s; }
.open .xp { opacity: 1; visibility: visible; }
.open .cp { opacity: 0; visibility: hidden; }
.cp { transition: opacity .2s, visibility .2s; }

/* Type roles, matching the app's Calibri, Cambria and Segoe UI with web fallbacks. */
.w, .dock, .toast { font-family: "Segoe UI", "Hanken Grotesk", system-ui, sans-serif; font-size: 12px; line-height: 1.3; white-space: nowrap; }
.t-key { font-family: Calibri, "Hanken Grotesk", sans-serif; font-weight: 700; }
.t-body, .t-cal { font-family: Calibri, "Hanken Grotesk", sans-serif; }
.t-cal { font-weight: 600; }
.t-phrase { font-family: Cambria, "Fraunces", Georgia, serif; font-style: italic; font-weight: 700; }
.t-time { font: 300 100px/1.1 "Segoe UI", "Hanken Grotesk", sans-serif; letter-spacing: -5px; }
.s2 { color: var(--ink2); }
.ell { overflow: hidden; text-overflow: ellipsis; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* Buttons (the app's Action) */
.act { display: inline-flex; align-items: center; gap: 0; height: 34px; min-width: 32px; padding: 0 9px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink); font: 12px/1 Calibri, "Hanken Grotesk", sans-serif; cursor: pointer; white-space: nowrap; }
.act.compact { height: 28px; min-width: 28px; }
.act .icon { width: 18px; height: 18px; }
.act.compact .icon { width: 15px; height: 15px; }
.act .icon + span { margin-left: 5px; }
.act.icon-only { justify-content: center; padding: 0; }
.act:hover, .act:focus-visible, .act[aria-pressed="true"] { background: var(--hover); }
.act:focus-visible { outline: 1px solid #d6c3a2; }
.act:disabled { opacity: .4; cursor: default; background: transparent; }

/* Clock */
.cal-grid { display: grid; grid-template-columns: repeat(7, 47px); row-gap: 1px; }
.cal-grid span, .cal-grid button { height: 20px; display: grid; place-items: center; font: 12px/1 Calibri, "Hanken Grotesk", sans-serif; color: var(--ink); background: none; border: 0; border-radius: 5px; padding: 0; cursor: pointer; justify-self: center; width: 30px; }
.cal-grid .wd { color: var(--ink2); font-size: 11px; cursor: default; }
.cal-grid button:hover { background: var(--hover); }
.cal-grid .today { background: #e8d5af; color: #263d51; font-weight: 700; }
.cal-grid .picked { box-shadow: inset 0 0 0 1px var(--ink2); }
.track { display: flex; width: 200%; height: 100%; transition: transform .24s cubic-bezier(.33,1,.68,1); }
.tasks-mode .track { transform: translateX(-50%); }
.track > div { position: relative; width: 50%; height: 100%; }
.track > div > * { position: absolute; }
.agenda { display: grid; gap: 4px; }
.agenda div { display: flex; gap: 10px; }
.agenda b { font-weight: 400; color: var(--ink2); width: 46px; flex: none; }
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.task-list li { display: flex; align-items: center; gap: 10px; height: 30px; }
.task-list i { width: 13px; height: 13px; border: 1px solid var(--ink2); border-radius: 50%; flex: none; }
.task-list span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.task-list em { font-style: normal; color: var(--ink2); font-size: 11px; }

/* Weather */
.hours { display: flex; gap: 6px; }
.hours > div { width: 60.8px; display: grid; justify-items: center; }
.hours .icon { margin: 6px 0 5px; }
.wx-input { height: 33px; border-radius: 7px; background: var(--hover); border: 1px solid transparent; color: var(--ink);
  font: 13px Calibri, "Hanken Grotesk", sans-serif; padding: 0 7px; outline: none; user-select: text; -webkit-user-select: text; }
.wx-input:focus { border-color: var(--line); }
.wx-input::placeholder { color: var(--ink2); }
.places, .task-list { scrollbar-width: none; }
.places::-webkit-scrollbar, .task-list::-webkit-scrollbar { display: none; }
.places { list-style: none; margin: 0; padding: 0; overflow: auto; }
.places button { display: block; width: 100%; height: 46px; padding: 5px 7px; border: 0; border-radius: 6px; background: none; color: var(--ink); text-align: left;
  font: 12px/1.3 Calibri, "Hanken Grotesk", sans-serif; white-space: normal; cursor: pointer; }
.places button:hover, .places button:focus-visible { background: var(--hover); outline: none; }
.flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgb(232 213 175 / .9); } 100% { box-shadow: 0 0 0 18px rgb(232 213 175 / 0); } }

/* Music */
.art { width: 82px; height: 99px; object-fit: cover; }
.seek { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.seek i { display: block; height: 100%; width: 0; background: var(--ink); }
.times { display: flex; justify-content: space-between; opacity: 0; transition: opacity .2s; }
.panel:hover .times, .open .times { opacity: 1; }
.next-list { display: grid; }
.next-list .act { width: 100%; justify-content: flex-start; }

/* Launcher */
.launcher-pill { border-radius: 32px; overflow: hidden; }
.launcher-pill .row { position: absolute; left: 22px; top: 8px; display: flex; gap: 8px; }
.launcher-pill button { width: 56px; height: 48px; border: 0; border-radius: 8px; background: none; color: var(--ink); cursor: pointer; position: relative; padding: 0; }
.launcher-pill button:hover, .launcher-pill button:focus-visible { background: rgb(255 255 255 / .12); outline: none; }
.launcher-pill button .icon { position: absolute; left: 18px; top: 3px; }
.launcher-pill button span { position: absolute; left: 0; right: 0; top: 30px; text-align: center; font-size: 10px; color: var(--ink2); }

/* Dock and toast */
.dock { position: absolute; top: 894px; left: 50%; transform: translateX(-50%); height: 42px; padding: 4px 8px; border-radius: 23px; display: flex; gap: 2px; color: var(--ink); }
.dock .mat { border-radius: 23px; }
.dock .act { position: relative; font-size: 11px; }
.quiet .dock .extra { display: none; }
.toast { position: absolute; left: 50%; top: 836px; transform: translate(-50%, 8px); padding: 10px 16px; border-radius: 12px; color: var(--ink); font-size: 13px; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.toast .mat { border-radius: 12px; }
.toast span { position: relative; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.looks { position: absolute; top: 790px; left: 50%; transform: translateX(-50%); padding: 10px; border-radius: 14px; display: none; gap: 4px; color: var(--ink); }
.looks.show { display: flex; }
.looks .mat { border-radius: 14px; }
.looks .act { position: relative; }

/* Controls under the stage */
.desk-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 18px; }
.seg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.seg-label { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding: 0 8px 0 10px; }
.seg button, .quiet-toggle { border: 0; background: none; color: var(--ink); font: 500 14px/1 var(--sans); padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.seg button:not([aria-pressed="true"]):hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.quiet-toggle { border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; gap: 10px; padding: 9px 10px 9px 16px; }
.quiet-toggle[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
kbd { font: 600 12px/1 var(--sans); padding: 4px 7px; border-radius: 6px; border: 1px solid currentColor; opacity: .7; }
.desk-caption { max-width: 72ch; }

/* Proof panel */
.proof { display: grid; gap: 28px; margin-top: 36px; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.proof-title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 10px; }
.proof-try p { color: var(--ink-soft); margin: 0 0 18px; max-width: 46ch; }
.city { display: flex; gap: 10px; flex-wrap: wrap; }
.city input { flex: 1 1 200px; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 16px var(--sans); }
.city input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.city .button { cursor: pointer; }
.proof-try .city-status { margin: 12px 0 8px; font-size: 15px; min-height: 1.6em; }
.city-results { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.city-results button { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: 15px var(--sans); cursor: pointer; text-align: left; }
.city-results button:hover { border-color: var(--accent); }
.log { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.log li { padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.log li.log-empty { color: var(--ink-soft); }
.log .host { font-weight: 600; display: block; }
.log code { font-size: 14px; word-break: break-word; }
.log .when { color: var(--ink-soft); font-size: 13px; }
.log-note { color: var(--ink-soft); font-size: 14px; margin: 14px 0 0; }
.proof.dragging { outline: 2px dashed var(--accent); outline-offset: 4px; }
.proof-try .wall-or { margin: 18px 0 10px; font-size: 15px; }
.wall-drawn { display: flex; flex-wrap: wrap; gap: 8px; }
.wall-drawn button { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: 15px var(--sans); cursor: pointer; }
.wall-drawn button:hover { border-color: var(--accent); }
.wall-drawn button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.wall-pick .button { cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 860px) {
  .proof { grid-template-columns: 1.1fr 1fr; gap: 40px; }
}
/* On small screens the stage is a live picture; the weather panel stays fully usable. */
@media (max-width: 700px) {
  .desk-space { pointer-events: none; }
  .desk-controls { gap: 10px; }
  .desk-controls .seg-label { display: none; }
  .seg { border-radius: 22px; }
  .seg button, .quiet-toggle { font-size: 13px; padding: 8px 11px; }
}
@media (hover: none) { .quiet-toggle kbd { display: none; } .quiet-toggle { padding-right: 16px; } }
/* Scroll story: one desktop, five beats. Windows are drawn in the same 1707 × 960 space as the widgets. */
.story-track { display: grid; gap: 0 48px; }
.story-stick { position: sticky; top: 0; z-index: 1; padding: 12px 0; background: var(--bg); }
.story-desk { user-select: none; }
.story-widgets { position: absolute; inset: 0; transition: opacity .45s ease; }
.story-widgets .w { transition: none; }
.story-desk[data-beat="quiet"] .story-widgets, .story-widgets.swap { opacity: 0; }
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; opacity: .35; transition: opacity .4s ease; }
.story-step.active { opacity: 1; }
.story-step h3 { font-size: clamp(26px, 3vw, 32px); font-style: italic; }
.story-step p { color: var(--ink-soft); max-width: 36ch; margin: 0 0 12px; }
.story-step .eyebrow { margin-bottom: 10px; }
.story-step a { color: var(--accent); font-weight: 600; }

.win { position: absolute; border-radius: 12px; overflow: hidden; background: #f8f8f6; color: #2a2f33;
  box-shadow: 0 40px 90px -20px rgb(5 12 20 / .55), 0 0 0 1px rgb(5 12 20 / .12);
  transform: translateY(1150px); transform-origin: 50% 100%; transition: transform .8s cubic-bezier(.22,.61,.36,1), opacity .6s ease; }
.win-doc { left: 250px; top: 86px; width: 860px; height: 720px; }
.win-web { left: 690px; top: 150px; width: 900px; height: 660px; transition-delay: .12s; }
.win-bar { height: 44px; display: flex; align-items: center; padding-left: 18px; background: #ededea; font: 15px "Segoe UI", var(--sans); }
.win-bar span { flex: 1; }
.win-bar i { width: 54px; text-align: center; font-style: normal; font-size: 14px; color: #555; }
.win-address { height: 34px; margin: 10px 18px 0; border-radius: 17px; background: #ebebe8; }
.win-body { padding: 34px 48px; display: grid; gap: 16px; }
.win-body b { display: block; height: 13px; border-radius: 7px; background: #dcdcd7; width: 100%; }
.win-body b.gap { height: 6px; background: none; }
.win-doc .win-body { padding: 60px 120px; }
.win-hero { height: 220px; border-radius: 10px; background: linear-gradient(135deg, #c9d8de, #e4dccb); }
.win-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.win-cards span { height: 110px; border-radius: 10px; background: #ecebe6; }
.story-desk[data-beat="work"] .win { transform: none; }
.story-desk[data-beat="desktop"] .win, .story-desk[data-beat="quiet"] .win, .story-desk[data-beat="yours"] .win { transform: translateY(560px) scale(.12); opacity: 0; }

@media (min-width: 980px) {
  .story-track { grid-template-columns: minmax(240px, 320px) 1fr; }
  .story-stick { grid-column: 2; grid-row: 1; align-self: start; top: max(88px, calc(50vh - (min(1120px, 100vw - 32px) - 368px) * 9 / 32)); padding: 0; background: none; }
  .story-steps { grid-column: 1; grid-row: 1; }
  .story-step { min-height: 80vh; }
  .story-step:first-child { min-height: 50vh; justify-content: flex-start; padding-top: 8vh; }
  .story-step:last-child { min-height: 70vh; }
}
@media (max-width: 979px) {
  .story-step { min-height: 55vh; }
  .story-step:last-child { min-height: 40vh; }
}

/* Motion. Ink colours are registered so a widget's text fades when Auto ink flips. */
@property --ink { syntax: "<color>"; inherits: true; initial-value: #1e2a33; }
@property --ink2 { syntax: "<color>"; inherits: true; initial-value: #4a5862; }
@property --alpha { syntax: "<number>"; inherits: true; initial-value: .5; }
.w { transition: transform .5s cubic-bezier(.22,.61,.36,1), opacity .3s ease, visibility .3s, --ink .5s ease, --ink2 .5s ease, --alpha .5s ease; }
.mat { transition: background-color .5s, border-color .5s, opacity .24s; }
/* The desktop waking up on first load, once. */
@keyframes wake { from { opacity: 0; transform: translateY(16px); } }
@keyframes wake-fade { from { opacity: 0; } }
.desk.waking .w > .panel { animation: wake .9s cubic-bezier(.22,.61,.36,1) both; animation-delay: var(--wake, 0s); }
.desk.waking .dock { animation: wake-fade .8s ease .5s both; }
/* Sections below ease in as they arrive, once each. */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.small-features > .reveal:nth-child(2) { transition-delay: .1s; }
.small-features > .reveal:nth-child(3) { transition-delay: .2s; }

/* Feature screenshots rest on a blur of the scene they came from, where that widget sits. */
.feature .img { background: #1b2630 center / cover no-repeat; overflow: hidden; }
.feature:nth-child(1) .img { background-image: url("img/feature-bg-reina.jpg"); background-position: 8% 30%; }
.feature:nth-child(2) .img { background-image: url("img/feature-bg-hana.jpg"); background-position: 8% 55%; }
.feature:nth-child(3) .img { background-image: url("img/feature-bg-reina.jpg"); background-position: 92% 25%; }
.feature .img img { box-shadow: 0 24px 48px -24px rgb(5 12 20 / .6); }

.desk:not(.ready) * { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .desk *, .desk-bg img, .story-step, .reveal { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
