/* APA website
   Layout: a bright shelf of faces. Each section puts one real piece of the app on stage, with the copy beside it.
   Colors come from the app's Calm Ink tokens plus the face art's own palette (fox, sky, sage, butter). */
:root {
  --paper: #f7f9fa;
  --surface: #ffffff;
  --fill: #f1f5f9;
  --line: #e1e8f0;
  --ink: #0d1629;
  --muted: #5d6e84;
  --action: #1c1e24;
  --on-action: #ffffff;
  --pill: #f1f5f9;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(255, 255, 255, 0.6);
  --fox: #c65e4b;
  --fox-soft: #f6e3dc;
  --sky: #2f739b;
  --sky-soft: #e3eff5;
  --sage: #7f9873;
  --sage-soft: #e5ecdf;
  --butter: #f2c35f;
  --butter-soft: #fbf1d6;
  --overdue: #b42318;
  --halo-1: #f3e4d2;
  --halo-2: #d9e4cd;
  --halo-3: #dfe7f0;
  --wall-a: #2f739b;
  --wall-b: #79a9bf;
  --wall-c: #eec3ad;
  --bezel: #121316;
  --bezel-edge: #3a3a3c;
  --shadow: 0 1px 2px rgba(13, 22, 41, 0.06);
  --lift: 0 18px 44px rgba(13, 22, 41, 0.14);
  --lift-big: 0 40px 90px rgba(13, 22, 41, 0.22);
  --font: "Lexend", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ios: -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b0c0e; --surface: #1c1c1e; --fill: #2c2c2e; --line: #2e2f33;
    --ink: #ffffff; --muted: #a1a1a6; --action: #f1f1f3; --on-action: #1c1e24;
    --pill: #3a3a3c; --glass: rgba(44, 44, 46, 0.74); --glass-line: rgba(255, 255, 255, 0.08);
    --fox: #e88a73; --fox-soft: #3a2621; --sky: #5eaacb; --sky-soft: #17262f;
    --sage: #a3bb96; --sage-soft: #1f281c; --butter: #f2c35f; --butter-soft: #2f2715;
    --overdue: #ff8a80;
    --halo-1: #2d251d; --halo-2: #1e271b; --halo-3: #1b2129;
    --wall-a: #163a52; --wall-b: #2c5a70; --wall-c: #7a5848;
    --bezel: #2a2b2f; --bezel-edge: #4a4b50;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4); --lift: 0 18px 44px rgba(0, 0, 0, 0.5); --lift-big: 0 40px 90px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b0c0e; --surface: #1c1c1e; --fill: #2c2c2e; --line: #2e2f33;
  --ink: #ffffff; --muted: #a1a1a6; --action: #f1f1f3; --on-action: #1c1e24;
  --pill: #3a3a3c; --glass: rgba(44, 44, 46, 0.74); --glass-line: rgba(255, 255, 255, 0.08);
  --fox: #e88a73; --fox-soft: #3a2621; --sky: #5eaacb; --sky-soft: #17262f;
  --sage: #a3bb96; --sage-soft: #1f281c; --butter: #f2c35f; --butter-soft: #2f2715;
  --overdue: #ff8a80;
  --halo-1: #2d251d; --halo-2: #1e271b; --halo-3: #1b2129;
  --wall-a: #163a52; --wall-b: #2c5a70; --wall-c: #7a5848;
  --bezel: #2a2b2f; --bezel-edge: #4a4b50;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4); --lift: 0 18px 44px rgba(0, 0, 0, 0.5); --lift-big: 0 40px 90px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
img { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--sky); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--action); color: var(--on-action); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--fill); }
.nav .nav-cta { margin-left: 8px; background: var(--action); color: var(--on-action); padding: 8px 16px; border-radius: 999px; font-weight: 600; }
.nav .nav-cta:hover { background: var(--action); color: var(--on-action); opacity: .9; }
@media (max-width: 820px) { .nav a:not(.nav-cta) { display: none; } .doc-page .nav a:not(.nav-cta) { display: inline-flex; padding: 8px; font-size: 14px; } .doc-page .nav .nav-cta { display: none; } }

/* ---------- Buttons ---------- */
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 22px 0 18px; border-radius: 16px; background: var(--action); color: var(--on-action); text-decoration: none; box-shadow: var(--lift); transition: transform .2s var(--ease-out), box-shadow .2s; }
.store:hover { color: var(--on-action); transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; font-weight: 500; opacity: .75; letter-spacing: .02em; }
.store b { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 58px; padding: 0 20px; border-radius: 16px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; border: 1.5px solid var(--line); background: var(--surface); }
.ghost:hover { color: var(--ink); border-color: var(--muted); }

