/* 나의 컬러는? — shared styles (landing, legal, share, update, 404).
   Tokens mirror BRAND_SYSTEM.md (character kit folder). Change values there first. */
:root {
  --bg: #FAF8F6; --surface: #FFFFFF; --surface-2: #F4F1EE; --line: #EAE4DF; --line-strong: #D5CDC7;
  --ink: #1D1B1A; --ink-2: #66605B; --ink-3: #9A918B;
  --accent: #5B4B8A; --on-accent: #FFFFFF; --accent-soft: #EAE4F8; --on-accent-soft: #3A2D66;
  --peach: #FFCBB0; --lavender: #CBBEF5;
  --aurora-1: #FFE3D4; --aurora-2: #E6DFFB; --aurora-3: #FDE9D9;
  --best: #276E57; --best-bg: #DDF0EA; --okay: #7A5E14; --okay-bg: #F6EDCF; --worst: #A33F33; --worst-bg: #F9E3DE;
  --s-spring: #FF8A6B; --s-summer: #9CC9EC; --s-autumn: #D4A017; --s-winter: #B5006E;
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-drop: 24px 8px 24px 24px;
  --e1: 0 1px 2px rgba(43,34,54,.05), 0 8px 24px rgba(91,75,138,.08);
  --e2: 0 2px 4px rgba(43,34,54,.06), 0 18px 44px rgba(91,75,138,.16);
  --gloss: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 55%);
  --ease: cubic-bezier(.2,0,0,1); --ease-pop: cubic-bezier(.34,1.56,.64,1);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312; --surface: #1E1C1B; --surface-2: #2A2725; --line: #3A3633; --line-strong: #4D4845;
    --ink: #EAE6E3; --ink-2: #B8B0AA; --ink-3: #857D77;
    --accent: #CBBEF5; --on-accent: #2F2260; --accent-soft: #2E2745; --on-accent-soft: #E2DAFB;
    --aurora-1: rgba(255,203,176,.14); --aurora-2: rgba(203,190,245,.16); --aurora-3: rgba(255,203,176,.08);
    --best: #8FD3BC; --best-bg: #1F3B33; --okay: #E3C77A; --okay-bg: #3A321C; --worst: #F0A89C; --worst-bg: #45231E;
    --e1: inset 0 0 0 1px #3A3633; --e2: inset 0 0 0 1px #4D4845, 0 18px 44px rgba(0,0,0,.4);
    --gloss: linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,0) 55%);
    --frame: #57514C;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.625; word-break: keep-all; overflow-wrap: break-word; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; margin-right: auto; }
.brand img { width: 36px; height: 36px; }
.nav { display: none; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: background .16s var(--ease), color .16s var(--ease); }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
@media (min-width: 840px) { .nav { display: flex; margin-right: 12px; } }

/* Footer */
.site-footer { margin-top: 40px; padding: 32px 0 44px; color: var(--ink-2); font-size: 14px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.site-footer .brand { font-size: 15px; margin-right: 0; flex-basis: 100%; margin-bottom: 4px; }
.site-footer .brand img { width: 28px; height: 28px; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: var(--r-md); border: 0;
  font: inherit; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: transform .1s var(--ease), filter .16s var(--ease), box-shadow .16s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--gloss), var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -8px rgba(91,75,138,.6); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: var(--r-sm); box-shadow: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-block { display: flex; width: 100%; }

/* QR (tablet/desktop only; phones use the button) */
.qr { display: none; align-items: center; gap: 14px; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.qr img { width: 96px; height: 96px; padding: 6px; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 720px) { .qr { display: flex; } }

/* Shared text bits */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .01em; margin-bottom: 12px; }
.section { padding: 72px 0; }
@media (min-width: 880px) { .section { padding: 112px 0; } }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 6vw, 38px); font-weight: 800; }
.section-head p:not(.eyebrow) { color: var(--ink-2); font-size: clamp(16px, 2.2vw, 18px); margin-top: 10px; }
.muted { color: var(--ink-2); }

/* Aurora: soft brand blobs behind a section */
.aurora { position: relative; isolation: isolate; }
.aurora::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 30%, var(--aurora-2), transparent 70%),
    radial-gradient(38% 46% at 62% 72%, var(--aurora-1), transparent 70%),
    radial-gradient(30% 40% at 10% 10%, var(--aurora-3), transparent 70%);
}

