/* Daily — plandaily.app. The sky colours come from sky.js; everything else follows "day" or "night". */

@property --sky-top    { syntax: '<color>'; inherits: true; initial-value: #0a1128; }
@property --sky-mid    { syntax: '<color>'; inherits: true; initial-value: #141b38; }
@property --sky-bottom { syntax: '<color>'; inherits: true; initial-value: #1e2650; }

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", "Apple Garamond", Georgia, "Noto Serif", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;

  /* The app's Theme.swift, light */
  --accent: #e4571b;
  --accent-2: #ff8a4c;
  --life: #e4571b;
  --workout: #d9870f;
  --food: #d4537e;
  --sun: #f6b21a;
  --paper: #f3f0e9;
  --panel: #fdfcf9;
  --track: #e9e6df;
  --ink: #16181d;
  --ink-2: rgb(22 24 29 / .7);
  --ink-3: rgb(22 24 29 / .5);
  --hairline: rgb(22 24 29 / .1);
  --glass: rgb(253 252 249 / .82);
  --glass-strong: rgb(243 240 233 / .9);
  --glass-line: rgb(255 255 255 / .7);
  --btn-bg: #16181d;
  --btn-ink: #fff;
  --shadow: 0 30px 60px -30px rgb(20 40 80 / .35), 0 2px 6px rgb(20 40 80 / .06);
  --device-shadow: 0 50px 90px -40px rgb(10 20 40 / .55), 0 22px 40px -24px rgb(10 20 40 / .45);

  --hero-ink: #fff;
  --hero-ink-2: rgb(255 255 255 / .82);
  --hero-shadow: 0 1px 24px rgb(0 0 0 / .22);
  --pill-bg: rgb(255 255 255 / .16);
  --pill-line: rgb(255 255 255 / .28);
}
:root[data-hero="dark"] {
  --hero-ink: #16181d; --hero-ink-2: rgb(22 24 29 / .74); --hero-shadow: none;
  --pill-bg: rgb(255 255 255 / .45); --pill-line: rgb(255 255 255 / .7);
}
:root[data-scheme="night"] {
  color-scheme: dark;
  --accent: #ff7a3d;
  --life: #ff7a3d;
  --workout: #f5b547;
  --food: #ec7fa4;
  --sun: #ffc94d;
  --paper: #0b0e13;
  --panel: #141921;
  --track: #232831;
  --ink: #eef0f3;
  --ink-2: rgb(238 240 243 / .72);
  --ink-3: rgb(238 240 243 / .5);
  --hairline: rgb(255 255 255 / .1);
  --glass: rgb(20 25 33 / .82);
  --glass-strong: rgb(36 43 56 / .85);
  --glass-line: rgb(255 255 255 / .12);
  --btn-bg: #fff;
  --btn-ink: #16181d;
  --shadow: 0 30px 60px -30px rgb(0 0 0 / .7), 0 2px 6px rgb(0 0 0 / .2);
  --device-shadow: 0 50px 90px -40px rgb(0 0 0 / .8), 0 22px 40px -24px rgb(0 0 0 / .6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sky-top);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

/* ---------- Sky ---------- */
.sky {
  position: fixed; inset: 0; height: 100lvh; z-index: -1; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 58%, var(--sky-bottom) 100%);
  transition: --sky-top 2s ease-in-out, --sky-mid 2s ease-in-out, --sky-bottom 2s ease-in-out;
}
.sky.instant { transition: none; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 2s ease-in-out; }
.haze {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 60% at 50% 110%, rgb(255 255 255 / .18), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; z-index: 50; top: max(10px, env(safe-area-inset-top)); left: 50%; translate: -50% 0;
  width: min(1120px, calc(100% - 24px));
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 14px; border-radius: 999px;
  color: var(--hero-ink);
  border: 1px solid transparent;
  transition: background .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.nav.solid {
  color: var(--ink);
  background: var(--glass);
  border-color: var(--glass-line);
  box-shadow: 0 10px 30px -14px rgb(0 0 0 / .3);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand img { border-radius: 22.5%; box-shadow: 0 2px 8px rgb(0 0 0 / .2); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 550; padding: 8px 12px; border-radius: 999px; opacity: .85; transition: background .2s, opacity .2s; }
.nav-links a:hover { opacity: 1; background: rgb(127 127 127 / .14); }
.nav-cta {
  text-decoration: none; font-size: 14.5px; font-weight: 650; padding: 9px 16px; border-radius: 999px;
  color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 6px 18px -8px rgb(228 87 27 / .8);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 16px;
  font: 650 16.5px/1 var(--font); letter-spacing: -.01em; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .6s ease, color .6s ease;
}
.btn.primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 10px 24px -10px rgb(0 0 0 / .5); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgb(0 0 0 / .55); }
.btn.primary:active { transform: translateY(0) scale(.99); }
.btn.ghost { color: var(--hero-ink); background: var(--pill-bg); border: 1px solid var(--pill-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn.ghost:hover { transform: translateY(-1px); }
.btn.secondary { background: var(--glass-strong); color: var(--ink); border: 1px solid var(--hairline); min-height: 48px; font-size: 15px; }
.btn[aria-disabled="true"] { pointer-events: none; opacity: .5; box-shadow: none; }
.btn .meta { font-weight: 500; opacity: .6; font-size: 14px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  max-width: 1180px; margin: 0 auto;
  padding: 120px max(20px, env(safe-area-inset-right)) 60px max(20px, env(safe-area-inset-left));
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px;
}
.hero-copy { color: var(--hero-ink); text-shadow: var(--hero-shadow); transition: color 2s ease-in-out; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none; text-shadow: none;
  padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 650;
  background: var(--pill-bg); border: 1px solid var(--pill-line);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 0 0 4px rgb(255 138 76 / .25); }
.eyebrow-arrow { transition: translate .2s; }
.eyebrow:hover .eyebrow-arrow { translate: 3px 0; }
.hero-title {
  margin-top: 22px;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(46px, 7.2vw, 92px); line-height: .98; letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-lede { margin-top: 22px; max-width: 34em; font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.5; color: var(--hero-ink-2); text-wrap: pretty; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; text-shadow: none; }
.hero-platforms { margin-top: 22px; font-size: 13.5px; font-weight: 600; letter-spacing: .02em; color: var(--hero-ink-2); }
.time-pill {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 13px 7px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em; text-shadow: none;
  color: var(--hero-ink); background: var(--pill-bg); border: 1px solid var(--pill-line);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
}
.time-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px rgb(246 178 26 / .3); }

.hero-stage { position: relative; height: min(680px, 78svh); min-height: 520px; }
.hero-stage .device { position: absolute; will-change: transform; }
.hero-iphone { --w: clamp(220px, 23vw, 300px); left: 32%; top: 50%; translate: -50% -50%; z-index: 2; }
.hero-android { --w: clamp(200px, 20vw, 262px); left: 66%; top: 47%; translate: -50% -50%; rotate: 7deg; z-index: 1; }
.hero-watch { --w: clamp(110px, 11vw, 150px); left: 70%; top: 76%; translate: -50% -50%; z-index: 3; }
.glow {
  position: absolute; inset: 10% 5% 0; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 190 120 / .35), transparent);
  filter: blur(30px); pointer-events: none;
}

/* ---------- Device frames (drawn, so screenshots stay sharp at any size) ---------- */
.device { position: relative; width: var(--w, 300px); container-type: inline-size; }
.device .frame { position: relative; box-shadow: var(--device-shadow); }
.device .screen { position: relative; overflow: hidden; background: #000; isolation: isolate; }
.device .screen img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device .screen::before { /* a little glass */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(118deg, rgb(255 255 255 / .1), transparent 32%, transparent 70%, rgb(255 255 255 / .04));
}

/* iPhone */
.iphone .frame {
  padding: 3.3cqw; border-radius: 16.5cqw;
  background: linear-gradient(150deg, #6a6e75, #2b2d31 22%, #1a1b1e 55%, #3b3e44 85%, #6a6e75);
  box-shadow: inset 0 0 0 .5cqw #0b0b0c, inset 0 0 0 .9cqw #2a2c30, var(--device-shadow);
}
.iphone .screen { aspect-ratio: 1260 / 2736; border-radius: 13.4cqw; }
.iphone .screen::after { /* Dynamic Island */
  content: ""; position: absolute; z-index: 4; top: 3cqw; left: 50%; translate: -50% 0;
  width: 27cqw; height: 7.8cqw; border-radius: 99px; background: #000;
}
.iphone .frame::before, .iphone .frame::after {
  content: ""; position: absolute; width: 1cqw; border-radius: 1cqw; background: linear-gradient(90deg, #2c2e32, #55585e);
}
.iphone .frame::before { left: -.7cqw; top: 22cqw; height: 7cqw; box-shadow: 0 11cqw 0 #3b3e43, 0 22cqw 0 #3b3e43; }
.iphone .frame::after { right: -.7cqw; top: 32cqw; height: 16cqw; }

/* Android phone */
.android .frame {
  padding: 2.6cqw; border-radius: 11cqw;
  background: linear-gradient(160deg, #3c3f44, #1d1e21 40%, #121315 70%, #2c2e33);
  box-shadow: inset 0 0 0 .45cqw #08090a, var(--device-shadow);
}
.android .screen { aspect-ratio: 800 / 1733; border-radius: 8.8cqw; background: #f3f0e9; }
.android .screen::after { /* punch-hole camera */
  content: ""; position: absolute; z-index: 4; top: 1.5cqw; left: 50%; translate: -50% 0;
  width: 3cqw; height: 3cqw; border-radius: 50%; background: #050505; box-shadow: 0 0 0 .5cqw rgb(0 0 0 / .25);
}
.android .frame::after { content: ""; position: absolute; right: -.7cqw; top: 26cqw; width: 1cqw; height: 11cqw; border-radius: 1cqw; background: #3a3c41; box-shadow: 0 16cqw 0 #3a3c41; }

/* iPhone Duo (any phone-shaped screen of its own size) */
.duo .frame {
  padding: 2.4cqw; border-radius: 8.6cqw;
  background: linear-gradient(150deg, #6a6e75, #2b2d31 22%, #1a1b1e 55%, #3b3e44 85%, #6a6e75);
  box-shadow: inset 0 0 0 .4cqw #0b0b0c, var(--device-shadow);
}
.duo .screen { aspect-ratio: 824 / 1200; border-radius: 6.6cqw; background: #f3f0e9; }
.duo.open .frame { padding: 1.6cqw; border-radius: 4.4cqw; }
.duo.open .screen { aspect-ratio: 1426 / 1004; border-radius: 3.2cqw; }

/* iPad and Android tablet */
.ipad .frame, .tablet .frame {
  padding: 2.1cqw; border-radius: 4.4cqw;
  background: linear-gradient(150deg, #5d6066, #26282c 30%, #1a1b1e 65%, #3a3d42);
  box-shadow: inset 0 0 0 .3cqw #0b0b0c, var(--device-shadow);
}
.ipad .screen { aspect-ratio: 4 / 3; border-radius: 2.5cqw; }
.tablet .screen { aspect-ratio: 1280 / 900; border-radius: 2.2cqw; }
.ipad .frame::after, .tablet .frame::after { content: ""; position: absolute; top: .75cqw; left: 50%; translate: -50% 0; width: .6cqw; height: .6cqw; border-radius: 50%; background: #0c1520; box-shadow: inset 0 0 0 .12cqw #233041; }

/* MacBook */
.mac .frame {
  padding: 1.5cqw 1.5cqw 2.2cqw; border-radius: 2.6cqw 2.6cqw .5cqw .5cqw;
  background: #0b0b0d;
  box-shadow: 0 0 0 .22cqw #6d7076, inset 0 0 0 .2cqw #1d1e21;
}
.mac .screen { aspect-ratio: 1320 / 860; border-radius: .7cqw .7cqw 0 0; }
.mac .screen::after { content: ""; position: absolute; z-index: 4; top: 0; left: 50%; translate: -50% 0; width: 10cqw; height: 1.9cqw; background: #0b0b0d; border-radius: 0 0 .9cqw .9cqw; }
.mac .base {
  position: relative; width: 118%; margin-left: -9%; height: 2.3cqw;
  background: linear-gradient(180deg, #e3e5e8, #b9bcc1 45%, #8c8f95 85%, #6b6e74);
  border-radius: .3cqw .3cqw 4cqw 4cqw / .3cqw .3cqw 100% 100%;
  box-shadow: var(--device-shadow);
}
.mac .base::before { content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; width: 15cqw; height: .9cqw; background: linear-gradient(#9da0a5, #c4c7cb); border-radius: 0 0 1.2cqw 1.2cqw; }

/* Apple Watch */
.watch .frame {
  padding: 7.5cqw 6.5cqw; border-radius: 29cqw;
  background: linear-gradient(145deg, #5a5d63, #1c1d20 40%, #121315 70%, #3c3f45);
  box-shadow: inset 0 0 0 .8cqw #060607, var(--device-shadow);
}
.watch .screen { aspect-ratio: 416 / 496; border-radius: 21cqw; }
.watch .frame::after { content: ""; position: absolute; right: -4.2cqw; top: 24cqw; width: 5cqw; height: 16cqw; border-radius: 2cqw; background: repeating-linear-gradient(180deg, #4a4d53 0 .8cqw, #2a2c30 .8cqw 1.6cqw); box-shadow: 0 0 0 .3cqw #1c1d20; }
.watch .frame::before { content: ""; position: absolute; right: -2.4cqw; top: 50cqw; width: 2.6cqw; height: 22cqw; border-radius: 1.4cqw; background: #2a2c30; }
.watch::before, .watch::after { /* the band */
  content: ""; position: absolute; left: 17cqw; right: 17cqw; height: 32cqw; z-index: -1;
  background: linear-gradient(90deg, #22252b, #3a3e46 50%, #22252b);
}
.watch::before { top: -26cqw; border-radius: 8cqw 8cqw 0 0; }
.watch::after { bottom: -26cqw; border-radius: 0 0 8cqw 8cqw; }

/* Wear OS (round) */
.wear .frame {
  padding: 7cqw; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #6d7077, #25272b 55%, #141517);
  box-shadow: inset 0 0 0 .9cqw #060607, var(--device-shadow);
}
.wear .screen { aspect-ratio: 1; border-radius: 50%; }
.wear .frame::after { content: ""; position: absolute; right: -3.4cqw; top: 50%; translate: 0 -50%; width: 5cqw; height: 13cqw; border-radius: 2cqw; background: repeating-linear-gradient(180deg, #55585e 0 .8cqw, #2b2d31 .8cqw 1.6cqw); }
.wear::before, .wear::after {
  content: ""; position: absolute; left: 24cqw; right: 24cqw; height: 34cqw; z-index: -1;
  background: linear-gradient(90deg, #22252b, #3a3e46 50%, #22252b);
}
.wear::before { top: -22cqw; border-radius: 6cqw 6cqw 0 0; }
.wear::after { bottom: -22cqw; border-radius: 0 0 6cqw 6cqw; }

/* ---------- The sheet over the sky ---------- */
.sheet {
  position: relative;
  background: var(--paper);
  border-radius: 44px;
  margin: 0 auto;
  box-shadow: 0 -30px 80px -40px rgb(0 0 0 / .45);
  transition: background .8s ease, color .8s ease;
  overflow: clip;
}
.kicker { font-size: 13px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; margin-top: 12px; }
.section-head { max-width: 760px; margin: 0 auto; text-align: center; }
.section-lede { margin: 18px auto 0; max-width: 36em; font-size: 18px; color: var(--ink-2); text-wrap: pretty; }

/* ---------- Arc story ---------- */
.arc-story {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px;
}
.arc-sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; }
.arc-visual { width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; }
.arc-svg { width: 100%; overflow: visible; }
.arc-track, .arc-seg { fill: none; stroke-width: 104; stroke-linecap: round; }
.arc-seg { stroke-linecap: butt; }
.arc-cap { opacity: 0; transition: opacity .2s; }
.arc-track { stroke: var(--track); transition: stroke .8s; }
.seg-life { stroke: var(--life); }
.seg-workout { stroke: var(--workout); }
.seg-food { stroke: var(--food); }
.arc-seg { stroke-dasharray: 0 100; transition: stroke-dasharray .35s var(--ease), stroke-dashoffset .35s var(--ease); }
.arc-horizon { stroke: var(--accent); stroke-width: 10; stroke-linecap: round; opacity: .22; }
.sun-halo { fill: var(--sun); opacity: .28; }
.sun-core { fill: var(--sun); }
.arc-count { font-family: var(--serif); font-weight: 700; font-size: 132px; fill: var(--ink); }
.arc-of { font-size: 34px; fill: var(--ink-3); font-family: var(--font); }
.arc-legend { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; font-size: 16px; color: var(--ink-2); margin-top: 6px; }
.arc-legend b { color: var(--ink); font-weight: 700; margin-left: 4px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }
.dot.life { background: var(--life); } .dot.workout { background: var(--workout); } .dot.food { background: var(--food); }
.arc-clock { margin-top: 22px; font: 600 13px/1 var(--font); letter-spacing: .04em; padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--hairline); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.arc-steps { padding: 20vh 0; }
.arc-step { min-height: 80svh; display: flex; flex-direction: column; justify-content: center; max-width: 480px; }
.arc-step p:not(.kicker) { margin-top: 18px; font-size: 18.5px; color: var(--ink-2); text-wrap: pretty; }
.t-life { color: var(--life); font-weight: 650; } .t-workout { color: var(--workout); font-weight: 650; } .t-food { color: var(--food); font-weight: 650; }

/* ---------- Tour ---------- */
.tour {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px;
}
.tour-sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; grid-row: 1; grid-column: 2; }
.tour-phone { --w: clamp(240px, 35svh, 330px); }
.tour-phone .shot { opacity: 0; transition: opacity .7s ease, transform .7s var(--ease); transform: scale(1.02); }
.tour-phone .shot.is-on { opacity: 1; transform: none; }
.tour-steps { grid-column: 1; grid-row: 1; padding: 10vh 0; }
.tour-step { min-height: 92svh; display: flex; flex-direction: column; justify-content: center; max-width: 500px; opacity: .35; transition: opacity .5s ease; }
.tour-step.is-on { opacity: 1; }
.tour-step > p:not(.kicker) { margin-top: 18px; font-size: 18.5px; color: var(--ink-2); text-wrap: pretty; }
.tour-inline { display: none; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; font-size: 16px; color: var(--ink-2); }
.ticks li b { color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ---------- Bento ---------- */
.bento-wrap { max-width: 1180px; margin: 0 auto; padding: 120px 24px 40px; }
.bento { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s ease, background .8s ease;
}
.tile:hover { transform: translateY(-3px); }
.tile h3 { margin-top: 18px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.tile p { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); }
.tile .quote { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--ink); margin-top: 10px; }
.tile-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 13%, transparent); }
.tile-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tile-trends { grid-column: span 2; }
.tile-notify { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 26px; align-items: center; }
.bubbles { display: grid; gap: 10px; }
.bubble {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start;
  padding: 12px 14px; border-radius: 20px; font-size: 13.5px; line-height: 1.35;
  background: color-mix(in srgb, var(--paper) 70%, transparent); border: 1px solid var(--hairline);
  box-shadow: 0 10px 24px -16px rgb(0 0 0 / .35);
}
.bubble:nth-child(2) { margin-left: 18px; } .bubble:nth-child(3) { margin-left: 36px; opacity: .85; }
.bubble img { border-radius: 22.5%; width: 34px; height: 34px; }
.bubble b { display: block; font-size: 13.5px; }
.bubble span { color: var(--ink-2); }
.bubble time { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.tile-timers { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.timer-list { display: grid; gap: 10px; }
.timer-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 16px; border-radius: 20px; background: color-mix(in srgb, var(--paper) 70%, transparent);
  border: 1px solid var(--hairline); box-shadow: 0 10px 24px -16px rgb(0 0 0 / .35);
}
.timer-row svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; }
.timer-row b { display: block; font-size: 14.5px; }
.timer-row span { font-size: 12.5px; color: var(--ink-3); }
.timer-row time { font-size: 22px; font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; }
.mini-arcs { margin-top: 22px; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 8px 6px; }
.mini-arcs svg { width: 100%; height: auto; overflow: visible; }
.mini-arcs path { fill: none; stroke-width: 9; stroke-linecap: round; }
.mini-arcs .t { stroke: var(--track); }

/* ---------- Devices ---------- */
.devices { max-width: 1180px; margin: 0 auto; padding: 120px 24px 120px; }
.device-tabs {
  margin: 40px auto 0; display: flex; gap: 6px; width: max-content; max-width: 100%;
  padding: 6px; border-radius: 999px; background: var(--panel); border: 1px solid var(--hairline);
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.device-tabs::-webkit-scrollbar { display: none; }
.device-tabs button {
  flex: none; scroll-snap-align: center;
  font: 600 14.5px/1 var(--font); color: var(--ink-2); background: none; border: 0; cursor: pointer;
  padding: 11px 16px; border-radius: 999px; transition: background .25s, color .25s;
}
.device-tabs button:hover { color: var(--ink); }
.device-tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 6px 16px -8px rgb(228 87 27 / .8); }
.device-stage { margin-top: 36px; min-height: 620px; display: grid; }
.dv { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.dv[hidden] { display: none; }
.dv.is-on { animation: dv-in .6s var(--ease) both; }
@keyframes dv-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.dv-art { display: flex; justify-content: center; align-items: center; gap: 36px; min-height: 560px; padding: 30px 0; position: relative; }
.dv-copy h3 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; letter-spacing: -.025em; }
.dv-copy p { margin-top: 14px; font-size: 17.5px; color: var(--ink-2); text-wrap: pretty; }
.dv-copy .req { font-size: 13.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .01em; }
#dv-iphone .iphone { --w: 260px; }
#dv-iphone .iphone.back, #dv-android .android.back { margin-left: -80px; translate: 0 34px; rotate: 5deg; z-index: -1; }
#dv-ipad .ipad, #dv-tablet .tablet { --w: min(660px, 100%); }
#dv-mac .mac { --w: min(640px, 92%); }
#dv-watch .watch { --w: 180px; }
#dv-watch .watch + .watch { translate: 0 40px; }
#dv-duo .duo.open { --w: min(520px, 78%); }
#dv-duo .duo.folded { --w: 170px; margin-left: -130px; translate: 0 70px; }
#dv-android .android { --w: 250px; }
#dv-wear .wear { --w: 210px; }
#dv-wear .wear + .wear { translate: 0 40px; }

.widgets {
  margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px;
  padding: 34px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--hairline); box-shadow: var(--shadow);
}
.widget-card img { display: block; width: 100%; height: auto; border-radius: 26px; box-shadow: 0 24px 50px -24px rgb(0 0 0 / .45), 0 0 0 1px var(--hairline); }
.widgets-copy { font-size: 18px; color: var(--ink-2); }
.widgets-copy b { color: var(--ink); }

/* ---------- Privacy (always night) ---------- */
.privacy {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 0 12px 12px; border-radius: 36px;
  color: #eef0f3;
  background: linear-gradient(180deg, #0b1630 0%, #1b2747 60%, #2a2f4f 100%);
  --ink: #eef0f3; --ink-2: rgb(238 240 243 / .74); --ink-3: rgb(238 240 243 / .5); --accent: #ff8a4c;
}
.privacy-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.privacy-inner { max-width: 1120px; margin: 0 auto; padding: 120px 24px 100px; }
.zeros { margin: 56px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 900px; text-align: center; }
.zeros b { display: block; font-family: var(--serif); font-size: clamp(56px, 7vw, 88px); line-height: 1; font-weight: 700; background: linear-gradient(180deg, #fff, #ffc9a8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zeros span { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.promises { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.promise {
  padding: 26px; border-radius: 24px;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.promise svg { width: 28px; height: 28px; fill: none; stroke: #ffb27a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.promise h3 { margin-top: 14px; font-size: 18.5px; font-weight: 700; letter-spacing: -.015em; }
.promise p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.privacy-link { margin-top: 40px; text-align: center; }
.privacy-link a { font-weight: 650; font-size: 16.5px; text-decoration: none; padding: 12px 20px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .25); transition: background .2s; }
.privacy-link a:hover { background: rgb(255 255 255 / .08); }

/* ---------- Download (back on the sky) ---------- */
.download { max-width: 1040px; margin: 0 auto; padding: 110px max(16px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.download-head { text-align: center; color: var(--hero-ink); text-shadow: var(--hero-shadow); display: flex; flex-direction: column; align-items: center; transition: color 2s ease-in-out; }
.download-head p { margin-top: 10px; font-size: 18px; color: var(--hero-ink-2); }
.app-icon { width: 88px; height: 88px; border-radius: 22.5%; box-shadow: 0 20px 40px -12px rgb(0 0 0 / .45), 0 0 0 1px rgb(255 255 255 / .15); margin-bottom: 18px; }
.platforms { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.card {
  position: relative;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
  display: flex; flex-direction: column; gap: 16px;
  transition: background .6s ease, border-color .6s ease;
}
.card.recommended { order: -1; }
.card-head { display: flex; align-items: center; gap: 14px; }
.plat-icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--glass-strong); flex: none; }
.card h3 { font-size: 19.5px; font-weight: 700; letter-spacing: -.02em; }
.sub { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.card .req { font-size: 12.5px; color: var(--ink-3); margin-top: -6px; text-align: center; }
.badge {
  position: absolute; top: -11px; right: 22px; white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgb(228 87 27 / .7);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.whats-new { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); border-top: 1px solid var(--hairline); padding-top: 14px; }
.whats-new h4 { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.notes p { margin: 0 0 6px; }
.notes ul { margin: 0; padding-left: 18px; }
.notes li { margin: 2px 0; }

.steps { border-top: 1px solid var(--hairline); padding-top: 14px; }
.steps summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 15px; padding: 2px 0; border-radius: 8px;
}
.steps summary::-webkit-details-marker { display: none; }
.steps summary::after {
  content: ""; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s ease;
}
.steps[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.steps ol { margin: 14px 0 2px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps ol li { counter-increment: s; position: relative; padding-left: 38px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.steps ol li strong { color: var(--ink); font-weight: 600; }
.steps ol li::before {
  content: counter(s); position: absolute; left: 0; top: -1px;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--ink); background: var(--glass-strong);
}
.steps a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 2px; font-weight: 600; }
.warn {
  margin: 14px 0 6px; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5;
  color: var(--ink-2); background: rgb(255 150 60 / .14); border: 1px solid rgb(255 150 60 / .3);
}
.warn strong { color: var(--ink); }
.versions { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.version { padding: 12px 14px; border-radius: 16px; background: var(--glass-strong); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.version .v { font-weight: 700; letter-spacing: -.01em; }
.version .d { font-size: 13px; color: var(--ink-3); }
.version .dl {
  grid-row: 1 / span 2; grid-column: 2;
  font: 600 14px/1 var(--font); color: var(--ink); text-decoration: none;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--glass);
}
.version .dl:hover { background: var(--glass-strong); }
.version .notes { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.sha {
  grid-column: 1 / -1; justify-self: start; margin-top: 2px;
  font: 500 11.5px/1.3 var(--mono); color: var(--ink-3); background: none; border: 0; padding: 2px 0; cursor: pointer; text-align: left;
}
.sha:hover { color: var(--ink-2); }

.foot { margin-top: 70px; padding: 26px 0 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 13.5px; color: var(--hero-ink); border-top: 1px solid var(--pill-line); }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.foot-brand img { border-radius: 22.5%; }
.foot-brand .sep { opacity: .5; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; opacity: .8; }
.foot-links a:hover { opacity: 1; text-decoration: underline; }
.foot-made { width: 100%; opacity: .65; font-size: 13px; }

/* Preview slider (?scrub) */
.scrub { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; padding: 12px 16px; border-radius: 999px; background: rgb(0 0 0 / .35); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.scrub input { width: 100%; accent-color: var(--accent); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.promises .promise:nth-child(3n+2), .bento .tile:nth-child(3n+2) { transition-delay: .08s; }
.promises .promise:nth-child(3n), .bento .tile:nth-child(3n) { transition-delay: .16s; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .hero-copy > :nth-child(6) { animation-delay: .3s; }
  .hero-stage { animation: stage-in 1.2s var(--ease) .15s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
  @keyframes stage-in { from { opacity: 0; transform: translateY(40px) scale(.97); } }
}
@media (prefers-reduced-motion: reduce) {
  .sky, .stars { transition: none; }
  .js .reveal { transform: none; transition: opacity .4s ease; }
  .arc-seg, .tour-phone .shot { transition: none; }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 104px; gap: 10px; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stage { height: 560px; min-height: 0; max-width: 560px; width: 100%; margin: 0 auto; }
  .hero-iphone { --w: 236px; left: 40%; }
  .hero-android { --w: 212px; left: 68%; }
  .hero-watch { --w: 118px; left: 76%; top: 78%; }

  .arc-story { grid-template-columns: 1fr; gap: 0; }
  .arc-sticky { top: 64px; height: auto; z-index: 2; padding: 12px 0 18px; background: linear-gradient(var(--paper) 85%, transparent); }
  .arc-visual { max-width: 330px; }
  .arc-legend { font-size: 14px; gap: 14px; }
  .arc-clock { margin-top: 12px; }
  .arc-steps { padding: 0 0 10vh; }
  .arc-step { min-height: 62svh; text-align: center; margin: 0 auto; }

  .tour { grid-template-columns: 1fr; }
  .tour-sticky { display: none; }
  .tour-steps { padding: 40px 0; }
  .tour-step { min-height: 0; opacity: 1; padding: 50px 0; margin: 0 auto; }
  .tour-inline { display: block; --w: min(250px, 66vw); margin: 0 auto 34px; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-wrap { padding-top: 70px; }
  .mini-arcs { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .tile-setup, .tile-notify { grid-column: span 2; }

  .devices { padding: 90px 20px; }
  .device-tabs { width: auto; border-radius: 20px; }
  .dv { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .dv-art { min-height: 0; padding: 40px 0 30px; }
  .device-stage { min-height: 0; }
  #dv-iphone .iphone { --w: min(220px, 52vw); }
  #dv-iphone .iphone.back, #dv-android .android.back { margin-left: -24vw; }
  #dv-android .android { --w: min(210px, 50vw); }
  #dv-watch .watch { --w: min(150px, 38vw); }
  #dv-wear .wear { --w: min(170px, 40vw); }
  #dv-duo .duo.open { --w: min(330px, 80vw); }
  #dv-duo .duo.folded { --w: min(120px, 30vw); margin-left: -22vw; translate: 0 40px; }
  .widgets { grid-template-columns: 1fr; padding: 22px; gap: 20px; text-align: center; }

  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zeros { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero-title { font-size: clamp(40px, 12vw, 58px); }
  .hero-stage { height: 470px; }
  .hero-iphone { --w: min(210px, 54vw); left: 40%; }
  .hero-android { --w: min(186px, 47vw); left: 72%; }
  .hero-watch { --w: min(104px, 27vw); left: 80%; top: 80%; }
  .sheet { border-radius: 30px; }
  .bento { grid-template-columns: 1fr; }
  .tile-trends, .tile-setup, .tile-notify, .tile-timers { grid-column: auto; }
  .tile-notify, .tile-timers { grid-template-columns: 1fr; }
  .bubble:nth-child(2), .bubble:nth-child(3) { margin-left: 0; }
  .promises { grid-template-columns: 1fr; }
  .privacy { margin: 0 6px 6px; border-radius: 28px; }
  .privacy-inner { padding: 80px 18px 70px; }
  .platforms { grid-template-columns: 1fr; }
  .card { padding: 22px 18px; border-radius: 24px; }
  .dv-art { gap: 18px; }
  #dv-watch .watch + .watch, #dv-wear .wear + .wear { translate: 0 24px; }
  .foot { justify-content: center; text-align: center; }
  .foot-made { text-align: center; }
}