/* ---------- Faces (real art, two moods stacked) ---------- */
.face { position: relative; display: block; aspect-ratio: 1; border-radius: 13%; overflow: hidden; flex: none; isolation: isolate; }
.face img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; transition: opacity .32s ease; }
.face .fs { opacity: 0; }
.face.is-smiling .fs { opacity: 1; }
.face.is-smiling .fw { opacity: 0; }
.face.pop { animation: pop .62s var(--ease-spring); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.12) rotate(-2deg); } 70% { transform: scale(.97); } 100% { transform: scale(1); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 56px 40px; overflow: hidden; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.eyebrow { max-width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--muted); box-shadow: var(--shadow); }
.eyebrow .stack { display: flex; }
.eyebrow .stack .face { width: 26px; border-radius: 7px; box-shadow: 0 0 0 2px var(--surface); }
.eyebrow .stack .face + .face { margin-left: -7px; }
.hero h1 { margin: 22px 0 0; font-size: clamp(40px, 5.8vw, 74px); line-height: .98; letter-spacing: -0.045em; font-weight: 700; }
.hero h1 .line2 { display: block; color: var(--muted); }
.hero h1 .smile-word { color: var(--fox); }
.hero .lede { margin: 24px 0 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 33ch; }
.hero .ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.facts { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 500; color: var(--muted); }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts .i { color: var(--sage); font-size: 16px; stroke-width: 2.4; }

.stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.halo { position: absolute; border-radius: 50%; pointer-events: none; }
.halo.h1 { width: 520px; height: 520px; background: var(--halo-1); }
.halo.h2 { width: 200px; height: 200px; background: var(--halo-2); transform: translate(-230px, 170px); }
.halo.h3 { width: 160px; height: 160px; background: var(--halo-3); transform: translate(240px, -200px); }

/* Phone */
.device { --s: .74; position: relative; flex: none; width: calc(390px * var(--s)); height: calc(844px * var(--s)); border-radius: calc(58px * var(--s)); margin: calc(12px * var(--s)); box-shadow: 0 0 0 calc(11px * var(--s)) var(--bezel), 0 0 0 calc(12.5px * var(--s)) var(--bezel-edge), var(--lift-big); overflow: hidden; background: var(--paper); }
.screen { position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform: scale(var(--s)); transform-origin: 0 0; background: var(--paper); color: var(--ink); font-family: var(--font); overflow: hidden; }
.island { position: absolute; top: 11px; left: 50%; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; z-index: 5; }
.status { position: absolute; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 4px 30px 0 46px; font-family: var(--font-ios); font-size: 17px; font-weight: 600; z-index: 4; color: var(--ink); }
.status .sig { display: flex; gap: 6px; align-items: center; }
.status svg { height: 13px; width: auto; fill: currentColor; }

/* App: Home */
.app { padding: 54px 16px 0; height: 100%; display: flex; flex-direction: column; }
.app-head { height: 56px; display: flex; align-items: center; justify-content: space-between; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.chip .i { font-size: 18px; }
.app-head .btns { display: flex; gap: 8px; }
.ibtn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.ibtn.filled { background: var(--fill); }
.cards { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.hcard { border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px; display: flex; gap: 12px; position: relative; }
.hcard .who { display: flex; flex-direction: column; gap: 6px; width: 88px; flex: none; }
.hcard .who .face { width: 88px; }
.hcard .who b { font-size: 15px; line-height: 20px; font-weight: 700; }
.hgrid { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 10px; align-content: start; transition: opacity .35s ease, transform .35s ease; }
.hrow { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; min-width: 0; font-size: 14px; line-height: 20px; transition: opacity .35s ease, color .25s; }
.hrow .t { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hrow .i { color: var(--muted); font-size: 14px; margin-top: 3px; }
.circ { position: relative; width: 20px; height: 20px; border-radius: 50%; border: 1.75px solid var(--muted); flex: none; display: flex; align-items: center; justify-content: center; color: var(--on-action); transition: background .2s, border-color .2s; }
.circ .i { font-size: 12px; stroke-width: 3; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s var(--ease-spring); color: var(--on-action); margin: 0; }
.done .circ { background: var(--action); border-color: var(--action); }
.done .circ .i { opacity: 1; transform: scale(1); }
.done .t { color: var(--muted); text-decoration: line-through; }
.more { display: block; padding: 4px 0 2px 30px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--muted); }
.tap::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 18%, transparent); animation: tap .5s ease-out forwards; }
@keyframes tap { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.1); opacity: 0; } }
.alldone { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; line-height: 20px; }
.alldone .i { font-size: 20px; }
.hcard .alldone.overlay { position: absolute; left: 112px; top: 12px; bottom: 32px; opacity: 0; transform: translateY(6px); transition: opacity .4s ease .1s, transform .4s var(--ease-out) .1s; pointer-events: none; }
.hcard.finished .hgrid { opacity: 0; transform: translateY(-6px); }
.hcard.finished .alldone.overlay { opacity: 1; transform: none; }