/* Tinty motion (bounce = whole element transform, blink = eyes of inline SVG only) */
.bob { animation: bob 1.6s ease-in-out infinite; transform-origin: 50% 88%; }
.tinty-live .eye { animation: blink 6.6s infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0) scale(1.028, .968); }
  20%, 80% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4.5%) scale(.99, 1.01); }
}
@keyframes shadow { 50% { transform: scale(.78); opacity: .6; } }
@keyframes blink {
  0%, 40%, 42.4%, 88%, 90.4%, 92%, 94.4%, 100% { transform: none; }
  41.2%, 89.2%, 93.2% { transform: scaleY(.1); }
}
.hop { transition: transform .4s var(--ease-pop); }
a:hover .hop, .hop:hover { transform: translateY(-6px) rotate(-3deg); }

/* ---------- Landing ---------- */
.hero { padding: 28px 0 8px; }
.hero .wrap { display: grid; gap: 8px; align-items: center; }
.hero h1 { font-size: clamp(38px, 10vw, 62px); font-weight: 800; line-height: 1.16; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #D2603E, #7B5CC4); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { .hero h1 em { background-image: linear-gradient(100deg, #FFB496, #CBBEF5); } }
.hero .lead { color: var(--ink-2); font-size: clamp(17px, 2.4vw, 20px); margin: 18px 0 28px; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.hero-cta .btn { flex: 1 1 auto; max-width: 340px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--surface); box-shadow: var(--e1); padding: 6px 12px 6px 10px; border-radius: 999px; }
.trust svg { width: 16px; height: 16px; color: var(--best); }
@media (min-width: 880px) {
  .hero { padding: 56px 0 24px; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 40px; }
  .hero-cta .btn { flex: none; }
}
.hero-art { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 0 auto; order: -1; }
@media (min-width: 880px) { .hero-art { order: 0; } }
.hero-art .halo { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--aurora-1), var(--aurora-2) 60%, transparent 72%); }
.hero-tinty { position: absolute; inset: 14% 14% 10%; }
.hero-tinty::before {
  content: ""; position: absolute; left: 27%; right: 27%; bottom: 1%; height: 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70,50,110,.28), transparent); animation: shadow 1.6s ease-in-out infinite;
}
.hero-tinty svg { position: relative; width: 100%; height: 100%; }
.bubble {
  position: absolute; left: 0; top: 8%; z-index: 1; max-width: 62%;
  background: var(--surface); color: var(--ink); box-shadow: var(--e2); border-radius: 22px 22px 6px 22px;
  padding: 10px 16px; font-weight: 700; font-size: clamp(14px, 3.6vw, 16px); line-height: 1.4;
  animation: pop .5s .3s var(--ease-pop) both;
}
@keyframes pop { from { transform: translateY(8px) scale(.85); } }
.chip-float { position: absolute; width: 7%; aspect-ratio: 1; border-radius: 30%; box-shadow: 0 6px 14px -6px rgba(43,34,54,.35); }
.chip-float:nth-of-type(1) { background: var(--s-spring); left: 8%; top: 52%; transform: rotate(-14deg); }
.chip-float:nth-of-type(2) { background: var(--s-summer); right: 6%; top: 26%; transform: rotate(12deg); width: 8%; }
.chip-float:nth-of-type(3) { background: var(--s-autumn); right: 12%; bottom: 14%; transform: rotate(-8deg); width: 6%; }
.chip-float:nth-of-type(4) { background: var(--s-winter); left: 18%; bottom: 8%; transform: rotate(20deg); width: 5%; }

/* Steps */
.steps { display: grid; gap: 14px; list-style: none; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 4px 16px; align-items: center; background: var(--surface); box-shadow: var(--e1); border-radius: var(--r-lg); padding: 18px 20px 18px 14px; }
.step img { width: 96px; height: 96px; grid-row: span 2; }
.step h3 { font-size: 19px; align-self: end; display: flex; align-items: center; gap: 8px; }
.step h3::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--on-accent-soft); font-size: 13px; font-weight: 800; }
.step p { color: var(--ink-2); font-size: 15px; align-self: start; }
@media (min-width: 800px) {
  .step { grid-template-columns: 1fr; align-content: start; text-align: center; padding: 28px 24px 30px; }
  .step img { width: 148px; height: 148px; margin: 0 auto 8px; grid-row: auto; }
  .step h3 { justify-content: center; }
}

