/* ============================================================================
   motion.css — hero interaction + per-feature infographic motion graphics.
   Decorative loops are gated behind (prefers-reduced-motion: no-preference);
   the per-section demos play ONCE when scrolled into view (.playing, set in JS)
   instead of looping forever.
   ========================================================================== */

@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

/* ============================================================================
   HERO — an interactive watermelon you can actually bite
   ========================================================================== */
.hero { padding-top: clamp(2.5rem, 1rem + 6vw, 5rem); padding-bottom: var(--sp-section);
  overflow: hidden; }
.hero__grid {
  display: grid; gap: clamp(2rem, 1rem + 5vw, 4.5rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; } }

.hero h1 { font-size: var(--t-hero); font-weight: 700; letter-spacing: -0.02em; margin: 18px 0; }
.hero h1 .accent { color: var(--flesh); }
.hero__sub { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem); color: var(--pith);
  font-family: var(--font-display); font-style: italic; max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--sp-xl);
  align-items: center; }

/* ---- the watermelon stage (focusable "button") ------------------------ */
.melon-stage { position: relative; aspect-ratio: 1; width: min(100%, 460px); margin-inline: auto;
  display: grid; place-items: center; perspective: 900px; cursor: pointer;
  user-select: none; -webkit-tap-highlight-color: transparent; }
.melon-stage:focus-visible { outline: 2px solid var(--flesh); outline-offset: 10px;
  border-radius: var(--r-xl); }
.melon-stage::before { /* soft aura behind the slice */
  content: ""; position: absolute; inset: 8%;
  background: radial-gradient(circle at 50% 46%, var(--flesh-15), transparent 62%);
  filter: blur(8px); transition: opacity 0.4s var(--ease-standard); }
.melon-stage:hover::before { opacity: 1.4; }

.melon-svg { width: 78%; position: relative; z-index: 2;
  transition: transform 0.16s var(--ease-out); will-change: transform; }
/* Static soft shadow under the slice. The old drop-shadow filter lived on the
   floating SVG, so it re-blurred every frame (float) and every bite (mask
   change) — that was the stutter. A blurred ellipse rendered once is free. */
.melon-stage::after {
  content: ""; position: absolute; z-index: 1; left: 50%; bottom: 12%;
  width: 52%; height: 9%; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, var(--shadow-lifted), transparent 72%);
  filter: blur(7px); pointer-events: none;
}
/* gentle float only — no 3D tilt, so a tap maps cleanly to a point on the slice.
   `translate` is its own property, so the :active scale below still composes. */
@media (prefers-reduced-motion: no-preference) {
  .melon-svg { animation: melonFloat 7.5s var(--ease-standard) infinite; }
}
@keyframes melonFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.melon-stage:active .melon-svg { transform: scale(0.985); }

/* a bite = a pill, placed with its rounded-end TIP at the tap point and its
   long axis aimed at the slice's bottom-centre, so the chomp grows inward from
   where you tapped. .bite-pos carries tap position + rotation (from JS); .bite
   does the chomp scale, anchored at the tip (left-centre of its own box). */
.bite { transform-box: fill-box; transform-origin: left center; opacity: 0; }
.bite.on { animation: chomp 0.18s var(--ease-snap) forwards; }
@keyframes chomp { from { opacity: 0.3; transform: scale(0.55); } to { opacity: 1; transform: scale(1); } }

/* seed burst on each bite — re-triggered by toggling .bursting in JS */
.melon-scatter .ck { opacity: 0; transform-box: fill-box; transform-origin: center; }
.melon-stage.bursting .melon-scatter .ck { animation: scatter 0.7s var(--ease-out); }
.melon-scatter .ck:nth-child(1) { --tx: -64px; --ty: -30px; --rot: -24deg; }
.melon-scatter .ck:nth-child(2) { --tx: 58px;  --ty: -44px; --rot: 18deg; }
.melon-scatter .ck:nth-child(3) { --tx: 74px;  --ty: 20px;  --rot: 30deg; }
.melon-scatter .ck:nth-child(4) { --tx: -50px; --ty: 40px;  --rot: -16deg; }
.melon-scatter .ck:nth-child(5) { --tx: 8px;   --ty: -74px; --rot: 8deg; }
@keyframes scatter {
  0%   { opacity: 0; transform: translate(0,0) rotate(0) scale(0.6); }
  30%  { opacity: 1; transform: translate(calc(var(--tx)*0.6), calc(var(--ty)*0.6)) rotate(var(--rot)) scale(1); }
  70%  { opacity: 1; transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.95); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.85); }
}

/* a "done" chip pops out of the slice on each bite — one bite, one task done */
.bite-chip { position: absolute; z-index: 3; top: 40%; left: 56%; margin: -16px 0 0 -16px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rind); color: #fff; box-shadow: 0 10px 22px var(--rind-15);
  opacity: 0; transform: scale(0.5); pointer-events: none; }
