/* wishward.app for visitors: what it is, in the app's own look (its tokens, Schibsted Grotesk and Inter), light and dark.
   Calm and quick: content in the HTML (search engines read it), motion only as things come into view. */

:root {
  --paper: #FAF9F7; --surface: #FFFFFF; --ink: #17161C; --muted: #625F6B; --line: #E7E4DD;
  --p1: #4C6BFF; --p2: #F2557E; --joint: #8B5CF6; --gold: #F2A20C; --free: #0FA37F; --tint: 18%; --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); --d1: #8B6CFF; --d2: #F43F6E; --d3: #FF5A1F;
  --accent: var(--p1);
  --fill: color-mix(in srgb, var(--ink) 5%, transparent);
  --shadow-md: 0 2px 6px rgba(23, 22, 28, .05), 0 10px 30px rgba(23, 22, 28, .08);
  --shadow-lg: 0 30px 80px rgba(36, 40, 90, .18), 0 8px 24px rgba(23, 22, 28, .08);
  --display: 'Schibsted Grotesk', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E0E12; --surface: #18181E; --ink: #F2F2F5; --muted: #9C9AA7; --line: #2A2A33;
    --p1: #7C93FF; --p2: #FF7C9E; --joint: #A98BFF; --gold: #FFB547; --free: #34D399; --tint: 28%; --d1: #A996FF; --d2: #FF6B8E; --d3: #FF7A3D;
    --fill: color-mix(in srgb, var(--ink) 7%, transparent);
    --shadow-md: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 30px rgba(0, 0, 0, .45);
    --shadow-lg: 0 40px 100px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E0E12; --surface: #18181E; --ink: #F2F2F5; --muted: #9C9AA7; --line: #2A2A33;
  --p1: #7C93FF; --p2: #FF7C9E; --joint: #A98BFF; --gold: #FFB547; --free: #34D399; --tint: 28%; --d1: #A996FF; --d2: #FF6B8E; --d3: #FF7A3D;
  --fill: color-mix(in srgb, var(--ink) 7%, transparent);
  --shadow-md: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 40px 100px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: var(--dw, 800); letter-spacing: -.025em; line-height: 1.04; }
h1 { font-weight: var(--dw1, 900); letter-spacing: -.035em; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font: 600 16px/1 var(--body);
  text-decoration: none; padding: 16px 24px; transition: transform .18s var(--ease), box-shadow .18s, background-color .18s; white-space: nowrap; }
