/* waterhog.app. Light only: a painted morning lake, one blue, SF Pro Display for the big type.
   Sections: tokens, base, buttons, nav, footer, hero + the Mac demo, story, landing sections, pricing, small pages, drawings. */

/* Newsreader (SIL OFL, assets/fonts/newsreader-OFL.txt), only for the research section on /pricing */
@font-face { font-family: "Newsreader"; src: url(/assets/fonts/newsreader.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: light;
  /* ink and paper */
  --ink: #0e1a2b;            /* deep lake */
  --ink-2: #485468;          /* body copy beside headings */
  --ink-3: #6f7b8d;          /* captions and meta, never below 14px */
  --mist: #93a3b8;           /* the soft end of a two-tone heading */
  --line: #e4e8ee;
  --page: #fff;
  /* the one accent, and the three tints panels are allowed to be */
  --blue: #1a6ff0;
  --blue-deep: #0f5bd0;
  --sky: #e8f1fc;
  --fog: #f3f5f8;
  --dawn: #fdf0e4;
  /* the app's own colours, used only inside its drawings and mocks */
  --water: #1a7cf5; --eyes: #7b5cf0; --stretch: #f07c12; --done: #1f9d45;
  --iris: #a58bff; --sclera: #fff; --lid: #e3dcef; --cell0: #e3e8ef;
  --glass-edge: rgba(30,60,110,.3); --glass-rim: rgba(30,60,110,.42); --ground: rgba(20,40,90,.2);

  --shadow-sm: 0 1px 2px rgba(14,26,43,.06), 0 4px 14px rgba(14,26,43,.06);
  --shadow: 0 1px 2px rgba(14,26,43,.06), 0 10px 30px -6px rgba(14,26,43,.14);
  --shadow-lg: 0 2px 4px rgba(14,26,43,.05), 0 30px 70px -20px rgba(14,26,43,.32);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "New York", Georgia, serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --spring: cubic-bezier(.3,1.25,.45,1);
  --nav-h: 68px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { min-height: 100vh; font: 17px/1.55 var(--sans); color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.num { font-family: var(--rounded); font-variant-numeric: tabular-nums; }
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-weight: 500; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(32px, 3.7vw, 50px); }
h3 { font-size: clamp(22px, 2vw, 26px); letter-spacing: -.015em; line-height: 1.2; }
.tail { color: var(--mist); }
.free-b { font-weight: 700; white-space: nowrap; }
.lead u { text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px;
  font-size: 16px; font-weight: 550; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
  background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #d5dbe4;
  transition: background .15s, box-shadow .15s, transform .12s;
}
.btn:hover { box-shadow: inset 0 0 0 1px #aeb8c6; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--blue); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(14,26,43,.18); }
.btn.primary:hover { background: var(--blue-deep); }
.btn.dark { background: var(--ink); color: #fff; box-shadow: none; }
.btn.dark:hover { background: #1c2c44; }
.btn:disabled { opacity: .5; cursor: default; pointer-events: none; }
.btn.sm { height: 38px; padding: 0 15px; font-size: 15px; border-radius: 10px; }
.btn.lg { height: 52px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.btn.wide { width: 100%; }
svg.apple { overflow: visible; }
.btn .apple { width: .98em; height: 1.2em; fill: currentColor; flex: none; margin-top: -.18em; }
.btn.lg .apple { margin-right: 1px; }
.btn .logo { width: 24px; height: 24px; flex: none; border-radius: 6px; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn.busy { pointer-events: none; opacity: .75; }
.btn.busy::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 1px 0 rgba(14,26,43,.07); transition: background .25s, box-shadow .25s; }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 30px; font-size: 15.5px; }
.nav-links a { text-decoration: none; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { margin-left: auto; }
/* over the painting the bar is clear; it frosts once you scroll (common.js toggles .scrolled) */
html.js .home .nav { position: fixed; left: 0; right: 0; }
html.js .home .nav:not(.scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
html.js .home .nav:not(.scrolled) .nav-links a { color: var(--ink); }

/* ---------- footer ---------- */
.foot { margin-top: 120px; border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 15.5px; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.foot-brand p { margin-top: 12px; max-width: 26ch; color: var(--ink-3); }
.foot nav { display: grid; gap: 10px; align-content: start; }
.foot h3 { font-size: 15.5px; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.foot nav a { color: var(--ink-2); text-decoration: none; width: fit-content; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-fine { grid-column: 1 / -1; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14.5px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; text-align: center; }
.hero-art { position: absolute; inset: 0 0 auto; height: clamp(760px, 66vw + 60px, 1100px); z-index: -1; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 140px), transparent); mask-image: linear-gradient(#000 calc(100% - 140px), transparent); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero-copy { padding-top: clamp(128px, 13vw, 190px); }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(46px, 6.3vw, 92px); line-height: 1.04; letter-spacing: -.032em; max-width: 13.5em; margin-inline: auto; }
.hero .lead { max-width: 34em; margin: 26px auto 34px; color: #2c3a4f; }

/* the Mac: a screen with its menu bar, the app window, and the reminder banner */
.screen-wrap { margin-top: clamp(56px, 6vw, 88px); }
.screen { position: relative; max-width: 1080px; margin-inline: auto; border-radius: 22px; overflow: hidden; text-align: left;
  background: #cfe3f3 url(/assets/art/desk-1800.webp) 50% 50% / cover no-repeat; box-shadow: 0 0 0 1px rgba(14,26,43,.1), 0 0 0 7px rgba(255,255,255,.55), var(--shadow-lg); }
.mbar { height: 30px; display: flex; align-items: center; gap: 18px; padding: 0 16px; font-size: 13.5px; background: rgba(255,255,255,.42); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); white-space: nowrap; }
.mbar b { font-weight: 650; }
.mbar .sp { flex: 1; }
.mbar .mbi { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mbar .mbi.on { margin: 0 -8px; padding: 3px 8px; border-radius: 6px; background: rgba(14,26,43,.1); }
.mbi svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mbi svg .lvl { fill: currentColor; stroke: none; }

.window { position: relative; width: min(740px, calc(100% - 48px)); margin: 46px auto 56px; border-radius: 18px; overflow: hidden; text-align: center;
  background: rgba(250,251,253,.7); -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 0 0 1px rgba(14,26,43,.14), 0 24px 60px -18px rgba(14,26,43,.45); }
.titlebar { position: relative; height: 56px; display: flex; align-items: center; justify-content: center; }
.lights { position: absolute; left: 20px; top: 22px; display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18); }
.lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.tabs { position: relative; display: flex; padding: 3px; border-radius: 999px; background: #eef0f4; font-size: 13px; }
.tabs button { position: relative; z-index: 1; padding: 5px 16px; border-radius: 999px; font-weight: 500; color: var(--ink-2); transition: color .25s; }
.tabs button[aria-selected="true"] { color: var(--ink); }
/* one pill that slides between the tabs, as in the app */
.tabs .thumb { position: absolute; left: 0; top: 3px; bottom: 3px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(14,26,43,.16);
  transition: transform .42s cubic-bezier(.3,1.25,.45,1), width .42s cubic-bezier(.3,1.25,.45,1); }
.tb-right { position: absolute; right: 16px; top: 14px; }

/* small Mac-style controls inside the mocks */
.mbtn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 28px; padding: 0 13px; border-radius: 999px; background: #eef0f4; font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; color: var(--ink); transition: background .15s, color .15s, transform .12s; }
button.mbtn:hover { background: #e3e7ed; }
button.mbtn:active { transform: scale(.96); }
.mbtn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tb-right .mbtn svg { width: 11px; height: 11px; fill: currentColor; stroke: none; }
.mbtn.primary { --accent: var(--water); background: var(--accent); color: #fff; }
button.mbtn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.mbtn.pressed { transform: scale(.93); filter: brightness(1.12); }

.habits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 10px 40px 44px; }
.habit { --hue: var(--water); display: flex; flex-direction: column; align-items: center; min-width: 0; }
.habit[data-k="eyes"] { --hue: var(--eyes); } .habit[data-k="stretch"] { --hue: var(--stretch); }
.viz { height: 190px; display: grid; place-items: center; }
.viz .glass3d { width: 104px; }
.pips { display: none; }
/* one habit on, as in the app: the glass is the whole window, and the day's glasses sit in a row under the timer */
.habits.solo { grid-template-columns: 1fr; padding: 0 40px 44px; }
.habits.solo .viz { height: 262px; margin-bottom: 6px; }
.habits.solo .viz .glass3d { width: 180px; }
.habits.solo .left { font-size: 72px; font-weight: 200; letter-spacing: -.02em; line-height: 1; }
.habits.solo .until { font-size: 14px; margin-top: 10px; }
.habits.solo .count { display: none; }
.habits.solo .pips { display: flex; gap: 12px; margin-top: 24px; }
.pips i { width: 20px; }
.pips .glass3d { width: 20px; }
.habits.solo .act { margin-top: 30px; height: 36px; padding: 0 24px; font-size: 14px; font-weight: 600; }
.tb-right .chev { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .6; margin-left: 1px; }

/* the demo Mac is in dark mode, with the app's own dark glass (design/app-mockup .win, dark) */
.screen { --ink: #f2f2f6; --ink-2: rgba(235,235,245,.62); --ink-3: rgba(235,235,245,.36); --water: #4a9eff;
  --glass-edge: rgba(255,255,255,.42); --glass-rim: rgba(255,255,255,.72); --ground: rgba(0,0,0,.55); --line: rgba(255,255,255,.08); color: var(--ink); }
.screen .mbar { background: rgba(20,20,30,.35); color: #fff; -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%); }
.screen .mbar .mbi.on { background: rgba(255,255,255,.18); }
.screen .window { background: rgba(30,32,44,.56); -webkit-backdrop-filter: blur(60px) contrast(.806) brightness(.775) saturate(304.2%); backdrop-filter: blur(60px) contrast(.806) brightness(.775) saturate(304.2%);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 .5px rgba(255,255,255,.14), inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.07); }
.screen .window::before, .screen .window::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5; }
.screen .window::before { box-shadow: inset 0 0 18px rgba(255,255,255,.05); }
.screen .window::after { padding: 1px; background: linear-gradient(135deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 64%, rgba(255,255,255,.22) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.screen .tabs, .screen .mbtn:not(.primary) { background: rgba(255,255,255,.1); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 .5px rgba(255,255,255,.07); }
.screen .tabs button { color: var(--ink-2); }
.screen .tabs button[aria-selected="true"] { color: var(--ink); }
.screen .tabs .thumb { background: rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 4px rgba(0,0,0,.18); }
.screen .habit.due .act { background: var(--hue); color: #fff; }
.screen .window { border-radius: 24px; }
.screen .banner .b-x { background: #3a3c48; color: rgba(235,235,245,.8); box-shadow: 0 0 0 .5px rgba(255,255,255,.18); }
.screen > .banner { background: rgba(30,32,44,.52); color: var(--ink); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 .5px rgba(255,255,255,.14), inset 0 1px 0 rgba(255,255,255,.2); }
.viz svg.eye { width: 158px; }
.viz svg.fig { width: 192px; }
.h-text { display: flex; flex-direction: column; align-items: center; }
.left { font-size: 50px; font-weight: 300; line-height: 1.1; letter-spacing: -.01em; transition: color .3s; }
.left.fresh { color: var(--done); }
.until { font-size: 14.5px; color: var(--ink-2); }
.count { font-size: 13.5px; color: var(--ink-3); margin-top: 3px; }
.count b { color: var(--ink); font-weight: 600; }
.habit .act { margin-top: 16px; height: 32px; padding: 0 16px; }
.habit.due .left, .habit.due .until { color: var(--hue); }
.habit.due .act, .habit .act.confirmed { background: var(--hue); color: #fff; }

/* the 20-second eye break dims the window, as the app dims your screen */

/* notification banner */
.banner { width: max-content; min-width: 352px; max-width: 100%; border-radius: 18px; padding: 13px 16px 13px 14px; display: flex; gap: 11px; background: #fff; text-align: left;
  box-shadow: 0 0 0 1px rgba(14,26,43,.08), 0 14px 34px -10px rgba(14,26,43,.28); }
.banner h4 { font-size: 14px; font-weight: 600; }
.banner p { font-size: 13.5px; color: var(--ink-2); margin: 1px 0 10px; line-height: 1.35; white-space: nowrap; }
.banner .acts { display: flex; gap: 6px; flex-wrap: nowrap; }
.banner .mbtn { white-space: nowrap; }
.banner.asking p { white-space: normal; }
/* an ignored reminder: a faint ring in the habit's colour, with a brighter stretch running around it */
.banner .edge { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); overflow: visible; pointer-events: none; opacity: 0; transition: opacity .4s; }
.banner.nag .edge { opacity: 1; }
.banner .edge rect { fill: none; stroke: var(--hue, var(--water)); rx: 17px; }
.banner .edge .base { stroke-width: 1.5; stroke-opacity: .28; }
.banner .edge .run { stroke-width: 2; stroke-linecap: round; stroke-dasharray: 28 72; animation: edge-run 2.4s linear infinite; }
@keyframes edge-run { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
/* Skip's hold ring, 3px outside the pill */
#b-skip { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; }
#b-skip .ring { position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); overflow: visible; pointer-events: none; opacity: 0; transition: opacity .2s; }
#b-skip.holding .ring { opacity: 1; }
#b-skip .ring rect { fill: none; stroke: var(--hue, var(--water)); stroke-width: 2; stroke-linecap: round; rx: 16px; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); }
@media (prefers-reduced-motion: reduce) {
  .banner .edge .run { display: none; }
  .banner .edge .base { stroke-opacity: .9; }
}
.banner .mbtn { height: 26px; font-size: 12.5px; padding: 0 12px; }
.banner .mbtn:has(svg) { padding-left: 9px; }
.banner .b-x { position: absolute; left: -7px; top: -7px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm), 0 0 0 1px rgba(14,26,43,.08); opacity: 0; transition: opacity .15s; color: var(--ink-2); }
.banner:hover .b-x, .banner .b-x:focus-visible { opacity: 1; }
.banner .b-x svg { width: 8px; height: 8px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.screen > .banner { position: absolute; right: 14px; top: 42px; z-index: 5; transition: opacity .25s, transform .4s var(--spring); }
.screen > .banner.off { opacity: 0; transform: translateX(40px); pointer-events: none; }
.appicon { --hue: var(--water); width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--hue) 72%, #fff), color-mix(in srgb, var(--hue) 88%, #000)); }
.appicon svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.appicon .i-t { fill: #fff; fill-opacity: .5; stroke: none; }
.appicon .i-s { fill: #fff; stroke: none; }
.banner .appicon.art { background: none; box-shadow: none; }
.banner .appicon.art img { width: 40px; height: 40px; display: block; }


/* =====================================================================
   THE STORY (pinned while a timeline scrubs; see story.js)
   ===================================================================== */
.story { position: relative; margin-top: clamp(72px, 9vw, 130px); scroll-margin-top: -16px; }   /* #story lands exactly where the stage pins */
.st-ch { padding: 36px 0; }
.st-ch h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.06; margin-bottom: 20px; }
.st-ch .lead { max-width: 27em; }
.st-ch .btn { margin-top: 30px; }
.st-src { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.st-src a { color: inherit; text-underline-offset: 2px; }
.st-src a:hover { color: var(--ink); }
.st-list { list-style: none; display: grid; gap: 14px; max-width: 27em; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.5; color: var(--ink-2); }
.st-list b { color: var(--ink); font-weight: 600; }
.st-list li.eyes b { color: var(--eyes); }
.st-list li.stretch b { color: var(--stretch); }
.st-art, .st-dots { display: none; }
.free { display: inline-block; font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--done); }

/* with JavaScript: one sticky stage, the chapters stacked in the same cell */
html.js .story { height: 400svh; margin-top: clamp(40px, 5vw, 72px); }
html.js .st-stage { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
html.js .st-copy { display: grid; align-items: center; }
html.js .st-ch { grid-area: 1 / 1; padding: 0; }
html.js .st-ch:not([data-ch="0"]) { opacity: 0; visibility: hidden; }
html.js .st-art { display: block; position: relative; height: min(680px, calc(100% - 48px)); border-radius: 36px; background: var(--sky); overflow: hidden; }
html.js .st-dots { display: flex; }

.scene-box { position: absolute; left: 50%; top: 50%; width: 540px; height: 470px; margin: -235px 0 0 -270px; transform: scale(var(--s, 1)); }
/* chapter 3: each habit on a card in its own colour */
.st-tile { position: absolute; top: 96px; width: 168px; height: 318px; border-radius: 26px; opacity: 0; visibility: hidden; }
.st-tile.t-water { left: 6px; background: #e1ecfb; }
.st-tile.t-eyes { left: 186px; background: #ebe5fd; }
.st-tile.t-stretch { left: 366px; background: #fde7d2; }
.st-glass { position: absolute; left: 170px; top: 12px; width: 200px; transform-origin: 50% 100%; }
/* chapters 0 and 1: a thirsty plant, then a run-down battery; the glass and its timer arrive in chapter 2 */
.st-obj { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.o-plant { width: 360px; margin: -235px 0 0 -180px; }
.o-battery { width: 340px; margin: -100px 0 0 -170px; }
.o-battery, html.js .st-glass, html.js .st-read { opacity: 0; visibility: hidden; }
.st-glass .glass3d { width: 200px; }
.st-read { position: absolute; left: 0; right: 0; top: 322px; text-align: center; }
.st-read .left { font-size: 58px; }
.st-read.due .left, .st-read.due .until { color: var(--water); }
.st-read .until { font-size: 16px; }
.st-read .count { font-size: 14.5px; margin-top: 4px; }
.st-read .count b { display: inline-block; }
.st-item { position: absolute; top: 140px; width: 180px; display: flex; flex-direction: column; align-items: center; gap: 18px; opacity: 0; visibility: hidden; }
.st-item .art { height: 150px; display: grid; place-items: center; }
.st-item svg.eye { width: 160px; }
.st-item svg.fig { width: 158px; }
.st-item.i-eyes { left: 180px; }
.st-item.i-stretch { left: 360px; }
.st-lbl { text-align: center; line-height: 1.35; display: grid; }
.st-lbl b { font-size: 18px; font-weight: 600; }
.st-lbl span { font-size: 14.5px; color: var(--ink-2); }
.st-lbl.l-water { position: absolute; left: 0; top: 308px; width: 180px; opacity: 0; visibility: hidden; }
.scene-box .banner { position: absolute; top: 0; right: -10px; opacity: 0; visibility: hidden; }

.st-dots { position: absolute; right: -44px; top: 50%; transform: translateY(-50%); flex-direction: column; gap: 10px; z-index: 3; }
.st-dots button { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; }
.st-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c9d2de; transition: transform .3s var(--spring), background .3s; }
.st-dots button:hover::before { background: var(--ink-3); }
.st-dots button[aria-current="step"]::before { background: var(--ink); transform: scale(1.3); }
@media (max-width: 1320px) { .st-dots { display: none !important; } }

@media (max-width: 860px) {
  html.js .st-stage { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 22px; align-items: stretch; padding: 12px 0 28px; }
  html.js .st-art { grid-row: 1; height: auto; border-radius: 28px; }
  /* a narrower scene, so it scales down less on a phone (story.js reads the same breakpoint) */
  .scene-box { width: 400px; margin-left: -200px; }
  .st-glass { left: 100px; }
  .o-plant { width: 250px; margin: -160px 0 0 -125px; }
  .o-battery { width: 290px; margin: -85px 0 0 -145px; }
  .st-item { width: 133px; }
  .st-item.i-eyes { left: 133px; } .st-item.i-stretch { left: 266px; }
  .st-tile { width: 125px; }
  .st-tile.t-water { left: 4px; } .st-tile.t-eyes { left: 137px; } .st-tile.t-stretch { left: 270px; }
  .st-item svg.eye { width: 112px; } .st-item svg.fig { width: 128px; }
  .st-lbl.l-water { width: 133px; }
  .st-lbl span { font-size: 13.5px; }
  .scene-box .banner { right: 0; width: 100%; min-width: 0; }
  .scene-box .banner { padding: 11px 12px; gap: 9px; }
  .scene-box .banner .appicon { width: 30px; height: 30px; border-radius: 8px; }
  .scene-box .banner h4 { font-size: 13.5px; }
  .scene-box .banner p { font-size: 12.5px; margin-bottom: 8px; }
  .scene-box .banner .acts { gap: 5px; }
  .scene-box .banner .mbtn { font-size: 12px; padding: 0 10px; }
  .scene-box .banner .mbtn:has(svg) { padding-left: 8px; }
  html.js .st-copy { grid-row: 2; align-items: start; min-height: 13.5em; }
  .st-ch h2 { font-size: clamp(30px, 7.6vw, 40px); margin-bottom: 12px; }
  .st-ch .lead { font-size: 17px; }
  .st-ch .btn { margin-top: 18px; }
}

/* =====================================================================
   LANDING SECTIONS
   ===================================================================== */
.block { padding-top: clamp(96px, 11vw, 168px); }
/* the pinned story already leaves air under its last chapter (the stage is a full screen, content centered) */
html.js .story + .block { padding-top: 24px; margin-top: min(0px, calc((680px - 100svh + var(--nav-h)) / 2)); }  /* tuck into the empty half-screen under the stage */
@media (max-width: 860px) { html.js .story + .block { padding-top: 64px; margin-top: 0; } }
.head { max-width: 780px; margin-bottom: clamp(36px, 4vw, 56px); }
.head .lead { margin-top: 18px; max-width: 34em; }

/* two big cards, each a heading, a sentence and a piece of the real UI */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo-card { border-radius: 32px; padding: 44px 44px 0; display: flex; flex-direction: column; overflow: hidden; }
.duo-card > p { margin-top: 12px; color: var(--ink-2); max-width: 30em; }
.sky { background: var(--sky); } .fog { background: var(--fog); } .dawn { background: var(--dawn); }
.mini-desk { position: relative; margin: 44px 0 0; flex: 1; min-height: 300px; border-radius: 16px 16px 0 0; overflow: hidden;
  background: linear-gradient(180deg, #d9e7f6, #eef3f9); box-shadow: 0 0 0 1px rgba(14,26,43,.08), var(--shadow); }
.fog .mini-desk { background: linear-gradient(180deg, #e3e8ef, #f2f4f7); }
.mini-desk .mbar { gap: 16px; }
.mini-desk .banner { position: absolute; top: 42px; right: 12px; min-width: 0; max-width: calc(100% - 24px); }
.menu { position: absolute; top: 34px; right: 10px; width: min(300px, calc(100% - 20px)); padding: 5px; border-radius: 12px; font-size: 13.5px; background: rgba(255,255,255,.97); text-align: left;
  box-shadow: 0 0 0 1px rgba(14,26,43,.08), 0 14px 34px -10px rgba(14,26,43,.28); }
.menu .mi-row { height: 27px; padding: 0 10px; border-radius: 6px; display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.menu .mi-row > span:last-child:not(:first-child), .menu kbd { margin-left: auto; font: inherit; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.menu .mi-row.hl { background: var(--water); color: #fff; }
.menu hr { border: 0; height: 1px; background: var(--line); margin: 5px 10px; }
.menu .ico { color: var(--ink-2); }
.ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i-t { fill: currentColor; fill-opacity: .3; stroke: none; }
.i-s { fill: currentColor; stroke: none; }
.i-fig { stroke-width: 2.4; }

/* three tinted panels with the caption underneath */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.panel { border-radius: 28px; aspect-ratio: 1 / .92; display: grid; place-items: center; padding: 28px; overflow: hidden; }
.trio article > p { margin-top: 22px; color: var(--ink-2); max-width: 31em; text-wrap: pretty; }
.trio article > p b { color: var(--ink); font-weight: 600; }
.tile { width: 100%; max-width: 320px; border-radius: 20px; background: #fff; padding: 22px 22px 24px; box-shadow: 0 0 0 1px rgba(14,26,43,.06), var(--shadow); }
.tile-head { display: grid; gap: 1px; margin-bottom: 18px; }
.tile-head b { font: 500 26px/1.15 var(--rounded); letter-spacing: -.01em; }
.tile-head span { font-size: 14px; color: var(--ink-3); }
.heat { overflow: hidden; }
.cells { --hue: var(--water); display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.cells .c { aspect-ratio: 1; border-radius: 3px; }
.cells .c.streak { box-shadow: inset 0 0 0 1px rgba(14,26,43,.55); }
.c[data-l="0"] { background: var(--cell0); }
.c[data-l="1"] { background: color-mix(in oklab, var(--hue) 30%, var(--cell0)); }
.c[data-l="2"] { background: color-mix(in oklab, var(--hue) 54%, var(--cell0)); }
.c[data-l="3"] { background: color-mix(in oklab, var(--hue) 78%, var(--cell0)); }
.c[data-l="4"] { background: var(--hue); }
.wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; height: 128px; }
.wk div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); }
.wk i { width: 100%; border-radius: 6px; background: #d9e2ee; }
.wk .best i { background: var(--water); }
.wk .best span { color: var(--ink); font-weight: 600; }
.tub-tile { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; }
.tub-tile .big { font-size: 58px; font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.tub-tile span { font-size: 14px; color: var(--ink-3); }
.tub-tile img { width: 128px; height: auto; }
.tub-tile p { grid-column: 1 / -1; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.note { margin-top: 36px; font-size: 14.5px; color: var(--ink-3); max-width: 60em; }
.note a { text-underline-offset: 3px; }

/* the three timers: a mock on the left, big light numbers on the right */
.eb svg.eye { width: min(230px, 60vw); margin: 0 auto; }
.eb-count { font-size: 76px; font-weight: 300; line-height: 1.1; margin-top: 14px; }
.eb h3 { font-size: 22px; }
.eb p { font-size: 15.5px; color: var(--ink-2); margin-top: 4px; }
.eb-bar { width: 220px; height: 4px; border-radius: 4px; background: #dfe4eb; margin: 22px auto 0; overflow: hidden; }
.eb-bar i { display: block; height: 100%; width: 0; background: var(--ink); }

/* FAQ: plain rows, hairlines, a chevron */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: clamp(19px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin: -5px 5px 0; border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(5px) rotate(-135deg); }
.faq .a { padding: 0 48px 26px 0; color: var(--ink-2); max-width: 44em; }
.faq .a a, .prose a, .sheet a:not(.btn) { color: var(--blue-deep); text-underline-offset: 3px; }
.faq .a b { color: var(--ink); font-weight: 600; }

/* closing band: the lake once more */
.closing { padding-top: clamp(96px, 11vw, 168px); }
.closing-band { position: relative; border-radius: 36px; overflow: hidden; text-align: center; padding: clamp(48px, 5.5vw, 76px) 24px clamp(150px, 17vw, 236px);
  background: #bcd9f6 image-set(url("/assets/art/lake-2400.webp") type("image/webp")) 50% 45% / cover no-repeat; }
.closing-band h2 { font-family: var(--display); font-weight: 600; font-size: clamp(42px, 5.4vw, 76px); line-height: 1; letter-spacing: -.03em; }
.closing-band p { margin: 18px auto 30px; max-width: 32em; font-size: clamp(17px, 1.5vw, 19px); color: #2c3a4f; }
/* the home band is only a headline and a button, so it runs shorter */
.closing-band.compact { padding: clamp(48px, 5.5vw, 76px) 24px clamp(130px, 15vw, 210px); background-position: 50% 40%; }
.closing-band.compact h2 { font-size: clamp(36px, 4.4vw, 60px); }
.closing-band h2 + .btn { margin-top: 26px; }
.closing-band .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.closing-band .err { flex-basis: 100%; }

/* =====================================================================
   PRICING
   ===================================================================== */
.offer-top { padding-top: clamp(28px, 4vw, 56px); }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); border-radius: 36px; border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 32px); align-items: start; }

/* the gallery: radios pick the scene, so it works without JavaScript */
.gallery { position: sticky; top: calc(var(--nav-h) + 20px); }
.g-stage { position: relative; aspect-ratio: 1 / .72; border-radius: 24px; overflow: hidden; }
.g-scene { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 28px 28px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; text-align: center; }
/* the captions are for screen readers; the thumbnails below name each scene */
.g-scene figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#shot-water:checked ~ .g-stage [data-shot="water"], #shot-eyes:checked ~ .g-stage [data-shot="eyes"], #shot-stretch:checked ~ .g-stage [data-shot="stretch"] { opacity: 1; visibility: visible; }
.g-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 148px)); justify-content: start; gap: 10px; margin-top: 10px; }
.g-thumbs label { cursor: pointer; display: grid; gap: 7px; font-size: 13.5px; color: var(--ink-3); text-align: center; }
.g-thumb { aspect-ratio: 4 / 3; border-radius: 14px; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .15s; }
.g-thumbs label:hover .g-thumb { box-shadow: inset 0 0 0 1px #aeb8c6; }
#shot-water:checked ~ .g-thumbs [for="shot-water"], #shot-eyes:checked ~ .g-thumbs [for="shot-eyes"], #shot-stretch:checked ~ .g-thumbs [for="shot-stretch"] { color: var(--ink); }
#shot-water:checked ~ .g-thumbs [for="shot-water"] .g-thumb, #shot-eyes:checked ~ .g-thumbs [for="shot-eyes"] .g-thumb, #shot-stretch:checked ~ .g-thumbs [for="shot-stretch"] .g-thumb { box-shadow: inset 0 0 0 2px var(--ink); }
#shot-water:focus-visible ~ .g-thumbs [for="shot-water"] .g-thumb, #shot-eyes:focus-visible ~ .g-thumbs [for="shot-eyes"] .g-thumb, #shot-stretch:focus-visible ~ .g-thumbs [for="shot-stretch"] .g-thumb { outline: 2px solid var(--blue); outline-offset: 3px; }
.g-thumb .glass3d { width: 34%; }
.g-thumb svg.eye { width: 62%; }
.g-thumb svg.fig { width: 70%; }

.g-scene .glass3d { width: clamp(110px, 11.5vw, 146px); }
.g-read .left { font-size: clamp(40px, 4.6vw, 56px); }
.g-chip { position: absolute; top: 22px; right: 22px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 9px; background: #fff; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-sm), 0 0 0 1px rgba(14,26,43,.06); }
.g-chip .mbi { display: inline-flex; align-items: center; gap: 5px; }
.g-chip em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.g-scene .eb svg.eye { width: clamp(150px, 17vw, 210px); }
.g-scene .eb-count { font-size: clamp(48px, 5vw, 64px); margin-top: 8px; }
.g-scene .eb h3 { font-size: 20px; }
.g-scene svg.fig { width: clamp(190px, 22vw, 270px); }


/* the right column */
.offer-body { padding: clamp(6px, 1.4vw, 20px) clamp(0px, 1.2vw, 16px) 8px 0; }
.offer-body h1 { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 4.2vw, 58px); line-height: 1; letter-spacing: -.03em; }
.offer-sum { margin-top: 14px; font-size: clamp(19px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.offer-body > p.offer-p { margin-top: 12px; color: var(--ink-2); }
.plans { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.plan { position: relative; display: grid; gap: 2px; align-content: start; padding: 16px 18px 18px; border-radius: 16px; cursor: pointer; box-shadow: inset 0 0 0 1px #d5dbe4; transition: box-shadow .15s, background .15s; }
.plan:hover { box-shadow: inset 0 0 0 1px #aeb8c6; }
.plan:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.plan:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15.5px; font-weight: 600; }
.plan-name::after { content: ""; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #b8c1ce; flex: none; }
.plan:has(input:checked) .plan-name::after { box-shadow: inset 0 0 0 5.5px var(--ink); }
.plan-tag { white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--blue-deep); background: var(--sky); padding: 3px 8px; border-radius: 6px; margin-left: auto; }
.plan-price { margin-top: 10px; font-size: 15.5px; color: var(--ink-2); display: flex; align-items: baseline; }
.plan-price b { font: 600 40px/1 var(--display); letter-spacing: -.035em; color: var(--ink); margin-right: 5px; }
.plan-note { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.buy-row { display: grid; gap: 10px; margin-top: 16px; }
.offer-form:has(input[value="monthly"]:checked) [data-for="lifetime"], .offer-form:has(input[value="lifetime"]:checked) [data-for="monthly"] { display: none; }
.err { color: #c62828; font-size: 14.5px; }
.err:empty { display: none; }
.buy-fine { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 6px; }
.buy-fine .shield { flex: none; color: var(--done); }
.buy-owned { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); text-align: center; }
.buy-owned a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.incl { margin-top: 34px; }
.incl h2 { display: flex; align-items: center; gap: 14px; font-size: 15.5px; font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--ink); margin: 30px 0 14px; white-space: nowrap; }
.incl h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.incl ul { list-style: none; display: grid; gap: 12px; }
.incl li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.incl li::before { content: ""; position: absolute; left: 3px; top: .36em; width: 11px; height: 6px; border-left: 1.8px solid var(--blue); border-bottom: 1.8px solid var(--blue); transform: rotate(-45deg); }
.incl li b { color: var(--ink); font-weight: 600; }
.incl li a { color: inherit; text-underline-offset: 3px; }
.incl + .buy-row { margin-top: 34px; }

/* after you pay: a real sequence, so it is numbered */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 22px; color: var(--ink-2); }
.steps li::before { content: counter(s); display: block; font: 600 52px/1 var(--display); letter-spacing: -.035em; color: var(--ink); margin-bottom: 14px; }
.steps b { display: block; color: var(--ink); font-size: 19px; font-weight: 550; margin-bottom: 4px; }

/* the onboarding questions */
.you { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.you .head { margin: 0; position: sticky; top: calc(var(--nav-h) + 32px); }
.you-note { margin-top: 16px; font-size: 15.5px; color: var(--ink-3); }
.quiz { border-radius: 28px; border: 1px solid var(--line); padding: clamp(20px, 2.6vw, 34px); display: grid; gap: 24px; }
.quiz fieldset { border: 0; min-width: 0; }
.quiz legend { font-size: 17px; font-weight: 550; margin-bottom: 10px; }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chips label { position: relative; display: grid; place-items: center; min-height: 46px; padding: 8px 10px; border-radius: 12px; font-size: 15.5px; text-align: center; line-height: 1.25; cursor: pointer; box-shadow: inset 0 0 0 1px #d5dbe4; transition: box-shadow .15s, background .15s; }
.chips label:hover { box-shadow: inset 0 0 0 1px #aeb8c6; }
.chips label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); font-weight: 550; }
.chips label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }

/* the research */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.why { border-top: 1px solid var(--line); padding: 26px 0 40px; display: flex; flex-direction: column; }
.w-num { font: 600 clamp(52px, 5vw, 68px)/1 var(--display); letter-spacing: -.035em; margin-bottom: 16px; }
.why p { color: var(--ink-2); }
.why p b { color: var(--ink); font-weight: 600; }
.w-src { margin-top: 14px; font-size: 14.5px; color: var(--ink-3); text-underline-offset: 3px; }
.w-src:hover { color: var(--ink); }
.w-src:has(.w-logo) { display: inline-flex; align-items: flex-start; gap: 9px; text-decoration: none; }
.w-src span { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
.w-src:hover span { text-decoration-color: currentColor; }
.w-logo { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 5px; object-fit: cover; box-shadow: 0 0 0 .5px rgba(15,23,42,.14); }
/* the research reads like a journal: serif headline, figures and findings; citations stay in sans */
#why h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; }
#why .lead { font-family: var(--serif); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; }
#why .w-num { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: lining-nums; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
/* the label sits right after the big number: "60%  of people" */
#why .w-unit { font-size: 21px; font-weight: 500; letter-spacing: -.005em; line-height: 1.15; color: var(--ink-2); }
#why .why p { font-family: var(--serif); font-size: 19px; line-height: 1.45; }
#why p b { font-weight: 600; }

/* =====================================================================
   SMALL PAGES (thanks, resend, unlock, 404, privacy, refunds)
   ===================================================================== */
.page { min-height: calc(100vh - var(--nav-h) - 300px); display: grid; place-items: start center; padding: clamp(40px, 7vw, 88px) 0 0; }
.sheet { width: min(600px, calc(100% - 48px)); text-align: center; }
.sheet .art { height: 132px; display: grid; place-items: center; margin-bottom: 22px; }
.sheet .art .glass3d { width: 84px; }
.sheet h1, .prose h1 { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 4.6vw, 54px); line-height: 1.03; letter-spacing: -.03em; }
.sheet .lead { font-size: 18px; margin-top: 14px; }
.sheet .lead b { color: var(--ink); font-weight: 600; }
.code-box { margin: 30px 0 6px; padding: 16px 18px; border-radius: 16px; background: var(--fog); font: 500 15px/1.65 var(--mono); overflow-wrap: anywhere; text-align: left; }
.code-box .code { user-select: all; margin-top: 6px; }
.code-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 500 14.5px/1.3 var(--sans); color: var(--ink-2); }
.code-meta .btn { height: 30px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.sheet .acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.sheet ol { text-align: left; margin: 30px auto 0; padding: 20px 24px 20px 46px; border-radius: 16px; background: var(--fog); color: var(--ink-2); font-size: 16px; display: grid; gap: 6px; }
.sheet ol b { color: var(--ink); font-weight: 600; }
.sheet .small { margin-top: 20px; font-size: 15px; color: var(--ink-3); }
.field { display: flex; gap: 8px; margin-top: 28px; }
.field input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #c9d1dc; font-size: 17px; }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.msg { margin-top: 16px; font-size: 15.5px; color: var(--ink-2); min-height: 24px; }
.msg.err { color: #c62828; }
.prose { width: min(720px, calc(100% - 48px)); text-align: left; }
.prose .updated { color: var(--ink-3); font-size: 15px; margin: 12px 0 30px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.65; }
.prose p + p { margin-top: 10px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; margin-top: 8px; }
.prose b { color: var(--ink); font-weight: 600; }

/* =====================================================================
   THE APP'S DRAWINGS (see drawings.js)
   ===================================================================== */
.glass3d { display: block; overflow: visible; }
.glass3d .edge { stroke: var(--glass-edge); stroke-width: 1.3; }
.glass3d .rim-f { fill: none; stroke: var(--glass-rim); stroke-width: 1.7; }
.glass3d .rim-b { fill: none; stroke: var(--glass-edge); stroke-width: 1.1; opacity: .7; }
.glass3d .hl { fill: none; stroke-linecap: round; }
.glass3d .shadow { fill: var(--ground); }
.glass3d.mini .edge { stroke-width: 8; } .glass3d.mini .rim-f { stroke-width: 9; } .glass3d.mini .rim-b { stroke-width: 7; }
.glass3d.mini .fine, .glass3d.mini .ground, .glass3d.mini .w-men { display: none; }
svg.eye { overflow: visible; }
.eye .sclera { fill: var(--sclera); }
.eye .iris-ring { fill: none; stroke: color-mix(in srgb, var(--iris) 45%, #000); stroke-width: 2; }
.eye .veins path { fill: none; stroke: #d8434f; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }
.eye .veins .tw { stroke-width: .9; } .eye .veins .mn { stroke-width: 1.35; }
.eye .fibers { stroke: color-mix(in srgb, var(--iris) 55%, #000); stroke-width: .9; stroke-linecap: round; opacity: .45; }
.eye .pupil { fill: #15131c; }
.eye .glint { fill: #fff; }
.eye .lid { fill: var(--lid); }
.eye .lid-edge, .eye .outline { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; opacity: .88; }
.eye .lash { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; opacity: .88; }
svg.fig { overflow: visible; }
.fig .body { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.fig .head { fill: var(--ink); }
.fig .furn { fill: none; stroke: #a3aebd; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.fig .screen { fill: none; stroke: var(--stretch); stroke-width: 3.5; stroke-linecap: round; }

/* the year card, as the app draws it */
.sc { position: relative; width: 576px; height: 384px; padding: 34px 38px 30px; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; color: var(--sc-ink); background: var(--sc-bg); text-align: left; box-shadow: var(--shadow); }
.sc > * { position: relative; }
.sc .deco { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--sc-deco); }
.sc h4 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.sc .mid { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 18px 0; }
.sc .sc-foot { display: flex; align-items: center; justify-content: space-between; }
.sc .sc-brand { display: flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
/* the app icon in small: solid blue, the capybara rising from the bottom edge (AppIconBadge in ShareCards.swift) */
.sc .sc-brand .appicon { width: 26px; height: 26px; border-radius: 7px; position: relative; overflow: hidden; background: #4a90f7; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.3); }
.sc .sc-brand .appicon img { position: absolute; left: 8%; bottom: -1%; width: 74%; display: block; }
.sc .url { font-size: 14px; font-weight: 600; opacity: .85; }
.pnl { background: #fbfbfd; color: #16181f; border-radius: 18px; }
.pbig { width: 100%; padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pbig .n { font-size: 76px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.pbig .n small { font-size: 22px; font-weight: 600; letter-spacing: 0; margin-left: 8px; color: #5d6170; }
.pbig p { font-size: 16px; font-weight: 500; color: #5d6170; margin-top: 8px; }
.pbig img { width: 170px; height: auto; }
.sc.t-water { --sc-bg: #2f7cf6; --sc-ink: #fff; --sc-deco: #4d90f8; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1000px) {
  .offer { grid-template-columns: 1fr; padding: 14px; border-radius: 28px; }
  .gallery { position: static; }
  .g-stage { aspect-ratio: 1 / .56; }
  .offer-body { padding: 4px 8px 12px; }
  .you .head { position: static; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio article:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
  .trio article:last-child > p { margin-top: 0; }
  .duo-card { padding: 32px 32px 0; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .wrap { width: calc(100% - 40px); }
  .nav-links { display: none; }
  .hero-art { height: 780px; }
  .hero-art img { object-position: 30% 100%; }
  .hero-copy { padding-top: 124px; }
  .hero h1 { font-size: clamp(42px, 12.4vw, 60px); }
  .hero .lead { margin: 20px auto 28px; }
  .screen { background-image: url(/assets/art/desk-1000.webp); background-position: 30% 50%; border-radius: 18px; box-shadow: 0 0 0 1px rgba(14,26,43,.1), 0 0 0 5px rgba(255,255,255,.55), var(--shadow-lg); }
  .mbar > span:not(.mbi):not([id]) { display: none; }
  .window { width: calc(100% - 24px); margin: 14px auto 16px; border-radius: 14px; }
  .titlebar { height: 50px; }
  .lights { left: 14px; top: 19px; gap: 6px; }
  .lights i { width: 10px; height: 10px; }
  .tabs button { padding: 5px 12px; }
  .habits { grid-template-columns: 1fr; gap: 0; padding: 0 16px 6px; }
  .habit { flex-direction: row; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
  .viz { width: 104px; height: 104px; flex: none; }
  .viz .glass3d { width: 58px; } .viz svg.eye { width: 96px; } .viz svg.fig { width: 104px; }
  .h-text { align-items: flex-start; text-align: left; min-width: 0; }
  .left { font-size: 34px; }
  .habits.solo .habit { flex-direction: column; gap: 6px; border-top: 0; padding: 4px 0 16px; }
  .habits.solo .viz { width: auto; height: 180px; }
  .habits.solo .viz .glass3d { width: 104px; }
  .habits.solo .h-text { align-items: center; text-align: center; }
  .habits.solo .left { font-size: 52px; }
  .habits.solo .pips { gap: 9px; margin-top: 18px; }
  .habits.solo .act { margin-top: 20px; }
  .until { font-size: 14px; }
  .habit .act { margin-top: 10px; }
  .screen > .banner { left: 6px; right: 6px; top: 38px; width: auto; min-width: 0; }
  .screen > .banner { padding: 11px 12px; gap: 9px; }
  .screen > .banner .appicon { width: 30px; height: 30px; border-radius: 8px; }
  .screen > .banner h4 { font-size: 13.5px; }
  .screen > .banner p { font-size: 12.5px; margin-bottom: 8px; }
  .screen > .banner .acts { gap: 5px; }
  .screen > .banner .mbtn { font-size: 12px; padding: 0 10px; }
  .screen > .banner .mbtn:has(svg) { padding-left: 8px; }
  .screen > .banner.off { transform: translateY(-16px); }
  .duo, .trio, .why-grid, .steps { grid-template-columns: 1fr; }
  .trio article:last-child { display: block; }
  .trio article:last-child > p { margin-top: 22px; }
  .trio { gap: 44px; }
  .duo-card { padding: 28px 24px 0; border-radius: 28px; }
  .mini-desk { margin-top: 28px; }
  .faq .a { padding-right: 8px; }
  .closing-band { border-radius: 28px; padding-bottom: 200px; }
  .closing-band.compact { padding-bottom: 150px; }
  .foot { margin-top: 88px; padding-top: 48px; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .g-stage { aspect-ratio: 1 / .92; border-radius: 18px; }
  .g-scene { padding: 50px 16px 20px; }
  .g-scene .glass3d { width: 92px; }
  .g-read .left { font-size: 38px; }
  .g-read .count { display: none; }
  .g-chip { top: 14px; right: 14px; }
  .g-thumbs { gap: 7px; }
  .g-thumbs label { font-size: 12.5px; }
  .g-thumb { border-radius: 11px; }
  .plans { grid-template-columns: 1fr; }
  .steps { gap: 28px; }
  .chips { grid-template-columns: 1fr; }
  .why { padding-bottom: 30px; }
  .field { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  /* not inside SVG: the drawings are redrawn every frame, and a restarted transition on `d` would freeze them */
  :not(svg, svg *) { transition: none !important; }
}

@media (max-width: 389px) {
  .screen > .banner p, .scene-box .banner p { font-size: 11.5px; }
}
@media (max-width: 374px) {
  .banner p { white-space: normal; text-wrap: balance; }
  .banner > div:not(.appicon) { min-width: 0; }
  .banner .acts { margin-left: -39px; }
}


/* ---------- the demo window: Today, Insights and Settings all work (home.js). Ported from design/app-mockup, dark. ---------- */
.screen { --eyes: #a58bff; --stretch: #ff9f45; --iris: #a58bff; --sclera: #f4f2ee; --lid: #4a4458; --done: #30d158; --cell0: #383b44;
  --panel: rgba(255,255,255,.05); --panel-2: rgba(255,255,255,.075); --control: rgba(255,255,255,.1); --control-on: rgba(255,255,255,.2); --sep: rgba(255,255,255,.08); --rim: rgba(255,255,255,.2); --rim-2: rgba(255,255,255,.07);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M1.5 4.5 4 2l2.5 2.5M1.5 7.5 4 10l2.5-2.5' fill='none' stroke='%23ebebf5' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.w-body { position: relative; height: 500px; text-align: left; }
.w-tab { position: absolute; inset: 0; display: none; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.w-tab.on { display: block; }
#t-today.on { display: flex; flex-direction: column; justify-content: center; text-align: center; overflow: hidden; }
#t-today .habits { width: 100%; }
.habits[data-n="2"] { grid-template-columns: repeat(2, 1fr); padding-inline: 70px; }
.habit[hidden] { display: none; }
.w-empty { margin: auto; max-width: 340px; padding-bottom: 30px; }
.w-empty h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.w-empty p { margin: 8px 0 18px; font-size: 14px; color: var(--ink-2); }

/* Pause, and its menu */
.screen .tb-right { z-index: 6; }
#pause { gap: 7px; padding: 0 12px 0 11px; }
#pause svg { width: 11px; height: 11px; fill: currentColor; stroke: none; }
#pause .chev { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 2; opacity: .55; margin-left: -1px; }
.screen #pause.on { background: #fff; color: #000; box-shadow: 0 1px 3px rgba(0,0,0,.2), inset 0 0 0 .5px rgba(0,0,0,.1); }
.wmenu { position: absolute; top: 34px; right: 0; min-width: 210px; padding: 5px; border-radius: 12px; font-size: 13px; text-align: left; color: var(--ink);
  background: rgba(38,40,52,.97); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 14px 40px rgba(0,0,0,.35), inset 0 1px 0 var(--rim), 0 0 0 .5px var(--rim-2);
  opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity .14s, transform .18s cubic-bezier(.3,1.2,.5,1); }
.wmenu.on { opacity: 1; transform: none; pointer-events: auto; }
.wmenu .m-h { padding: 4px 10px 2px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.wmenu button { display: flex; align-items: center; width: 100%; height: 26px; padding: 0 10px; border-radius: 6px; white-space: nowrap; }
.wmenu button:hover, .wmenu button:focus-visible { background: var(--water); color: #fff; outline: none; }
.mbar .mbi { gap: 12px; }
.mbar .mbi .m-item { display: inline-flex; align-items: center; gap: 5px; }
.mbar .mbi.paused .m-item { opacity: .45; }

/* the day's glasses wrap after twelve; past two rows the rest is a count */
.habits.solo .pips { flex-wrap: wrap; justify-content: center; align-items: center; max-width: 372px; row-gap: 10px; }
.pips .more { min-width: 20px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.quip { height: 0; margin: 0; font-size: 13.5px; color: var(--ink-2); opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; white-space: nowrap; }
.quip.on { height: auto; margin-top: 14px; opacity: 1; transform: none; }
.habits:not(.solo) .quip { display: none; }
/* once the glasses wrap to a second row, the big glass gives up some room so everything still fits the window */
@media (min-width: 761px) {
  #win .habits.solo { padding-bottom: 30px; }
  #win .habits.solo:has(.pips > :nth-child(13)) { padding-bottom: 12px; }
  #win .habits.solo:has(.pips > :nth-child(13)) .viz { height: 196px; margin-bottom: 2px; }
  #win .habits.solo:has(.pips > :nth-child(13)) .viz .glass3d { width: 146px; }
  #win .habits.solo:has(.pips > :nth-child(13)) .pips { margin-top: 20px; }
  #win .habits.solo:has(.pips > :nth-child(13)) .act { margin-top: 24px; }
}

/* Insights: a bento of cards */
#t-insights { padding: 4px 22px 22px; }
.bento { display: grid; grid-template-columns: .9fr 1.1fr 2fr; grid-template-rows: auto 1fr; gap: 12px; min-height: 100%; --hue: var(--water); }
.k { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 16px 18px; border-radius: 18px; background: var(--panel);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--rim) 40%, transparent), inset 0 0 0 .5px var(--rim-2); }
.k-d { grid-column: 1 / 3; } .k-e { grid-column: 3; }
.k-num { font-size: 30px; font-weight: 600; letter-spacing: -.025em; line-height: 1; }
.k-num.word { font-size: 24px; letter-spacing: -.02em; }
.k-lbl, .k-meta { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.k-lbl { margin-top: 8px; white-space: nowrap; }
.k-b .k-lbl { letter-spacing: .07em; }
.k-meta b { color: var(--ink); font-weight: 600; }
.k-meta i { font-style: normal; color: var(--ink-3); margin: 0 6px; }
.k hr { border: 0; height: 1px; background: var(--sep); margin: 13px 0 9px; }
.k-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.k h4 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.k-head .k-meta { margin-top: 5px; white-space: nowrap; }
.gauge { position: relative; width: 112px; margin: 12px auto 0; }
.gauge svg { display: block; width: 100%; overflow: visible; }
.gauge path { fill: none; stroke-width: 13; stroke-linecap: round; }
.gauge .g-track { stroke: var(--panel-2); }
.gauge .g-fill { stroke: var(--hue); stroke-dasharray: 100 100; transition: stroke-dashoffset .6s cubic-bezier(.3,1,.4,1); }
.gauge .g-mid { position: absolute; left: 0; right: 0; bottom: -2px; text-align: center; line-height: 1.1; }
.gauge .g-mid small { display: block; font-size: 10.5px; color: var(--ink-2); }
.gauge .g-mid b { font-size: 18px; font-weight: 600; }
.wk { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; align-items: end; min-height: 58px; }
.wk div { display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; }
.wk i { width: 100%; max-width: 12px; border-radius: 3px; background: color-mix(in srgb, var(--hue) 30%, var(--panel-2)); }
.wk .best i { background: var(--hue); }
.wk span { font-size: 10px; font-weight: 600; color: var(--ink-3); }
.wk .best span { color: var(--ink); }
.k-c { flex-direction: row; align-items: center;
  background: radial-gradient(420px 200px at 0% 0%, color-mix(in srgb, var(--hue) 30%, transparent), transparent), color-mix(in srgb, var(--hue) 8%, var(--panel));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--rim) 60%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--hue) 26%, transparent); }
.k-c hr { background: color-mix(in srgb, var(--hue) 22%, var(--sep)); }
.yc-text { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; }
.yc-text p { font-size: 13.5px; }
.yc-text p b { font-weight: 600; }
.tub { width: 132px; height: auto; flex: none; margin: 0 -8px 0 4px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.3)); }
.day { flex: 1; display: flex; flex-direction: column; margin-top: 14px; min-height: 0; }
.scene { position: relative; aspect-ratio: 2 / 1; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 .5px var(--rim-2); }
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tod { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
.tod div { padding: 0 2px 0 9px; min-width: 0; }
.tod div + div { border-left: 1px solid var(--sep); }
.tod span { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.tod b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-top: 3px; }
.tod small { display: block; white-space: nowrap; font-size: 10.5px; color: var(--ink-3); }
.tod .peak b { color: var(--hue); }
.heat { display: grid; grid-template-columns: 26px auto; column-gap: 4px; margin-top: 18px; }
.months { grid-column: 2; position: relative; height: 16px; margin-bottom: 6px; font-size: 10.5px; color: var(--ink-2); }
.months span { position: absolute; top: 0; left: calc(var(--c) * 22px); }
.wdays { display: grid; grid-template-rows: repeat(7, 18px); gap: 4px; font-size: 10.5px; color: var(--ink-2); line-height: 18px; }
.hcells { display: grid; grid-template-rows: repeat(7, 18px); grid-auto-columns: 18px; grid-auto-flow: column; gap: 4px; padding: 0 2px 2px 0; }
.hcells .c { border-radius: 4px; }
.hcells .c[data-l="0"], .legend i[data-l="0"] { background: var(--cell0); }
.hcells .c[data-l="1"], .legend i[data-l="1"] { background: color-mix(in oklab, var(--hue) 32%, var(--cell0)); }
.hcells .c[data-l="2"], .legend i[data-l="2"] { background: color-mix(in oklab, var(--hue) 56%, var(--cell0)); }
.hcells .c[data-l="3"], .legend i[data-l="3"] { background: color-mix(in oklab, var(--hue) 78%, var(--cell0)); }
.hcells .c[data-l="4"], .legend i[data-l="4"] { background: var(--hue); }
.hcells .c.streak { outline: 1.25px solid color-mix(in srgb, var(--ink) 75%, transparent); outline-offset: .5px; }
.hcells .c:hover { box-shadow: 0 0 0 1.5px var(--ink); }
.heat-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--sep); font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }
.heat-foot b { color: var(--ink); font-weight: 600; }
.legend { display: flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--ink-3); }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend i:first-child { margin-left: 4px; } .legend i:last-child { margin-right: 4px; }

/* Settings */
#t-settings { padding: 2px 28px 26px; }
.set { max-width: 640px; margin: 0 auto; font-size: 13px; }
.set h4 { font-size: 13px; font-weight: 600; margin: 0 0 8px 4px; }
.set .group + h4 { margin-top: 20px; }
.group { border-radius: 12px; background: var(--panel); }
.row { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 14px; }
.row + .row { border-top: 1px solid var(--sep); }
.row .lbl { flex: 1; min-width: 0; }
.row .lbl small { display: block; font-size: 11.5px; color: var(--ink-2); margin-top: 1px; }
.row .ico { color: var(--ink-2); }
.row .ico svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.row .ctl { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.set select, .stepper { height: 24px; border-radius: 6px; background: var(--control); border: 0; font: inherit; font-size: 12.5px; color: var(--ink); }
.set select { -webkit-appearance: none; appearance: none; padding: 0 22px 0 9px; line-height: 24px; background: var(--chev) no-repeat right 8px center / 7px 11px, var(--control); }
.set select:hover { background-color: var(--control-on); }
.set select:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--water) 45%, transparent); }
.set select option { color: #000; }
.stepper { display: inline-flex; align-items: center; }
.stepper button { width: 22px; height: 24px; color: var(--ink-2); font-size: 14px; }
.stepper button:hover { color: var(--ink); }
.stepper output { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.switch { position: relative; width: 32px; height: 19px; border-radius: 10px; background: var(--control-on); transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--water); }
.switch[aria-checked="true"]::after { transform: translateX(13px); }
.seg { display: flex; padding: 2px; border-radius: 7px; background: var(--control); flex: none; }
.seg button { padding: 2px 10px; border-radius: 5px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--control-on); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.habit-row.off > :not(.switch):not(.lbl) { opacity: .4; pointer-events: none; }
.habit-row.off .lbl small { opacity: .7; }

@media (max-width: 760px) {
  .w-body { height: 470px; }
  .habits[data-n="2"], .habits[data-n="3"] { grid-template-columns: 1fr; padding-inline: 16px; }
  #t-today.on { justify-content: flex-start; overflow: auto; }
  #t-today.on:has(.solo) { justify-content: center; }
  .tb-right { right: 10px; top: 11px; }
  #pause { width: 28px; padding: 0; }
  #pause span, #pause .chev { display: none; }
  .habits.solo .pips { max-width: 282px; }
  .quip { white-space: normal; font-size: 13px; }
  #t-insights { padding: 2px 12px 14px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; min-height: 0; }
  .k { padding: 14px; }
  .k-c, .k-d, .k-e { grid-column: 1 / -1; }
  .heat-foot { margin-top: 14px; }
  .tub { width: 104px; }
  .gauge { width: 96px; }
  .wdays { grid-template-rows: repeat(7, 16px); line-height: 16px; }
  .hcells { grid-template-rows: repeat(7, 16px); grid-auto-columns: 16px; }
  .months span { left: calc(var(--c) * 20px); }
  #t-settings { padding: 2px 12px 16px; }
  .row { flex-wrap: wrap; gap: 8px 10px; }
  .habit-row .lbl { flex-basis: calc(100% - 82px); }
  .habit-row .ctl { order: 3; }
  .habit-row .switch { order: 2; }
  .row:has(> .seg) .lbl { flex-basis: 100%; }
  .row .lbl + .seg { margin-left: 0; }
}

/* the story's plant and battery, drawn like the eye and the desk figure: ink outlines, flat fills */
svg.plant, svg.battery { display: block; width: 100%; overflow: visible; }
.plant .pl-shadow, .battery .bt-shadow { fill: rgba(40, 70, 120, .1); }
.plant .pl-pot, .plant .pl-rim { stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; stroke-opacity: .88; }
.plant .pl-hl { fill: none; stroke: #fff; stroke-opacity: .45; stroke-width: 5; stroke-linecap: round; }
.plant .pl-stem { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.plant .pl-leaf { stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; stroke-opacity: .85; }
.plant .pl-rib { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.6; stroke-linecap: round; }
.battery .bt-body { fill: #fff; stroke: var(--ink); stroke-width: 5; stroke-opacity: .9; }
.battery .bt-cap { fill: var(--ink); opacity: .9; }
.battery .bt-hl { fill: none; stroke: #fff; stroke-opacity: .6; stroke-width: 4; stroke-linecap: round; }

/* ---------- pricing: details ---------- */
.offer-body h1 .apple { display: inline-block; width: .6em; height: .73em; margin: 0 0 0 .2em; vertical-align: -.04em; fill: currentColor; }
.offer-sum b { font-weight: 650; }
.c-water { color: var(--water); } .c-eyes { color: var(--eyes); } .c-stretch { color: var(--stretch); }

/* best value: a field of drops that fades out from the corner */
.plan.best { isolation: isolate; background: linear-gradient(205deg, #eef5fe, #fff 58%); }
.plan.best::before { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 14px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.2c3.3 4.3 5.6 7.5 5.6 10.4a5.6 5.6 0 0 1-11.2 0c0-2.9 2.3-6.1 5.6-10.4z' fill='%231a7cf5'/%3E%3C/svg%3E") 0 0 / 22px 26px, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.2c3.3 4.3 5.6 7.5 5.6 10.4a5.6 5.6 0 0 1-11.2 0c0-2.9 2.3-6.1 5.6-10.4z' fill='%231a7cf5'/%3E%3C/svg%3E") 11px 13px / 22px 26px; opacity: .2;
  -webkit-mask-image: radial-gradient(120% 95% at 100% 0, #000 0, rgba(0,0,0,.45) 38%, transparent 72%); mask-image: radial-gradient(120% 95% at 100% 0, #000 0, rgba(0,0,0,.45) 38%, transparent 72%); }
.plan.best .plan-tag { background: var(--blue); color: #fff; }

/* screenshots under the gallery */
.shots-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.shot { position: relative; display: block; border-radius: 10px; overflow: hidden; cursor: zoom-in; box-shadow: 0 0 0 1px rgba(14,26,43,.08); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 640 / 408; transition: transform .3s; }
.shot-over { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(14,26,43,.38); opacity: 0; transition: opacity .2s; }
.shot-over svg { width: 30px; height: 30px; padding: 8px; box-sizing: content-box; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--ink); fill: none; stroke: currentColor; stroke-width: 1.8; }
.shot-over svg circle { fill: currentColor; stroke: none; }
.shot:hover .shot-over, .shot:focus-visible .shot-over { opacity: 1; }
.shot:hover img { transform: scale(1.04); }
.shot.more .shot-over { opacity: 1; background: rgba(14,26,43,.55); font: 600 24px/1 var(--display); letter-spacing: -.02em; }
.shot.more:hover .shot-over { background: rgba(14,26,43,.68); }

/* dialogs: a full-window layer, so a click on the empty space closes them */
html:has(dialog[open]) { overflow: hidden; }
.lb-fig:focus, .pm-card:focus { outline: none; }
.lb, .pm { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; background: transparent; color: var(--ink); }
.lb::backdrop { background: rgba(9,13,22,.95); }
.pm::backdrop { background: rgba(14,26,43,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; color: #fff; background: rgba(9,13,22,.95); }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-size: 14.5px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.lb-x, .pm-x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: inherit; transition: background .15s; }
.lb-x:hover { background: rgba(255,255,255,.22); }
.lb-x svg, .pm-x svg, .lb-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-fig { position: relative; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; gap: 14px; padding: 0 76px; }
.lb-fig img { max-width: min(1180px, 100%); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 2.04% / 3.2%; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.lb-fig figcaption { max-width: 44em; text-align: center; font-size: 15.5px; color: rgba(255,255,255,.72); text-wrap: balance; }
.lb-fig figcaption b { color: #fff; font-weight: 600; }
.lb-arrow { position: absolute; top: calc(50% - 40px); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; transition: background .15s; }
.lb-arrow:hover { background: rgba(255,255,255,.24); }
.lb-arrow svg { width: 16px; height: 16px; }
.lb-arrow.prev { left: 18px; } .lb-arrow.next { right: 18px; }
.lb-strip { display: flex; justify-content: center; gap: 8px; padding: 16px 20px 22px; overflow-x: auto; }
.lb-strip button { flex: none; width: 92px; border-radius: 6px; overflow: hidden; opacity: .5; box-shadow: 0 0 0 1px rgba(255,255,255,.1); transition: opacity .15s; }
.lb-strip button:hover { opacity: .8; }
.lb-strip button[aria-current] { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.lb-strip img { display: block; width: 100%; height: auto; }

/* "See your plan" works it out for a few seconds */
.see-plan { position: relative; overflow: hidden; }
.see-plan::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255,255,255,.55); transform: scaleX(0); transform-origin: left; }
.see-plan.gen { cursor: progress; }
.see-plan.gen::after { animation: sp-fill var(--gen, 4s) linear forwards; }
.see-plan.gen .sp-text { color: transparent; background: linear-gradient(100deg, rgba(255,255,255,.42) 30%, #fff 50%, rgba(255,255,255,.42) 70%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; animation: sp-shine 1.6s linear infinite; }
@keyframes sp-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes sp-fill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .see-plan.gen .sp-text { animation: none; color: #fff; background: none; } }

/* the plan */
.pm[open] { display: block; overflow-y: auto; overscroll-behavior: contain; padding: clamp(16px, 5vh, 56px) 16px; }
.pm-card { position: relative; max-width: 600px; margin: 0 auto; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.pm-hero { position: relative; padding: 40px 36px 132px; text-align: center; background: #bcd9f6 image-set(url("/assets/art/lake-1280.webp") type("image/webp")) 50% 62% / cover no-repeat; }
.pm-x { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.7); color: var(--ink); }
.pm-x:hover { background: #fff; }
.pm-kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--blue-deep); background: rgba(255,255,255,.72); padding: 4px 10px; border-radius: 999px; }
.pm-hero h2 { margin-top: 14px; font: 600 clamp(28px, 4.4vw, 38px)/1.08 var(--display); letter-spacing: -.03em; }
.pm-hero p { margin: 10px auto 0; max-width: 30em; font-size: 15.5px; color: #2c3a4f; text-wrap: balance; }
.pm-row { display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: center; padding: 22px 32px; border-top: 1px solid var(--line); transition: opacity .2s; }
.pm-hero + .pm-row { border-top: 0; padding-top: 28px; }
.pm-art { width: 112px; height: 112px; border-radius: 22px; display: grid; place-items: center; }
.pm-art.sky { background: var(--sky); }
.pm-art .glass3d { width: 46px; }
.pm-lbl { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pm-row[data-k="water"] .pm-lbl { color: var(--water); }
.pm-txt b { display: block; margin-top: 3px; font: 600 24px/1.15 var(--display); letter-spacing: -.02em; }
.pm-txt p { margin-top: 5px; font-size: 15.5px; color: var(--ink-2); text-wrap: pretty; }
.pm-ramp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 32px 24px; }
.pm-ramp[hidden] { display: none; }
.pm-wk { border-radius: 14px; background: var(--fog); padding: 12px 14px; }
.pm-wk span { display: block; font-size: 13px; color: var(--ink-3); }
.pm-wk b { display: block; font-size: 16px; font-weight: 600; margin-top: 1px; }
.pm-pips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 8px; }
.pm-pips i { width: 9px; height: 12px; border-radius: 1.5px 1.5px 3px 3px; background: #d7deea; }
.pm-pips i.on { background: var(--water); }
.pm-day { padding: 24px 32px 28px; border-top: 1px solid var(--line); }
.pm-day h3 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.tl-row, .tl-axis { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; }
.tl-row + .tl-row { margin-top: 12px; }
.tl-name { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 550; }
.tl-name em { font-style: normal; font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl-track { position: relative; height: 22px; border-radius: 6px; background: var(--fog); }
.tl-track i { position: absolute; top: 4px; bottom: 4px; width: 4px; margin-left: -2px; border-radius: 2px; }
.tl-row[data-k="water"] i { background: var(--water); } .tl-row[data-k="eyes"] i { background: var(--eyes); width: 3px; margin-left: -1.5px; top: 6px; bottom: 6px; } .tl-row[data-k="stretch"] i { background: var(--stretch); }
.tl-axis { margin-top: 8px; }
.tl-axis .tl-track { height: 16px; background: none; }
.tl-axis .tl-track span { position: absolute; top: 0; transform: translateX(-50%); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.tl-axis .tl-track span:first-child { transform: none; } .tl-axis .tl-track span:last-child { transform: translateX(-100%); }
.pm-foot { padding: 24px 32px 30px; border-top: 1px solid var(--line); background: var(--fog); text-align: center; }
.pm-foot p { margin-top: 10px; font-size: 14.5px; color: var(--ink-3); }

@media (max-width: 700px) {
  .shots-row { gap: 7px; }
  .shot { border-radius: 7px; }
  .shot.more .shot-over { font-size: 19px; }
  .lb-fig { padding: 0 12px; }
  .lb-arrow { display: none; }
  .lb-strip { justify-content: flex-start; }
  .lb-strip button { width: 72px; }
  .pm-hero { padding: 34px 22px 104px; }
  .pm-row { grid-template-columns: 76px 1fr; gap: 16px; padding: 18px 20px; }
  .pm-art { width: 76px; height: 76px; border-radius: 16px; }
  .pm-art .glass3d { width: 32px; }
  .pm-txt b { font-size: 20px; }
  .pm-ramp { padding: 0 20px 20px; gap: 7px; }
  .pm-wk { padding: 10px; }
  .pm-pips i { width: 7px; height: 10px; }
  .pm-day { padding: 20px; }
  .tl-row, .tl-axis { grid-template-columns: 98px 1fr; gap: 10px; }
  .tl-name { white-space: nowrap; }
  .tl-name { font-size: 13.5px; }
  .pm-foot { padding: 20px; }
}

/* blog */
.prose .kicker { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.prose .kicker a { text-decoration: none; }
.prose .post-list { list-style: none; padding: 0; gap: 0; border-top: 1px solid var(--line); }
.prose .post-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.prose .post-list b { font-size: 18px; }
.prose .post-list span { flex: none; font-size: 14px; color: var(--ink-3); }
