@font-face{font-family:"Newsreader";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/newsreader-400.woff2") format("woff2")}
@font-face{font-family:"Newsreader";font-style:italic;font-weight:400;font-display:swap;src:url("/fonts/newsreader-400-italic.woff2") format("woff2")}
@font-face{font-family:"Newsreader";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/newsreader-500.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/inter-400.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/inter-500.woff2") format("woff2")}
@font-face{font-family:"Caveat";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/caveat-400.woff2") format("woff2")}
:root{--paper:#F6F2EA;--paper-raised:#FBF8F2;--ink:#1C1B19;--ink-muted:#6B665E;--ink-faint:#A39E94;--line:#E3DDD2;--accent:#6F7F72;--frame-mat:#DCCBAE;--polaroid:#FCF8EF;--tape:#F4ECDACC;--pin:#6E6152;--glow-strength:0.5;--peach:#FFC9A3;--blush:#FFD3DE;--lavender:#CDB8F0;--turquoise:#9FE3DD;--green:#B4E9A6;--yellow:#FFE680;--mood-0:#483D5C;--mood-0-text:#F6F2EA;--mood-1:#5E4589;--mood-1-text:#F6F2EA;--mood-2:#7349BC;--mood-2-text:#F6F2EA;--mood-3:#8D63D7;--mood-3-text:#1C1B19;--mood-4:#AA84EB;--mood-4-text:#1C1B19;--env-0-paper:#9FE3DD;--env-0-flap:#94d1cb;--env-0-ink:#2F2C29;--env-0-muted:#485451;--env-0-line:#4b5a56;--env-0-track:#2F2C291f;--env-1-paper:#FFC9A3;--env-1-flap:#eab997;--env-1-ink:#2F2C29;--env-1-muted:#5d4f44;--env-1-line:#635348;--env-1-track:#2F2C291f;--env-2-paper:#CDB8F0;--env-2-flap:#bdaadc;--env-2-ink:#2F2C29;--env-2-muted:#524b55;--env-2-line:#574f5b;--env-2-track:#2F2C291f;--env-3-paper:#FFE680;--env-3-flap:#ead377;--env-3-ink:#2F2C29;--env-3-muted:#5d553c;--env-3-line:#635b3f;--env-3-track:#2F2C291f;--spring-gentle:linear(0, 0.0223, 0.0714, 0.1379, 0.2143, 0.2951, 0.3762, 0.4548, 0.529, 0.5974, 0.6595, 0.715, 0.7639, 0.8065, 0.8432, 0.8745, 0.9009, 0.9229, 0.941, 0.9559, 0.9679, 0.9774, 0.985, 0.9908, 0.9952, 0.9985, 1.0009, 1.0025, 1.0036, 1.0042, 1.0046, 1.0046, 1.0045, 1.0043, 1.0039, 1.0036, 1.0032, 1.0028, 1.0025, 1.0021, 1.0018, 1.0015, 1.0013, 1.0011, 1);--spring-gentle-ms:746ms;--spring-settle:linear(0, 0.018, 0.0595, 0.1184, 0.1894, 0.2678, 0.3499, 0.4326, 0.5134, 0.5906, 0.6627, 0.7288, 0.7884, 0.8411, 0.887, 0.9263, 0.9592, 0.9862, 1.0078, 1.0246, 1.0371, 1.0459, 1.0516, 1.0546, 1.0554, 1.0545, 1.0523, 1.0491, 1.0452, 1.0409, 1.0363, 1.0317, 1.0273, 1.023, 1.0189, 1.0153, 1.0119, 1.009, 1.0064, 1.0042, 1.0024, 1.0009, 0.9996, 0.9987, 0.998, 0.9975, 0.9972, 0.997, 0.9969, 0.997, 0.9971, 0.9973, 0.9975, 0.9977, 0.998, 0.9982, 0.9985, 0.9987, 0.9989, 0.9991, 1);--spring-settle-ms:1012ms}
@media (prefers-color-scheme: dark){:root{--paper:#131211;--paper-raised:#1C1B19;--ink:#EDE8E0;--ink-muted:#8A857D;--ink-faint:#5E5A54;--line:#2A2825;--accent:#94A596;--frame-mat:#26231F;--polaroid:#E8E1D2;--tape:#E9E0CC99;--pin:#8C7F70;--glow-strength:0.2;--peach:#D6A788;--blush:#D4AEB8;--lavender:#A996C9;--turquoise:#7FC2BC;--green:#93C487;--yellow:#D9C26A;--mood-0:#3F3550;--mood-0-text:#F6F2EA;--mood-1:#5C4386;--mood-1-text:#F6F2EA;--mood-2:#7850BE;--mood-2-text:#F6F2EA;--mood-3:#9C77DC;--mood-3-text:#1C1B19;--mood-4:#C2A7F1;--mood-4-text:#1C1B19;--env-0-paper:#8cc8c3;--env-0-flap:#83b8b4;--env-0-ink:#2F2C29;--env-0-muted:#434e4b;--env-0-line:#465350;--env-0-track:#2F2C291f;--env-1-paper:#dcb49a;--env-1-flap:#cba68f;--env-1-ink:#2F2C29;--env-1-muted:#554a42;--env-1-line:#5a4e45;--env-1-track:#2F2C291f;--env-2-paper:#c3b6d9;--env-2-flap:#b4a8c7;--env-2-ink:#2F2C29;--env-2-muted:#504a50;--env-2-line:#544f55;--env-2-track:#2F2C291f;--env-3-paper:#D9C26A;--env-3-flap:#c8b364;--env-3-ink:#2F2C29;--env-3-muted:#544d37;--env-3-line:#5a5239;--env-3-track:#2F2C291f}}
/*
 * getkenmi.com. Colors, pastels, mood shades and spring easings come from
 * the app (website/build.mjs writes them above this). The values below
 * mirror src/theme/motion.ts; a test in the app checks they match.
 */
:root {
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  /* Motion tokens (src/theme/motion.ts) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --stagger: 90ms;
  --rise: 12px;
  --quick: 180ms;
  --base: 320ms;
  --slow: 600ms;
  --draw: 1400ms;
  --page: 24px;
  --radius: 26px;
  --shadow: 0 10px 36px rgb(0 0 0 / 0.08);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --shadow: 0 10px 36px rgb(0 0 0 / 0.45); }
  /* A touch lighter than the page, as sheets are in the app, so it stands off the dimmed page. */
  .sheet { background: var(--paper-raised) !important; }
  .sheet-bar { background: color-mix(in srgb, var(--paper-raised) 92%, transparent) !important; }
}

*, *::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: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.locked { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration-color: var(--ink-faint); text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ─── Sections and their pastel light ─────────────────────────────────── */
section {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: 88px var(--page);
}
section::before {
  content: "";
  position: absolute;
  inset: 0 -30%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 82% 22%, color-mix(in srgb, var(--g1) calc(var(--glow-strength) * 100%), transparent), transparent),
    radial-gradient(closest-side at 18% 82%, color-mix(in srgb, var(--g2) calc(var(--glow-strength) * 80%), transparent), transparent);
}

.label {
  font: 500 12px/16px var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
h1 { font: 400 clamp(40px, 9vw, 64px)/1.15 var(--serif); letter-spacing: -0.01em; }
h2 { font: 400 clamp(32px, 6.5vw, 46px)/1.18 var(--serif); letter-spacing: -0.005em; }
.lead { font: 400 19px/1.5 var(--sans); color: var(--ink-muted); max-width: 26em; }
.feature-text p:not(.label) { color: var(--ink-muted); max-width: 30em; }
.feature-text { display: grid; gap: 14px; margin-bottom: 36px; }

/* ─── Hello ───────────────────────────────────────────────────────────── */
.hello { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; text-align: center; padding-top: 64px; }
.hello-inner { display: grid; justify-items: center; gap: 16px; }
.hello .lead { margin: 0 auto; }
.soon { font: 500 13px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin-top: 8px; }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; width: 1px; height: 40px;
  background: linear-gradient(var(--ink-faint), transparent);
}

/* ─── kenmi ───────────────────────────────────────────────────────────── */
.kenmi { display: block; overflow: visible; }
.kenmi path { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.kenmi-pen { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 7.2s ease-in-out infinite alternate; }
.kenmi-eyes { transform-box: fill-box; transform-origin: 50% 60%; animation: blink 6.5s 2.2s infinite; }
.hello-kenmi { width: min(176px, 44vw); margin-bottom: 20px; }
.hello-kenmi path { stroke-width: 1.05; }
.guide { width: 64px; flex: none; }
.soon-kenmi { width: 84px; margin: 0 auto 8px; }

/* Drawing himself in: one pen stroke, then his face, then a blink. */
@media (scripting: enabled) {
  .draw .kenmi-body { stroke-dasharray: var(--length); stroke-dashoffset: var(--length); animation: pen var(--draw) cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards; }
  .draw .kenmi-face { opacity: 0; animation: appear 420ms ease-out 1.45s forwards; }
  .draw .kenmi-eyes { animation: blink 6.5s 2.25s infinite; }
}
@keyframes pen { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes breathe { from { transform: scale(1, 1); } to { transform: scale(0.988, 1.03); } }
@keyframes blink { 0%, 96%, 100% { transform: scaleY(1); } 98% { transform: scaleY(0.1); } }

/* ─── Arriving as each section scrolls into view ──────────────────────── */
@media (scripting: enabled) {
  .reveal .step { opacity: 0; transform: translateY(var(--rise)); }
  .reveal.in .step {
    opacity: 1;
    transform: none;
    transition:
      opacity var(--slow) var(--ease-out) calc(var(--after, 0s) + var(--i, 0) * var(--stagger)),
      transform var(--spring-gentle-ms) var(--spring-gentle) calc(var(--after, 0s) + var(--i, 0) * var(--stagger));
  }
}

/* ─── Example frames ──────────────────────────────────────────────────── */
.demo { display: grid; gap: 20px; }
.frame {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.example {
  position: absolute; top: 18px; right: 18px;
  font: 500 9.5px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted); border: 1px solid var(--ink-faint); border-radius: 10px; padding: 4px 8px;
}
.frame-label { font: 500 11px/16px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.frame-title { font: 500 24px/1.2 var(--serif); margin-top: -6px; }
.entry { font: 400 19px/30px var(--serif); }
.entry.small { font-size: 16.5px; line-height: 25px; }
.guide-row { display: flex; align-items: flex-end; gap: 14px; }
.bubble {
  position: relative; flex: 1;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 20px;
  padding: 12px 16px; font: 400 16.5px/24px var(--serif);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.05);
}
.bubble::before {
  content: ""; position: absolute; left: -6px; bottom: 18px; width: 12px; height: 12px;
  background: var(--paper-raised); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}

/* Typing (site.js types into .ink over an invisible full copy, so nothing moves). */
.typed { position: relative; display: block; }
.typed .ghost { visibility: hidden; }
.typed .ink { position: absolute; inset: 0; }
.typed .ink::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--ink); opacity: 0.6; animation: caret 1s steps(1) infinite; }
.typed.done .ink::after { display: none; }
@keyframes caret { 50% { opacity: 0; } }

/* ─── Mood calendar ───────────────────────────────────────────────────── */
.month { display: grid; gap: 14px; justify-items: center; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 36px)); gap: 6px; }
.weekday { text-align: center; font: 400 11px/16px var(--sans); color: var(--ink-faint); padding-bottom: 2px; }
.day { position: relative; aspect-ratio: 1; display: grid; place-items: center; font: 400 12px/1 var(--sans); color: var(--ink-muted); }
.day > span { position: relative; }
.day.dot::after { content: ""; position: absolute; bottom: 4px; width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); }
.day.mood::before { content: ""; position: absolute; inset: 0; border-radius: 8px; background: var(--fill); }
.day.mood > span { color: var(--fill-text); }
@media (scripting: enabled) {
  .reveal .day.mood::before { opacity: 0; transform: scale(0.55); }
  .reveal .day.mood > span { color: var(--ink-muted); transition: color var(--base) var(--ease-out) calc(0.9s + var(--i) * 60ms); }
  .reveal.in .day.mood::before {
    opacity: 1; transform: none;
    transition: opacity var(--base) var(--ease-out) calc(0.9s + var(--i) * 60ms), transform var(--spring-settle-ms) var(--spring-settle) calc(0.9s + var(--i) * 60ms);
  }
  .reveal.in .day.mood > span { color: var(--fill-text); }
}
.legend { display: flex; align-items: center; gap: 5px; font: 400 11px/1 var(--sans); color: var(--ink-faint); }
.legend i { width: 12px; height: 12px; border-radius: 3px; }
.legend span:first-child { margin-right: 4px; }
.legend span:last-child { margin-left: 4px; }

/* ─── Companion ───────────────────────────────────────────────────────── */
.margin-note {
  justify-self: end; transform: rotate(-3deg);
  font: 400 23px/32px var(--hand); padding: 0 5px;
  color: color-mix(in srgb, var(--ink) 60%, var(--turquoise));
}
@media (scripting: enabled) {
  .reveal .margin-note.write { clip-path: inset(0 100% 0 0); }
  .reveal.in .margin-note.write { clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.7s; }
}
.frame hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.message { font: 400 15px/22px var(--serif); border-radius: 18px; padding: 9px 15px; max-width: 88%; }
.message.mine { justify-self: end; background: color-mix(in srgb, var(--paper) 62%, var(--turquoise)); }
.message.reply { justify-self: start; background: var(--paper-raised); border: 1px solid var(--line); }

/* ─── Finance and Boards ──────────────────────────────────────────────── */
.envelopes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.envelope {
  position: relative; aspect-ratio: 1 / 0.66; border-radius: 4px; overflow: hidden;
  background: var(--paper); display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 12px 12px; box-shadow: 0 1.5px 3px rgb(0 0 0 / 0.12);
}
.flap { position: absolute; top: 0; left: 0; width: 100%; height: 42%; }
.flap path { fill: var(--flap); }
.envelope-name { position: relative; font: 400 16px/21px var(--serif); color: var(--e-ink); }
.envelope-amount { position: relative; font: 400 11.5px/16px var(--sans); color: var(--e-muted); font-variant-numeric: tabular-nums; }
.envelope-track { position: relative; height: 3px; border-radius: 2px; background: var(--e-track); margin-top: 8px; }
.envelope-line { position: absolute; inset: 0 auto 0 0; width: calc(var(--fill) * 100%); border-radius: 2px; background: var(--e-line); }
@media (scripting: enabled) {
  .reveal .envelope { opacity: 0; transform: translateY(28px); }
  .reveal.in .envelope {
    opacity: 1; transform: none;
    transition: opacity var(--slow) var(--ease-out) calc(0.35s + var(--i) * var(--stagger)), transform var(--spring-gentle-ms) var(--spring-gentle) calc(0.35s + var(--i) * var(--stagger));
  }
}

.board-frame { padding: 16px; place-items: center; }
.board {
  position: relative; width: min(100%, 300px); aspect-ratio: 3 / 4; border-radius: 6px;
  background: radial-gradient(circle at 1.5px 1.5px, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1.6px) 0 0 / 14px 14px, var(--frame-mat);
}
.polaroid, .note {
  position: absolute; transform: translate(-50%, -50%) rotate(var(--r));
  box-shadow: 0 1.5px 3px rgb(0 0 0 / 0.14);
}
.polaroid { aspect-ratio: 1 / 1.2; background: var(--polaroid); padding: 6% 6% 22%; }
.photo {
  position: relative; width: 100%; aspect-ratio: 1; overflow: hidden;
  background: linear-gradient(color-mix(in srgb, var(--sky) 65%, white), var(--sky));
}
.sun { position: absolute; left: 62%; top: 20%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); }
.hill { position: absolute; left: -20%; right: -20%; top: 62%; height: 80%; border-radius: 50%; background: color-mix(in srgb, var(--hill) 92%, black); }
.tape { position: absolute; top: -6px; left: 32%; width: 36%; height: 12px; background: var(--tape); transform: rotate(-4deg); }
.note {
  width: 34%; aspect-ratio: 1; background: var(--polaroid); display: grid; place-items: center; padding: 8px;
  font: 400 clamp(14px, 4vw, 18px)/1.3 var(--hand); text-align: center; color: #3A342B;
}
.pin { position: absolute; top: 6px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--pin); }
@media (scripting: enabled) {
  .reveal .polaroid, .reveal .note { opacity: 0; transform: translate(-50%, calc(-50% - 26px)) rotate(0) scale(1.08); }
  .reveal.in .polaroid, .reveal.in .note {
    opacity: 1; transform: translate(-50%, -50%) rotate(var(--r));
    transition: opacity var(--base) var(--ease-out) calc(0.5s + var(--i) * 260ms), transform var(--spring-settle-ms) var(--spring-settle) calc(0.5s + var(--i) * 260ms);
  }
}

/* ─── Privacy ─────────────────────────────────────────────────────────── */
.privacy-inner, .soon-inner { max-width: 560px; margin: 0 auto; display: grid; gap: 28px; }
.privacy-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.privacy-title .guide { width: 56px; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.promises li { display: flex; gap: 16px; align-items: flex-start; font: 400 20px/1.5 var(--serif); }
.promises svg { width: 22px; height: 22px; flex: none; margin-top: 5px; overflow: visible; }
.promises path { fill: none; stroke: color-mix(in srgb, var(--green) 55%, var(--ink)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (scripting: enabled) {
  .reveal .promises path { stroke-dasharray: 26; stroke-dashoffset: 26; }
  .reveal.in .promises path { stroke-dashoffset: 0; transition: stroke-dashoffset 460ms cubic-bezier(0.65, 0, 0.35, 1) calc(var(--i) * var(--stagger) + 260ms); }
}
.quiet-link { font: 400 17px/1 var(--serif); }

/* ─── Coming soon ─────────────────────────────────────────────────────── */
.soon-section { text-align: center; padding-bottom: 72px; }
.soon-inner { justify-items: center; gap: 20px; }
.button-soon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  background: var(--paper-raised); border: 1px solid var(--line);
  font: 500 16px/1 var(--sans);
}
.button-soon .dot { color: var(--ink-faint); }
.button-soon .soon-word { color: var(--ink-muted); font-weight: 400; }

/* ─── Footer ──────────────────────────────────────────────────────────── */
footer { padding: 36px var(--page) calc(36px + env(safe-area-inset-bottom)); text-align: center; border-top: 1px solid var(--line); display: grid; gap: 14px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
footer a { font: 400 14px/1.4 var(--sans); color: var(--ink-muted); }
footer p { font: 400 12px/1 var(--sans); color: var(--ink-faint); }

/* ─── Legal popups ────────────────────────────────────────────────────── */
dialog.legal {
  padding: 0; border: 0; background: transparent; color: inherit;
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
}
dialog.legal::backdrop { background: rgb(0 0 0 / 0.32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(100svh - 40px);
  background: var(--paper); border-radius: 24px 24px 0 0; overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 -10px 40px rgb(0 0 0 / 0.18);
}
dialog[open] .sheet { animation: rise var(--spring-settle-ms) var(--spring-settle); }
@keyframes rise { from { transform: translateY(48px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-bar {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--page); background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  font: 500 12px/16px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted);
}
.close { font: 400 16px/1 var(--sans); letter-spacing: 0; text-transform: none; text-decoration: none; color: var(--ink-muted); padding: 8px 0 8px 16px; }
.legal-text { padding: 28px var(--page) calc(56px + env(safe-area-inset-bottom)); max-width: 680px; margin: 0 auto; font: 400 17px/1.62 var(--serif); }
.legal-text h2 { font: 400 32px/1.2 var(--serif); margin-bottom: 18px; }
.legal-text h3 { font: 500 21px/1.35 var(--serif); margin: 34px 0 10px; }
.legal-text h4 { font: 500 17px/1.4 var(--sans); margin: 24px 0 8px; }
.legal-text p, .legal-text ul, .legal-text ol, .legal-text blockquote { margin: 0 0 14px; }
.legal-text ul, .legal-text ol { padding-left: 1.2em; }
.legal-text li { margin-bottom: 8px; }
.legal-text li::marker { color: var(--ink-faint); }
.legal-text strong { font-weight: 500; }
.legal-text hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* ─── Contact sheet (/contact, /contact/thanks/) ──────────────────────── */
.contact-body { padding: 28px var(--page) calc(56px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; }
.contact-write h2 { font: 400 32px/1.2 var(--serif); margin-bottom: 10px; }
.contact-lead { font: 400 17px/1.55 var(--serif); color: var(--ink-muted); margin-bottom: 28px; }
.contact-form { display: grid; gap: 18px; }
/* The honeypot: off screen for people, still in the form for bots. */
.contact-form .bot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 8px; }
.field span { font: 500 12px/16px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field textarea {
  width: 100%; font: 400 17px/1.5 var(--serif); color: var(--ink); background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; appearance: none;
  transition: border-color var(--quick) var(--ease-out), box-shadow var(--quick) var(--ease-out);
}
.field input { line-height: 1.3; }
.field textarea { resize: vertical; min-height: 9em; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink-faint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent); }
.send {
  justify-self: start; font: 500 16px/1 var(--sans); color: var(--paper); background: var(--ink);
  border: 0; border-radius: 999px; padding: 14px 28px; cursor: pointer;
  transition: transform var(--quick) var(--ease-out);
}
.send:active { transform: scale(0.97); }
.send:focus-visible, .copy:focus-visible { outline: 2px solid var(--ink-faint); outline-offset: 3px; }
.contact-note { margin-top: 22px; font: 400 14px/1.5 var(--sans); color: var(--ink-muted); }
.contact-email {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--line); font: 400 15px/1.4 var(--sans); color: var(--ink-muted);
}
.contact-email .address { color: var(--ink); user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }
.copy {
  font: 500 13px/1 var(--sans); color: var(--ink-muted); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
}
.contact-thanks { display: none; justify-items: center; gap: 22px; text-align: center; padding: 64px 0 24px; }
.contact-thanks p { font: 400 24px/1.35 var(--serif); max-width: 18em; }
.thanks-kenmi { width: 92px; height: auto; color: var(--ink); animation: appear var(--slow) var(--ease-out) both; opacity: 0; }
dialog.contact[data-sent] .contact-write { display: none; }
dialog.contact[data-sent] .contact-thanks { display: grid; }

/* ─── Wider screens ───────────────────────────────────────────────────── */
@media (min-width: 900px) {
  :root { --page: 48px; }
  section { padding: 120px var(--page); }
  /* Full width, so the pastel light reaches the edges; the content keeps a 1120px column. */
  .feature {
    display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
    padding-inline: max(var(--page), calc((100% - 1120px) / 2));
  }
  .feature.flip .feature-text { order: 2; }
  .feature-text { margin-bottom: 0; }
  .demo.pair { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .sheet {
    left: 50%; top: 50%; bottom: auto; width: min(760px, 92vw); height: 86vh;
    transform: translate(-50%, -50%); border-radius: 24px;
  }
  dialog[open] .sheet { animation: rise-center var(--spring-settle-ms) var(--spring-settle); }
  @keyframes rise-center { from { transform: translate(-50%, calc(-50% + 40px)); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
}

/* ─── Reduce Motion: calm fades instead of movement ───────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kenmi-pen, .kenmi-eyes, .draw .kenmi-eyes { animation: none; }
  .draw .kenmi-body { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .draw .kenmi-face { opacity: 1; animation: none; }
  .hello-kenmi { animation: appear var(--base) ease-out both; }
  .reveal .step, .reveal .envelope, .reveal .polaroid, .reveal .note { transform: none !important; }
  .reveal.in .step, .reveal.in .envelope, .reveal.in .polaroid, .reveal.in .note { transition: opacity var(--base) var(--ease-out) !important; }
  .reveal .polaroid, .reveal .note, .reveal.in .polaroid, .reveal.in .note { transform: translate(-50%, -50%) rotate(var(--r)) !important; }
  .reveal .day.mood::before { transform: none !important; }
  .reveal .margin-note.write { clip-path: none !important; }
  .reveal .promises path { stroke-dashoffset: 0 !important; transition: none !important; }
  dialog[open] .sheet { animation: appear var(--base) ease-out; }
}

/* /privacy and /terms before JavaScript runs (or without it): the sheet already showing. */
dialog.legal[open]:not(:modal) { position: fixed; inset: 0; z-index: 10; background: rgb(0 0 0 / 0.32); }