.btn.small { padding: 12px 16px; font-size: 15px; }
.btn.big { padding: 16px 28px; font-size: 17px; }
/* flat, no glow: a small lift and a soft shadow under the hand, a press on click */
.btn.primary { color: #fff; background: var(--accent); }
.btn.primary:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 88%, var(--ink)); box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn.ghost { background: var(--fill); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.btn:active { transform: scale(.97); }

/* ---------- top bar ---------- */
.nav { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.solid { background: color-mix(in srgb, var(--paper) 78%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand b { font: var(--dw, 800) 19px var(--display); letter-spacing: -.02em; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 8px; margin-left: 8px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }
@media (max-width: 420px) { .nav-cta .ghost { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: 56px 0 72px; text-align: center; }
.hero-in { display: grid; justify-items: center; gap: 24px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); max-width: 17ch; text-wrap: balance; }
.grad { color: var(--accent); } /* the second line in the logo's blue, no gradient */
.lead { max-width: 620px; font-size: 18px; color: var(--muted); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

.shots { position: relative; margin-top: 48px; padding-bottom: 40px; } /* the MacBook peeks in on a laptop screen at once */
/* Apple's own devices around our own screens (bezels from apple.com's Design Resources and Apple's iOS 27 kit):
   a MacBook Pro 14" (3860 × 2540, its screen 3024 × 1986 at 418, 277: the site full screen, the notch over it) and an iPhone 18 Pro (450 × 920 around a 402 × 874 screen). Silver on the light page, Space Black on the dark
   (Kirill's pick, 2026-11-12). */
.mac { position: relative; margin: 0 auto; width: min(1180px, 100%); aspect-ratio: 3860 / 2540;
  /* leans back at first and straightens as you scroll to it (home.js sets --lift from 0 to 1) */
  transform: perspective(1800px) rotateX(calc((1 - var(--lift, 1)) * var(--lean, 12deg))) scale(calc(.94 + .06 * var(--lift, 1))); transform-origin: 50% 0;
  filter: drop-shadow(0 calc(10px + 20px * var(--lift, 1)) calc(24px + 30px * var(--lift, 1)) rgba(16, 16, 30, calc(.10 + .12 * var(--lift, 1))));
  will-change: transform; }
.mac img { position: absolute; left: 10.829%; top: 10.906%; width: 78.342%; height: 78.189%; }
.mac::after, .phone::after { content: ''; position: absolute; inset: 0; background: var(--bezel) center / 100% 100% no-repeat; pointer-events: none; }
.mac { --bezel: url(/img/home/macbook-pro-silver.png?v=1112b); }
.phone { --bezel: url(/img/home/iphone-18-pro-silver.png?v=1112b); }
@media (prefers-color-scheme: dark) {
  .mac { --bezel: url(/img/home/macbook-pro-black.png?v=1112b); }
  .phone { --bezel: url(/img/home/iphone-18-pro-black.png?v=1112b); }
}
.phone { position: relative; margin: 0; width: 260px; aspect-ratio: 450 / 920; filter: drop-shadow(0 24px 40px rgba(16, 18, 40, .22)); }
.phone img { position: absolute; left: 5.333%; top: 2.5%; width: 89.333%; height: 95%; border-radius: 13.7% / 6.3%; }
.shots .phone { position: absolute; right: max(0px, calc(50% - 560px)); bottom: -10px; width: clamp(150px, 22vw, 260px);
  transform: translateY(calc((1 - var(--lift, 1)) * 80px)); will-change: transform; } /* a layer nearer to you: it rises a little faster */

@media (max-width: 700px) {
  .shots { --lean: 6deg; }
  .hero { padding: 40px 0 44px; }
  .shots { margin-top: 40px; padding-bottom: 120px; }
  /* on a phone the MacBook is a third of its size, a little to the left; the phone stands in front of its right side
     (both kept on a phone: without them the page felt emptier, Kirill, 2026-11-12) */
  .mac { width: 96%; margin-left: -2%; }
  .shots .phone { right: 0; bottom: 0; width: 31%; }
}

/* ---------- section basics ---------- */
/* one rhythm for the whole page: every section has the same room above and below, so the space between any two
   blocks is the same (144 px on a computer, 96 on a phone), larger than any space inside a block; inside, a heading is
   16 px over its lead and a block's content starts 48 px under its heading */
section { padding: 72px 0; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
section h2 { font-size: clamp(32px, 4.4vw, 48px); }
@media (max-width: 700px) { section { padding: 48px 0; } }

/* ---------- features: three tabs over one stage ----------
   Every panel sits in the same cell of the stage, so they all take the size of the largest and nothing below moves
   when they switch; the text and the card cross-fade. The tab's line fills up while its scene plays (home.js), then
   the next one comes on by itself. */
/* one grid for the whole block: on the left the heading, the pill and the shown step's title, text and ticks; on the
   right its card. The three steps' parts share rows (the panels are see-through boxes, display: contents), so every
   title, text and list starts at the same line and nothing jumps when they switch. */
.how-stage { display: grid; grid-template-columns: minmax(0, 1fr) var(--scn-w, 560px); grid-template-rows: repeat(7, auto) 1fr; column-gap: 72px; }
.how-stage > .kicker { grid-area: 1 / 1; }
.how-stage > h2 { grid-area: 2 / 1; }
.how-stage > .lead { grid-area: 3 / 1; margin-top: 16px; }
.how-stage .tabs { grid-area: 4 / 1; justify-self: start; margin: 32px 0 36px; }
.feat-stage, .feat, .feat-text { display: contents; }
.feat-text h3 { grid-area: 5 / 1; }
.feat-text > p { grid-area: 6 / 1; }
.feat-text .ticks { grid-area: 7 / 1; }
.feat .scn { grid-area: 1 / 2 / -1 / 3; align-self: center; }
.feat-text > *, .feat .scn { opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .4s; }
.feat.on .feat-text > *, .feat.on .scn { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease) .1s, transform .6s var(--ease) .1s, visibility 0s; }
.feat-text h3 { font-size: clamp(24px, 2.3vw, 32px); margin-bottom: 12px; white-space: nowrap; }
.feat-text > p { color: var(--muted); font-size: 17px; max-width: 520px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-size: 16px; }
.ticks li { position: relative; padding-left: 30px; white-space: nowrap; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--free) 16%, transparent); }
.ticks li::after { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; background: var(--free); -webkit-mask: var(--check) center / 62% no-repeat; mask: var(--check) center / 62% no-repeat; }
@media (max-width: 1180px) { .how-stage { column-gap: 48px; } :root { --scn-w: 480px; --scn-z: 1.143; } }
@media (max-width: 960px) { .how-stage { column-gap: 32px; } :root { --scn-w: 430px; --scn-z: 1.024; } }
@media (max-width: 860px) {
  /* one column: heading, pill, card, then its text */
  .how-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .how-stage .tabs { display: flex; width: 100%; margin: 28px 0 24px; }
  .how-stage .tab { flex: 1; padding: 12px 8px; }
  :root { --scn-w: 560px; --scn-z: 1.333; }
  .feat .scn { grid-area: 5 / 1; justify-self: center; margin-bottom: 32px; }
  /* on a phone the scene says it: no title, text or ticks under it (Kirill, 2026-11-12: they didn't fit) */
  .feat-text { display: none; }
  .feat .scn { margin-bottom: 0; }
}
@media (max-width: 420px) { .how-stage .tab { font-size: 15px; gap: 8px; } .how-stage .tab svg { width: 18px; height: 18px; } }
.tabs { position: relative; display: inline-flex; gap: 4px; margin-top: 32px; padding: 4px; border-radius: 18px; background: var(--fill); }
/* the selected step is picked as in the app: a soft tint of the logo's blue that glides to the tab you pick (a little
   spring at the end); inside it, a slightly deeper wash fills left to right while the step plays, so you can see when
   the next one comes */
.tab-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: var(--tw, 0); transform: translateX(var(--tx, 0)); border-radius: 14px;
  background: color-mix(in srgb, var(--accent) var(--sel-mix, 14%), var(--surface)); overflow: hidden;
  transition: transform .5s cubic-bezier(.3, 1.25, .5, 1), width .5s cubic-bezier(.3, 1.25, .5, 1); }
.tab-thumb i { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.tabs.run .tab-thumb i { animation: fill var(--len, 10s) linear forwards; }
.tab { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 0; border-radius: 14px; background: none;
  color: var(--muted); font: 600 16px/1 var(--body); cursor: pointer; transition: color .25s; }
.tab svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: color .25s; }
.tab:hover { color: var(--ink); }
.tab.on, .tab.on:hover { color: var(--accent); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .tabs { --sel-mix: 22%; } }

/* ---------- the three features, each as one small thing happening (home.js plays them as they come into view) ----------
   Like the goal above: a real action and what it leads to, with a finger showing where the tap goes and the steps
   underneath lighting up in turn. Without motion they rest on their last step. */
/* the card is drawn at 420 px and shown larger (zoom), so the whole scene grows in proportion */
.scn { position: relative; margin: 0; width: min(var(--scn-w, 560px), 100%); display: grid; gap: 16px; }
.scn-card { zoom: var(--scn-z, 1.333); position: relative; height: 448px; padding: 20px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 14px; }
.scn small { color: var(--muted); font-size: 12.5px; }
.scn b { font-weight: 600; }

/* the finger: where the next tap lands, pressing in when it does */
.tap { position: absolute; left: 0; top: 0; z-index: 5; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; pointer-events: none;
  background: color-mix(in srgb, var(--ink) 18%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--surface) 80%, transparent), 0 6px 16px rgba(0, 0, 0, .18);
  opacity: 0; transform: translate(var(--x, 50%), var(--y, 50%)) scale(.6);
  transition: transform .7s var(--ease), opacity .3s; }
.tap.on { opacity: 1; transform: translate(var(--x), var(--y)); }
.tap.press { transform: translate(var(--x), var(--y)) scale(.72); transition: transform .14s ease, opacity .3s; }
.tap.slow { transition: transform 1.1s cubic-bezier(.45, 0, .2, 1), opacity .3s; }
.tap::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--ink) 25%, transparent); opacity: 0; }
.tap.press::after { animation: ripple .5s ease-out; }
@keyframes ripple { from { opacity: 1; transform: scale(.6); } to { opacity: 0; transform: scale(1.5); } }

/* what's happening: three steps, the current one filling up like a story */
.scn-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.scn-steps li { position: relative; min-height: calc(12px + 2.6em); padding-top: 12px; line-height: 1.3; transition: color .3s; }
.scn-steps li::before, .scn-steps li::after { content: ''; position: absolute; left: 0; top: 0; height: 3px; border-radius: 3px; }
.scn-steps li::before { right: 0; background: var(--line); }
.scn-steps li::after { width: 0; background: var(--accent); }
.scn-steps li.done::after { width: 100%; }
.scn-steps li.now { color: var(--ink); }
.scn-steps li.now::after { animation: fill var(--len, 3s) linear forwards; }
@keyframes fill { to { width: 100%; } }

/* a little note sliding up from the bottom of the card */
.scn-toast { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: var(--ink); color: var(--paper); font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .45s var(--spring); }
.scn-toast.on { opacity: 1; transform: none; }
.scn-toast .g { width: 16px; height: 16px; flex: none; }
.scn-toast b { color: inherit; }

