:root {
  --ink: #16172A;
  --slate: #77788A;
  --muted: #9A9BAA;
  --lilac: #8F84D9;
  --lilac-deep: #6A5FC0;
  --lilac-tint: #F1EEFD;
  --paper: #F4F1EC;
  --white: #FFFFFF;
  --rose: #C2336A;
  --rose-tint: #FFEFF4;
  --hair: rgba(22, 23, 42, 0.07);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(140% 40% at 50% 0%, #E8E1FB 0%, rgba(232, 225, 251, .55) 40%, rgba(244, 241, 236, 0) 72%),
    radial-gradient(70% 26% at 0% 0%, #FBF1E2 0%, rgba(251, 241, 226, 0) 70%),
    var(--paper);
}
.wrap { max-width: 440px; margin: 0 auto; padding: 28px 20px 40px; display: flex; flex-direction: column; gap: 18px; }
.brand { display: flex; justify-content: center; align-items: center; gap: 10px; }
.brand .word { font-family: 'Gluten', 'Geist', sans-serif; font-weight: 700; font-size: 26px; }
.icon { width: 34px; height: 34px; border-radius: 9px; background: var(--lilac); display: inline-flex; align-items: center; justify-content: center; }
h1 { font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1.15; letter-spacing: -0.015em; margin: 0; text-align: center; text-wrap: balance; }
p { margin: 0; line-height: 1.55; }
.sub { color: var(--slate); text-align: center; font-size: 15px; }
.cast { display: flex; justify-content: center; align-items: flex-end; height: 120px; }
.card { background: var(--white); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.label { font-size: 12px; color: var(--muted); padding: 0 4px; }
input[type=text], textarea {
  width: 100%; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 4px 0;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid #F0EDE7; }
.field:last-child { border-bottom: 0; }
.field small { font-size: 11px; color: var(--muted); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice { border: 1.5px solid transparent; background: var(--white); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; text-align: left; }
.choice[aria-pressed=true] { border-color: var(--ink); }
.choice .tile { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.btn { height: 54px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.soft { background: var(--white); color: var(--ink); }
.link { background: none; border: 0; color: var(--slate); font: inherit; font-size: 14px; cursor: pointer; padding: 10px; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.thumbs div { aspect-ratio: 1; border-radius: 12px; background: #EEEBFC center/cover no-repeat; position: relative; overflow: hidden; }
.thumbs video { width: 100%; height: 100%; object-fit: cover; }
.note { font-size: 13px; color: var(--slate); text-align: center; }
.error { color: var(--rose); font-size: 14px; text-align: center; }
.rec { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0; }
.recbtn { width: 78px; height: 78px; border-radius: 50%; border: 6px solid rgba(143, 132, 217, .18); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(22, 23, 42, .35); }
.recbtn span { width: 30px; height: 30px; border-radius: 50%; background: #E5484D; transition: all .2s; }
.recbtn.on span { width: 24px; height: 24px; border-radius: 7px; }
.time { font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--slate); }
.privacy { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.hidden { display: none !important; }
.progress { height: 4px; border-radius: 2px; background: #E3DED5; overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--lilac); transition: width .2s; }
@keyframes k-blink { 0%, 92%, 100% { transform: scaleY(1); } 95%, 97% { transform: scaleY(.1); } }
@keyframes k-squish { 0%, 100% { transform: scale(1, 1); } 45% { transform: scale(1.04, .94); } 60% { transform: scale(.98, 1.03); } 75% { transform: scale(1, 1); } }
@keyframes k-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.72) rotate(18deg); opacity: .75; } }
@keyframes k-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.04, .95); } }
.k-squish { animation: k-squish 4.2s ease-in-out infinite; transform-origin: 50% 100%; }
.k-breathe { animation: k-breathe 4s ease-in-out infinite; transform-origin: 50% 100%; }
.k-twinkle { animation: k-twinkle 2.8s ease-in-out infinite; transform-origin: 50% 50%; }
.k-blink ellipse[fill="#1C1630"], .k-blink circle[fill="#FFFFFF"] { animation: k-blink 5s infinite; transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: reduce) { .k-squish, .k-breathe, .k-twinkle, .k-blink ellipse, .k-blink circle { animation: none; } }

/* legal pages */
.legal { max-width: 680px; margin: 0 auto; padding: 28px 20px 64px; }
.legal header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.legal header a { text-decoration: none; color: var(--ink); }
.legal nav { display: flex; gap: 16px; font-size: 14px; }
.legal nav a { color: var(--slate); text-decoration: none; }
.legal nav a[aria-current=page] { color: var(--ink); font-weight: 500; }
.legal h1 { text-align: left; font-size: 38px; margin-bottom: 8px; }
.legal .updated { color: var(--slate); font-size: 14px; margin-bottom: 28px; }
.legal .summary { background: var(--white); border-radius: 22px; padding: 20px 22px; margin-bottom: 36px; }
.legal .summary h2 { margin-top: 0; }
.legal .summary ul { margin-bottom: 0; }
.legal h2 { font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: 24px; letter-spacing: -0.01em; margin: 40px 0 10px; }
.legal h3 { font-size: 16px; font-weight: 600; margin: 22px 0 6px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; color: #2B2C40; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--lilac-deep); }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 16px; background: var(--white); border-radius: 16px; overflow: hidden; }
.legal th, .legal td { text-align: left; padding: 11px 14px; vertical-align: top; border-bottom: 1px solid #F0EDE7; line-height: 1.5; }
.legal th { font-weight: 600; font-size: 13px; color: var(--slate); }
.legal tr:last-child td { border-bottom: 0; }
.legal .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal .caps { text-transform: uppercase; font-size: 14px; letter-spacing: .01em; }
.legal footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid #E6E1D8; font-size: 14px; color: var(--slate); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legal footer a { color: var(--slate); }
.todo { background: #FFF4C7; border-radius: 6px; padding: 0 4px; }
.site-footer { margin-top: 24px; display: flex; justify-content: center; gap: 16px; font-size: 13px; }
.site-footer a { color: var(--slate); }
@media (max-width: 480px) { .legal h1 { font-size: 32px; } .legal header { margin-bottom: 28px; } }
@media (max-width: 560px) {
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal thead { display: none; }
  .legal tr { padding: 12px 16px; border-bottom: 1px solid #F0EDE7; }
  .legal tr:last-child { border-bottom: 0; }
  .legal td { padding: 2px 0; border: 0; }
  .legal td:first-child { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
  .legal td:nth-child(3) { color: var(--slate); font-size: 13.5px; margin-top: 4px; }
}