/* Features (bento) */
.bento { display: grid; gap: 16px; list-style: none; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature { display: flex; flex-direction: column; background: var(--surface); box-shadow: var(--e1); border-radius: var(--r-lg); padding: 10px 10px 24px; overflow: hidden; }
.feature .art { position: relative; height: 200px; border-radius: 18px; background: var(--surface-2); margin-bottom: 20px; overflow: hidden; display: grid; place-items: center; }
.feature h3 { font-size: 20px; padding: 0 14px; display: flex; align-items: center; gap: 10px; }
.feature p { color: var(--ink-2); font-size: 15px; padding: 0 14px; margin-top: 6px; }
.ic { flex: none; width: 36px; height: 36px; border-radius: 14px 5px 14px 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.ic svg { width: 20px; height: 20px; }

/* feature art pieces */
.vf { position: relative; width: 140px; height: 148px; margin-top: -14px; }
.vf .corner { position: absolute; width: 22px; height: 22px; border: 3px solid var(--accent); }
.vf .c1 { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.vf .c2 { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.vf .c3 { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.vf .c4 { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.vf .face { position: absolute; left: 34px; right: 34px; top: 22px; bottom: 30px; border: 2.5px dashed var(--ink-3); border-radius: 50% 50% 46% 46%; }
.probe { position: absolute; display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--ink); background: var(--surface); border-radius: 999px; padding: 3px 8px 3px 4px; box-shadow: var(--e1); white-space: nowrap; }
.probe i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.status { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--best); background: var(--best-bg); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }

.dex { width: 82%; max-width: 280px; background: var(--surface); border-radius: 16px; box-shadow: var(--e1); padding: 14px 14px 12px; }
.dex b { display: block; font-size: 16px; margin-bottom: 8px; }
.dex .row { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.dex .row span { flex: 1; aspect-ratio: 1; border-radius: 7px; }
.lbl { flex: none !important; aspect-ratio: auto !important; width: 50px; font-size: 11px; font-weight: 800; letter-spacing: .04em; border-radius: 6px; padding: 2px 0; text-align: center; }
.lbl.best { color: var(--best); background: var(--best-bg); }
.lbl.worst { color: var(--worst); background: var(--worst-bg); }
.lbl.okay { color: var(--okay); background: var(--okay-bg); }
.dex .row.worst span:not(.lbl) { opacity: .9; }

.board { position: relative; width: 100%; height: 100%; }
.board .wx { position: absolute; left: 14px; top: 12px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; background: var(--surface); padding: 4px 10px 4px 8px; border-radius: 999px; box-shadow: var(--e1); font-variant-numeric: tabular-nums; }
.board .wx svg { width: 16px; height: 16px; color: #E8A33A; }
.board svg.cloth { position: absolute; filter: drop-shadow(0 6px 8px rgba(43,34,54,.16)); }

.closet { display: grid; grid-template-columns: repeat(3, 62px); gap: 10px; }
.closet li { list-style: none; position: relative; height: 62px; background: var(--surface); border-radius: 14px; box-shadow: var(--e1); display: grid; place-items: center; }
.closet svg { width: 40px; height: 40px; }
.closet li::after { content: ""; position: absolute; right: 5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--best); box-shadow: 0 0 0 2px var(--surface); }
.closet li.o::after { background: #D4A017; }
.closet li.w::after { background: var(--worst); }

.check { position: relative; width: 100%; height: 100%; background: radial-gradient(60% 70% at 30% 40%, #E9A6B3, transparent 70%), radial-gradient(60% 70% at 75% 65%, #C97C95, transparent 70%), #F2C9D1; }
.check .tap { position: absolute; left: 38%; top: 34%; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.18), inset 0 0 0 2px rgba(0,0,0,.08); background: #DC8FA2; }
.check .tap::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); }
.verdict { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--ink); border-radius: 16px; box-shadow: var(--e2); padding: 8px 12px 8px 8px; white-space: nowrap; }
.verdict i { width: 28px; height: 28px; border-radius: 9px; background: #DC8FA2; }
.verdict b { font-size: 14px; }

.phone { position: relative; width: 132px; height: 220px; margin-top: 46px; border-radius: 26px; border: 5px solid var(--frame, #1D1B1A); background: linear-gradient(160deg, #FFE0CF, #F7C8C4 45%, #E6DCF7); overflow: hidden; }
.widget { position: absolute; left: 8px; top: 14px; width: 66px; height: 66px; background: rgba(255,255,255,.92); border-radius: 14px; padding: 6px 7px; color: #1D1B1A; }
.widget small { display: block; font-size: 7.5px; font-weight: 800; color: #5B4B8A; line-height: 1.2; }
.widget b { display: block; font-size: 11px; line-height: 1.3; }
.widget i { display: block; width: 14px; height: 14px; border-radius: 4px; background: #FFCBA4; margin-top: 3px; box-shadow: 0 0 0 1.5px #fff; }
.widget img { position: absolute; right: -3px; bottom: -3px; width: 36px; height: 36px; }
.apps { position: absolute; left: 82px; top: 14px; display: grid; grid-template-columns: repeat(2, 16px); gap: 6px 10px; }
.apps i, .dock i { width: 16px; height: 16px; border-radius: 5px; background: rgba(255,255,255,.65); }
.dock { position: absolute; left: 10px; right: 10px; bottom: 12px; display: flex; justify-content: space-around; }

/* 12 tones */
.seasons { display: grid; gap: 28px; }
@media (min-width: 960px) { .seasons { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; } }
.season h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 12px; }
.season h3 i { width: 12px; height: 12px; border-radius: 4px; }
.season h3 span { color: var(--ink-2); font-weight: 500; font-size: 14px; }
.tone-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; }
.tone {
  display: block; padding: 12px 8px 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--e1);
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; text-align: center;
  transition: box-shadow .16s var(--ease);
}
.tone:hover { box-shadow: var(--e1), inset 0 0 0 2px var(--accent); }
.tone img { width: min(100%, 104px); height: auto; aspect-ratio: 1; margin: 0 auto 4px; }
.tone .chips { display: block; height: 8px; border-radius: 99px; margin: 8px auto 0; max-width: 88px;
  background: linear-gradient(90deg, var(--c1) 0 25%, var(--c2) 0 50%, var(--c3) 0 75%, var(--c4) 0); }

/* Privacy */
.privacy { max-width: 960px; margin: 0 auto; display: grid; gap: 8px 32px; align-items: center; background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2)); border-radius: var(--r-xl); padding: 28px 24px 32px; }
.privacy img { width: 136px; height: 136px; margin: -8px auto 0; }
.privacy h2 { font-size: clamp(24px, 5.6vw, 34px); font-weight: 800; }
.privacy p { color: var(--ink-2); margin-top: 8px; }
.checks { display: grid; gap: 10px; margin: 20px 0 18px; list-style: none; }
.checks li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.checks svg { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--surface); color: var(--best); }
.privacy a { font-weight: 600; }
@media (min-width: 800px) {
  .privacy { grid-template-columns: 220px 1fr; padding: 44px 56px; }
  .privacy img { width: 210px; height: 210px; margin: 0; }
}

/* Final CTA */
.final { position: relative; text-align: center; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--e2); padding: 24px 24px 40px; overflow: hidden; isolation: isolate; }
.final::before { content: ""; position: absolute; inset: 0 0 auto; height: 60%; z-index: -1; background: radial-gradient(50% 80% at 50% 0%, var(--aurora-2), transparent 70%), radial-gradient(30% 60% at 30% 10%, var(--aurora-1), transparent 70%); }
.final img { width: 152px; height: 152px; margin: 0 auto 4px; }
.final h2 { font-size: clamp(26px, 6vw, 38px); font-weight: 800; }
.final p { color: var(--ink-2); margin: 8px 0 26px; }
.final .hero-cta { justify-content: center; }

/* ---------- Legal docs ---------- */
.doc-page { padding-top: 24px; }
.doc { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--e1); padding: 28px 22px 36px; }
@media (min-width: 720px) { .doc-page { padding-top: 40px; } .doc { padding: 48px 56px 56px; } }
.doc-tinty { float: right; width: 60px; height: 60px; margin: -10px -6px 4px 8px; }
@media (min-width: 720px) { .doc-tinty { width: 120px; height: 120px; margin: -24px -16px 8px 16px; } .doc .meta { clear: none; display: flow-root; } }
.doc h1 { font-size: clamp(28px, 7vw, 38px); font-weight: 800; margin: 4px 0 16px; }
.doc h2 { font-size: 19px; font-weight: 700; margin: 40px 0 12px; display: flex; gap: 10px; align-items: baseline; }
.doc h2::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 4px 1px 4px 4px; background: linear-gradient(135deg, var(--peach), var(--lavender)); transform: translateY(-2px); }
.doc p, .doc li { font-size: 16px; line-height: 1.8; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--ink-3); }
.doc .meta { clear: both; color: var(--ink-2); font-size: 14.5px; background: var(--surface-2); border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 24px; }
.doc .meta:last-child { margin: 32px 0 0; }
.doc table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; margin: 14px 0; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); }
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; min-width: 130px; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { background: var(--surface-2); font-weight: 700; }
.doc strong { font-weight: 700; }