/* Floating pieces in the hero */
.float { position: absolute; z-index: 3; }
.float.widget-a { left: calc(50% - 300px); top: 96px; animation: bob 5.2s ease-in-out infinite; }
.float.note { right: calc(50% - 330px); bottom: 36px; animation: bob 6s ease-in-out -2s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.notif { width: 300px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: var(--lift); font-family: var(--font-ios); }
.notif img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.notif .body { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; }
.notif .top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.notif b { font-weight: 600; display: block; }
.notif .msg { color: var(--ink); }

/* ---------- Widgets (shared) ---------- */
.wsmall { position: relative; width: 170px; height: 170px; border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: 0 6px 18px rgba(13, 22, 41, 0.16); flex: none; font-family: var(--font); color: var(--ink); }
.wsmall > .face { position: absolute; inset: 0; width: 100%; border-radius: 0; }
.win { position: absolute; left: 8px; right: 8px; top: 8px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent 0, #000 4px, #000 calc(100% - 4px), transparent 100%); mask-image: linear-gradient(transparent 0, #000 4px, #000 calc(100% - 4px), transparent 100%); }
.wpill { position: absolute; left: 0; right: 0; height: 32px; padding: 0 9px; border-radius: 12px; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; transition: transform .45s var(--ease-out), opacity .45s ease; }
.wsmall .wpill { background: var(--glass); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.wpill .circ { width: 16px; height: 16px; border-width: 1.5px; cursor: pointer; }
.wpill .circ .i { font-size: 10px; }
.wpill .t { flex: 1; min-width: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wpill .due { font-size: 11px; font-weight: 600; color: var(--muted); flex: none; }
.wpill .due.red { color: var(--overdue); }
.wpill.done .t { text-decoration: line-through; color: var(--muted); }
.wcount { position: absolute; right: 8px; bottom: 8px; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--glass); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); font-size: 11px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; transition: opacity .3s; }
.wcheck { position: absolute; top: 10px; left: 50%; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: var(--action); color: var(--on-action); display: flex; align-items: center; justify-content: center; font-size: 16px; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .45s var(--ease-spring); }
.wcheck .i { stroke-width: 3; }
.all-clear .wcheck { opacity: 1; transform: none; }

.wmed { position: relative; width: 364px; height: 170px; border-radius: 22px; background: var(--surface); box-shadow: 0 6px 18px rgba(13, 22, 41, 0.16); padding: 14px; display: flex; gap: 14px; flex: none; color: var(--ink); }
.wmed .face { width: 92px; height: 92px; }
.wmed .left { display: flex; flex-direction: column; gap: 6px; width: 92px; }
.wmed .left b { font-size: 15px; line-height: 18px; }
.wmed .left .cnt { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.wmed .win { position: relative; left: 0; right: 0; top: 0; flex: 1; height: 112px; margin-top: 0; }
.wmed .wpill { background: var(--pill); }
.wmed .alldone { position: absolute; left: 124px; top: 52px; opacity: 0; transition: opacity .3s; font-size: 14px; }
.wmed.all-clear .alldone { opacity: 1; }

.wtrio { width: 364px; height: 170px; border-radius: 22px; background: var(--surface); box-shadow: 0 6px 18px rgba(13, 22, 41, 0.16); padding: 14px 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: none; color: var(--ink); }
.wtrio .col { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.wtrio .face { width: 72px; }
.wtrio b { font-size: 13px; line-height: 16px; }
.wtrio .next { font-size: 12px; line-height: 15px; color: var(--muted); width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Sections ---------- */
section { position: relative; }
.band { padding-block: 104px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fox); }
.h2 { margin: 14px 0 0; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 700; max-width: 18ch; }
.sub { margin: 18px 0 0; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--muted); max-width: 46ch; }
.center { text-align: center; }
.center .h2, .center .sub { margin-left: auto; margin-right: auto; }

/* Try it */
.try { display: grid; gap: 40px; align-items: center; margin-top: 56px; }
.demo { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 26px; box-shadow: var(--lift); }
.demo-head { display: flex; align-items: center; gap: 18px; }
.demo-head .face { width: 132px; border-radius: 22px; box-shadow: var(--shadow); }
.demo-head h3 { margin: 0; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; }
.demo-head .prog { margin-top: 6px; display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { margin-top: 12px; height: 6px; width: 140px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--action); border-radius: inherit; transition: width .45s var(--ease-out); }
.demo-list { margin: 22px 0 0; padding: 0; list-style: none; background: var(--fill); border-radius: 16px; overflow: hidden; }
.demo-list li + li { box-shadow: inset 0 1px 0 var(--line); }
.demo-item { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.demo-item:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.demo-item .circ { width: 26px; height: 26px; border-width: 1.75px; }
.demo-item .circ .i { font-size: 15px; }
.demo-item .txt { display: flex; flex-direction: column; gap: 2px; }
.demo-item .t { font-size: 16px; line-height: 22px; }
.demo-item .meta { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.demo-item .meta .i { font-size: 14px; }
.demo-item.done .t { color: var(--muted); text-decoration: line-through; }
.demo-foot { margin-top: 16px; min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.reset { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--fill); border: 0; border-radius: 999px; min-height: 40px; padding: 0 16px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; }
.demo.finished .reset { opacity: 1; pointer-events: auto; }
.burst { position: absolute; left: 92px; top: 92px; width: 0; height: 0; pointer-events: none; z-index: 2; }
.burst span { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; background: var(--c); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: fly .9s var(--ease-out) forwards; }
@keyframes fly { from { transform: translate(0, 0) scale(.3) rotate(0); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(1) rotate(160deg); opacity: 0; } }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 26px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps li::before { counter-increment: s; content: counter(s); width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps h3 { margin: 8px 0 4px; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* Value bento */
.bento { margin-top: 56px; display: grid; gap: 16px; grid-template-columns: 1fr; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; overflow: hidden; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.tile h3 { margin: 0; font-size: 23px; line-height: 1.2; letter-spacing: -0.02em; }
.tile p { margin: 8px 0 0; color: var(--muted); font-size: 16px; max-width: 42ch; }
.tile .art { margin-top: auto; }
.tile.glance { background: var(--sky-soft); border-color: transparent; }
.tile.remind { background: var(--fox-soft); border-color: transparent; }
.tile.private { background: var(--sage-soft); border-color: transparent; }
.tile.lang { background: var(--butter-soft); border-color: transparent; }
.moods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mood { background: var(--surface); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.mood .face { width: 100%; }
.mood b { font-size: 15px; line-height: 1.2; }
.mood span { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.mood span .i { font-size: 14px; }
.sheet { background: var(--paper); border-radius: 22px; padding: 14px; box-shadow: var(--lift); display: flex; flex-direction: column; gap: 10px; }
.sheet .title { height: 50px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); display: flex; align-items: center; font-size: 16px; }
.group { background: var(--surface); border-radius: 12px; overflow: hidden; }
.srow { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; font-size: 14px; font-weight: 500; }
.srow + .srow { box-shadow: inset 0 1px 0 var(--line); }
.srow .i { font-size: 18px; color: var(--muted); }
.srow .lbl { flex: 1; }
.srow .val { color: var(--muted); font-weight: 400; }
.switch { position: relative; width: 46px; height: 28px; border-radius: 14px; background: var(--fill); flex: none; transition: background .25s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 12px; background: #ffffff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform .3s var(--ease-spring); }
.switch.on { background: var(--action); }
.switch.on::after { transform: translateX(18px); }
.notifs { display: flex; flex-direction: column; gap: 10px; }
.notifs .notif { width: 100%; }
.promises { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.promises li { display: flex; gap: 12px; align-items: center; font-size: 16px; font-weight: 500; background: var(--surface); border-radius: 16px; padding: 14px 16px; }
.promises .i { font-size: 20px; color: var(--sage); }
.langs { display: flex; flex-wrap: wrap; gap: 8px; }
.langs span { padding: 8px 14px; border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 500; box-shadow: var(--shadow); }

/* Widgets band */
.widgets-band { background: var(--surface); border-block: 1px solid var(--line); }
.wgrid { display: grid; gap: 56px; align-items: center; }
.home-screen { position: relative; display: flex; justify-content: center; }
.wall { position: absolute; inset: 0; background: radial-gradient(120% 70% at 20% 0%, var(--wall-b) 0%, transparent 60%), linear-gradient(170deg, var(--wall-a) 0%, var(--wall-b) 52%, var(--wall-c) 100%); }
.springboard { position: absolute; inset: 0; padding: 70px 13px 0; display: flex; flex-direction: column; gap: 22px; align-items: center; }
.springboard .row { display: flex; gap: 24px; }
.springboard .lbl { margin-top: 6px; text-align: center; font-family: var(--font-ios); font-size: 12px; font-weight: 500; color: #ffffff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.dock { position: absolute; left: 12px; right: 12px; bottom: 26px; height: 92px; border-radius: 34px; background: rgba(255, 255, 255, 0.24); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); display: flex; align-items: center; justify-content: space-around; padding: 0 14px; }
.dock .app-icon { width: 62px; height: 62px; border-radius: 15px; background: rgba(255, 255, 255, 0.34); }
.dock .app-icon img { width: 62px; height: 62px; border-radius: 15px; display: block; }
.wlist { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.wlist li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.wlist .glyph { width: 48px; height: 48px; border-radius: 14px; background: var(--fill); display: flex; align-items: center; justify-content: center; }
.wlist .glyph i { display: block; background: var(--muted); border-radius: 4px; }
.wlist b { display: block; font-size: 17px; line-height: 1.3; margin-top: 2px; }
.wlist span { color: var(--muted); font-size: 15px; }

/* Faces gallery */
.faces { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ftile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.ftile .face { width: 100%; border-radius: 24%; box-shadow: var(--lift); transition: transform .35s var(--ease-spring); }
.ftile:hover .face, .ftile:focus-visible .face { transform: translateY(-6px) rotate(-2deg); }
.ftile b { font-size: 15px; font-weight: 600; }
.faces-note { margin-top: 28px; display: flex; justify-content: center; gap: 8px; align-items: center; color: var(--muted); font-size: 15px; }

/* Pricing */
.plans { margin-top: 56px; display: grid; gap: 16px; max-width: 920px; margin-left: auto; margin-right: auto; }
.plan { border-radius: 28px; padding: 32px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 20px; }
.plan h3 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.plan .price b { font-size: 52px; line-height: 1; letter-spacing: -0.04em; }
.plan .price span { color: var(--muted); font-size: 16px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.plan li .i { color: var(--sage); font-size: 18px; margin-top: 3px; stroke-width: 2.6; }
.plan.pro { background: var(--action); color: var(--on-action); border-color: transparent; box-shadow: var(--lift-big); }
.plan.pro .price span, .plan.pro .note { color: color-mix(in srgb, var(--on-action) 65%, transparent); }
.plan.pro li .i { color: var(--butter); }
.badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--butter); color: #1c1e24; }
.icons { display: flex; gap: 10px; flex-wrap: wrap; }
.icons img { width: 52px; height: 52px; border-radius: 12px; display: block; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.note { font-size: 13px; color: var(--muted); margin: 0; }

/* Final call */
.finale { padding-block: 96px 120px; overflow: hidden; }
/* Full-body characters (from the character library) */
.char { position: relative; display: block; flex: none; transform-origin: 50% 100%; }
.char img { display: block; width: 100%; height: auto; transition: opacity .3s ease; }
.char .fs { position: absolute; left: 50%; top: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); opacity: 0; }
.char.is-smiling .fs { opacity: 1; }
.char.is-smiling .fw { opacity: 0; }
.char.hop { animation: hop .7s var(--ease-spring); }
@keyframes hop { 0% { transform: none; } 35% { transform: translateY(-22px) rotate(-4deg); } 70% { transform: translateY(2px); } 100% { transform: none; } }
.demo-wrap { position: relative; justify-self: center; width: min(100%, 460px); padding-top: 64px; }
.demo-wrap .demo { width: 100%; }
.cheer { position: absolute; right: -6px; top: 0; width: 92px; z-index: 3; }
.cast { display: flex; align-items: flex-end; justify-content: center; gap: 0; margin: 0 auto 36px; max-width: 980px; padding-bottom: 14px; position: relative; }
.cast::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; height: 28px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) 12%, transparent), transparent); z-index: -1; }
.cast .char { width: 11.2%; margin: 0 -1%; cursor: default; }
.cast .char.big { width: 14%; z-index: 2; }
.cast .char:nth-child(odd) { margin-bottom: 6px; }
.finale h2 { margin: 0; }
.finale .ctas { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.finale .note { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px 44px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer .brand { font-size: 17px; }
.site-footer .brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .faces { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .hero { padding-block: 72px 56px; }
  .hero .wrap { grid-template-columns: 1fr 1.05fr; }
  .stage { min-height: 700px; }
  .device { --s: .84; }
  .try { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile.glance { grid-column: span 4; }
  .tile.remind { grid-column: span 2; grid-row: span 2; }
  .tile.notify { grid-column: span 2; }
  .tile.private { grid-column: span 2; }
  .tile.lang { grid-column: span 6; flex-direction: row; align-items: center; justify-content: space-between; }
  .tile.lang .art { margin-top: 0; max-width: 560px; }
  .wgrid { grid-template-columns: 1.1fr 1fr; gap: 72px; }
  .faces { grid-template-columns: repeat(9, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .float.widget-a { left: 0; top: 30px; transform-origin: left top; }
  .float.note { right: 0; bottom: 8px; }
}
@media (max-width: 560px) {
  .band { padding-block: 72px; }
  .stage { min-height: 500px; }
  .device { --s: .62; }
  .halo.h1 { width: 380px; height: 380px; }
  .float.widget-a { scale: .72; left: -6px; top: 10px; }
  .float.note { scale: .8; right: -24px; bottom: 26px; transform-origin: right bottom; }
  .notif { width: 280px; }
  .home-screen .device { --s: .8; }
  .demo { padding: 18px; border-radius: 26px; }
  .demo-head .face { width: 104px; }
  .burst { left: 70px; top: 70px; }
  .moods { gap: 8px; }
  .mood { padding: 8px; border-radius: 16px; }
  .tile { padding: 22px; }
  .plan { padding: 26px; }
  .cast .char { width: 19%; margin: 0 -1.5%; }
  .cast .char.big { width: 24%; }
  .cast .char:nth-child(-n+2), .cast .char:nth-last-child(-n+2) { display: none; }
  .cheer { width: 74px; }
  .demo-wrap { padding-top: 52px; }
}
@media (max-width: 380px) { .home-screen .device { --s: .74; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .face.pop, .char.hop { animation: none !important; }
  .wpill, .hgrid, .hrow { transition: opacity .25s ease !important; }
}

/* ---------- Prose pages (support, privacy, terms) ---------- */
.doc { padding-block: 48px 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 10px; }
.doc .lede { color: var(--muted); margin: 0 0 32px; font-size: 18px; }
.doc h2 { font-size: 22px; line-height: 1.35; margin: 40px 0 8px; letter-spacing: -0.01em; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.doc-hero .face { width: 56px; border-radius: 14px; box-shadow: var(--shadow); }
.summary { background: var(--sage-soft); border-radius: 20px; padding: 20px 22px; margin: 0 0 8px; }
.summary ul { margin: 6px 0 0; }
.optional { border: 1.5px dashed var(--muted); border-radius: 16px; padding: 4px 20px 14px; margin-top: 28px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: var(--action); color: var(--on-action); vertical-align: middle; }
.placeholder { background: color-mix(in srgb, var(--sky) 16%, transparent); border-radius: 4px; padding: 0 4px; font-weight: 600; white-space: nowrap; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin: 10px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 12px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 22px 18px; }
.faq .answer p { margin: 0 0 10px; }
.faq ol { margin: 0 0 10px; padding-left: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 16px; background: var(--action); color: var(--on-action); font-weight: 600; font-size: 17px; text-decoration: none; box-shadow: var(--shadow); }
.btn:hover { color: var(--on-action); opacity: .92; }
.contact { margin-top: 40px; background: var(--fox-soft); border-radius: 26px; padding: 32px 24px; text-align: center; }
.contact .face { width: 84px; margin: 0 auto 14px; border-radius: 20px; box-shadow: var(--lift); }
.contact h2 { margin: 0 0 6px; }
.contact p { margin: 0 0 18px; color: var(--muted); }

/* Placeholder contact button (form not live yet) */
.btn[disabled] { opacity: .6; cursor: not-allowed; pointer-events: none; font: inherit; }
