/* Poffli's web home. Colours, type and radii mirror apps/mobile/theme.json. */

@font-face { font-family: DynaPuff; src: url(/fonts/DynaPuff.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: Fredoka; src: url(/fonts/Fredoka.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Nunito; src: url(/fonts/Nunito.woff2) format('woff2'); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: Caveat; src: url(/fonts/Caveat.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
/* Metric-matched fallbacks keep the layout still while fonts arrive. */
@font-face { font-family: PuffFallback; src: local('Arial Rounded MT Bold'), local('Arial'); size-adjust: 104%; ascent-override: 92%; }
@font-face { font-family: BodyFallback; src: local('Arial'); size-adjust: 101%; ascent-override: 100%; }

:root {
  --canvas: #FFF1F4; --surface: #FFFFFF; --ink: #2A1736; --muted: #6A5375;
  --primary: #6B3FE0; --on-primary: #FFFFFF; --primary-deep: #4B23B5;
  --lilac: #E6DAFF; --peach: #FFC9B4; --outline: #EBCFDD; --edge: #F1D2E0; --drop: #E5B8CC;
  --rose-ink: #B4516A; --teal-ink: #3A7C78; --blue-ink: #52729D;
  --sun: #FFD84D; --mint: #B5EED6; --bubblegum: #FFB6D2; --blue-soft: #CFE0F7;
  --on-sticker: #2A1736;
  --wall-a: #E6DAFF; --wall-b: #FFD3E2;
  --radius-control: 20px; --radius-card: 28px;
  --display: Fredoka, PuffFallback, ui-rounded, system-ui, sans-serif;
  --heading: DynaPuff, PuffFallback, ui-rounded, system-ui, sans-serif;
  --body: Nunito, BodyFallback, ui-rounded, system-ui, sans-serif;
  --hand: Caveat, 'Bradley Hand', cursive;
  --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017, 1.077 22.7%, 1.104 25.2%, 1.101 27.2%, 1.066 31.4%, 1.012 37.2%, .984 42.2%, .996 55%, 1.002 69%, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1C1226; --surface: #2A1D3A; --ink: #FFF0F6; --muted: #CDB6D8;
    --primary: #C6A6FF; --on-primary: #2A1352; --primary-deep: #8E6AD8;
    --lilac: #44306C; --peach: #FFB49A; --outline: #3A2A4C; --edge: #3F2D58; --drop: #110A19;
    --rose-ink: #F4A5BB; --teal-ink: #94D3C9; --blue-ink: #A9C6F1;
    --sun: #F2C94C; --mint: #86DCBC; --bubblegum: #F7A3C6; --blue-soft: #A9C6F1;
    --wall-a: #3B2A5E; --wall-b: #5A2E4E;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  background-color: var(--canvas);
  background-image: radial-gradient(var(--outline) 1.7px, transparent 1.9px);
  background-size: 22px 22px; background-position: 11px 11px;
  color: var(--ink); font: 400 1.125rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--heading); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 2rem + 3.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 1.6rem + 2vw, 3.1rem); }
h3 { font-size: 1.4rem; font-weight: 500; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 12px; }
.sprite { position: absolute; width: 0; height: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--surface); padding: 10px 16px; border-radius: 12px; font-weight: 800; }
.skip:focus { top: 12px; }
.hand { font-family: var(--hand); font-size: 1.6em; line-height: 1; color: var(--rose-ink); }

/* Candy buttons: chunky fill with a hard shadow that squishes on press. */
.candy {
  --fill: var(--primary); --on: var(--on-primary); --deep: var(--primary-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 26px; border: 0; border-radius: var(--radius-control);
  background: var(--fill); color: var(--on); text-decoration: none; cursor: pointer;
  font: 600 1.15rem/1 var(--display); letter-spacing: .01em;
  box-shadow: 0 5px 0 var(--deep), 0 12px 24px -10px color-mix(in srgb, var(--deep) 70%, transparent);
  transition: transform .25s var(--spring), box-shadow .2s ease;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.candy svg { width: 22px; height: 22px; margin-top: -3px; }
.candy:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 7px 0 var(--deep), 0 16px 28px -10px color-mix(in srgb, var(--deep) 70%, transparent); }
.candy:active { transform: translateY(4px) scale(.98); box-shadow: 0 1px 0 var(--deep); transition-duration: .06s; }
.candy.small { min-height: 44px; padding: 8px 18px; font-size: 1rem; box-shadow: 0 4px 0 var(--deep); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, env(safe-area-inset-left), calc((100% - 1152px) / 2));
}
.top::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1.5px solid transparent; transition: border-color .3s;
}
.top.scrolled::before { border-color: var(--edge); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.5rem var(--heading); }
.brand img { border-radius: 12px; box-shadow: 0 3px 0 var(--drop); }
.top nav { display: flex; gap: 6px; }
.top nav a { text-decoration: none; font-weight: 800; font-size: .98rem; color: var(--muted); padding: 8px 12px; border-radius: 14px; transition: background .2s, color .2s; }
.top nav a:hover { background: var(--surface); color: var(--ink); }
@media (max-width: 860px) { .top nav { display: none; } }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 40px 24px 96px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; margin-bottom: 22px;
  background: var(--surface); border: 2px solid var(--edge); border-radius: 999px; box-shadow: 0 3px 0 var(--drop);
  font: 500 1.05rem var(--display); color: var(--muted);
}
.chip span { color: var(--rose-ink); font-family: var(--heading); }
.scribble { position: relative; white-space: nowrap; color: var(--primary); }
.scribble svg { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .32em; overflow: visible; }
.scribble path { fill: none; stroke: var(--sun); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { .scribble path { mix-blend-mode: normal; opacity: .55; } }
.lede { margin-top: 22px; font-size: 1.24rem; color: var(--muted); max-width: 33rem; }
.lede b { color: var(--ink); font-weight: 800; white-space: nowrap; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; }
.soon { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--muted); font-size: 1rem; }
.soon .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 40%, transparent); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; font-weight: 800; font-size: .98rem; color: var(--muted); }
.trust span { color: var(--rose-ink); margin-right: 4px; font-family: var(--heading); }