.bite-chip svg { width: 18px; height: 18px; }
.bite-chip.pop { animation: chipPop 0.95s var(--ease-spring); }
@keyframes chipPop {
  0%   { opacity: 0; transform: translateY(0) scale(0.4); }
  25%  { opacity: 1; transform: translateY(-12px) scale(1); }
  70%  { opacity: 1; transform: translateY(-18px) scale(1); }
  100% { opacity: 0; transform: translateY(-34px) scale(0.85); }
}

.melon-hint { position: absolute; z-index: 3; bottom: 7%; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pith); padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--mist); border: 0.75px solid var(--whisper); white-space: nowrap;
  box-shadow: var(--elev-rest); transition: opacity 0.4s, transform 0.4s; }
.melon-stage.tasted .melon-hint { opacity: 0; transform: translateX(-50%) translateY(6px);
  pointer-events: none; }

.melon-slogan { position: absolute; bottom: -9%; left: 0; right: 0; text-align: center;
  font-family: var(--font-display); font-style: italic; color: var(--pith); font-size: 0.95rem; }

/* ============================================================================
   FEATURE SECTIONS — alternating two-column (capture / voice / sync)
   ========================================================================== */
.feature { display: grid; gap: clamp(2rem, 1rem + 5vw, 5rem); align-items: center;
  grid-template-columns: 1fr; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; }
  .feature--flip .feature__media { order: -1; } }
.feature__body h2 { font-size: var(--t-title); margin-block: 8px 14px; }
.feature__body p { color: var(--pith); margin: 0 0 var(--sp-lg); font-size: var(--t-body); }
.feature__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.feature__list li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-small); }
.feature__list .tick { color: var(--rind); flex: none; margin-top: 2px; }
.feature__media { display: grid; place-items: center; }

/* a soft "device card" panel that holds a motion graphic */
.panel {
  position: relative; width: min(100%, 420px); border-radius: var(--r-lg);
  background: var(--mist); border: 0.75px solid var(--whisper);
  box-shadow: var(--elev-card); padding: var(--sp-xl); overflow: hidden;
}
.panel::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent); pointer-events: none; }

/* ---- task card atom (reused across infographics) --------------------- */
.tcard {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  background: var(--paper); border: 0.75px solid var(--whisper); border-radius: var(--r-md);
  box-shadow: var(--elev-rest);
}
.tcard + .tcard { margin-top: 10px; }
.tcard__ring { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--whisper);
  flex: none; position: relative; }
.tcard__ring.done { border-color: var(--rind); background: var(--rind); }
.tcard__ring.done::after { content: ""; position: absolute; inset: 0;
  background: no-repeat center/10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E"); }
.tcard__txt { flex: 1; min-width: 0; }
.tcard__title { font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.tcard__meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--pith); margin-top: 3px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.03em; padding: 2px 8px;
  border-radius: var(--r-pill); background: var(--flesh-08); color: var(--flesh); }
.chip--rind { background: var(--rind-15); color: var(--rind); }
.chip--gold { background: var(--gold-30); color: var(--gold); }

/* ============================================================================
   1) SMART CAPTURE — record pill + waveform → split into tasks (plays once)
   ========================================================================== */
.record-pill {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--flesh); color: #fff; box-shadow: 0 10px 26px var(--flesh-35);
  width: fit-content; margin-inline: auto;
}
.record-pill .mic { width: 18px; height: 18px; }
.record-pill .rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .record-pill .rec-dot { animation: blink 1.1s steps(2,end) infinite; }
}
@keyframes blink { 50% { opacity: 0.2; } }

.waveform { display: flex; align-items: center; justify-content: center; gap: 4px; height: 56px;
  position: relative; margin: var(--sp-lg) auto; width: fit-content; }
.waveform .bar { width: 5px; border-radius: var(--r-pill); height: 30%;
  background: linear-gradient(180deg, var(--flesh), var(--rind-cool)); }
@media (prefers-reduced-motion: no-preference) {
  .waveform .bar { animation: wave 1.1s var(--ease-standard) infinite; }
  .waveform .bar:nth-child(1){animation-delay:-0.9s}
  .waveform .bar:nth-child(2){animation-delay:-0.2s}
  .waveform .bar:nth-child(3){animation-delay:-0.6s}
  .waveform .bar:nth-child(4){animation-delay:-0.1s}
  .waveform .bar:nth-child(5){animation-delay:-0.75s}
  .waveform .bar:nth-child(6){animation-delay:-0.35s}
  .waveform .bar:nth-child(7){animation-delay:-0.5s}
  .waveform .bar:nth-child(8){animation-delay:-0.15s}
  .waveform .bar:nth-child(9){animation-delay:-0.8s}
}
@keyframes wave { 0%, 100% { height: 22%; } 50% { height: 100%; } }