/* calendar: one day, 09:00 to 17:00 */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cal-head div { display: grid; }
.cal-head > div b { font: var(--dw, 800) 19px var(--display); }
.cal-next { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--fill); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.cal-next i { width: 7px; height: 7px; border-radius: 50%; background: #E5484D; }
.cal-next span { transition: opacity .25s; }
.cal-next span.swap { opacity: 0; }
.cal-grid { --row: 38px; position: relative; height: calc(var(--row) * 9); margin-left: 44px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--row)); }
.cal-hours span { position: absolute; left: -44px; top: calc(var(--r) * var(--row) - 7px); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* as the real calendar: a block fills its time, 2px short of its end, small corners, no colour bar or outline */
.cb { position: absolute; left: 2px; right: 2px; top: calc(var(--s) * var(--row)); height: calc(var(--h) * var(--row) - 2px); z-index: 1;
  display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 6px; overflow: hidden; white-space: nowrap; font-size: 12.5px;
  background: color-mix(in srgb, var(--c) var(--tint), var(--surface));
  transition: top .9s cubic-bezier(.45, 0, .2, 1), height .5s var(--ease), box-shadow .25s, transform .3s var(--spring), background-color .4s; }
/* pulling a plan's bottom edge, as in the calendar: a soft glow from the edge and a short handle in the middle */
.cb::after { content: ''; position: absolute; inset: auto 0 0; height: 18px; pointer-events: none; opacity: 0; background: linear-gradient(to top, color-mix(in srgb, var(--c) 42%, transparent), transparent); transition: opacity .2s ease-out; }
.cb::before { content: ''; position: absolute; left: 50%; bottom: 3px; width: 20px; height: 3px; margin-left: -10px; border-radius: 3px; z-index: 1; pointer-events: none; background: var(--c); opacity: 0; transform: scaleX(.4); transition: opacity .2s ease-out, transform .3s var(--spring); }
.cb.stretch::after { opacity: 1; }
.cb.stretch::before { opacity: 1; transform: scaleX(1.3); }
.cb b { overflow: hidden; text-overflow: ellipsis; }
/* the faint corner icon, as in the calendar: a target for a goal, a calendar page for a plan, Google's G for its events */
.cb { isolation: isolate; }
.cb-wm { position: absolute; z-index: -1; right: -4px; bottom: -10px; width: 40px; height: 40px; pointer-events: none; opacity: .09; color: var(--c); transform: rotate(-10deg); }
.cb-wm svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cb small { font-size: 11.5px; margin-left: auto; }
.cb-ring { width: 13px; height: 13px; flex: none; border-radius: 50%; border: 2px solid var(--c); }
/* a goal ticked off in the calendar: the circle fills with its check, the name is struck through, as in the app */
.cb-ring { position: relative; transition: background-color .25s, transform .35s var(--spring); }
.cb-ring::after { content: ''; position: absolute; inset: -2px; background: #fff; -webkit-mask: var(--check) center / 70% no-repeat; mask: var(--check) center / 70% no-repeat; transform: scale(0); transition: transform .35s var(--spring); }
.cb.done .cb-ring { background: var(--c); transform: scale(1.1); }
.cb.done .cb-ring::after { transform: scale(1); }
.cb.done b { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink) 45%, transparent); color: var(--muted); transition: color .3s; }
.cb .g { width: 13px; height: 13px; flex: none; }
.cb.lift { z-index: 4; transform: scale(1.03); box-shadow: 0 14px 30px rgba(0, 0, 0, .2); }
.cb.new { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; line-height: 1.15; opacity: 0; transform: scaleY(.4); transform-origin: top; transition: opacity .25s, transform .4s var(--spring), background-color .4s, box-shadow .4s; }
.cb.new.on { opacity: 1; transform: none; }
.cb.new small { margin-left: 0; display: flex; align-items: center; gap: 8px; }
.cb.new.draft { --c: var(--p1); }
/* a plan for both: the two of you as small overlapping faces at its right, like the people on a meeting, no word */
.cb-pair { position: absolute; right: 10px; top: 50%; display: flex; transform: translateY(-50%) scale(.6); opacity: 0; transition: opacity .3s, transform .4s var(--spring); }
.cb-pair i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--surface);
  color: #fff; font: 700 10px/1 var(--body); font-style: normal; }
.cb-pair i + i { margin-left: -5px; }
.cb.new.saved .cb-pair { opacity: 1; transform: translateY(-50%); }
.caret { display: inline-block; width: 1.5px; height: 13px; margin-left: 1px; vertical-align: -2px; background: var(--ink); animation: blink 1s steps(1) infinite; }
.cb.saved .caret { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.cal-ghost { position: absolute; left: 6px; right: 0; top: calc(var(--s) * var(--row)); height: calc(var(--h) * var(--row)); border-radius: 9px;
  background: color-mix(in srgb, var(--p1) 10%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--p1) 40%, transparent); opacity: 0; transition: opacity .2s; }
.cal-ghost.on { opacity: 1; }
.cal-now { position: absolute; left: 0; right: 0; top: calc(var(--t, .66) * var(--row)); z-index: 3; height: 2px; background: #E5484D; transition: top 1.2s var(--ease); }
.cal-now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; }
.cal-now b { position: absolute; left: -46px; top: -9px; padding: 1px 5px; border-radius: 6px; background: #E5484D; color: #fff; font-size: 10.5px; font-weight: 700; }

/* goals */
.gl-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.gl-head b { font: var(--dw, 800) 19px var(--display); }
/* as the real goal card (.gcard): the name, how often with the streak, the one big circle to tick on the right */
.gl-row { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 12px; margin: 0 -8px; border-radius: 16px; transition: background-color .4s; }
.gl-row + .gl-row { margin-top: 2px; }
.gl-row.hi { background: color-mix(in srgb, var(--c) 8%, transparent); }
.gl-t { display: grid; gap: 3px; min-width: 0; }
.gl-t b { font-size: 15px; font-weight: 600; }
.gl-t .em { margin-right: 6px; }
.gl-t small { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 0 4px; white-space: nowrap; }
.gl-ring { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 8%, transparent); box-shadow: inset 0 0 0 2.5px color-mix(in srgb, var(--c) 70%, transparent);
  color: color-mix(in srgb, var(--c) 45%, transparent); transition: background-color .25s, box-shadow .25s, color .2s; }