/* The try-it stage: your paper, their phone, and Puff in between. */
.stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 236px; align-items: center; gap: 0; min-height: 560px; }
.paper-card {
  position: relative; z-index: 2; width: min(100%, 380px); justify-self: end; margin-right: -28px;
  padding: 16px; background: var(--surface); border: 2.5px solid var(--edge); border-radius: var(--radius-card);
  box-shadow: 0 6px 0 var(--drop), 0 30px 60px -30px color-mix(in srgb, var(--primary) 45%, transparent);
  rotate: -2.5deg;
}
.tape {
  position: absolute; width: 84px; height: 24px; opacity: .85; z-index: 3; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--surface) 60%, transparent) 2px, transparent 2.5px) 0 50% / 12px 100% var(--bubblegum);
  clip-path: polygon(0 0, 100% 0, 97% 16%, 100% 33%, 97% 50%, 100% 66%, 97% 83%, 100% 100%, 0 100%, 3% 83%, 0 66%, 3% 50%, 0 33%, 3% 16%);
}
.tape-a { top: -12px; right: 26px; rotate: 18deg; }
.tape-b { bottom: -10px; left: -14px; rotate: 24deg; background-color: var(--mint); }
.paper-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--lilac); font: 500 .98rem var(--display); }
.pill span[aria-hidden] { color: var(--rose-ink); }
.face-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--peach); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--rose-ink) 30%, transparent); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--edge); background: var(--surface); box-shadow: 0 3px 0 var(--drop); cursor: pointer; transition: transform .2s var(--spring); }
.icon-btn svg { width: 20px; }
.icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--drop); }
.board {
  position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden;
  background: radial-gradient(color-mix(in srgb, var(--outline) 80%, transparent) 1.4px, transparent 1.6px) 9px 9px / 18px 18px, #FFFBF4;
  border: 2px dashed var(--edge); touch-action: none; cursor: crosshair;
}
.board canvas { width: 100%; height: 100%; }
.board .placed { position: absolute; width: 22%; aspect-ratio: 1; translate: -50% -50%; cursor: grab; touch-action: none; user-select: none; -webkit-user-drag: none; animation: pop .5s var(--spring) both; }
.board .placed:active { cursor: grabbing; }
.nudge {
  position: absolute; left: 12%; top: 18%; pointer-events: none; font: 600 1.7rem/1 var(--hand); color: var(--rose-ink); rotate: -6deg;
  transition: opacity .3s, scale .3s;
}
.nudge svg { width: 54px; margin: 2px 0 0 58%; overflow: visible; }
.nudge path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nudge.gone { opacity: 0; scale: .9; }
.tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 14px 2px; }
.pens { display: flex; gap: 6px; }
.pens button {
  width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface); background: var(--c); cursor: pointer; padding: 0;
  box-shadow: 0 0 0 2px var(--edge); transition: transform .25s var(--spring), box-shadow .2s;
}
.pens button[aria-checked='true'] { transform: scale(1.18); box-shadow: 0 0 0 3px var(--c); }
.sticker-tray { display: flex; gap: 2px; }
.sticker-tray button { width: 44px; height: 44px; padding: 2px; border: 0; background: none; cursor: pointer; border-radius: 12px; transition: transform .3s var(--spring); }
.sticker-tray button:hover { transform: rotate(-8deg) scale(1.12); }
.sticker-tray button:active { transform: scale(.9); }
.update { width: 100%; }
.update.sent { --fill: var(--mint); --on: var(--on-sticker); --deep: color-mix(in srgb, var(--mint) 60%, #1b4d3d); }

.phone {
  position: relative; z-index: 1; width: 236px; aspect-ratio: 236 / 470; padding: 10px;
  border-radius: 46px; background: var(--ink); rotate: 4deg;
  box-shadow: 0 8px 0 color-mix(in srgb, var(--ink) 70%, var(--drop)), 0 40px 60px -30px color-mix(in srgb, var(--ink) 60%, transparent);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 37px; overflow: hidden; padding: 16px 16px;
  background: radial-gradient(rgb(255 255 255 / .35) 1.4px, transparent 1.6px) 0 0 / 16px 16px, linear-gradient(165deg, var(--wall-a), var(--wall-b));
}
.status { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 14px; font: 700 .8rem var(--display); color: var(--on-sticker); }
@media (prefers-color-scheme: dark) { .status { color: #fff; } }
.bars { display: flex; gap: 2px; align-items: end; }
.bars i { width: 3px; background: currentColor; border-radius: 2px; }
.bars i:nth-child(1) { height: 5px; } .bars i:nth-child(2) { height: 8px; } .bars i:nth-child(3) { height: 11px; }
.widget {
  position: relative; aspect-ratio: 1; border-radius: 26px; background: #FFFBF4; overflow: hidden;
  box-shadow: 0 10px 22px -10px rgb(42 23 54 / .45);
}
.widget canvas { width: 100%; height: 100%; }
.widget-label { position: absolute; left: 10px; bottom: 9px; padding: 3px 9px; border-radius: 999px; background: rgb(255 255 255 / .9); font: 600 .74rem var(--display); color: #2A1736; }
.widget-label span { color: #B4516A; }
.widget.landed { animation: land .8s var(--spring); }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 12px; margin-top: 18px; }
.apps i { aspect-ratio: 1; border-radius: 13px; background: var(--c); opacity: .85; box-shadow: inset 0 -3px 0 rgb(0 0 0 / .06); }
.apps .poffli-app { opacity: 1; overflow: hidden; }
.toast {
  position: absolute; left: 10px; right: 10px; top: 12px; padding: 10px 12px; border-radius: 18px;
  background: rgb(255 255 255 / .93); color: #2A1736; font: 700 .8rem/1.3 var(--body); box-shadow: 0 10px 24px -12px rgb(42 23 54 / .5);
  display: flex; gap: 8px; align-items: center; translate: 0 -140%; transition: translate .5s var(--spring);
}
.toast img { width: 26px; height: 26px; border-radius: 7px; }
.toast.show { translate: 0 0; }
.stage-puff { position: absolute; left: -6px; bottom: -40px; z-index: 3; width: 150px; }
.puff { width: 100%; aspect-ratio: 1; cursor: pointer; touch-action: manipulation; }
.bubble {
  position: absolute; left: 70%; top: 2%; white-space: nowrap; padding: 6px 12px; border-radius: 16px 16px 16px 4px;
  background: var(--surface); border: 2px solid var(--edge); box-shadow: 0 3px 0 var(--drop);
  font: 600 1.35rem/1 var(--hand); color: var(--rose-ink); opacity: 0; scale: .6; transform-origin: 0 100%;
  transition: opacity .2s, scale .45s var(--spring); pointer-events: none;
}
.bubble.show { opacity: 1; scale: 1; }
.stage-puff .bubble { left: auto; right: 72%; top: -4%; border-radius: 16px 16px 4px 16px; transform-origin: 100% 100%; }
.flyer { position: fixed; z-index: 40; pointer-events: none; border-radius: 22px; box-shadow: 0 20px 40px -16px rgb(42 23 54 / .45); }
.burst { position: fixed; z-index: 45; pointer-events: none; font-family: var(--heading); color: var(--rose-ink); }

/* Sections */
section { scroll-margin-top: 80px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.kicker { display: inline-block; margin-bottom: 14px; font: 600 2rem/1 var(--hand); color: var(--rose-ink); rotate: -2deg; }
.how, .for, .plans, .faq { max-width: 1140px; margin: 0 auto; padding: 96px 24px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  position: relative; padding: 28px; background: var(--surface); border: 2.5px solid var(--edge); border-radius: var(--radius-card);
  box-shadow: 0 6px 0 var(--drop);
}
.step:nth-child(1) { rotate: -1.2deg; } .step:nth-child(3) { rotate: 1.2deg; }
.step h3 { margin: 14px 0 8px; }
.step p { color: var(--muted); }
.num {
  position: absolute; top: -18px; left: 24px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--sun); color: var(--on-sticker); font: 600 1.2rem var(--heading); box-shadow: 0 3px 0 color-mix(in srgb, var(--sun) 60%, #6b4b00);
}
.step-art { height: 150px; border-radius: 20px; display: grid; place-items: center; position: relative; overflow: hidden; }
.art-draw { background: color-mix(in srgb, var(--bubblegum) 35%, var(--surface)); }
.art-draw svg { width: 120px; }
.art-draw path { fill: none; stroke: var(--rose-ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.art-draw img { position: absolute; right: 16%; bottom: 10%; rotate: 10deg; }
.art-update { background: color-mix(in srgb, var(--lilac) 70%, var(--surface)); }
.candy.fake { pointer-events: none; }
.art-widget { background: linear-gradient(165deg, var(--wall-a), var(--wall-b)); }
.mini-widget { display: grid; place-items: center; width: 100px; height: 100px; border-radius: 24px; background: #FFFBF4; box-shadow: 0 10px 20px -10px rgb(42 23 54 / .5); }
.together { margin: 56px auto 0; text-align: center; max-width: 680px; font: 500 1.35rem/1.5 var(--display); }
.together .hand { display: block; margin-top: 10px; }

.boops {
  max-width: 1140px; margin: 0 auto; padding: 96px 24px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center;
}
.boops-puff { position: relative; max-width: 380px; justify-self: center; width: 100%; }
.boops-puff::before {
  content: ''; position: absolute; inset: 8% 4% 2%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--peach) 60%, transparent), transparent);
}
.boops-copy > p { margin-top: 16px; color: var(--muted); font-size: 1.2rem; max-width: 34rem; }
.reactions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.reaction {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 18px; cursor: pointer;
  border: 2.5px solid color-mix(in srgb, var(--c) 70%, var(--ink) 12%); border-radius: 18px;
  background: color-mix(in srgb, var(--c) 55%, var(--surface)); color: var(--ink);
  font: 600 1.05rem var(--display); box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 70%, var(--ink) 25%);
  transition: transform .3s var(--spring), box-shadow .15s;
}
.reaction:hover { transform: translateY(-2px) rotate(-1.5deg); }
.reaction:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--c) 70%, var(--ink) 25%); }
.reaction img { width: 28px; height: 28px; }
.hint { margin-top: 22px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  padding: 28px; border-radius: var(--radius-card); background: color-mix(in srgb, var(--c) 32%, var(--surface));
  border: 2.5px solid color-mix(in srgb, var(--c) 60%, var(--edge)); box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 55%, var(--drop));
  transition: transform .4s var(--spring);
}
.card:hover { transform: translateY(-4px) rotate(-1deg); }
.card img { margin-bottom: 14px; transition: transform .5s var(--spring); }
.card:hover img { transform: rotate(-10deg) scale(1.1); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }

.private { padding: 48px 24px; }
.private-card {
  position: relative; max-width: 860px; margin: 0 auto; padding: 56px clamp(24px, 6vw, 64px);
  background: var(--ink); color: var(--canvas); border-radius: 40px;
  box-shadow: 0 8px 0 color-mix(in srgb, var(--ink) 65%, var(--drop));
}
.private-card .kicker { color: var(--bubblegum); }
.private-card h2 { color: var(--canvas); }
.private-sticker { position: absolute; top: -40px; right: 36px; rotate: 12deg; filter: drop-shadow(0 6px 0 rgb(0 0 0 / .15)); }
.promises { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.promises li { color: color-mix(in srgb, var(--canvas) 78%, var(--ink)); padding-left: 30px; position: relative; }
.promises li::before { content: '♡'; position: absolute; left: 0; top: -1px; font-family: var(--heading); color: var(--bubblegum); }
.promises b { color: var(--canvas); display: block; font: 600 1.15rem var(--display); margin-bottom: 2px; }
.text-link { font-weight: 800; color: var(--sun); text-underline-offset: 4px; }

.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 860px; margin: 0 auto; }
.plan { position: relative; padding: 32px; border-radius: var(--radius-card); background: var(--surface); border: 2.5px solid var(--edge); box-shadow: 0 6px 0 var(--drop); }
.plan.plus { background: color-mix(in srgb, var(--lilac) 70%, var(--surface)); rotate: 1deg; }
.price { font: 600 2.4rem var(--heading); color: var(--primary); margin: 6px 0 14px; }
.plan ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 10px; }
.plan li { padding-left: 28px; position: relative; color: var(--muted); }
.plan li::before { content: '✦'; position: absolute; left: 2px; color: var(--rose-ink); }