.split-arrow { display: grid; place-items: center; color: var(--pith); margin: 6px 0; }

/* the three resulting tasks appear once, in sequence, when the panel enters view */
.capture-out .wmcard { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .capture-demo .capture-out .wmcard { opacity: 0; }
  .capture-demo.playing .capture-out .wmcard { animation: popInStay 0.6s var(--ease-spring) both; }
  .capture-demo.playing .capture-out .wmcard:nth-child(1) { animation-delay: 0.45s; }
  .capture-demo.playing .capture-out .wmcard:nth-child(2) { animation-delay: 0.70s; }
  .capture-demo.playing .capture-out .wmcard:nth-child(3) { animation-delay: 0.95s; }
}
/* a phone-screen-like surface (paper) that holds real WMTaskCards (mist),
   so the cards read exactly as they do in the app's list. */
.demo-screen { width: min(100%, 420px); margin-inline: auto; padding: var(--sp-xl);
  background: var(--paper); border: 0.75px solid var(--whisper); border-radius: var(--r-lg);
  box-shadow: var(--elev-card); }
.demo-screen .wmstack { gap: 9px; }
.wmcard__due { display: flex; align-items: center; gap: 6px; margin-top: 6px;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--pith); }
.wmcard__due svg { width: 12px; height: 12px; flex: none; }
@keyframes popInStay {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================================
   2) AI POLISH — centered card; raw line on the left, fields fill in once
   ========================================================================== */
.polish-stage { display: flex; justify-content: center; width: 100%; }
/* raw spoken/typed line → AI orb → the shaped real task card */
.polish-input { display: flex; align-items: center; gap: 13px; margin-bottom: var(--sp-sm); }
.polish-stage .wmcard { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .polish-stage .wmcard { opacity: 0; }
  .polish-stage.playing .wmcard { animation: popInStay 0.6s var(--ease-spring) 0.5s both; }
}
.polish-card { width: min(100%, 460px); background: var(--mist); border: 0.75px solid var(--whisper);
  border-radius: var(--r-lg); box-shadow: var(--elev-card); padding: var(--sp-xl);
  position: relative; overflow: hidden; }
.polish-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent); pointer-events: none; }
.polish-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: var(--sp-lg);
  text-align: left; }
.polish-card__raw { font-family: var(--font-mono); font-size: 0.82rem; color: var(--pith);
  font-style: italic; line-height: 1.4; }

.ai-badge { width: 52px; height: 52px; border-radius: 50%; position: relative; flex: none; }
.ai-badge .orb { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--flesh), var(--gold), var(--rind), var(--rind-cool), var(--flesh)); }
@media (prefers-reduced-motion: no-preference) { .ai-badge .orb { animation: spin 6s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-badge .core { position: absolute; inset: 6px; border-radius: 50%; background: var(--mist);
  display: grid; place-items: center; }
.ai-badge .core svg { width: 22px; height: 22px; color: var(--gold); }
.ai-badge .halo { position: absolute; inset: -10px; border-radius: 50%; background: var(--gold-30);
  filter: blur(10px); z-index: -1; }
@media (prefers-reduced-motion: no-preference) { .ai-badge .halo { animation: breathe 2.5s var(--ease-standard) infinite alternate; } }
@keyframes breathe { from { opacity: 0.32; } to { opacity: 0.7; } }

.polish-fields { display: grid; gap: 8px; }
.polish-row { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono);
  font-size: 0.74rem; color: var(--pith); opacity: 1; }
.polish-row .k { width: 72px; color: var(--pith); }
.polish-row .v { padding: 3px 10px; border-radius: var(--r-pill); background: var(--pulp);
  color: var(--ink); border: 0.75px solid var(--whisper); }
.polish-row .v--prio { background: var(--flesh-08); color: var(--flesh); border-color: var(--flesh-15); }
@media (prefers-reduced-motion: no-preference) {
  .polish-stage.playing .polish-row { animation: fieldIn 0.55s var(--ease-spring) both; }
  .polish-stage.playing .polish-row:nth-child(1) { animation-delay: 0.25s; }
  .polish-stage.playing .polish-row:nth-child(2) { animation-delay: 0.45s; }
  .polish-stage.playing .polish-row:nth-child(3) { animation-delay: 0.65s; }
  .polish-stage.playing .polish-row:nth-child(4) { animation-delay: 0.85s; }
}
@keyframes fieldIn { from { opacity: 0.35; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ============================================================================
   3) FIVE WAYS TO TRACK — bento grid (5 items, 5 cells), hover to explore
   ========================================================================== */
.bento { display: grid; gap: clamp(10px, 1vw, 16px);
  grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(118px, 13vw, 158px); }
.bento__cell {
  background: var(--mist); border: 0.75px solid var(--whisper); border-radius: var(--r-lg);
  padding: var(--sp-lg) var(--sp-xl); display: flex; flex-direction: column;
  justify-content: space-between; gap: var(--sp-md); overflow: hidden; position: relative;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-standard),
              border-color 0.3s var(--ease-standard);
}
.bento__cell:hover, .bento__cell:focus-visible {
  transform: translateY(-4px); box-shadow: var(--elev-card); border-color: var(--flesh-15);
  outline: none;
}
.bento__cell h4 { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--pith); margin: 0; }
.bento__viz { display: flex; align-items: center; flex: 1; }