.gl-ring svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gl-row.done .gl-ring { background: var(--c); color: #fff; }
.gl-row.done .gl-ring svg { animation: tick-pop .45s var(--spring); }
@keyframes tick-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.gl-fl { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: var(--ink); }
.gl-fl > svg { width: 16px; height: 16px; flex: none; transition: transform .4s var(--spring); }
.gl-fl .fo { fill: #FF7A1A; } .gl-fl .fi { fill: #FFC53D; }
.gl-fl em { font-style: normal; display: inline-block; }
.gl-fl span { font-weight: 400; color: var(--muted); }
.gl-fl.bump > svg { transform: scale(1.35) rotate(-8deg); }
.gl-fl.bump em { animation: bump .5s var(--spring); }
/* a goal to quit: a sprout and the clean days where the circle would be (.g-streak.q) */
.gl-q { display: grid; grid-template-columns: auto auto; column-gap: 6px; justify-items: end; align-items: center; }
.gl-q > svg { width: 22px; height: 22px; fill: none; stroke: var(--c, var(--p1)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gl-q em { font: var(--dw, 800) 24px/1 var(--display); letter-spacing: -0.02em; }
.gl-q small { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
/* the reward under it (.g-rw): the gift, the wish, how far, the bar */
.gl-rw { grid-column: 1 / -1; display: grid; gap: 8px; margin-top: 8px; }
.gl-rw-top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.gl-rw-top svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--spring); }
.gl-rw-top b { font-weight: 600; }
.gl-rw-top small { margin-left: auto; color: var(--muted); font-size: 12.5px; transition: color .3s; }
.gl-rw.near .gl-rw-top small { color: var(--gold); font-weight: 600; }
.gl-rw.near .gl-rw-top svg { transform: scale(1.18) rotate(-8deg); }
.gl-bar { display: block; height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.gl-bar i { display: block; height: 100%; width: calc(var(--p, .86) * 100%); border-radius: 6px; background: linear-gradient(90deg, var(--p1), color-mix(in srgb, var(--p1) 45%, var(--joint))); transition: width .7s var(--ease); }
.gl-sub { display: grid; }
.gl-sub small { grid-area: 1 / 1; transition: opacity .3s, transform .4s var(--spring); }
.gl-sub .b { opacity: 0; transform: translateY(6px); color: var(--free); font-weight: 600; }
.gl-row.saved .gl-sub .a { opacity: 0; transform: translateY(-6px); }
.gl-row.saved .gl-sub .b { opacity: 1; transform: none; }
.gl-note { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .22), inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
  opacity: 0; transform: translateY(-120%); transition: transform .55s var(--spring), opacity .3s; }
.gl-note.on { opacity: 1; transform: none; }
/* ---------- the scene for two (scripts/search-pages.mjs): the goals scene with shared goals. Each of you fills your
   half of the ring; when both are in, it closes in the shared violet with its tick, as in the app ---------- */
.tw-pair { position: static; transform: none; opacity: 1; }
.tw-pair i { box-shadow: 0 0 0 2px var(--surface); }
.tw-ring { position: relative; width: 44px; height: 44px; }
.tw-ring > svg { width: 100%; height: 100%; overflow: visible; }
.tw-ring path { stroke-width: 1.8; fill: none; }
.tw-ring .a0 { stroke: var(--p1); } .tw-ring .b0 { stroke: var(--p2); }
.tw-ring .af, .tw-ring .bf { stroke: none; fill-opacity: 0; transition: fill-opacity .35s var(--ease); }
.tw-ring .af { fill: var(--p1); } .tw-ring .bf { fill: var(--p2); }
.tw-row.a .af, .tw-row.b .bf { fill-opacity: 1; }
.tw-row.a:not(.b) .b0 { animation: tw-wait 1s ease-in-out .5s 2; } /* Sam's half waits for them */
@keyframes tw-wait { 50% { stroke-width: 3.2; opacity: .5; } }
.tw-on { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--joint); color: #fff;
  opacity: 0; transform: scale(.8); transition: opacity .25s var(--ease), transform .45s var(--spring); }
.tw-on svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tw-row.closed .tw-on { opacity: 1; transform: none; }
.tw-row.closed[data-t] .tw-ring { animation: tw-pop .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tw-pop { 40% { transform: scale(1.22); } }
.tw-later { opacity: .55; }
.tw-both { color: var(--joint) !important; }
.tw-face { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; font-size: 14px; }
.tw-row .gl-bar i { background: linear-gradient(90deg, var(--p1), var(--joint), var(--p2)); }
/* ---------- the shared calendar's scene: two columns, the free time as the shared calendar's green, a plan for both ---------- */
.c2-heads { display: grid; grid-template-columns: 48px 1fr 1fr; gap: 0 8px; margin: 8px 0 6px; font-size: 13px; font-weight: 600; }
.c2-heads::before { content: ''; }
.c2-heads span { display: flex; align-items: center; gap: 6px; }
.c2-heads i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.c2-grid { display: grid; grid-template-columns: 48px 1fr; --row: 54px; height: calc(6 * var(--row)); }
.c2-hours { position: relative; }
.c2-hours span { position: absolute; top: calc(var(--r) * var(--row) - 7px); font-size: 11.5px; color: var(--muted); }
.c2-lanes { position: relative; background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% var(--row); }
.c2-b { position: absolute; left: 0; width: calc(50% - 4px); top: calc(var(--s) * var(--row)); height: calc(var(--h) * var(--row) - 2px); z-index: 2;
  display: grid; align-content: start; gap: 1px; padding: 6px 9px; border-radius: 9px; overflow: hidden; font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--c) 18%, var(--surface)); }
.c2-b small { font-size: 11px; font-weight: 500; color: var(--muted); }
.c2-r { left: calc(50% + 4px); }
.c2-busy { --c: var(--muted); color: var(--muted); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 14%, var(--surface)) 0 6px, var(--surface) 6px 12px);
  transition: box-shadow .3s; }
.c2-busy.hi { box-shadow: 0 0 0 2px color-mix(in srgb, var(--p2) 55%, transparent); }
.c2-tip { position: absolute; z-index: 4; right: 0; top: calc(1.6 * var(--row)); max-width: 62%; padding: 8px 11px; border-radius: 10px; font-size: 12px; font-weight: 600;
  color: var(--surface); background: var(--ink); opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .4s var(--spring); }
.c2-tip.on { opacity: 1; transform: none; }
.c2-free { position: absolute; left: 0; right: 0; top: calc(var(--s) * var(--row) + 2px); height: calc(var(--h) * var(--row) - 4px); z-index: 1; border-radius: 9px; padding: 7px 10px;
  font-size: 11.5px; font-weight: 600; color: var(--free); background: color-mix(in srgb, var(--free) 11%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--free) 28%, transparent); opacity: 0; transform: scaleY(.6); transform-origin: top;
  transition: opacity .4s var(--ease), transform .5s var(--spring); }
.c2-free.on { opacity: 1; transform: none; }
/* once dinner is planned, the free time is what's left around it, as in the shared calendar */
.c2-free.taken { opacity: 0; }
.c2-left { opacity: 0; transform: none; }
.c2-both.saved ~ .c2-left, [data-free].taken ~ .c2-left { opacity: 1; }
.c2-both { width: auto; right: 0; opacity: 0; transform: scaleY(.4); transform-origin: top; transition: opacity .25s, transform .4s var(--spring); }
.c2-both.on { opacity: 1; transform: none; }
.c2-title { display: flex; align-items: center; min-height: 1.3em; } /* the name and its caret on one line while it's typed */
.c2-both .caret { display: none; }
.c2-both.typing .caret { display: inline-block; }
.c2-both:not(.saved) .c2-pair { opacity: 0; }
.c2-pair { position: absolute; right: 10px; top: 50%; display: flex; opacity: 1; transform: translateY(-50%); transition: opacity .3s; }
.c2-pair i { box-shadow: 0 0 0 2px color-mix(in srgb, var(--joint) 18%, var(--surface)); }
.gl-note img { border-radius: 9px; flex: none; }
.gl-note div { display: grid; font-size: 13px; line-height: 1.35; }
.gl-note b { display: flex; justify-content: space-between; }
.gl-note b small { font-weight: 400; }

/* wishlist: yours, and the page a friend opens */
.wv { transition: opacity .45s var(--ease), transform .55s var(--ease); }
.wv.friend { position: absolute; inset: 0; padding: 20px; background: var(--surface); opacity: 0; transform: translateX(30px); pointer-events: none; }
.scn-card.flip .wv.own { opacity: 0; transform: translateX(-30px); }
.scn-card.flip .wv.friend { opacity: 1; transform: none; }
.wv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.wv-head b { font: var(--dw, 800) 19px var(--display); }
.wv-share { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 13px; color: #fff;
  background: var(--accent); transition: transform .15s; }
.wv-share svg, .wv-url svg, .wv-secret svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wv-share.press { transform: scale(.94); }
.wv-link { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .45s var(--spring); }
.wv-link svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.wv-link em { margin-left: auto; font-style: normal; color: var(--free); }
.wv-link.on { opacity: 1; transform: none; }
.wv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wv-list li { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--fill); }
.wv-list li > div { display: grid; min-width: 0; flex: 1; }
.d1 { --dc: var(--d1); } .d2 { --dc: var(--d2); } .d3 { --dc: var(--d3); }
/* as the real wish card: the wish's emoji on its colour with how much you want it in the corner, the desire word, the price */
.wv-em { position: relative; width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 21px; background: color-mix(in srgb, var(--dc) 12%, var(--surface)); }
.wv-dz { position: absolute; right: -5px; bottom: -5px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; color: var(--dc);
  background: var(--surface); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--dc) 30%, var(--surface)); }