.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
details { background: var(--surface); border: 2.5px solid var(--edge); border-radius: 22px; box-shadow: 0 4px 0 var(--drop); overflow: hidden; }
summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; position: relative; font: 600 1.2rem var(--display); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; position: absolute; right: 18px; top: 50%; translate: 0 -50%; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--lilac); font: 600 1.3rem/1 var(--heading); transition: rotate .4s var(--spring);
}
details[open] summary::after { rotate: 45deg; }
details p { padding: 0 24px 22px; color: var(--muted); }
details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

.finale { text-align: center; padding: 64px 24px 112px; }
.finale .puff { width: 220px; margin: 0 auto 8px; }
.finale p { margin: 14px auto 30px; color: var(--muted); font-size: 1.2rem; max-width: 30rem; }


/* Desktop visitors get a QR code: the App Store is on their phone, not here. */
.qr { display: none; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 18px; background: var(--surface); border: 2px solid var(--edge); box-shadow: 0 3px 0 var(--drop); text-decoration: none; font-size: .9rem; line-height: 1.3; color: var(--muted); max-width: 230px; rotate: -1.5deg; transition: rotate .3s var(--spring); }
.qr svg { width: 64px; height: 64px; flex: none; color: #2A1736; background: #fff; padding: 5px; border-radius: 10px; }
.qr b { display: block; color: var(--ink); font-weight: 800; }
.qr:hover { rotate: 0deg; }
@media (hover: hover) and (min-width: 981px) { .qr { display: inline-flex; } }

/* Send them a boop */
.boop-them {
  position: absolute; right: 8px; bottom: -34px; z-index: 4; display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 8px 16px 8px 10px; border-radius: 999px; cursor: pointer;
  border: 2.5px solid color-mix(in srgb, var(--bubblegum) 70%, var(--ink) 12%);
  background: color-mix(in srgb, var(--bubblegum) 55%, var(--surface)); font: 600 1rem var(--display);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--bubblegum) 70%, var(--ink) 25%); transition: transform .3s var(--spring);
  touch-action: manipulation;
}
.boop-them:hover { transform: translateY(-2px) rotate(-2deg); }
.boop-them:active { transform: translateY(3px); }

