:root {
  --ink: #17132B; --lilac: #F4F1FF; --cobalt: #2B35E8; --lime: #C8F55A; --tomato: #FF5A36; --sun: #FFD23F;
  --muted: #5A5470; --line: #D9D3F2; --soft: #E4DFF7; --card: #fff;
  --display: 'Unbounded', system-ui, sans-serif; --body: 'Plus Jakarta Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--lilac); line-height: 1.5; }
a { color: var(--cobalt); }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; }
h1, h2, h3, .display { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--display); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn-sm { min-height: 40px; font-size: 13px; padding: 0 16px; }
.btn-ink { background: var(--ink); color: #fff; } .btn-ink:hover { color: #fff; background: #2A2545; }
.btn-tomato { background: var(--tomato); color: var(--ink); } .btn-tomato:hover { color: var(--ink); filter: brightness(1.05); }
.btn-lime { background: var(--lime); color: var(--ink); } .btn-lime:hover { color: var(--ink); filter: brightness(1.04); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--ink); } .btn-ghost:hover { color: var(--ink); background: var(--soft); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* header / footer */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; max-width: 1100px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.topnav { display: flex; align-items: center; gap: 16px; }
.topnav a:not(.btn) { color: var(--ink); font-weight: 700; text-decoration: none; font-size: 14px; }
.foot { max-width: 1100px; margin: 40px auto 0; padding: 28px 20px 40px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a { color: var(--ink); font-weight: 600; }

/* name pages */
.wrap { max-width: 1100px; margin: 0 auto; padding: 8px 20px; }
.hero { padding: 24px 0 12px; }
.hero h1 { font-size: clamp(48px, 10vw, 104px); margin: 6px 0 10px; font-weight: 800; }
.lede { font-size: 18px; max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; margin-top: 18px; }
.card { background: var(--card); border-radius: 24px; padding: 20px 22px; }
.card p { margin: 8px 0; }
.card .big { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.25; }
.c-cobalt { background: var(--cobalt); color: #fff; } .c-cobalt a { color: #fff; }
.c-lime { background: var(--lime); }
.c-ink { background: var(--ink); color: #fff; }
.chip { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 10px; background: rgba(255,255,255,.18); margin-right: 6px; }
.card:not(.c-cobalt) .chip { background: var(--soft); }
.chart { width: 100%; height: auto; background: var(--ink); border-radius: 18px; padding: 14px 12px 6px; }
.chart-labels text { fill: #D9D3F2; font-size: 10px; font-family: var(--body); }
.pills { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { background: var(--lilac); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 14px; }
.pills li span { color: var(--muted); font-weight: 600; }
.pills li.on { background: var(--tomato); }
.pills li.on span { color: var(--ink); }
.pills a { color: var(--ink); }
.careers { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0; }
.careers th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 6px 4px; }
.careers td { border-top: 1px solid var(--soft); padding: 8px 4px; }
.mult { color: var(--lime); }
.blurline { background: #2A2545; border-radius: 16px; padding: 14px 16px; overflow: hidden; }
.blurline span { font-family: var(--display); font-weight: 800; font-size: 24px; filter: blur(10px); user-select: none; }
.prose { max-width: 760px; }
.prose h1 { font-size: 40px; }
.prose h2 { font-size: 22px; margin-top: 28px; }

/* app */
.app { max-width: 460px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.screen { display: none; flex-direction: column; flex: 1; padding: 10px 20px 22px; gap: 12px; }
.screen.on { display: flex; }
.app-title { font-size: 30px; font-weight: 700; margin: 8px 0 4px; }
.namefield { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 18px; padding: 12px 16px; width: 100%; }
.namefield:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(43,53,232,.35); }
.status { min-height: 20px; font-size: 13px; color: var(--muted); }
.status button { border: none; background: none; padding: 0; font: inherit; color: var(--cobalt); text-decoration: underline; cursor: pointer; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { border-radius: 16px; padding: 12px; }
.tile b { display: block; font-family: var(--display); font-size: 19px; }
.tile span { font-size: 11px; font-weight: 600; }
.crowd { display: grid; grid-template-columns: repeat(25, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.crowd i, .room i { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--soft); transition: background .2s; }
.crowd i.on { background: var(--cobalt); }
.room { display: grid; grid-template-columns: repeat(40, minmax(0, 1fr)); gap: 2px; }
.room i.on { background: var(--tomato); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 3px; }
.seg button { min-height: 40px; border: none; border-radius: 999px; background: transparent; font-family: var(--body); font-weight: 800; font-size: 13px; color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.trylist { display: flex; flex-wrap: wrap; gap: 6px; }
.trylist button, .opt { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; font-family: var(--body); font-weight: 700; font-size: 13px; color: var(--ink); min-height: 38px; cursor: pointer; }
.cta { min-height: 56px; width: 100%; font-size: 16px; }
.grow { flex: 1; }
.progress { display: grid; gap: 6px; }
.progress div { height: 4px; border-radius: 4px; }
.storyhead { display: flex; justify-content: space-between; align-items: center; }
.iconbtn { width: 44px; height: 44px; border: none; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; cursor: pointer; }
.slide { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.storyfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.storyfoot .src { font-size: 11px; text-align: center; flex: 1; opacity: .85; }
.bars { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; align-items: end; height: 140px; }
.bars div { border-radius: 6px 6px 2px 2px; background: #3A3550; }
.bars div.peak { background: var(--tomato); }
.barlabels { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin-top: 6px; font-size: 10px; color: #D9D3F2; text-align: center; }
.panel { background: #fff; color: var(--ink); border-radius: 18px; padding: 14px 16px; }
.panel-ink { background: var(--ink); color: #fff; border-radius: 22px; padding: 16px; }
.reveal { animation: pop .5s ease-out; }
@keyframes pop { 0% { transform: scale(.85); opacity: 0; } 70% { transform: scale(1.04); } 100% { transform: scale(1); opacity: 1; } }
.sheet { position: fixed; inset: 0; background: rgba(23,19,43,.55); display: none; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet.on { display: flex; }
.sheet .in { background: #fff; width: 100%; max-width: 460px; border-radius: 28px 28px 0 0; padding: 22px 20px 26px; display: flex; flex-direction: column; gap: 12px; max-height: 92dvh; overflow-y: auto; }
.field { width: 100%; font-family: var(--body); font-size: 16px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 30; }
.toast.on { opacity: 1; }
.tagcard { background: #fff; border-radius: 28px; overflow: hidden; transform: rotate(-2deg); box-shadow: 0 18px 40px rgba(23,19,43,.25); }
.tagcard .band { background: var(--cobalt); color: #fff; padding: 12px 20px 10px; }
.tagcard .band b { font-family: var(--display); font-size: 26px; letter-spacing: .03em; display: block; }
.tagcard .body { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.tagcard .nm { font-family: var(--display); font-weight: 800; line-height: 1; word-break: break-word; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kv div { border-radius: 14px; padding: 10px 12px; }
.kv small { display: block; font-size: 10px; font-weight: 800; color: var(--muted); letter-spacing: .04em; }
.kv strong { font-size: 15px; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.vsrow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; background: #fff; border-radius: 14px; padding: 10px 12px; font-weight: 700; }
.vsrow .win { color: var(--tomato); }
.grid-guess { font-size: 26px; letter-spacing: 4px; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } .crowd i { transition: none; } }

/* keep header links on one line on small phones */
.topbar a, .topbar .btn { white-space: nowrap; }
@media (max-width: 420px) { .topbar { padding: 12px 14px; gap: 8px; } .topbar .btn { padding: 8px 12px; font-size: 14px; } }