.wv-dz svg { width: 12px; height: 12px; display: block; overflow: visible; }
.wv-dz .dz-a, .wv-dz .dz-b { fill: currentColor; }
.wv-list small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.wv-list .dz-word { color: color-mix(in srgb, var(--dc) 80%, var(--ink)); font-weight: 600; }
.wv-list .sep { opacity: .5; }
.wv-list .price { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.wv-tick { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; color: color-mix(in srgb, var(--dc) 45%, transparent);
  box-shadow: inset 0 0 0 2.5px color-mix(in srgb, var(--dc) 70%, transparent); background: color-mix(in srgb, var(--dc) 8%, transparent); }
.wv-tick svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wv-secret { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  font-size: 13px; font-weight: 600; background: var(--ink); color: var(--paper); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .45s var(--spring); }
.wv-secret.on { opacity: 1; transform: none; }
.wv-secret svg { flex: none; }
.wv-url { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; margin: -8px 0 16px; border-radius: 10px; background: var(--fill); font-size: 12px; color: var(--muted); }
.wv-fhead { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.wv-fhead img { border-radius: 50%; background: color-mix(in srgb, var(--p1) 18%, var(--surface)); }
.wv-fhead div { display: grid; }
.wv-fhead b { font: var(--dw, 800) 17px var(--display); }
.wv-give { position: relative; display: grid; flex: none; font-size: 12.5px; font-weight: 600; }
.wv-give > span { grid-area: 1 / 1; justify-self: end; padding: 8px 12px; border-radius: 999px; transition: opacity .3s, transform .4s var(--spring); white-space: nowrap; text-align: center; }
.wv-give .a { color: #fff; background: var(--accent); }
.wv-give .b { color: var(--free); background: color-mix(in srgb, var(--free) 14%, transparent); opacity: 0; transform: scale(.7); }
li.given .wv-give .a { opacity: 0; transform: scale(.7); }
li.given .wv-give .b { opacity: 1; transform: none; }
.wv-give .a.press { transform: scale(.92); }
/* a little burst when a gift is picked */
.burst { position: absolute; z-index: 6; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 7px; height: 7px; border-radius: 2px; background: var(--c); animation: pop .9s var(--ease) forwards; }
@keyframes pop { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }

@media (max-width: 420px) { .scn-card { padding: 16px; } .wv.friend { padding: 16px; } .scn-steps { font-size: 12px; } }

/* ---------- together ---------- */
.together-in { text-align: center; display: grid; justify-items: center; }
.together h2 { margin-bottom: 16px; }
.avs { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.avs img { width: 88px; height: 88px; border-radius: 50%; padding: 4px; background: color-mix(in srgb, var(--c) 22%, var(--surface)); box-shadow: var(--shadow-md); }
.link-dots { display: flex; gap: 8px; }
.link-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--joint); animation: pulse 1.6s ease-in-out infinite; }
.link-dots i:nth-child(2) { animation-delay: .2s; } .link-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: none; } }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; text-align: left; width: 100%; }
.card { padding: 28px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-md); transition: transform .3s var(--spring); }
.card:hover { transform: translateY(-2px); }
.card h3 { font-size: 19px; margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: 18px; }
/* ---------- Together: each card opens with a small piece of the app (like the bento cards of Linear, Apple or
   Stripe), not an icon. At rest each shows its end (lunch planned, the ring closed, the trip earned), so the block is
   calm to read; the moment plays only where you look: when you hover a card, or on a phone once, as the card reaches
   the middle of the screen (home.js). One or two soft movements each, no bounce. ---------- */
.together .card { display: grid; align-content: start; }
.together .card h3 { margin-top: 22px; }
.vig { position: relative; height: 148px; border-radius: 16px; padding: 14px; overflow: hidden; font-size: 13px;
  background: color-mix(in srgb, var(--ink) 3.5%, var(--surface)); --soft: cubic-bezier(.25, .1, .25, 1); }
.vig b { font-weight: 600; }
.vig small { color: var(--muted); font-size: 12px; }
.vig .cb-pair { position: static; transform: none; opacity: 1; }
/* the days: both columns; a tap in the time you're both free plans lunch for both, and the free time left is what's after it */
.vd-head { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; font-weight: 600; font-size: 12px; }
.vd-head span { display: flex; align-items: center; gap: 6px; }
.vd-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.vd-cols { position: relative; height: 100px; --row: 25px; }
.vd-b { position: absolute; z-index: 1; left: 0; width: calc(50% - 4px); top: calc(var(--t) * var(--row)); height: calc(var(--row) - 3px);
  display: flex; align-items: center; padding: 0 8px; border-radius: 7px; font-size: 12.5px; line-height: 1;
  background: color-mix(in srgb, var(--c) 18%, var(--surface)); white-space: nowrap; overflow: hidden; }
.vd-r { left: calc(50% + 4px); }
.vd-busy { --c: var(--muted); color: var(--muted); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 14%, var(--surface)) 0 6px, var(--surface) 6px 12px); }
.vd-free { position: absolute; left: 0; right: 0; top: calc(var(--t) * var(--row)); height: calc(var(--h) * var(--row) - 3px); display: flex; align-items: center; padding: 0 10px;
  border-radius: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; color: var(--free);
  background: color-mix(in srgb, var(--free) 11%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--free) 28%, transparent);
  transition: opacity .5s var(--soft); }
.vd-lunch { width: auto; right: 0; z-index: 2; justify-content: space-between; padding-right: 4px; transform-origin: top;
  transition: opacity .45s var(--soft), transform .55s var(--soft); }