.bento__cell--percent { grid-column: span 3; grid-row: span 2;
  background: radial-gradient(120% 120% at 82% 0%, var(--flesh-15), transparent 60%), var(--mist); }
.bento__cell--count    { grid-column: span 3; }
.bento__cell--checklist{ grid-column: span 3; }
.bento__cell--stages   { grid-column: span 4;
  background: linear-gradient(120deg, var(--rind-15), transparent 62%), var(--mist); }
.bento__cell--notes    { grid-column: span 2; }
.bento__cell--percent .bento__viz { justify-content: center; }

@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .bento__cell { grid-column: span 1 !important; grid-row: auto !important; min-height: 132px; }
  .bento__cell--percent { grid-column: span 2 !important; }
}

/* percent ring — fills once when the grid enters; deepens on hover */
.ring { --p: 0; width: 38px; height: 38px; border-radius: 50%; flex: none; position: relative;
  background: conic-gradient(var(--flesh) calc(var(--p) * 1%), var(--whisper) 0);
  display: grid; place-items: center; transition: --p 0.9s var(--ease-standard); }
.ring::after { content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--mist); }
.ring-wrap { position: relative; display: inline-grid; place-items: center; }
.ring-wrap .num { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--ink); font-weight: 600; }
.bento.in .bento__cell--percent .ring { --p: 62; }
.bento__cell--percent:hover .ring, .bento__cell--percent:focus-visible .ring { --p: 84; }
.bento__cell--percent .ring { width: 92px; height: 92px; }
.bento__cell--percent .ring::after { width: 70px; height: 70px; }
.bento__cell--percent .num { font-size: 1.1rem; }

/* count */
.count { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--flesh);
  font-variant-numeric: tabular-nums; }
.count small { font-size: 0.8rem; color: var(--pith); font-family: var(--font-mono); margin-left: 4px; }

/* checklist — second item checks on hover */
.mini-check { display: grid; gap: 7px; width: 100%; }
.mini-check span { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; color: var(--ink); }
.mini-check .box { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--whisper);
  flex: none; transition: background 0.3s, border-color 0.3s; }
.mini-check .done .box { background: var(--rind); border-color: var(--rind); }
.bento__cell--checklist:hover .b .box,
.bento__cell--checklist:focus-visible .b .box { background: var(--rind); border-color: var(--rind); }

/* stages — third stage lights on hover */
.stages { display: flex; align-items: center; gap: 6px; width: 100%; }
.stages .st { flex: 1; height: 6px; border-radius: var(--r-pill); background: var(--whisper);
  transition: background 0.3s; }
.stages .st:nth-child(1), .stages .st:nth-child(2) { background: var(--rind); }
.bento__cell--stages:hover .st:nth-child(3),
.bento__cell--stages:focus-visible .st:nth-child(3) { background: var(--rind); }

/* notes — lines draw in once when the grid enters */
.notes-lines { display: grid; gap: 6px; width: 100%; }
.notes-lines i { height: 6px; border-radius: var(--r-pill); background: var(--whisper); display: block;
  transform-origin: left; }
.notes-lines i:nth-child(1){ width: 90%; } .notes-lines i:nth-child(2){ width: 70%; }
.notes-lines i:nth-child(3){ width: 80%; }
@media (prefers-reduced-motion: no-preference) {
  .bento.in .bento__cell--notes .notes-lines i { animation: typeline 0.6s var(--ease-standard) both; }
  .bento.in .bento__cell--notes .notes-lines i:nth-child(1){ animation-delay: 0.2s; }
  .bento.in .bento__cell--notes .notes-lines i:nth-child(2){ animation-delay: 0.35s; }
  .bento.in .bento__cell--notes .notes-lines i:nth-child(3){ animation-delay: 0.5s; }
}
@keyframes typeline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ============================================================================
   4) VOICE EDIT — speech bubble retimes a task (plays once)
   ========================================================================== */
.voice-demo { display: grid; gap: 14px; }
.bubble { align-self: flex-start; max-width: 80%; padding: 11px 15px; border-radius: 18px 18px 18px 4px;
  background: var(--ink); color: var(--paper); font-size: 0.86rem; box-shadow: var(--elev-card); }
