/* Dakig web. Every colour, face and size comes from seher/docs/BRAND.md and DESIGN.md. */

@font-face { font-family: "Sora"; src: url(/assets/fonts/sora.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/assets/fonts/figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/assets/fonts/figtree-italic.woff2) format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  /* the night and our grey (mist: navy to Soft Blue), the same in every base */
  --navy: #002941; --night: #001829; --deep: #000B17; --soft: #B6DFED;
  --mist-50: #F0F8FB; --mist-100: #DEF1F7; --mist-200: #C6E6F1; --mist-300: #ADD5E4; --mist-400: #93BBCC;
  --mist-500: #749CAF; --mist-600: #577D92; --mist-700: #3A6076; --mist-800: #1E445B;
  --day-ink: #B6DFED;

  /* the base colour family (Coral, the default) */
  --base: #FD6E6E; --accent-l: #F6565A; --accent-text-l: #D62739; --subtle-l: #FAF5F5; --night-ink: #AA3430;

  /* the sheet: day by default */
  --ground: var(--mist-100); --card: #FFFFFF; --text: var(--navy); --text-2: var(--mist-700); --hair: var(--mist-200);
  --fill: var(--mist-100); --accent: var(--accent-l); --accent-text: var(--accent-text-l);

  --margin: 20px; --r-sheet: 32px; --r-card: 26px; --r-chip: 14px;
  --land: cubic-bezier(.2, 0, 0, 1); --ease: cubic-bezier(.4, 0, .2, 1); --out: cubic-bezier(0, 0, .2, 1);
  --shear: skewX(-4.6deg);
  color-scheme: light dark;
}
:root[data-base="amber"] { --base: #FEA83B; --accent-l: #C97D00; --accent-text-l: #9D6000; --subtle-l: #FCF5EE; --night-ink: #865100; }
:root[data-base="mint"]  { --base: #59D9A2; --accent-l: #00A26F; --accent-text-l: #007E55; --subtle-l: #F0F9F4; --night-ink: #006B48; }
:root[data-base="azure"] { --base: #63A6FF; --accent-l: #4D8FE6; --accent-text-l: #2C6EC2; --subtle-l: #F2F7FF; --night-ink: #095CB6; }
:root[data-base="lilac"] { --base: #B68CF2; --accent-l: #A47ADE; --accent-text-l: #8359BA; --subtle-l: #F8F5FE; --night-ink: #7445AD; }

@media (prefers-color-scheme: dark) {
  :root { --ground: var(--night); --card: var(--navy); --text: var(--mist-50); --text-2: var(--mist-300); --hair: var(--mist-700);
          --fill: var(--mist-800); --accent: var(--base); --accent-text: var(--base); }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font: 500 17px/1.35 "Figtree", system-ui, sans-serif; background: var(--navy); color: var(--mist-50);
       -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--soft); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--margin); }
time, .num, b { font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */
.headline { font: italic 800 clamp(44px, 11.6vw, 112px)/.98 "Figtree", sans-serif; letter-spacing: -.01em;
            transform: var(--shear); transform-origin: left bottom; text-wrap: balance; }
.headline em { font-style: inherit; color: var(--base); }
.headline.sm { font-size: clamp(40px, 10.5vw, 56px); }
.sheet .headline em { color: var(--accent-text); }
.eyebrow { font: 600 15px/1.2 "Figtree", sans-serif; color: var(--text-2); }
.eyebrow.on-field { color: var(--soft); }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head p, .sec-p { margin-top: 20px; font-size: 19px; line-height: 1.4; max-width: 34ch; }
.field .sec-head p { color: var(--soft); }
.sheet .sec-head p, .sheet .sec-p { color: var(--text-2); }

/* ---------- header: glass over a progressive edge ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: 76px; padding: max(env(safe-area-inset-top), 12px) var(--margin) 0;
       display: flex; align-items: flex-start; pointer-events: none; }
.top-edge { position: absolute; inset: 0 0 -24px; pointer-events: none; }
.top-edge i { position: absolute; inset: 0; }
.top-edge i:nth-child(1) { backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); mask: linear-gradient(#000 60%, transparent); -webkit-mask: linear-gradient(#000 60%, transparent); }
.top-edge i:nth-child(2) { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); mask: linear-gradient(#000 40%, transparent 80%); -webkit-mask: linear-gradient(#000 40%, transparent 80%); }
.top-edge i:nth-child(3) { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); mask: linear-gradient(#000 25%, transparent 60%); -webkit-mask: linear-gradient(#000 25%, transparent 60%); }
.top-edge i:nth-child(4) { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); mask: linear-gradient(#000 10%, transparent 40%); -webkit-mask: linear-gradient(#000 10%, transparent 40%); }
.brand { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 14px;
         border-radius: 999px; background: rgba(0, 41, 65, .55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
         box-shadow: inset 0 0 0 1px rgba(182, 223, 237, .16); }
.brand-mark { height: 30px; width: auto; }
.brand-word { height: 22px; width: auto; }

/* ---------- fields and sheets ---------- */
.field { background: var(--navy); color: var(--mist-50); }
.sheet { background: var(--ground); color: var(--text); border-radius: var(--r-sheet) var(--r-sheet) 0 0; position: relative; z-index: 2;
         margin-top: calc(-1 * var(--r-sheet)); padding: 72px 0 96px; }
.sheet + .field, .sheet + .bedside { margin-top: 0; }
section { position: relative; }
[id], .say, .card-field, .card-night { scroll-margin-top: 84px; }

/* ---------- hero ---------- */
.hero { padding: 112px 0 0; overflow: hidden;
        background: radial-gradient(120% 70% at 0% 0%, #0d3a55 0%, var(--navy) 55%) var(--navy); }
.hero-grid { display: grid; gap: 40px; }
.hero-icon { width: 120px; height: 120px; border-radius: 27px; margin-bottom: 28px;
             box-shadow: 0 18px 40px -12px rgba(0, 11, 23, .7); }
.hero .headline { font-size: clamp(60px, 17vw, 136px); }
.lede { margin-top: 24px; font: 700 21px/1.3 "Figtree", sans-serif; max-width: 26ch; }
.sub { margin-top: 10px; color: var(--soft); font-size: 17px; max-width: 34ch; }
.badge { display: inline-block; margin-top: 28px; cursor: default; user-select: none; }
.badge img { height: 50px; width: auto; }
.hero-phone { position: relative; height: 560px; margin: 0 -20px; }
.phone { border-radius: 46px; padding: 9px; background: #0a1a26; box-shadow: inset 0 0 0 1.5px #2a4558, 0 40px 80px -30px rgba(0, 0, 0, .7); }
.phone img { border-radius: 38px; width: 100%; height: auto; }
.hero-phone .tilt { position: absolute; width: 300px; left: 50%; top: 20px; transform: translateX(-60%) rotate(-9deg); }
.hero-phone .satellite { position: absolute; width: 210px; left: 50%; top: 150px; transform: translateX(28%) rotate(4deg); opacity: .96; }

/* ---------- demos ---------- */
.demo { display: grid; gap: 28px; margin-top: 72px; align-items: start; }
.demo:first-of-type { margin-top: 0; }
.demo-copy p { margin-top: 16px; color: var(--text-2); font-size: 17px; max-width: 36ch; }
.card { background: var(--card); border-radius: var(--r-card); padding: 16px 20px; }
.card-field { background: var(--navy); color: var(--mist-50); border-radius: var(--r-sheet); padding: 20px; position: relative; overflow: hidden; }
.primary { display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; border-radius: 999px;
           background: var(--base); color: var(--navy); font: 600 17px/1 "Figtree", sans-serif; transition: transform .15s var(--ease), filter .15s; }
.primary:active { transform: scale(.98); filter: brightness(.95); }
.sheet .card .primary { background: var(--accent); }
.text-btn { color: var(--accent-text); font-weight: 600; padding: 10px 0; }

/* water */
.water-stage { position: relative; height: 330px; }
.bottle { position: absolute; left: 0; top: 0; width: 181px; height: 330px; z-index: 1; }
.bottle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; will-change: opacity; }
.water-number { position: absolute; z-index: 0; left: 118px; top: 152px; font: 700 96px/1 "Sora", sans-serif; letter-spacing: -.01em;
                color: var(--mist-50); display: flex; align-items: baseline; white-space: nowrap; }
.water-number .unit { font: 600 43px/1 "Figtree", sans-serif; margin-left: 2px; }
.water-amount { margin-top: 4px; color: var(--soft); font-size: 17px; }
.water-amount b { font: 600 17px "Sora", sans-serif; color: var(--mist-50); }
.vessels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0 16px; }
.vessel { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 10px; min-height: 64px; border-radius: var(--r-chip);
          background: var(--mist-800); transition: background .2s var(--ease), color .2s var(--ease); text-align: left; }
.vessel .v-name { font: 600 13px/1.2 "Figtree", sans-serif; color: var(--soft); }
.vessel .v-ml { font: 600 15px/1.2 "Sora", sans-serif; white-space: nowrap; }
.vessel .v-ml small { font: 600 12px "Figtree", sans-serif; }
.vessel[aria-checked="true"] { background: var(--base); color: var(--navy); }
.vessel[aria-checked="true"] .v-name { color: var(--navy); }
.toast { position: absolute; left: 50%; top: 292px; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px;
         border-radius: 999px; background: rgba(30, 68, 91, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
         box-shadow: inset 0 0 0 1px rgba(182, 223, 237, .18); font-weight: 600; font-size: 15px; white-space: nowrap;
         transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.toast.on { opacity: 1; pointer-events: auto; }
.toast button { color: var(--base); padding: 6px 10px; }
.today { list-style: none; margin-top: 20px; }
.today li { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; min-height: 48px; border-top: 1px solid var(--mist-800); font-size: 17px; }
.today li:first-child { border-top: 0; }
.today time { font: 600 17px "Sora", sans-serif; }
.today span { color: var(--soft); }
.today b { font: 600 17px "Sora", sans-serif; }
.today li.new { animation: rowin .45s var(--land) both; }
@keyframes rowin { from { opacity: 0; } to { opacity: 1; } }

/* routine */
.routine-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 12px; }
.routine-count { font: 700 28px/1.1 "Sora", sans-serif; margin-top: 4px; }
.routine-count b { font-weight: 700; }
.ring { width: 52px; height: 52px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; stroke-linecap: round; }
.ring-track { stroke: var(--fill); }
.ring-fill { stroke: var(--accent); stroke-dasharray: 113.1; stroke-dashoffset: 113.1; transition: stroke-dashoffset .45s var(--land); }
.rows { list-style: none; }
.rows li + li .row { border-top: 1px solid var(--hair); }
.row { display: grid; grid-template-columns: 60px 1fr 32px; align-items: center; gap: 8px; width: 100%; min-height: 60px; text-align: left; }
.row time { font: 600 17px "Sora", sans-serif; color: var(--text-2); }
.row-title { font-size: 17px; transition: color .3s var(--ease); }
.check { width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--mist-400); position: relative; transition: background .25s var(--ease), box-shadow .25s var(--ease); }
.check::after { content: ""; position: absolute; left: 11px; top: 7px; width: 8px; height: 14px; border: solid var(--navy); border-width: 0 3px 3px 0;
                transform: rotate(45deg) scale(.6); opacity: 0; transition: opacity .2s var(--ease), transform .3s var(--land); }
.row[aria-pressed="true"] .check { background: var(--accent); box-shadow: inset 0 0 0 0 transparent; }
.row[aria-pressed="true"] .check::after { opacity: 1; transform: rotate(45deg) scale(1); }
.row[aria-pressed="true"] .row-title { color: var(--text-2); }
.routine-done { color: var(--text-2); padding: 12px 0 4px; font-size: 15px; display: flex; align-items: center; gap: 8px; min-height: 48px; }
.routine-done .text-btn { opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.routine-done.on .text-btn { opacity: 1; pointer-events: auto; }

/* say it */
.say { position: relative; overflow: hidden; border-radius: var(--r-sheet); min-height: 460px; background: var(--mist-50); color: var(--navy); isolation: isolate; }
@media (prefers-color-scheme: dark) { .say { background: var(--deep); color: var(--mist-50); } }
.aura { position: absolute; inset: -20%; z-index: -1; filter: blur(48px); }
.aura i { position: absolute; border-radius: 50%; opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
.aura i:nth-child(1) { width: 70%; height: 60%; left: -5%; bottom: 0; background: var(--soft); }
.aura i:nth-child(2) { width: 55%; height: 50%; right: -5%; bottom: 10%; background: var(--base); opacity: .45; animation-duration: 17s; }
.aura i:nth-child(3) { width: 60%; height: 45%; left: 25%; top: 5%; background: var(--mist-300); opacity: .5; animation-duration: 20s; }
@media (prefers-color-scheme: dark) { .aura i:nth-child(1) { background: var(--mist-700); } .aura i:nth-child(3) { background: var(--navy); opacity: .8; } }
.say.listening .aura i { opacity: .8; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(6%, -8%) scale(1.12); } }
.say-body { position: relative; display: flex; flex-direction: column; min-height: 500px; padding: 76px 20px 20px; }
.say-heard { font: 600 28px/1.2 "Figtree", sans-serif; max-width: 20ch; transition: opacity .3s var(--ease); }
.say-heard.dim { opacity: .55; }
.say-result { flex: 1; padding-top: 20px; }
.say-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; background: rgba(255, 255, 255, .55);
        box-shadow: inset 0 0 0 1px rgba(0, 41, 65, .08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@media (prefers-color-scheme: dark) { .chip { background: rgba(30, 68, 91, .55); box-shadow: inset 0 0 0 1px rgba(182, 223, 237, .14); } }
.say-field { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 6px 0 20px; border-radius: 999px;
             background: rgba(255, 255, 255, .7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(0, 41, 65, .1); }
@media (prefers-color-scheme: dark) { .say-field { background: rgba(30, 68, 91, .6); box-shadow: inset 0 0 0 1px rgba(182, 223, 237, .16); } }
.say-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: 500 17px "Figtree", sans-serif; color: inherit; outline: none; }
.say-field input::placeholder { color: var(--mist-600); }
.send { width: 44px; height: 44px; border-radius: 50%; background: var(--base); display: grid; place-items: center; flex: none; }
.send svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.result-card { background: var(--card); color: var(--text); border-radius: var(--r-card); padding: 16px 20px 20px; box-shadow: 0 20px 40px -24px rgba(0, 24, 41, .5);
               animation: resultin .45s var(--land) both; }
@keyframes resultin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.result-card .kind { font: 600 15px "Figtree", sans-serif; color: var(--text-2); }
.result-card .big { font: 600 56px/1.05 "Sora", sans-serif; letter-spacing: -.01em; margin: 6px 0 2px; }
.result-card .title { font: 700 28px/1.15 "Figtree", sans-serif; margin: 6px 0 2px; }
.result-card .when { color: var(--text-2); }
.result-actions { display: flex; gap: 12px; margin-top: 16px; }
.result-actions .primary { flex: 1; height: 48px; background: var(--accent); }
.result-actions .ghost { height: 48px; padding: 0 18px; border-radius: 999px; background: var(--fill); font-weight: 600; }
.thinking { display: inline-flex; gap: 6px; padding-top: 8px; }
.thinking i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .35; animation: dot 1s ease-in-out infinite; }
.thinking i:nth-child(2) { animation-delay: .15s; } .thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: .9; } }
.landing { margin-top: 12px; }
.landed { list-style: none; margin-top: 4px; }
.landed-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; min-height: 60px; padding: 12px 0; border-top: 1px solid var(--hair); }
.landed-row:first-child { border-top: 0; }
.landed-row b { font: 600 28px/1 "Sora", sans-serif; letter-spacing: -.01em; }
.landed-row .detail { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.landed-row .kind { font: 600 13px "Figtree", sans-serif; color: var(--text-2); }
.landed-row .what { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flyer { position: fixed; z-index: 60; margin: 0; pointer-events: none; transition: transform .45s var(--land), opacity .45s var(--land); transform-origin: 0 0; }

/* natural wake */
.wake-sec { padding: 120px 0 112px; }
.card-night { position: relative; background: var(--night); border-radius: var(--r-sheet); padding: 20px; overflow: hidden; }
.night-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.night-latest { font: 700 64px/1 "Sora", sans-serif; letter-spacing: -.01em; color: var(--base); margin-top: 4px; }
.latest-ctl { flex: 1; max-width: 260px; padding-bottom: 12px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--mist-800); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--mist-800); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--mist-50); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--mist-50); }
.chart { width: 100%; height: 240px; margin: 20px 0 8px; overflow: visible; }
.chart .latest-line { stroke: var(--base); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.chart .win-label { font: 600 13px "Figtree", sans-serif; fill: var(--base); }
.chart .window { fill: var(--base); opacity: .55; transition: x .3s var(--ease), width .3s var(--ease); }
.chart .stage { fill: var(--mist-800); }
.chart .stage.deep { fill: var(--mist-700); }
.chart .hr { fill: none; stroke: var(--soft); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart .cursor { stroke: var(--mist-50); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; }
.chart .axis text { font: 600 13px "Figtree", sans-serif; fill: var(--mist-400); }
.night-foot { display: grid; gap: 14px; }
.night-status { color: var(--soft); font-size: 15px; min-height: 2.6em; }
.woke { position: absolute; inset: 0; background: var(--base); color: var(--navy); padding: 28px 20px; display: flex; flex-direction: column; justify-content: flex-end;
        opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.woke.on { opacity: 1; pointer-events: auto; }
.woke .eyebrow { color: var(--navy); }
.woke-time { font: 700 96px/1 "Sora", sans-serif; letter-spacing: -.01em; margin: 4px 0 12px; }
.woke p:not(.eyebrow):not(.woke-time) { font-size: 19px; font-weight: 600; max-width: 34ch; }
.text-btn.on-coral { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; align-self: flex-start; margin-top: 12px; }

/* colour */
.colour-sec { padding-bottom: 112px; }
.colour-grid { display: grid; gap: 32px; align-items: center; }
.colour-icon img { width: 168px; height: 168px; border-radius: 38px; box-shadow: 0 24px 48px -20px rgba(0, 24, 41, .45); transition: opacity .25s var(--ease); }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 28px; max-width: 420px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 13px "Figtree", sans-serif; color: var(--text-2); padding: 4px 0; }
.swatch i { width: 44px; height: 44px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 0 var(--text); transition: box-shadow .2s var(--ease); }
.swatch[aria-checked="true"] { color: var(--text); }
.swatch[aria-checked="true"] i { box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--text); }

/* bedside */
.bedside { background: #000; color: var(--mist-50); padding: 120px 0 112px; margin-top: calc(-1 * var(--r-sheet)); padding-top: calc(120px + var(--r-sheet)); }
.bedside .sec-head p { color: var(--mist-400); }
.clock { text-align: center; padding: 48px 0 32px; --ink: var(--day-ink); }
.clock.night { --ink: var(--night-ink); }
.clock-time { font: 600 clamp(96px, 30vw, 300px)/1 "Sora", sans-serif; letter-spacing: -.01em; color: var(--ink); transition: color .6s var(--ease); }
.clock-date { margin-top: 12px; font: 500 20px "Figtree", sans-serif; color: var(--ink); opacity: .8; transition: color .6s var(--ease); }
.clock-alarm { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font: 600 17px "Figtree", sans-serif; color: var(--base); }
.clock.night .clock-alarm { color: var(--night-ink); }
.clock-alarm svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.clock-mode { display: flex; justify-content: center; gap: 4px; width: max-content; margin: 0 auto; padding: 4px; border-radius: 999px; background: #121a20; }
.clock-mode button { height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--mist-400); transition: background .2s, color .2s; }
.clock-mode button[aria-checked="true"] { background: #24313a; color: var(--mist-50); }

/* sounds */
.sounds-sec { padding: 112px 0 128px; }
.sounds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sound { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 16px; min-height: 112px; border-radius: var(--r-chip);
         background: var(--mist-800); font: 600 15px "Figtree", sans-serif; text-align: left; transition: background .25s var(--ease), color .25s var(--ease); }
.s-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--base); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.sound[aria-pressed="true"] { background: var(--base); color: var(--navy); }
.sound[aria-pressed="true"] svg { stroke: var(--navy); }
.sound[aria-pressed="true"] .s-icon { animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; } }

/* screens shelf */
.screens-sec { padding-bottom: 120px; }
.shelf { list-style: none; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--margin) 24px;
         scroll-padding: 0 var(--margin); scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf li { flex: none; width: 230px; scroll-snap-align: start; }
.shelf .phone { border-radius: 38px; padding: 7px; box-shadow: inset 0 0 0 1.5px #2a4558, 0 24px 48px -28px rgba(0, 24, 41, .6); }
.shelf .phone img { border-radius: 31px; }
.shelf p { margin-top: 16px; color: var(--text-2); font-size: 15px; }
.shelf p b { display: block; font: italic 800 20px/1.1 "Figtree", sans-serif; color: var(--text); transform: var(--shear); transform-origin: left bottom; margin-bottom: 4px; }

/* end */
.end { background: var(--base); color: var(--navy); border-radius: var(--r-sheet) var(--r-sheet) 0 0; margin-top: calc(-1 * var(--r-sheet)); z-index: 3;
       padding: 96px 0 104px; transition: background .3s var(--ease); }
.end-inner { display: flex; flex-direction: column; align-items: flex-start; }
.end-icon { width: 104px; height: 104px; border-radius: 24px; margin-bottom: 28px; box-shadow: 0 18px 36px -16px rgba(0, 41, 65, .5); }
.end .headline em { color: var(--navy); background: none; }
.end .headline { font-size: clamp(60px, 17vw, 136px); }
.foot { background: var(--navy); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; color: var(--mist-400); font-size: 15px; }
.foot img { height: 20px; width: auto; }

/* reveal: opacity in place, calm */
.reveal { opacity: 0; transition: opacity .8s var(--out); }
.reveal.in { opacity: 1; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  :root { --margin: 40px; }
  .hero { padding-top: 140px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; min-height: 760px; }
  .hero .headline, .end .headline { font-size: 112px; }
  .sec-head { max-width: 900px; }
  .headline { font-size: 96px; }
  .headline.sm { font-size: 56px; }
  .hero-icon { width: 136px; height: 136px; border-radius: 31px; }
  .hero-phone { height: 760px; margin: 0; }
  .hero-phone .tilt { width: 340px; top: 60px; transform: translateX(-62%) rotate(-9deg); }
  .hero-phone .satellite { width: 250px; top: 220px; transform: translateX(20%) rotate(4deg); }
  .sheet { padding: 120px 0 128px; }
  .sec-head { margin-bottom: 64px; }
  .demo { grid-template-columns: 1fr 1.25fr; gap: 64px; margin-top: 120px; }
  .demo-copy { position: sticky; top: 120px; padding-top: 24px; }
  .demo-say { grid-template-columns: 1fr 1.25fr; }
  .demo-say .landing { grid-column: 2; }
  .water-stage { height: 380px; }
  .bottle { width: 208px; height: 380px; }
  .water-number { left: 150px; top: 176px; font-size: 112px; }
  .toast { top: 340px; }
  .colour-grid { grid-template-columns: auto 1fr; gap: 72px; }
  .colour-icon img { width: 240px; height: 240px; border-radius: 54px; }
  .sounds { grid-template-columns: repeat(6, 1fr); }
  .shelf { padding-left: max(var(--margin), calc((100vw - 1160px) / 2 + var(--margin))); }
  .shelf li { width: 260px; }
  .card-night { padding: 32px; }
  .night-foot { grid-template-columns: 240px 1fr; align-items: center; gap: 24px; }
  .woke { padding: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; }
}