.vd-pair i { width: 16px; height: 16px; font-size: 8px; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--joint) 18%, var(--surface)); }
.vd-tap { position: absolute; z-index: 3; left: 50%; top: calc(1.5 * var(--row)); width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 18%, transparent); opacity: 0; transform: scale(.6); transition: opacity .3s var(--soft), transform .3s var(--soft); }
.vd .vd-left { opacity: 0; }
.vd.is-done .vd-all { opacity: 0; } .vd.is-done .vd-left { opacity: 1; }
.vd:not(.is-done) .vd-lunch { opacity: 0; transform: scaleY(.6); }
.vd.is-tap .vd-tap { opacity: 1; transform: none; }
/* the shared streak: Sam's half fills, the ring turns into the shared violet with its tick, the line and the number change */
.vs { display: grid; align-content: center; padding: 12px; }
.vs-card { padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); display: grid; gap: 12px; }
.vs-top { display: flex; align-items: center; gap: 12px; }
.vs-t { display: grid; gap: 2px; flex: 1; font-size: 15px; }
.vs-sub { display: grid; }
.vs-sub span { grid-area: 1 / 1; transition: opacity .45s var(--soft); }
.vs-sub span + span { color: var(--joint); font-weight: 600; }
.vs-ring { position: relative; flex: none; width: 46px; height: 46px; }
.vs-ring svg { width: 100%; height: 100%; overflow: visible; }
.vs-ring path { stroke-width: 1.6; }
.vs-ring .a { stroke: var(--p1); fill: var(--p1); }
.vs-ring .b0 { stroke: var(--p2); fill: none; }
.vs-ring .bf { fill: var(--p2); stroke: none; transition: opacity .6s var(--soft); }
.vs-on { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--joint); transition: opacity .6s var(--soft), transform .6s var(--soft); }
.vs-on svg { width: 60%; height: 60%; }
.vs-on path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.vs-foot { display: flex; align-items: center; justify-content: space-between; }
.vs-streak { display: flex; align-items: center; gap: 4px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.vs-streak em { position: relative; display: grid; height: 1.3em; overflow: hidden; font-style: normal; font-weight: 700; color: var(--ink); }
.vs-streak em i { grid-area: 1 / 1; line-height: 1.3em; font-style: normal; transition: opacity .4s var(--soft), transform .5s var(--soft); }
.vs-pair i { box-shadow: 0 0 0 2px var(--surface); }
.vs:not(.is-half) .bf { opacity: 0; }
.vs:not(.is-done) .vs-on { opacity: 0; transform: scale(.92); }
.vs:not(.is-done) .vs-sub span + span, .vs.is-done .vs-sub span:first-child { opacity: 0; }
.vs:not(.is-done) .vs-streak em i + i { opacity: 0; transform: translateY(60%); }
.vs.is-done .vs-streak em i:first-child { opacity: 0; transform: translateY(-60%); }
/* the shared wish: the last days of the streak fill the bar, then it's earned, by the two of you */
.vw { display: grid; align-content: center; gap: 12px; padding: 16px 18px; }
.vw-row { display: flex; align-items: center; gap: 12px; }
.vw-row > div { display: grid; gap: 1px; min-width: 0; font-size: 15px; }
.vw-em { position: relative; display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; font-size: 22px; background: color-mix(in srgb, var(--gold) 16%, var(--surface)); }
.vw-ok { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--joint);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 3.5%, var(--surface)); transition: opacity .5s var(--soft), transform .5s var(--soft); }
.vw-ok svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.vw-bar { height: 8px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.vw-bar i { display: block; height: 100%; width: calc(var(--p, 1) * 100%); border-radius: 8px; background: linear-gradient(90deg, var(--p1), var(--joint), var(--p2)); transition: width .6s var(--soft); }
.vw-foot { display: grid; align-items: center; min-height: 20px; }
.vw-foot > * { grid-area: 1 / 1; transition: opacity .45s var(--soft); }
.vw-left { color: var(--muted) !important; font-weight: 600; }
.vw-won { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 3px 10px 3px 4px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--joint); background: color-mix(in srgb, var(--joint) 13%, transparent); }
.vw-pair i { width: 18px; height: 18px; font-size: 9px; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--joint) 13%, var(--surface)); }
.vw:not(.is-done) .vw-won, .vw.is-done .vw-left { opacity: 0; }
.vw:not(.is-done) .vw-ok { opacity: 0; transform: scale(.6); }
@media (prefers-reduced-motion: reduce) { .vig, .vig * { transition: none !important; } }
.ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
/* Together on a phone: one card at a time under a pill, switching by itself like How it works (home.js), so the
   section isn't three screens long. All three share one cell, so it keeps the tallest one's height. */
.together .tabs { display: none; }
@media (max-width: 860px) {
  .together .tabs { display: flex; width: 100%; margin-top: 32px; }
  .together .tab { flex: 1; padding: 12px 6px; font-size: 15px; }
  .together .cards { margin-top: 20px; }
  .together .card { grid-area: 1 / 1; }
  .together .cards.paged .card { opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .4s; }
  .together .cards.paged .card.on { opacity: 1; visibility: visible; transform: none;
    transition: opacity .5s var(--ease) .1s, transform .6s var(--ease) .1s, visibility 0s; }
  .together .cards.paged .card:hover { transform: none; }
}

/* ---------- FAQ ---------- */
.faq-in { max-width: 780px; }
.faq h2 { margin-bottom: 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-weight: 600; font-size: 18px;
  -webkit-tap-highlight-color: transparent; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
/* the plus, drawn from two bars so it turns about its very middle into a cross */
.faq summary::after { content: ''; flex: none; width: 32px; height: 32px; border-radius: 50%; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat, var(--fill);
  transition: transform .35s var(--ease), background-color .2s; }
.faq summary:hover::after { background-color: color-mix(in srgb, var(--ink) 10%, transparent); }
.faq details[open]:not(.closing) summary::after { transform: rotate(135deg); }
/* home.js glides the answer open and shut: the height follows, the text fades in a moment later */
.faq details.moving { overflow: hidden; }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 680px; }
/* the pages for what people search for, linked from the words that name them */
.faq details p a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.faq details p a:hover { text-decoration-color: var(--accent); }

/* ---------- last call ---------- */
.last { position: relative; isolation: isolate; text-align: center; overflow: hidden; }
.last-in { display: grid; justify-items: center; gap: 20px; }
/* the star, the mascot: it waits where the logo stood; home.js makes it hop from word to word of the slogan
   (Do, thing, Get, thing), then come back here. Without script or motion it simply sits here, eyes open. */