/* ---------- Share pages (/r/<toneId>/) ---------- */
.share { max-width: 600px; padding-top: 20px; }
.share-sheet { border-radius: var(--r-xl); overflow: hidden; background: var(--surface); box-shadow: 0 1px 2px rgba(43,34,54,.05), 0 8px 24px rgba(91,75,138,.08); }
@media (prefers-color-scheme: dark) { .share-sheet { box-shadow: none; border: 1px solid var(--line); } }
.share-hero {
  position: relative; text-align: center; padding: 20px 20px 4px; overflow: hidden; isolation: isolate;
  background: radial-gradient(50% 60% at 25% 30%, var(--a1), transparent 72%), radial-gradient(50% 60% at 78% 40%, var(--a2), transparent 72%), radial-gradient(60% 60% at 50% 100%, var(--a3), transparent 72%), var(--surface);
}
.share-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 55%, var(--surface)); }
@media (prefers-color-scheme: dark) { .share-hero::before { background: linear-gradient(rgba(30,28,27,.45), var(--surface)); } }
.share-hero img { width: 200px; height: 200px; margin: 0 auto; }
.share-card { padding: 8px 22px 28px; }
.share-card .head { text-align: center; }
.share-card .eyebrow { margin: 0; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.share-card h1 { font-size: clamp(36px, 10vw, 44px); font-weight: 800; margin: 2px 0 2px; }
.share-card .en { color: var(--ink-3); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0 22px; list-style: none; }
.tags li { color: var(--on-accent-soft); background: var(--accent-soft); border-radius: 99px; padding: 4px 12px; font-size: 14px; font-weight: 600; }
.share-card h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 22px 0 10px; }
.share-card h2 .lbl { width: auto; padding: 2px 8px; font-size: 12px; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; list-style: none; }
@media (min-width: 480px) { .swatches { grid-template-columns: repeat(6, 1fr); } }
.swatches li { font-size: 12px; line-height: 1.3; color: var(--ink-2); text-align: center; }
.swatches i { display: block; aspect-ratio: 1; border-radius: 14px; margin-bottom: 5px; box-shadow: inset 0 0 0 1px rgba(128,128,128,.22); }
.swatches.worst i { border-radius: 10px; }
.summary { margin: 22px 0 0; padding: 16px 18px 16px 34px; background: var(--surface-2); border-radius: var(--r-md); }
.summary li + li { margin-top: 4px; }
.summary li::marker { color: var(--ink-3); }
.share-cta { margin-top: 16px; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--e1); padding: 22px; text-align: center; }
.share-cta h2 { font-size: 20px; }
.share-cta p { color: var(--ink-2); font-size: 15px; margin: 4px 0 16px; }
.stack { display: grid; gap: 10px; }
.share-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; margin-top: 20px; color: var(--ink-2); font-size: 14px; }
.share-foot span { display: inline-flex; align-items: center; gap: 6px; }
.share-foot svg { width: 16px; height: 16px; color: var(--best); }

/* ---------- Old WebView pages → update prompt ---------- */
.update { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 20px; text-align: center; }
.update > div { width: 100%; max-width: 420px; }
.update img { width: 148px; height: 148px; margin: 0 auto 8px; }
.update h1 { font-size: clamp(26px, 7vw, 32px); font-weight: 800; margin-bottom: 22px; }
.update ul { list-style: none; display: grid; gap: 10px; margin: 0 0 28px; text-align: left; }
.update li { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--e1); padding: 12px 16px; font-weight: 600; }
.update li svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 14px 5px 14px 14px; background: var(--accent-soft); color: var(--accent); }
.update .note { color: var(--ink-2); font-size: 14px; margin-top: 16px; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.notfound img { width: 180px; height: 180px; margin: 0 auto 8px; }
.notfound h1 { font-size: clamp(26px, 7vw, 34px); font-weight: 800; }
.notfound p { color: var(--ink-2); margin: 8px 0 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bob, .tinty-live .eye, .hero-tinty::before, .bubble { animation: none; }
  .hop, .btn { transition: none; }
  a:hover .hop, .hop:hover { transform: none; }
}