@media (prefers-reduced-motion: no-preference) {
  .voice-screen .bubble { opacity: 0; }
  .voice-screen.playing .bubble { animation: bubbleIn 0.6s var(--ease-spring) both; }
}
.when { position: relative; display: inline-grid; }
.when__from, .when__to { grid-area: 1 / 1; }
.when__to { color: var(--rind); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .when__from { opacity: 0; } .when__to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .voice-screen.playing .when__from { animation: fromOut 0.45s var(--ease-snap) 0.85s both; }
  .voice-screen.playing .when__to   { animation: toIn 0.5s var(--ease-spring) 0.95s both; }
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes fromOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-6px); } }
@keyframes toIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============================================================================
   5) DAILY SUMMARY — a dawn→dusk band (full-width family)
   ========================================================================== */
.band { border-radius: var(--r-xl);
  padding: clamp(2rem, 1.2rem + 4vw, 4rem) clamp(1.5rem, 1rem + 3vw, 3.5rem);
  border: 0.75px solid var(--whisper); display: grid; gap: var(--sp-xxl); align-items: center; }
.band--day { background:
  linear-gradient(135deg,
    color-mix(in srgb, var(--gold-30) 55%, var(--mist)),
    var(--mist) 52%,
    color-mix(in srgb, var(--rind-15) 70%, var(--mist))); }
@media (min-width: 860px) { .band--day { grid-template-columns: 0.92fr 1.08fr; } }
.band__copy h2 { font-size: var(--t-display); margin-bottom: 14px; }
.band__copy p { color: var(--pith); margin: 0; max-width: 40ch; }

/* real daily-summary cards (mirrors WMDailySummarySheet's summary blocks) */
.sumpair { display: grid; gap: var(--sp-md); }
.sumcard { background: var(--paper); border: 0.75px solid var(--whisper); border-radius: var(--r-lg);
  padding: var(--sp-xl); box-shadow: var(--elev-rest); }
.sumcard__head { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.sumcard__icon { color: var(--flesh); display: grid; place-items: center; flex: none; }
.sumcard__icon svg { width: 18px; height: 18px; }
.sumcard__title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.sumcard__provider { margin-left: auto; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--pith); }
.sumcard__line { margin: 0; color: var(--ink); font-size: 0.95rem; line-height: 1.6; }
.sumcard__voice { margin: 11px 0 0; font-family: var(--font-display); font-style: italic;
  color: var(--pith); font-size: 0.95rem; }

.daypair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-md); }
.day { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-lg);
  border: 0.75px solid var(--whisper); background: color-mix(in srgb, var(--paper) 72%, transparent);
  box-shadow: var(--elev-rest); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.day__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.day--am .day__icon { background: var(--gold-30); color: var(--gold); }
.day--pm .day__icon { background: var(--rind-15); color: var(--rind-cool); }
.day__icon svg { width: 22px; height: 22px; }
.day h4 { margin: 0; font-family: var(--font-display); font-size: 1rem; }
.day__lines i { display: block; height: 6px; border-radius: var(--r-pill); background: var(--whisper);
  margin-bottom: 6px; transform-origin: left; }
.day__lines i:nth-child(1){ width: 95%; } .day__lines i:nth-child(2){ width: 75%; }
.day__lines i:nth-child(3){ width: 60%; }
.day__arc { color: var(--pith); opacity: 0.6; display: grid; place-items: center; }
.day__arc svg { width: 100px; height: 34px; }
@media (prefers-reduced-motion: no-preference) {
  .daypair.playing .day__lines i { animation: typeline 0.6s var(--ease-standard) both; }
  .daypair.playing .day--am .day__lines i:nth-child(1){ animation-delay: 0.2s; }
  .daypair.playing .day--am .day__lines i:nth-child(2){ animation-delay: 0.3s; }
  .daypair.playing .day--am .day__lines i:nth-child(3){ animation-delay: 0.4s; }
  .daypair.playing .day--pm .day__lines i:nth-child(1){ animation-delay: 0.6s; }
  .daypair.playing .day--pm .day__lines i:nth-child(2){ animation-delay: 0.7s; }
  .daypair.playing .day--pm .day__lines i:nth-child(3){ animation-delay: 0.8s; }
}
@media (max-width: 620px) {
  .daypair { grid-template-columns: 1fr; }
  .day__arc { transform: rotate(90deg); justify-self: center; }
}

/* ============================================================================
   6) SYNC + WIDGETS — devices + a syncing pulse
   ========================================================================== */