.last-in { position: relative; }
.last-spot { width: 72px; height: 72px; }
.hop { width: 72px; height: 72px; position: relative; z-index: 2; pointer-events: none; }
.hop.flying { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.hop-spin, .hop-sq { width: 100%; height: 100%; }
.hop-sq { transform-origin: 50% 88%; }
.hop svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hop .st { fill: #FFC93C; stroke: #FFC93C; stroke-width: 95px; stroke-linejoin: round; }
.hop .eye ellipse { fill: #17161C; }
.hop .eye .nt { fill: #FFC93C; stroke: #FFC93C; stroke-linejoin: round; }
.hop .eye { transform-box: fill-box; transform-origin: 59% 50%; transition: transform .22s var(--ease); }
.hop .eyes { transition: transform .25s var(--ease), opacity .12s; transform: translate(var(--lx, 0px), var(--ly, 0px)); }
.hop .lit { fill: none; stroke: #17161C; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .12s; }
.hop[data-face="sleep"] .eye { transform: scaleY(.12); }
.hop[data-face="lit"] .eyes { opacity: 0; }
.hop[data-face="lit"] .lit { opacity: 1; }
.hop .proud { fill: none; stroke: #17161C; stroke-linecap: round; opacity: 0; transition: opacity .12s; }
.hop[data-face="proud"] .eyes { opacity: 0; }
.hop[data-face="proud"] .proud { opacity: 1; }
.hop.blink .eye { animation: hop-blink .3s ease-in-out; }
@keyframes hop-blink { 50% { transform: scaleY(.1); } }
/* a word the star lands on gives under it, like a springboard */
.last h2 .w { display: inline-block; }
.last h2 .w.land { animation: hop-land .42s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes hop-land { 30% { transform: translateY(.09em) scaleY(.94); } }
/* sparks knocked out where it lands */
.spk { position: absolute; z-index: 1; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #FFC93C; pointer-events: none; }
.last h2 { white-space: nowrap; font-size: clamp(24px, 6.4vw, 48px); } /* the slogan on one line, down to a phone */

/* ---------- footer ---------- */
.foot { padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.foot a { text-decoration: none; color: var(--muted); font-size: 15px; }
.foot a:hover { color: var(--ink); }
.foot small { color: var(--muted); font-size: 14px; }
/* phones: one line, the name on the left and three short links on the right (the © line is a computer's extra), as
   compact product sites do it. "Contact" everywhere since 2026-11-12 (the address is its title and its mailto) */
@media (max-width: 700px) {
  .foot { padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); }
  .foot-in { flex-wrap: nowrap; gap: 12px; }
  .foot nav { flex-wrap: nowrap; gap: 18px; margin-left: auto; }
  .foot small { display: none; }
}

/* ---------- coming into view ---------- */
/* one entrance on the whole page: the product rises into place under the headline; everything else is simply there */
.js .shots.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease) .1s, transform .9s var(--ease) .1s; }
.js .shots.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .shots.rv { opacity: 1; transform: none; transition: none; }
  .link-dots i, .caret { animation: none; }
  .tap { display: none; }
  .mac { transform: none !important; }
}

/* ---------- the pages for what people search for (scripts/search-pages.mjs) ---------- */
.lp-hero { text-align: left; padding: 64px 0 48px; }
.lp-hero-in { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.lp-text { display: grid; gap: 20px; justify-items: start; }
.lp-text .kicker { margin-bottom: 0; }
.lp-hero h1 { font-size: clamp(36px, 5.2vw, 64px); max-width: 14ch; text-wrap: balance; }
.lp-scene { width: var(--scn-w, 560px); max-width: 100%; text-align: left; } /* the feature's scene from the home page, playing on its own */
.lp-text .cta { display: flex; align-items: center; gap: 16px; margin-top: 8px; justify-content: flex-start; }
.lp-free { color: var(--muted); font-size: 14px; }
/* how it works: three steps side by side, each a numbered card; a thin line runs behind the numbers, so they read
   as one path (Stripe's and Linear's "how it works") */
.lp-how h2, .lp-points h2 { margin-bottom: 48px; }
.lp-how .kicker, .lp-points .kicker { margin-bottom: 16px; }
.lp-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-steps::before { content: ''; position: absolute; z-index: 0; left: 16.6%; right: 16.6%; top: 46px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--accent) 12%, transparent)); }
.lp-steps li { position: relative; z-index: 1; display: grid; justify-items: start; align-content: start; gap: 8px; padding: 28px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-md); }
.lp-n { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 8px; border-radius: 50%; font: 700 15px/1 var(--body);
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); box-shadow: 0 0 0 6px var(--surface); }
.lp-steps h3 { font-size: 19px; }
.lp-steps p { color: var(--muted); font-size: 17px; }
.lp-points .cards { margin-top: 0; }
.lp-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.lp-more a { padding: 8px 16px; border-radius: 999px; background: var(--fill); color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; transition: color .2s, background-color .2s; }
.lp-more a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 10%, transparent); }
@media (max-width: 860px) {
  .lp-hero { text-align: center; padding-top: 40px; }
  .lp-hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; justify-items: center; } /* the scene never widens the page */
  .lp-text { justify-items: center; }
  .lp-scene { justify-self: center; }
  .lp-text .cta { justify-content: center; flex-direction: column; gap: 10px; }
  .lp-steps { grid-template-columns: 1fr; gap: 14px; }
  .lp-steps::before { left: 45px; right: auto; top: 40px; bottom: 40px; width: 2px; height: auto; background: color-mix(in srgb, var(--accent) 22%, transparent); }
  .lp-steps li { grid-template-columns: 36px 1fr; column-gap: 16px; padding: 22px; }
  .lp-n { grid-row: span 2; margin: 0; }
}
.lp .nav-cta { margin-left: auto; }


/* headings break into even lines, paragraphs never end on one lonely word */
h1, h2, h3, summary { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* the Together cards' pictures: line icons from the app's set, not symbols */
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the trail over the headline: trail.css (shared with the sign-in screen) */


/* a quiet sky at the top of the hero (light theme): even light from the logo's blue, fading into the page */
@media (prefers-color-scheme: light) {
  .hero::before { content: ''; position: absolute; inset: 0 0 auto; height: min(640px, 100%); z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--p1) 8%, var(--paper)), var(--paper)); }
}

@media (max-width: 600px) { :root { --scn-z: 1; } }

/* Goals: the reading goal's path as the app draws it (2026-11-24): three kept days on the streak's band, today the
   reward's gold tick (the tick that earns it), three ahead; a tick fills today and the band reaches it */
