/* Palette contract: a continuous product stage, graphite panels, light app canvases.
   Physical finish colors stay separate from interface semantics. */
:root {
  --stage: #000;
  --panel: #161618;
  --control: #29292e;
  --ink: #f5f5f7;
  --muted: #adadb5;
  --line: #424248;
  --action: #0071e3;
  --action-hover: #0066cc;
  --link: #8ac5ff;
  --sleep: #bba6d6;
  --app-canvas: #f5f5f7;
  --app-card: #fff;
  --app-ink: #1d1d1f;
  --app-muted: #64646c;
  --app-line: #d2d2d7;
  --app-link: #0066cc;
  --app-sleep: #76579f;
}
body { background: var(--stage); color: var(--ink); color-scheme: dark; }
.local { background: #000d; border-color: #ffffff26; }
.global, .hero-title .eyebrow, .scroll-cue, .body-copy, .micro,
.chapter-links, .closing .eyebrow { color: var(--muted); }
.statement { color: #c7c7ce; }
.pill, .setup-primary, .try-primary { background: var(--action); color: #fff; }
.pill:hover, .setup-primary:hover, .try-primary:hover { background: var(--action-hover); }
button:focus-visible, a:focus-visible, input:focus-visible,
summary:focus-visible { outline-color: var(--link); }
.material-sticky, .continuity, .everyday, .everyday-image,
.experience, .accessibility-story, .charging, .closing {
  background: var(--stage); color: var(--ink);
}
/* All chapter backgrounds remain dark. Dividers, spacing, and imagery mark chapters. */
.experience, .accessibility-story { border-top: 1px solid #29292e; }
.experience .body-copy, .accessibility-story .body-copy,
.everyday .body-copy, .fit-details p, .material-copy p:not(.eyebrow),
.material-copy .eyebrow, .charging-copy .body-copy { color: var(--muted); }
.everyday-image { width: min(1120px,86%); margin: 0 auto; border-radius: 28px; }
.everyday-caption { padding-bottom: 110px; }
.fit-details { border-color: var(--line); }
.fit-details summary { color: var(--ink); }
.continuity-demo, .clarity-reading, .display-settings, .setup-demo {
  background: var(--panel); color: var(--ink); border: 1px solid #333338;
}
.continuity-objects { background: var(--panel); }
.continuity-demo { border: 0; }
.continuity-toolbar, .clarity-details details, .sleep-comparison,
.setup-choice, .display-setting { border-color: var(--line); }
.demo-kicker, .demo-note, .continuity-explainer,
.source-block>span, .source-block>p, .sleep-comparison span,
.clarity-footnote, .clarity-details p { color: var(--muted); }
.source-block { border-color: var(--sleep); }
.source-block.daytime { border-color: #c9c9ce; }
.source-block.gap, .source-block.is-unavailable { border-color: #75757d; }
.feature-select button {
  border-color: var(--line); color: var(--muted);
}
.feature-select button[aria-pressed=true] { color: var(--ink); border-color: var(--link); }
.phone-type-controls button { color: var(--muted); border-color: var(--line); }
.phone-type-controls button[aria-pressed=true] { background: var(--ink); color: var(--app-ink); border-color: var(--ink); }
.access-principles, .display-settings>p:not([class]),
.display-settings .demo-kicker, .display-settings .demo-note,
.settings-note { color: var(--muted); }
.access-jump, .setup-secondary { color: var(--link); }
.display-setting input, .setup-choice input { accent-color: var(--action); }
.setup-demo .setup-description, .setup-demo .setup-note,
.setup-demo .setup-kicker { color: var(--muted); }
.charging-copy>div { background: var(--stage); }
footer { background: var(--panel); color: var(--muted); border-top: 1px solid #29292e; }
.footer-title { color: var(--ink); }
.footer-links a { color: var(--muted); }
/* The lighter palette belongs to the depicted application, never to a page chapter. */
.phone, .try-day-phone { color-scheme: light; background: var(--app-canvas); color: var(--app-ink); }
.phone-card, .day-reading, #day-support, #day-reflection, #day-settings { background: var(--app-card); }
.phone-sub, .phone-eyebrow, .phone-disclaimer,
.day-phone-eyebrow, #day-phone-subtitle, #day-context, #day-source-detail,
#day-bottom-note, #reflection-result, #day-settings .day-settings-note { color: var(--app-muted); }
.phone-link, #day-source-button, #day-settings-button { color: var(--app-link); }
.sleep-label, #day-measure-label { color: var(--app-sleep); }
.sleep-period { border-color: var(--sleep); }
/* Same controls and tone in the page and the interactive experience. */
#try-ring, .try-header { background: var(--panel); color: var(--ink); }
#try-ring { border-color: var(--line); }
#ring-viewer { background: radial-gradient(ellipse at center,#232326,var(--panel) 72%); }
.try-header>button, .try-poses button[aria-pressed=true] { background: var(--control); color: var(--ink); }
.try-header p, .try-tabs button, #viewer-status, .try-kicker,
.try-poses button, .try-pose-copy p, .try-intro, .try-demo-note,
.try-footer, .day-text-controls button { color: var(--muted); }
.try-tabs button[aria-selected=true], .day-text-controls button[aria-pressed=true] {
  background: var(--ink); color: var(--app-ink);
}
.try-finishes button[aria-pressed=true] { border-color: var(--link); }
.day-stages button { color: var(--muted); border-color: var(--line); }
.day-stages button[aria-pressed=true] { color: var(--ink); border-color: var(--link); }
.try-footer, .try-poses { border-color: var(--line); }
@media(max-width:760px) {
  .everyday-image { border-radius: 22px; height: 330px; }
  .everyday-caption { padding-bottom: 75px; }
}
@media(forced-colors:active) {
  .phone-type-controls button[aria-pressed=true],
  .day-text-controls button[aria-pressed=true], .try-tabs button[aria-selected=true] {
    border: 2px solid Highlight;
  }
}

/* Final QA: the same clear feedback across equivalent controls. */
:root{--feedback-duration:160ms;--feedback-ease:cubic-bezier(.2,.7,.3,1)}
button,a,summary{transition:color var(--feedback-duration) var(--feedback-ease),background-color var(--feedback-duration) var(--feedback-ease),border-color var(--feedback-duration) var(--feedback-ease)}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,.phone h3:focus-visible{outline:3px solid var(--link);outline-offset:4px}
.phone button:focus-visible,.phone input:focus-visible,.phone h3:focus-visible,.try-day-phone button:focus-visible,.try-day-phone input:focus-visible{outline-color:var(--app-link)}
.swatch[aria-pressed=true]{outline-color:var(--link)}
.swatch:focus-visible{outline:3px solid var(--ink);outline-offset:4px}
.phone-link:disabled,button:disabled{cursor:default}
button:disabled{opacity:.55;pointer-events:none}
@media(hover:hover){
 .feature-select button:not([aria-pressed=true]):hover,.day-stages button:not([aria-pressed=true]):hover{color:var(--ink);border-color:var(--link)}
 .phone-type-controls button:not([aria-pressed=true]):hover,.day-text-controls button:not([aria-pressed=true]):hover,
 .try-tabs button:not([aria-selected=true]):hover,.try-poses button:not([aria-pressed=true]):hover{background:var(--control);color:var(--ink)}
 .segmented button:not([aria-pressed=true]):hover,.try-header>button:hover{background:#3a3a40;color:var(--ink)}
 .viewer-adjustments button:hover,.try-footer>button:hover{background:var(--control);border-color:var(--muted)}
 .phone-link:hover,#day-source-button:hover,#day-settings-button:hover,.setup-secondary:hover,.access-jump:hover,.chapter-links a:hover,.footer-links a:hover{text-decoration:underline;text-underline-offset:4px}
 summary:hover{color:var(--link)}
 .try-finishes button:hover:not([aria-pressed=true]){border-color:var(--muted)}
 #day-reflection button:not([aria-pressed=true]):hover{background:#e7e7ed;border-color:var(--app-muted)}
}
@media(prefers-reduced-motion:reduce){button,a,summary{transition:none}}
html[data-motion=reduced] button,html[data-motion=reduced] a,html[data-motion=reduced] summary{transition:none}
@media(forced-colors:active){
 .swatch[aria-pressed=true],.try-finishes button[aria-pressed=true],.try-poses button[aria-pressed=true],.segmented button[aria-pressed=true]{outline:2px solid Highlight;outline-offset:2px}
}

/* Hardware study: supported charging geometry and explicit, untested design targets. */
.charging{min-height:0;overflow:visible}
.charging-stage{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);align-items:center;min-height:660px;overflow:hidden}
.charging-stage .charging-art{position:relative;inset:auto;order:1;width:100%;height:auto;aspect-ratio:1.1}
.charging-stage .charging-art img{width:100%;height:100%;object-fit:cover;object-position:right center}
.charging-stage .charging-copy{order:0;width:auto;margin:0 0 0 max(24px,calc((100vw - 1120px)/2));padding:80px 24px 80px 0;pointer-events:auto}
.charging-stage .charging-copy>div{max-width:390px;background:transparent}
.charging-stage .charging-copy h2{font-size:var(--type-section);letter-spacing:var(--tracking-display);margin:22px 0 28px}
.charging-stage .charging-copy .body-copy{max-width:330px;font-size:1.125rem}
.charging-stage .micro{max-width:310px;line-height:1.5}
.charging-engineering{padding-block:48px 110px}
.power-intent{display:grid;grid-template-columns:1fr 1fr;gap:70px;padding-bottom:68px;border-bottom:1px solid var(--line)}
.battery-target{margin-top:20px}
.battery-target strong{display:block;font-size:clamp(3.5rem,6vw,5rem);font-weight:600;letter-spacing:var(--tracking-display);line-height:1.08}
.battery-target span{display:block;margin-top:12px;font-size:1rem;color:var(--muted)}
.power-intent>div:last-child{padding-top:5px;align-self:center}
.power-intent .body-copy{color:var(--ink);font-size:1.5rem;font-weight:500;margin-bottom:18px}
.power-intent>div:last-child>p:last-child,.hardware-heading>p:last-child,.hardware-parts dd,.hardware-notes details>div{color:var(--muted);font-size:1.0625rem;line-height:1.55}
.hardware-heading{padding-top:68px;max-width:660px}
.hardware-heading h3{font-size:clamp(2rem,3.5vw,3rem);letter-spacing:-.03em;line-height:1.12;margin:18px 0}
.hardware-parts{display:grid;grid-template-columns:1fr 1fr;column-gap:70px;row-gap:36px;margin:46px 0 56px}
.hardware-parts>div{min-width:0;border-top:1px solid var(--line);padding-top:22px}
.hardware-parts dt{font-size:1.125rem;font-weight:600;line-height:1.4;margin-bottom:14px}
.hardware-parts dt span{color:var(--muted);font-size:.8125rem;font-weight:400;display:block;margin-bottom:12px}
.hardware-parts dd{margin:0}
.hardware-notes{max-width:860px}
.hardware-notes details{border-top:1px solid var(--line)}
.hardware-notes details:last-child{border-bottom:1px solid var(--line)}
.hardware-notes summary{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:64px;padding:18px 4px;list-style:none;font-size:1.125rem;font-weight:500;line-height:1.4;cursor:pointer}
.hardware-notes summary::-webkit-details-marker{display:none}
.hardware-notes summary::after{content:'+';font-size:1.5rem;font-weight:400;flex-shrink:0}
.hardware-notes details[open]>summary::after{content:'−'}
.hardware-notes details>div{padding:0 4px 24px;max-width:46rem}
.hardware-notes details p+p{margin-top:16px}
.charging-engineering *{overflow-wrap:break-word;min-width:0}
@media(max-width:1100px){
 .charging-stage{display:flex;flex-direction:column;min-height:0}
 .charging-stage .charging-copy{order:0;width:calc(100% - 80px);max-width:1120px;margin:0 auto;padding:80px 0 0}
 .charging-stage .charging-copy>div{max-width:600px}
 .charging-stage .charging-copy .body-copy{max-width:480px}
 .charging-stage .charging-art{position:relative;inset:auto;order:1;width:100%;height:auto;aspect-ratio:1.7}
 .charging-stage .charging-art img{object-fit:cover;object-position:right center}
 .power-intent,.hardware-parts{column-gap:40px}
}
@media(max-width:760px){
 .charging-stage .charging-art{aspect-ratio:1.1;margin-top:16px}
 .charging-stage .charging-copy{width:calc(100% - 48px);padding-top:70px}
 .charging-stage .charging-copy h2{font-size:var(--type-section);margin-bottom:24px}
 .charging-engineering{padding-block:20px 80px}
 .power-intent,.hardware-parts{grid-template-columns:minmax(0,1fr);gap:32px}
 .power-intent{padding-bottom:48px}
 .hardware-heading{padding-top:48px}
 .hardware-parts{margin-block:34px 40px}
 .hardware-notes summary{font-size:1.0625rem}
}

/* Source-aware overnight handoff. Device frames depict interface concepts. */
.continuity .continuity-content{padding:36px 42px 38px}
.continuity .continuity-toolbar{padding-top:0;gap:24px}
.handoff-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:70px;align-items:center;padding:46px 0}
.handoff-moments{display:grid;gap:12px}
.handoff-moments button{display:block;width:100%;text-align:left;color:var(--muted);background:transparent;border:1px solid var(--line);border-radius:18px;padding:20px 22px;min-height:110px;line-height:1.4}
.handoff-moments button>span{display:block;font-size:.875rem}
.handoff-moments button strong{display:block;font-size:1.25rem;line-height:1.3;margin:8px 0}
.handoff-moments button[aria-pressed=true]{border-color:var(--link);color:var(--ink);background:#202024}
#handoff-explanation{color:var(--muted);line-height:1.55;font-size:1rem;margin-top:24px}
.handoff-options{display:grid;gap:8px;margin-top:20px}
.handoff-options label{display:flex;align-items:center;gap:12px;min-height:44px;font-size:.9375rem;line-height:1.4;cursor:pointer}
.handoff-options input{flex-shrink:0;width:22px;height:22px;accent-color:var(--action)}
.handoff-preview{text-align:center;min-width:0}
.handoff-preview-label{font-size:.875rem;color:var(--muted);margin-bottom:22px}
.handoff-device{max-width:310px;width:100%;margin:0 auto;border:3px solid #77777e;border-radius:58px;background:#000;padding:9px;box-shadow:0 0 0 3px #303034}
.handoff-face{border:1px solid #333338;border-radius:46px;padding:24px 20px 26px;text-align:left;min-height:350px}
.handoff-clock{font-size:.8125rem;color:var(--muted);text-align:right;margin-bottom:24px}
.handoff-source{font-size:.8125rem;color:var(--link);line-height:1.4;margin-bottom:10px}
.handoff-face h4{font-weight:500;font-size:1rem;line-height:1.3}
.handoff-value{font-size:2rem;font-weight:600;letter-spacing:-.035em;line-height:1.12;margin:12px 0 18px;text-wrap:balance}
.handoff-value.is-reading{font-size:2.625rem;letter-spacing:-.045em}
.handoff-screen-note{font-size:.875rem;color:var(--muted);line-height:1.45}
.handoff-status{border-top:1px solid var(--line);margin-top:20px;padding-top:14px}
.handoff-status div{display:flex;flex-wrap:wrap;gap:5px 14px;justify-content:space-between;font-size:.8125rem;line-height:1.4}
.handoff-status dt{color:var(--muted)}
.handoff-status dd{margin:0}
.handoff-sync{color:var(--muted);font-size:.75rem;line-height:1.45;margin-top:18px}
.handoff-sample{font-size:.75rem;line-height:1.5;max-width:300px;color:var(--muted);margin:22px auto 0}
.handoff-device[data-device=phone]{border-radius:38px;max-width:310px}
.handoff-device[data-device=phone] .handoff-face{border-radius:27px;min-height:350px}
.handoff-device[data-text=large] .handoff-face{padding:24px 16px}
.handoff-device[data-text=large] .handoff-face h4{font-size:1.375rem}
.handoff-device[data-text=large] .handoff-source,.handoff-device[data-text=large] .handoff-clock,.handoff-device[data-text=large] .handoff-status div{font-size:1.125rem}
.handoff-device[data-text=large] .handoff-screen-note{font-size:1.25rem}
.handoff-device[data-text=large] .handoff-sync{font-size:1.0625rem}
.handoff-device[data-text=large] .handoff-value{font-size:2.5rem}
.handoff-text-controls{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:18px}
.handoff-text-controls button{font-size:.8125rem;min-height:44px;border:1px solid var(--line);border-radius:24px;padding:8px 12px;background:transparent;color:var(--muted)}
.handoff-text-controls button[aria-pressed=true]{color:var(--app-ink);background:var(--ink);border-color:var(--ink)}
.continuity .source-timeline{border-top:1px solid var(--line);padding-top:28px;margin-top:0}
.handoff-detail{margin-top:24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.handoff-detail summary{cursor:pointer;min-height:60px;padding:18px 4px;font-size:1rem;line-height:1.4}
.handoff-detail p{color:var(--muted);font-size:.9375rem;line-height:1.55;margin:0 4px 18px;max-width:46rem}
.continuity .demo-note{margin-top:20px;line-height:1.5}
.handoff-grid *{min-width:0;overflow-wrap:break-word}
@media(hover:hover){.handoff-moments button:hover{border-color:var(--link);color:var(--ink)}.handoff-text-controls button:not([aria-pressed=true]):hover{color:var(--ink);background:var(--control)}}
@media(max-width:1000px){.handoff-grid{gap:32px}}
@media(max-width:760px){
 .continuity .continuity-content{padding:26px 22px}
 .handoff-grid{grid-template-columns:minmax(0,1fr);gap:34px;padding:30px 0}
 .handoff-moments button{padding:18px;min-height:100px}
 .handoff-moments button strong{font-size:1.125rem}
 .handoff-device{max-width:290px}
 .handoff-face{border-radius:38px;padding:22px 18px}
 .handoff-device{border-radius:50px}
 .handoff-value.is-reading{font-size:2.25rem}
}
@media(forced-colors:active){.handoff-moments button[aria-pressed=true],.handoff-text-controls button[aria-pressed=true]{outline:2px solid Highlight;outline-offset:2px}.handoff-device,.handoff-face{border-color:CanvasText}}

.handoff-face h4:focus-visible{outline:3px solid var(--link);outline-offset:4px}