.devices { display: flex; align-items: flex-end; justify-content: center; gap: 18px; position: relative; }
.dev { border: 1.5px solid var(--ink); border-radius: 10px; background: var(--mist); position: relative; }
.dev--phone { width: 58px; height: 116px; border-radius: 12px; }
.dev--pad { width: 96px; height: 124px; }
.dev--mac { width: 150px; height: 96px; border-radius: 8px 8px 2px 2px; }
.dev--mac::after { content: ""; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 180px; height: 8px; border-radius: 0 0 8px 8px; background: var(--ink); }
.dev .scr { position: absolute; inset: 6px; border-radius: 6px;
  background: linear-gradient(160deg, var(--flesh-08), var(--rind-15)); }
/* static "synced / live" indicator above the devices (no perpetual orbit) */
.sync-orbit { position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--rind); box-shadow: 0 0 0 4px var(--rind-15), 0 0 10px var(--rind); }

.widget-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: var(--sp-lg); }
.widget { width: 110px; height: 110px; border-radius: 20px; padding: 12px; background: var(--paper);
  border: 0.75px solid var(--whisper); box-shadow: var(--elev-card); }
.widget h5 { margin: 0 0 10px; font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--pith); }
/* Today / List widgets: real task rows (checkbox + title bar) */
.widget .wmini { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.widget .wbox { width: 11px; height: 11px; border-radius: 3.5px; border: 1.5px solid var(--whisper); flex: none; }
.widget .wbox--done { background: var(--rind); border-color: var(--rind); }
.widget .wmini i { height: 5px; border-radius: var(--r-pill); background: var(--whisper); flex: 1; }
.widget .wmini i.muted { opacity: 0.45; }
/* Board widget: three kanban columns with task chips */
.widget .wcols { display: flex; gap: 5px; }
.widget .wcol { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.widget .wcol span { height: 16px; border-radius: 5px; background: var(--mist); border: 0.75px solid var(--whisper); }
.widget .wcol span.accent { background: var(--flesh-15); border-color: var(--flesh-15); }

/* ============================================================================
   POCKET — two overlapping phone frames; graceful branded placeholder.
   A real PNG dropped in /assets/screenshots/ auto-swaps in (see animations.js).
   ========================================================================== */
.pocket__frames { display: flex; justify-content: center; align-items: flex-end; position: relative; }
.phone { flex: none; width: 215px; border-radius: 40px; padding: 9px; background: var(--ink);
  box-shadow: var(--elev-lifted); position: relative; }
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 20px; border-radius: var(--r-pill); background: var(--ink); z-index: 3; }
.phone__screen { border-radius: 30px; overflow: hidden; aspect-ratio: 9 / 19.5;
  background: linear-gradient(165deg, var(--mist), var(--pulp)); display: grid; place-items: center; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__placeholder { display: grid; place-items: center; gap: 12px; text-align: center; padding: 24px;
  color: var(--pith); font-family: var(--font-display); font-style: italic; font-size: 0.95rem; }
.phone__placeholder img { opacity: 0.95; filter: drop-shadow(0 6px 14px var(--shadow)); }
.phone--lead { z-index: 2; transform: rotate(-4deg); }
.phone--rear { z-index: 1; transform: translateY(26px) rotate(5deg) scale(0.92); margin-left: -56px; }
@media (max-width: 520px) { .phone { width: 168px; } .phone--rear { margin-left: -44px; } }
@media (prefers-reduced-motion: no-preference) {
  .phone--lead { transition: transform 0.4s var(--ease-spring); }
  .pocket:hover .phone--lead { transform: rotate(-2deg) translateY(-8px); }
}

/* ============================================================================
   CTA BAND
   ========================================================================== */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(2.5rem, 1.5rem + 5vw, 5rem) var(--screen-h);
  background:
    radial-gradient(120% 120% at 80% 0%, var(--flesh-15), transparent 55%),
    radial-gradient(120% 120% at 0% 100%, var(--rind-15), transparent 55%),
    var(--mist);
  border: 0.75px solid var(--whisper); text-align: center;
}
.cta h2 { font-size: var(--t-display); max-width: 18ch; margin: 0 auto 16px; }
.cta p { color: var(--pith); max-width: 46ch; margin: 0 auto var(--sp-xl); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.cta__melon { width: 78px; margin: 0 auto var(--sp-lg); }

/* ============================================================================
   APPLE INTELLIGENCE banner — sits above the privacy row
   ========================================================================== */
.ai-feature {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 28px);
  margin-bottom: var(--sp-xl); padding: clamp(var(--sp-lg), 3vw, var(--sp-xl));
  border-radius: var(--r-lg); border: 0.75px solid var(--whisper);
  background:
    radial-gradient(130% 130% at 0% 0%, var(--gold-30), transparent 56%),
    radial-gradient(130% 130% at 100% 100%, var(--rind-15), transparent 56%),
    var(--mist);
}
.ai-feature .ai-badge { width: 60px; height: 60px; }
.ai-feature__txt h3 { font-family: var(--font-display); letter-spacing: -0.01em;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); margin: 8px 0; }
.ai-feature__txt p { color: var(--pith); margin: 0; font-size: var(--t-body); max-width: 64ch; }
@media (max-width: 640px) { .ai-feature { flex-direction: column; text-align: center; } }