/* A day, apart */
.day { max-width: 1040px; margin: 0 auto; padding: 72px 24px 24px; }
.day-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
.day-phone-col { position: sticky; top: 110px; }
.day-phone { width: 236px; rotate: -2deg; transition: rotate .6s var(--spring); }
.day-phone .phone-screen { transition: background-color .8s; }
.sky-dawn .phone-screen { background: radial-gradient(rgb(255 255 255 / .35) 1.4px, transparent 1.6px) 0 0 / 16px 16px, linear-gradient(170deg, #FFE3B8, #FFC9D6); }
.sky-noon .phone-screen { background: radial-gradient(rgb(255 255 255 / .35) 1.4px, transparent 1.6px) 0 0 / 16px 16px, linear-gradient(170deg, #CFE8FF, #C9F2DF); }
.sky-evening .phone-screen { background: radial-gradient(rgb(255 255 255 / .3) 1.4px, transparent 1.6px) 0 0 / 16px 16px, linear-gradient(170deg, #FFB6C8, #C8A8F0); }
.sky-night .phone-screen { background: radial-gradient(rgb(255 255 255 / .5) 1px, transparent 1.4px) 0 0 / 22px 22px, linear-gradient(170deg, #2B2057, #120C2A); }
.day-phone .status { color: #2A1736; }
.sky-night .status { color: #fff; }
.day-widget { display: grid; place-items: center; align-content: center; gap: 2px; }
.day-widget img { width: 52%; height: auto; rotate: -6deg; }
.day-note { font: 600 1.45rem/1 var(--hand); color: #6B3FE0; rotate: -4deg; margin-bottom: 18px; }
.day-widget.landed { animation: land .8s var(--spring); }
.moments { list-style: none; padding: 0; margin: 0; display: grid; gap: 30vh; padding-block: 6vh 14vh; }
.moment { padding: 26px 28px; border-radius: var(--radius-card); background: var(--surface); border: 2.5px solid var(--edge); box-shadow: 0 6px 0 var(--drop); opacity: .45; scale: .97; transition: opacity .5s, scale .6s var(--spring), border-color .4s; }
.moment.active { opacity: 1; scale: 1; border-color: color-mix(in srgb, var(--primary) 45%, var(--edge)); }
.moment:nth-child(even) { rotate: .8deg; } .moment:nth-child(odd) { rotate: -.6deg; }
.when { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: var(--lilac); font: 600 1rem var(--display); }
.moment h3 { margin-bottom: 8px; }
.moment p { color: var(--muted); }

/* Hold for a tiny hug */
.hug-scene { --hug: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
.hug-scene .puff { transition: translate .7s var(--spring); }
.hug-scene .puff:first-child { translate: calc(var(--hug) * 24%) 0; }
.hug-scene .puff:last-child { translate: calc(var(--hug) * -24%) 0; width: 88%; justify-self: center; }
.hug-button {
  --k: 0; position: relative; overflow: hidden; display: block; width: min(100%, 300px); margin: 18px auto 0; min-height: 56px; padding: 12px 20px;
  border-radius: var(--radius-control); border: 2.5px solid color-mix(in srgb, var(--peach) 70%, var(--ink) 12%);
  background: color-mix(in srgb, var(--peach) 35%, var(--surface)); cursor: pointer; font: 600 1.1rem var(--display);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--peach) 70%, var(--ink) 25%);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
.hug-fill { position: absolute; inset: 0; transform-origin: 0 50%; scale: var(--k) 1; background: color-mix(in srgb, var(--bubblegum) 80%, var(--peach)); }
.hug-label { position: relative; }
.boops-puff .bubble { left: 50%; translate: -50% 0; transform-origin: 50% 100%; }

/* Peel a sticker */
.stickers { max-width: 980px; margin: 0 auto; padding: 72px 24px; }
.sub { margin-top: 14px; color: var(--muted); font-size: 1.15rem; }
.sheet {
  position: relative; padding: 28px; border-radius: 36px; background: var(--surface); border: 2.5px solid var(--edge);
  box-shadow: 0 6px 0 var(--drop), 0 30px 60px -36px color-mix(in srgb, var(--primary) 45%, transparent);
  background-image: radial-gradient(color-mix(in srgb, var(--outline) 70%, transparent) 1.3px, transparent 1.5px); background-size: 18px 18px;
}
.sheet-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 980px) { .sheet-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.peel {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border: 2px dashed transparent; border-radius: 22px;
  background: none; cursor: grab; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  font: 600 .85rem/1.2 var(--display); color: var(--muted); transition: border-color .2s, background .2s;
}
.peel img { width: 72px; height: 72px; pointer-events: none; filter: drop-shadow(0 4px 0 color-mix(in srgb, var(--drop) 80%, transparent)); transition: transform .35s var(--spring); }
.peel:hover { border-color: var(--edge); background: color-mix(in srgb, var(--canvas) 70%, transparent); }
.peel:hover img { transform: rotate(-10deg) scale(1.1) translateY(-4px); }
.peel.peeled img { opacity: .25; transform: scale(.85); }
.sheet-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; margin-top: 18px; }
.text-button { border: 0; background: none; padding: 8px; cursor: pointer; font-weight: 800; color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.sticker-layer { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 15; pointer-events: none; }
.stuck {
  position: absolute; width: 84px; height: 84px; translate: -50% -50%; pointer-events: auto; cursor: grab; touch-action: none;
  user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 5px 0 rgb(42 23 54 / .14)); transition: scale .3s var(--spring), filter .3s;
}
.stuck.lifted { scale: 1.18; cursor: grabbing; filter: drop-shadow(0 16px 12px rgb(42 23 54 / .25)); }

/* Footer: a sticker sheet of guides, with Puff napping on top */
.foot { max-width: 1140px; margin: 72px auto 0; padding: 0 24px 40px; }
.foot-sheet {
  position: relative; padding: 44px clamp(20px, 4vw, 44px) 36px; border-radius: 40px;
  background: color-mix(in srgb, var(--lilac) 45%, var(--surface)); border: 2.5px solid var(--edge); box-shadow: 0 6px 0 var(--drop);
}
.foot-puff { position: absolute; top: -86px; right: clamp(20px, 8vw, 90px); width: 120px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 30px; padding-right: 120px; }
.foot-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.6rem var(--heading); }
.foot-brand img { border-radius: 12px; box-shadow: 0 3px 0 var(--drop); }
.foot-tag { font: 600 1.6rem/1 var(--hand); color: var(--rose-ink); rotate: -2deg; margin-right: auto; }
.foot-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.foot-group { padding: 20px 20px 16px; border-radius: 26px; background: color-mix(in srgb, var(--c) 28%, var(--surface)); border: 2px solid color-mix(in srgb, var(--c) 55%, var(--edge)); box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 45%, var(--drop)); }
.foot-group:nth-child(1) { rotate: -.8deg; } .foot-group:nth-child(3) { rotate: .8deg; }
.foot-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 600 1.15rem var(--heading); }
.foot-h img { width: 40px; height: 40px; rotate: -8deg; }
.foot-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.foot-group a { display: block; padding: 7px 10px; margin-inline: -10px; border-radius: 12px; text-decoration: none; font-weight: 700; color: var(--ink); transition: background .2s, translate .3s var(--spring); }
.foot-group a:hover { background: color-mix(in srgb, var(--surface) 75%, transparent); translate: 4px 0; }
.foot-group a::before { content: '♡'; margin-right: 8px; color: var(--rose-ink); font-family: var(--heading); font-size: .85em; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding: 22px 12px 0; }
.foot-base nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-base nav a { font-weight: 800; color: var(--muted); text-decoration: none; }
.foot-base nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.legal { font-size: .82rem; color: var(--muted); max-width: 44rem; }
@media (prefers-color-scheme: dark) { .foot-group { background: color-mix(in srgb, var(--c) 14%, var(--surface)); border-color: color-mix(in srgb, var(--c) 35%, var(--edge)); } }
@media (max-width: 860px) {
  .foot-groups { grid-template-columns: minmax(0, 1fr); }
  .foot-group { rotate: 0deg !important; padding: 16px; }
  .foot-group ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .foot-group a { margin: 0; padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); font-size: .95rem; }
  .foot-group a::before { content: none; }
  .foot-top { padding-right: 0; }
  .foot-puff { width: 96px; top: -70px; }
  .foot-base { justify-content: center; text-align: center; }
  .foot-base nav { justify-content: center; }
}

/* Motion, only for people who are fine with it. */
@keyframes pop { from { scale: .2; opacity: 0; rotate: -20deg; } }
@keyframes land { 0% { scale: 1; } 30% { scale: .9; } 60% { scale: 1.06; } 100% { scale: 1; } }
@keyframes draw-in { from { stroke-dashoffset: 1; } }
@keyframes float { 50% { translate: 0 -8px; rotate: 3deg; } }
@keyframes press { 0%, 60%, 100% { translate: 0 0; box-shadow: 0 5px 0 var(--deep); } 70% { translate: 0 4px; box-shadow: 0 1px 0 var(--deep); } }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .9s var(--spring); }
  .js .reveal.in { opacity: 1; translate: 0 0; }
  .js .steps .reveal:nth-child(2) { transition-delay: .1s; } .js .steps .reveal:nth-child(3) { transition-delay: .2s; }
  .js .cards .reveal:nth-child(2) { transition-delay: .1s; } .js .cards .reveal:nth-child(3) { transition-delay: .2s; }
  .scribble path { animation: draw-in 1.1s .5s cubic-bezier(.6, 0, .2, 1) both; }
  .step.in .draw-heart { animation: draw-in 1.4s .3s ease both; }
  .art-draw img, .mini-widget { animation: float 5s ease-in-out infinite; }
  .art-update .candy { animation: press 2.4s ease-in-out infinite; }
  .private-sticker { animation: float 6s ease-in-out infinite; }
  .nudge { animation: float 3s ease-in-out infinite; }
  @supports (animation-timeline: view()) {
    @keyframes tilt-in { from { rotate: 6deg; scale: .94; } to { rotate: 4deg; scale: 1; } }
    .phone { animation: tilt-in linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}

/* Smaller screens: stack the stage and keep everything thumb-sized. */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 24px; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .lede { margin-inline: auto; }
  .ctas, .trust { justify-content: center; }
  .stage { max-width: 620px; margin: 0 auto; width: 100%; }
  .stage-puff { bottom: -78px; left: -18px; }
}
@media (max-width: 760px) {
  .day { padding: 24px 16px 8px; }
  .day-wrap { grid-template-columns: 128px minmax(0, 1fr); gap: 16px; }
  .day-phone-col { top: 84px; }
  .phone.day-phone { width: 128px; padding: 6px; border-radius: 26px; }
  .day-phone .phone-screen { border-radius: 21px; padding: 10px 8px; }
  .day-phone .status { font-size: .6rem; padding: 0 4px 8px; }
  .day-phone .apps { gap: 8px 6px; margin-top: 10px; }
  .day-phone .apps i { border-radius: 7px; }
  .day-phone .toast { font-size: .6rem; padding: 6px; left: 4px; right: 4px; gap: 4px; }
  .day-phone .toast img { width: 16px; height: 16px; }
  .day-phone .widget { border-radius: 16px; }
  .day-phone .widget-label { font-size: .5rem; left: 5px; bottom: 5px; padding: 2px 5px; }
  .day-note { font-size: .95rem; margin-bottom: 12px; }
  .moment { padding: 18px; }
  .moment h3 { font-size: 1.15rem; }
  .moment p { font-size: 1rem; }
  .moments { gap: 26vh; }
  .stickers { padding: 56px 16px; }
  .sheet { padding: 16px; border-radius: 28px; }
  .sheet-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .peel { padding: 8px 2px; font-size: .72rem; }
  .peel img { width: 56px; height: 56px; }
  .stuck { width: 64px; height: 64px; }
  .steps, .cards, .plan-grid, .promises { grid-template-columns: 1fr; }
  .step, .plan.plus { rotate: 0deg; }
  .boops { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .boops-puff { max-width: 260px; }
  .boops-copy > p { margin-inline: auto; }
  .reactions { justify-content: center; }
  .how, .for, .plans, .faq, .boops { padding-block: 72px; }
}
@media (max-width: 620px) {
  .hero { padding-inline: 16px; }
  .stage { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 36px; min-height: 0; padding-bottom: 40px; }
  .paper-card { margin-right: 0; justify-self: center; rotate: -1.5deg; }
  .phone { width: 210px; }
  .stage-puff { left: auto; right: 0; bottom: 120px; width: 116px; }
  .boop-them { position: static; justify-self: center; margin-top: -14px; }
  .how, .for, .plans, .faq, .boops { padding-inline: 16px; }
  .private { padding-inline: 16px; }
  .private-sticker { width: 72px; right: 20px; top: -30px; }
  .candy { min-height: 54px; }
  .top .candy.small { padding-inline: 14px; }
}
@media (max-width: 420px) {
  .paper-card { padding: 12px; }
  .tools { gap: 4px; }
  .pens { gap: 4px; }
  .pens button { width: 28px; height: 28px; border-width: 2px; }
  .sticker-tray button { width: 36px; height: 36px; }
}

/* Guide pages */
.article { max-width: 780px; margin: 0 auto; padding: 24px 24px 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 8px 0 28px; font-weight: 800; font-size: .95rem; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin-right: 6px; }
.crumbs a { color: var(--muted); text-underline-offset: 4px; }
.article-hero { position: relative; padding: 36px clamp(24px, 5vw, 48px); margin-bottom: 40px; background: var(--surface); border: 2.5px solid var(--edge); border-radius: 36px; box-shadow: 0 6px 0 var(--drop); }
.article-hero img { position: absolute; right: 24px; top: -38px; width: 92px; rotate: 10deg; }
.article-hero h1 { font-size: clamp(2.1rem, 1.7rem + 2.2vw, 3.3rem); padding-right: 60px; }
.article-hero .lede { margin-top: 18px; max-width: none; }
.article-hero .candy { margin-top: 26px; }
.prose h2 { font-size: clamp(1.6rem, 1.4rem + 1vw, 2.1rem); margin: 48px 0 14px; }
.prose h3 { margin: 28px 0 8px; font-size: 1.3rem; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 8px; margin: 14px 0; }
.prose li::marker { color: var(--rose-ink); font-weight: 800; }
.prose a:not(.candy) { color: var(--primary); font-weight: 800; text-underline-offset: 4px; }
.prose strong { color: var(--ink); }
.ideas { list-style: none; padding: 0 !important; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px !important; }
.ideas li { padding: 16px 18px; background: var(--surface); border: 2px solid var(--edge); border-radius: 20px; box-shadow: 0 4px 0 var(--drop); }
.ideas b { display: block; font: 600 1.1rem var(--display); color: var(--ink); margin-bottom: 4px; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding: 14px 18px 14px 64px; background: var(--surface); border: 2px solid var(--edge); border-radius: 20px; }
.steps-list li::before { content: counter(s); position: absolute; left: 16px; top: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); color: var(--on-sticker); font: 600 1.05rem var(--heading); }
.cta-card { margin: 56px 0 8px; padding: 32px; text-align: center; border-radius: 32px; background: color-mix(in srgb, var(--lilac) 70%, var(--surface)); border: 2.5px solid var(--edge); box-shadow: 0 6px 0 var(--drop); }
.cta-card h2 { margin: 0 0 10px; }
.cta-card p { color: var(--muted); margin-bottom: 22px; }
.related { margin-top: 48px; }
.related ul { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.related a { display: block; height: 100%; padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 2px solid var(--edge); text-decoration: none; color: var(--ink); font: 600 1.05rem var(--display); transition: transform .3s var(--spring); }
.related a:hover { transform: translateY(-3px) rotate(-1deg); }
.card-link { display: inline-block; margin-top: 12px; font-weight: 800; color: var(--primary); text-underline-offset: 4px; }
.prose .note { margin-top: 32px; padding: 14px 18px; border: 2px dashed var(--edge); border-radius: 20px; font-size: .95rem; color: var(--muted); }