.gl-path { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 8px; text-align: center; font-size: 10.5px; font-weight: 500; color: var(--muted); }
.gl-path span { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; white-space: nowrap; }
.gl-path i { position: relative; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--muted) 45%, transparent); transition: background-color .3s, box-shadow .3s, transform .4s var(--spring); }
.gl-path i::after { content: ''; position: absolute; inset: 0; background: #fff; -webkit-mask: var(--check) center / 56% no-repeat; mask: var(--check) center / 56% no-repeat; transform: scale(0); transition: transform .35s var(--spring), background-color .3s; }
.gl-path .on i, .gl-row.done .gl-path .today i { background: var(--c); box-shadow: none; }
.gl-path .on i::after, .gl-row.done .gl-path .today i::after { transform: scale(1); background: #fff; }
.gl-path .today { color: var(--c); font-weight: 700; }
.gl-path .prize i { background: color-mix(in srgb, var(--gold) 12%, transparent); box-shadow: inset 0 0 0 2px var(--gold); }
.gl-path .prize i::after { transform: scale(1); background: color-mix(in srgb, var(--gold) 75%, transparent); }
.gl-row.done .gl-path .today i { transform: scale(1.08); }
.gl-band { position: absolute; z-index: 0; top: -2px; height: 26px; border-radius: 13px; left: calc(.5 * 100% / 7 - 13px);
  width: calc(2 * 100% / 7 + 26px); background: color-mix(in srgb, var(--c) 20%, transparent); transition: width .5s var(--spring); }
.gl-row.done .gl-band { width: calc(3 * 100% / 7 + 26px); }
@media (prefers-reduced-motion: reduce) { .gl-band, .gl-path i { transition: none; } }
.gl-won { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transform: scale(1.04); transition: opacity .4s var(--ease), transform .5s var(--spring); pointer-events: none; }
.gl-won span { font-size: 56px; line-height: 1; transform: scale(.6) rotate(-12deg); transition: transform .6s var(--spring) .05s; }
.gl-won b { font: var(--dw, 800) 24px var(--display); letter-spacing: -.02em; }
.gl-won small { color: var(--muted); font-size: 14px; }
.gl-won.on { opacity: 1; transform: none; }
.gl-won.on span { transform: none; }

/* the Goals scene as today's app: chips for Today / Not today, and every goal a card of its own (its name and when,
   the week and the reward, a foot with the streak), a habit you quit with its sprout and clean time */
#scn-goals .scn-card { background: var(--paper); padding: 10px; height: 462px; } /* the quit bar and the reward strip (2026-11-18) */
.gl-chips { display: flex; gap: 6px; margin-bottom: 10px; font-size: 12.5px; font-weight: 600; }
.gl-chips span { padding: 6px 11px; border-radius: 999px; background: var(--fill); color: var(--ink); }
.gl-chips span.on { background: color-mix(in srgb, var(--p1) 14%, var(--surface)); color: var(--p1); }
.gl-chips i { font-style: normal; opacity: .6; margin-left: 3px; font-weight: 500; }
.gl-card { margin: 0; padding: 9px 12px; background: var(--surface); border-radius: 18px; box-shadow: 0 1px 2px rgba(23, 22, 28, .05), 0 4px 14px rgba(23, 22, 28, .05); gap: 2px 12px; }
.gl-row.gl-card + .gl-row.gl-card { margin-top: 6px; }
.gl-card.hi { background: color-mix(in srgb, var(--c) 6%, var(--surface)); }
.gl-card .gl-ring { width: 38px; height: 38px; }
.gl-card .gl-rw { margin-top: 6px; gap: 6px; }
.gl-foot { grid-column: 1 / -1; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); display: flex; }
.gl-pill { padding: 4px 9px 4px 7px; border-radius: 999px; background: color-mix(in srgb, #FF7A1A 12%, var(--surface)); font-size: 12.5px; }
.gl-pill span { color: color-mix(in srgb, #FF7A1A 70%, var(--ink)); font-weight: 500; }
.gl-sprout { color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); box-shadow: none; }
.gl-sprout svg { stroke-width: 2.2; }
.gl-clean { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.gl-clean small { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.gl-clean .gl-fl { display: inline-block; font: 700 20px/1 var(--body); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; word-spacing: 2px; }
.gl-clean em, .gl-clean i { font: inherit; font-style: normal; }
.gl-card .gl-sub .b { color: var(--muted); font-weight: 400; }

/* the Wishlist scene: the lists as chips under the title, as in the app */
.wv-chips { display: flex; gap: 6px; margin: -2px 0 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.wv-chips span { padding: 6px 11px; border-radius: 999px; background: var(--fill); color: var(--ink); }
.wv-chips span.on { background: color-mix(in srgb, var(--p1) 14%, var(--surface)); color: var(--p1); }
.wv-chips i { font-style: normal; opacity: .6; margin-left: 3px; font-weight: 500; }
.gl-lead em { font-weight: 600; }
.gl-t small .sep { margin: 0 1px; }

/* the Goals scene opens like the app's screen: its title, and how much of today is done (it fills as you tick) */
#scn-goals .scn-card { padding: 14px 12px 12px; }
.gl-top { display: grid; gap: 5px; margin: 0 4px 9px; }
.gl-top b { font: var(--dw, 800) 20px/1.1 var(--display); letter-spacing: -0.02em; }
.gl-done { display: grid; gap: 6px; }
.gl-done small { font-size: 12.5px; color: var(--muted); }
.gl-prog { display: block; height: 5px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.gl-prog i { display: block; height: 100%; width: calc(var(--d, 0) * 100%); border-radius: 5px; background: var(--p1); transition: width .6s var(--spring); }
.gl-card { border-radius: 20px; padding: 11px 14px; }
.gl-card .gl-t .em { margin-right: 7px; }
.gl-card .gl-t b { font-size: 15.5px; }
/* a notification as iOS draws it: the app's name on the left, "now" at the far right of the banner */
.gl-note > div { flex: 1; min-width: 0; }
.gl-note b small { color: var(--muted); font-size: 12px; }

/* the Goals scene drawn like the Calendar and Wishlist scenes beside it: the same white panel and 20 px edge, the
   title at 19 px, and the goals as the same quiet tinted rows (radius 14, no shadow) as the wishes */
#scn-goals .scn-card { background: var(--surface); padding: 20px; }
.gl-top { margin: 0 0 12px; gap: 6px; }
.gl-top b { font: var(--dw, 800) 19px var(--display); letter-spacing: normal; }
.gl-card { background: var(--fill); box-shadow: none; border-radius: 14px; padding: 12px; }
.gl-card.hi { background: color-mix(in srgb, var(--c) 10%, var(--fill)); }
.gl-row.gl-card + .gl-row.gl-card { margin-top: 8px; }
/* the Goals scene at the Wishlist scene's scale (about 85% of the app), so the two read as one system (Kirill
   2026-11-05): a goal's name half a point over a wish's (17 vs 16 in the app), the flame, the clean time and the
   reward in the app's proportions */
.gl-card .gl-t b { font-size: 14.5px; }
.gl-card .gl-t .em { margin-right: 6px; }
.gl-fl > svg { width: 13px; height: 13px; }
.gl-clean .gl-fl { font-size: 18px; }
.gl-rw-top { font-size: 13px; }
.gl-rw-top svg { width: 15px; height: 15px; }
/* as in the calendar: a plan's name stays at its top when it's stretched (an hour tall it looks the same as before) */
.cb[data-gym] { align-items: flex-start; padding-top: 10px; }

/* ---------- the iPhone app (2026-11-14, Kirill's pick after Bevel, Copilot Money, Flighty): by device, not by width.
   An iPhone gets the App Store first (and Safari's own banner on top); a computer, an iPad or Android the site first,
   with quiet chips under Start free; a computer also a QR card in the corner once the hero is passed. ---------- */
html:not(.iphone) .only-iphone, html.iphone .no-iphone, html.android .no-android { display: none !important; }
.get { display: grid; justify-items: center; gap: 24px; margin-top: 8px; }
.lp-hero .get { justify-items: start; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.lp-hero .chips { justify-content: flex-start; }
.chips li, .chips a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1; color: var(--muted); text-decoration: none; }
.chips li { padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.chips a { color: var(--ink); transition: color .18s; }
.chips a:hover { color: var(--accent); }
.chips svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.alt { font-size: 15px; color: var(--muted); text-decoration: none; transition: color .18s; }
.alt:hover { color: var(--ink); }
.store { display: inline-flex; line-height: 0; border-radius: 12px; transition: transform .18s var(--ease); }
.store:hover { transform: translateY(-1px); }
.store:active { transform: scale(.97); }
.store img { height: 54px; width: auto; }
.store .dk { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .store .lt { display: none; } :root:not([data-theme="light"]) .store .dk { display: block; } }
:root[data-theme="dark"] .store .lt { display: none; }
:root[data-theme="dark"] .store .dk { display: block; }
/* the corner card: a computer only; shows once the hero is passed, a × puts it away for good */
.dock { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 14px;
  border-radius: 20px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -16px rgba(16, 18, 40, .35);
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.dock.on { opacity: 1; transform: none; pointer-events: auto; }
.dock-ic { width: 44px; height: 44px; border-radius: 11px; }
.dock-t { display: grid; font-size: 13px; line-height: 1.3; color: var(--muted); }
.dock-t b { font-size: 15px; color: var(--ink); }
.dock-qr { display: block; width: 76px; height: 76px; padding: 4px; border-radius: 10px; background: #fff; }
.dock-qr img { display: block; width: 100%; height: 100%; }
.dock-x { position: absolute; top: -8px; left: -8px; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 0;
  background: var(--surface); color: var(--muted); box-shadow: 0 0 0 1px var(--line), 0 4px 10px rgba(0, 0, 0, .12); font: 16px/1 var(--body); cursor: pointer;
  opacity: 0; transition: opacity .2s; }
.dock:hover .dock-x, .dock-x:focus-visible { opacity: 1; }
@media (max-width: 860px), (hover: none) { .dock { display: none; } }
@media (prefers-reduced-motion: reduce) { .dock { transition: opacity .2s; transform: none; } }
/* the Goals scene in the app's cards (2026-11-18): a quit habit's bar to its next milestone, "to 2 weeks" at the end; the
   reward as a strip with its picture, name, bar and what's left */
.gl-clean .gl-to { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.gl-clean .gl-to b { color: var(--ink); font-weight: 600; }
.gl-qbar { grid-column: 1 / -1; margin-top: 4px; height: 5px; }
.gl-qbar i { --p: .14; background: var(--free, #0FA37F); }
.gl-strip { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.gl-th { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; background: color-mix(in srgb, var(--gold) 18%, var(--surface)); }
.gl-rw-mid { flex: 1; min-width: 0; display: grid; gap: 5px; }
.gl-rw-mid b { font-size: 13.5px; font-weight: 600; }
.gl-rw-mid .gl-bar { height: 4px; }
.gl-strip small { flex: none; color: var(--muted); font-size: 12.5px; transition: color .3s; }
.gl-strip.near small { color: var(--gold); font-weight: 600; }