/* ============================================================================
   BYOK — bring-your-own-key config card (indigo accent, mirrors BYOKDetailView)
   ========================================================================== */
.mono-label--byok { color: var(--byok); }
.feature--byok .feature__list .tick { color: var(--byok); }

.byok-card { width: min(100%, 440px); background: var(--mist); border: 0.75px solid var(--whisper);
  border-top: 2px solid var(--byok); border-radius: var(--r-lg); box-shadow: var(--elev-card);
  padding: var(--sp-xl); position: relative; overflow: hidden; }
.byok-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 38%;
  background: radial-gradient(120% 120% at 0% 0%,
    color-mix(in srgb, var(--byok) 14%, transparent), transparent 60%); pointer-events: none; }
.byok-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: var(--sp-lg);
  position: relative; }
.byok-badge { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, var(--byok) 14%, transparent); color: var(--byok); }
.byok-badge svg { width: 20px; height: 20px; }
.byok-card__title { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em;
  font-weight: 600; color: var(--ink); }
.byok-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.64rem; color: var(--rind);
  background: var(--rind-15); padding: 4px 10px; border-radius: var(--r-pill); }
.byok-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rind); }
.byok-fields { display: grid; gap: 8px; }
.byok-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 13px; border-radius: var(--r-md); background: var(--paper); border: 0.75px solid var(--whisper); }
.byok-k { font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--pith); }
.byok-v { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .byok-card.playing .byok-row { animation: fieldIn 0.5s var(--ease-spring) both; }
  .byok-card.playing .byok-row:nth-child(1) { animation-delay: 0.15s; }
  .byok-card.playing .byok-row:nth-child(2) { animation-delay: 0.30s; }
  .byok-card.playing .byok-row:nth-child(3) { animation-delay: 0.45s; }
  .byok-card.playing .byok-status { animation: fieldIn 0.5s var(--ease-spring) 0.6s both; }
}

/* ============================================================================
   WMTaskCard — faithful recreation of the app's task card (WMTaskCard.swift):
   leading progress control (per type) · title · folded value · status pip · chevron.
   Mist cards on the paper page, exactly like the app's list.
   ========================================================================== */
.wmstack { display: grid; gap: 10px; width: min(100%, 460px); }
.wmcard { display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  background: var(--mist); border: 0.75px solid var(--whisper); border-radius: 14px;
  box-shadow: var(--elev-rest); }
.wmcard__lead { width: 36px; flex: none; display: grid; place-items: center; }
.wmcard__body { flex: 1; min-width: 0; }
.wmcard__title { font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.wmcard__note { display: flex; align-items: flex-start; gap: 7px; margin-top: 5px; }
.wmcard__note .rule { width: 2px; height: 13px; background: var(--pith); opacity: 0.45; margin-top: 2px; flex: none; }
.wmcard__note .txt { font-family: var(--font-display); font-style: italic; font-size: 13px; color: var(--pith); line-height: 1.35; }
.wmcard__trail { display: flex; align-items: center; gap: 7px; flex: none; }
.wm-folded { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--accent, var(--flesh)); }
.wm-pip { width: 11px; height: 11px; border-radius: 50%; flex: none;
  border: 1px solid color-mix(in srgb, var(--pith) 55%, transparent); }
.wm-pip--prog { border: 0; background: none; color: var(--rind); display: grid; place-items: center; }
.wm-pip--prog svg { width: 12px; height: 12px; }
.wm-chev { color: color-mix(in srgb, var(--pith) 60%, transparent); display: grid; place-items: center; width: 16px; }
.wm-chev svg { width: 11px; height: 11px; transform: rotate(-90deg); }

/* leading controls */
.wm-ring { position: relative; width: 32px; height: 32px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--whisper); display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--ink); }
.wm-ring .u { position: absolute; font-size: 6px; transform: translateY(9px);
  color: color-mix(in srgb, var(--ink) 55%, transparent); }
.wm-ring__arc { position: absolute; inset: -1px; border-radius: 50%;
  background: conic-gradient(var(--accent, var(--flesh)) calc(var(--p, 0) * 1%), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 2.5px), #000 calc(100% - 2.5px));
          mask: radial-gradient(farthest-side, #0000 calc(100% - 2.5px), #000 calc(100% - 2.5px)); }
.wm-tile { width: 42px; height: 28px; border-radius: 8px; background: var(--paper);
  border: 0.75px solid var(--whisper); display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--accent, var(--ink)); }
.wm-iconbtn { width: 32px; height: 32px; border-radius: 50%; background: var(--paper);
  border: 1px solid var(--whisper); display: grid; place-items: center; color: var(--ink); }
.wm-iconbtn svg { width: 14px; height: 14px; }
.wm-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--whisper); flex: none; }
/* priority dots, like WMPriorityDots */
.wm-prio { display: inline-flex; gap: 3px; align-items: center; }
.wm-prio i { width: 5px; height: 5px; border-radius: 50%; background: var(--flesh); }

/* ============================================================================
   THE MAP — organic project orbs + list rings + vines (mirrors StatusGraphView)
   Motion is the app's: slow, "alive but never restless" breathing.
   ========================================================================== */
.panel--map { padding: var(--sp-lg); }
.map-svg { width: 100%; height: auto; display: block; }
.map-orb { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .map-orb { animation: orbBreath 8s var(--ease-standard) infinite; animation-delay: var(--d, 0s); }
}
@keyframes orbBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.map-orb__title { fill: #fff; font-family: var(--font-display); font-weight: 600; font-size: 12px;
  text-anchor: middle; dominant-baseline: middle; }
.map-orb__count { fill: rgba(255,255,255,0.72); font-family: var(--font-mono); font-size: 9px;
  text-anchor: middle; dominant-baseline: middle; }
.map-badge text { fill: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 9px;
  text-anchor: middle; }

/* ============================================================================
   DIARY / PROGRESS LOG — timeline rail (mirrors TaskTimelineView)
   ========================================================================== */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 14px; top: 16px; bottom: 16px;
  width: 2px; background: var(--whisper); border-radius: 1px; }
.tl-row { position: relative; display: flex; gap: 14px; padding-bottom: var(--sp-lg); }
.tl-row--last { padding-bottom: 0; }
.tl-badge { position: relative; z-index: 1; width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: grid; place-items: center; box-shadow: 0 0 0 4px var(--mist); }
.tl-badge svg { width: 15px; height: 15px; }
.tl-badge--note   { background: var(--flesh-15);  color: var(--flesh); }
.tl-badge--prog   { background: var(--rind-15);   color: var(--rind); }
.tl-badge--status { background: color-mix(in srgb, var(--rind-cool) 18%, transparent); color: var(--rind-cool); }
.tl-badge--check  { background: var(--rind-15);   color: var(--rind); }
.tl-badge--stage  { background: var(--gold-30);   color: var(--gold); }
.tl-body { flex: 1; min-width: 0; padding-top: 1px; }
.tl-evt { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tl-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--pith); }
.tl-time { font-family: var(--font-mono); font-size: 0.66rem; color: var(--pith); flex: none; }
/* note = the user's own voice → flesh-tinted bubble */
.tl-note { background: var(--flesh-08); border: 0.75px solid var(--flesh-15);
  border-radius: 4px 14px 14px 14px; padding: 10px 13px; }
.tl-note__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.tl-you { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--flesh); }
.tl-note p { margin: 0; font-size: 0.9rem; color: var(--ink); line-height: 1.45; }
/* progress event */
.tl-prog { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.tl-prog-bar { flex: 1; height: 6px; border-radius: var(--r-pill); background: var(--whisper); overflow: hidden; }
.tl-prog-bar i { display: block; height: 100%; width: 70%; border-radius: var(--r-pill);
  background: var(--rind); transform-origin: left; }
.tl-prog-text { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink); flex: none; }
/* status pill */
.tl-pill { display: inline-block; margin-top: 6px; font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--rind-cool); background: color-mix(in srgb, var(--rind-cool) 14%, transparent);
  padding: 3px 11px; border-radius: var(--r-pill); }
/* checklist row */
.tl-check { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.86rem; color: var(--ink); }
.tl-check__box { width: 15px; height: 15px; border-radius: 4px; background: var(--rind); flex: none;
  position: relative; }
.tl-check__box::after { content: ""; position: absolute; inset: 0;
  background: no-repeat center/9px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E"); }
/* stage row */
.tl-stage { margin-top: 6px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .panel--diary .tl-row { opacity: 0; }
  .panel--diary.playing .tl-row { animation: tlIn 0.5s var(--ease-out) both; }
  .panel--diary.playing .tl-row:nth-child(1) { animation-delay: 0.10s; }
  .panel--diary.playing .tl-row:nth-child(2) { animation-delay: 0.26s; }
  .panel--diary.playing .tl-row:nth-child(3) { animation-delay: 0.42s; }
  .panel--diary.playing .tl-row:nth-child(4) { animation-delay: 0.58s; }
  .panel--diary.playing .tl-row:nth-child(5) { animation-delay: 0.74s; }
}
@keyframes tlIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
