:root {
  color-scheme: light;
  --bg: #f7f8ff;
  --paper: #fff;
  --ink: #202244;
  --muted: #737897;
  --purple: #634af5;
  --purple-deep: #4b36d4;
  --purple-pale: #eeeaff;
  --mint: #36c7ac;
  --mint-pale: #ddf8f0;
  --yellow: #ffc34d;
  --yellow-pale: #fff4d7;
  --pink: #ef7fa9;
  --pink-pale: #ffecf4;
  --blue: #6da9f9;
  --blue-pale: #e9f2ff;
  --peach: #ffad76;
  --peach-pale: #fff0e3;
  --line: #e5e8f5;
  --shadow: 0 12px 35px rgba(45, 38, 115, .08);
  font-family: "Avenir Next", "Nunito", "Trebuchet MS", system-ui, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
a { color: var(--purple-deep); }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.035em; }
h1 { font-size: clamp(2.05rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.eyebrow { color: var(--purple-deep); text-transform: uppercase; letter-spacing: .12em; font-weight: 900; font-size: .78rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.app-shell { min-height: 100dvh; }
.sidebar { display: none; }
.main-column { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 12px; max-width: 1100px; margin: auto; }
.brand { color: var(--ink); display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 1000; font-size: 1.5rem; letter-spacing: -.06em; }
.brand-mark { width: 39px; height: 39px; border-radius: 13px; background: var(--purple); color: white; display: inline-grid; place-items: center; font-size: 1.35rem; box-shadow: inset 0 -4px rgba(0,0,0,.1); }
.brand-mini { font-size: .77rem; font-weight: 800; letter-spacing: 0; color: var(--muted); }
.top-stats { display: flex; align-items: center; gap: 7px; }
.stat-pill { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; font-size: .9rem; font-weight: 900; white-space: nowrap; }
.stat-pill strong { color: var(--purple); }
.avatar-button { border: 0; border-radius: 50%; background: var(--yellow-pale); width: 40px; height: 40px; font-weight: 900; color: #8a5600; flex: none; }
.page { padding: 8px 20px 106px; max-width: 1100px; margin: auto; }
.narrow { max-width: 700px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin: 28px 0 15px; }
.section-head h2 { margin: 0; }
.section-head a, .text-button { border: 0; background: none; color: var(--purple-deep); font-weight: 900; text-decoration: none; padding: 7px 0; }
.card { border-radius: 25px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; padding: 15px 22px; border-radius: 16px; font-weight: 1000; min-height: 53px; text-decoration: none; line-height: 1.2; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button-primary { background: var(--purple); color: #fff; box-shadow: inset 0 -5px rgba(0,0,0,.13), 0 8px 15px rgba(99,74,245,.17); }
.button-primary:hover:not(:disabled) { background: var(--purple-deep); }
.button-mint { background: var(--mint); color: #083e37; box-shadow: inset 0 -5px rgba(0,0,0,.1); }
.button-outline { background: #fff; color: var(--purple-deep); border: 2px solid #d9d2ff; }
.button-soft { background: var(--purple-pale); color: var(--purple-deep); }
.button-danger { background: #fff0ef; color: #bd3b3b; }
.button-full { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--purple-pale); color: var(--purple-deep); font-weight: 900; font-size: .85rem; }
.chip-mint { background: var(--mint-pale); color: #156c60; }
.chip-yellow { background: var(--yellow-pale); color: #8a5c0f; }
.hero { position: relative; isolation: isolate; min-height: 250px; border-radius: 28px; background: linear-gradient(120deg, #5b44ef 0%, #735ef9 62%, #9b8bff 100%); color: white; overflow: hidden; box-shadow: 0 15px 35px rgba(75,54,212,.2); padding: 28px 22px; display: grid; grid-template-columns: 1fr 120px; align-items: center; }
.hero::before, .hero::after { content: ""; position: absolute; border: 2px solid rgba(255,255,255,.17); border-radius: 50%; pointer-events: none; z-index: -1; }
.hero::before { width: 300px; height: 300px; right: -100px; top: -115px; }
.hero::after { width: 180px; height: 180px; right: 80px; bottom: -120px; }
.hero .eyebrow { color: #dcdbff; }
.hero h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 10px 0; max-width: 530px; }
.hero p { color: #f1edff; margin-bottom: 20px; max-width: 430px; font-weight: 650; }
.hero .button { background: white; color: var(--purple-deep); }
.hero-mascot { align-self: end; transform: translate(7px, 24px); width: 168px; max-width: none; filter: drop-shadow(0 16px 15px rgba(25, 17, 103, .22)); }
.home-grid { display: grid; gap: 15px; }
.daily-card, .review-card { padding: 21px; }
.daily-card { background: var(--yellow-pale); border-color: #ffe49a; }
.review-card { background: var(--mint-pale); border-color: #acebdc; }
.daily-card h3, .review-card h3 { margin: 8px 0 6px; font-size: 1.27rem; }
.daily-card p, .review-card p { margin-bottom: 14px; }
.meter { height: 14px; border-radius: 999px; background: #e6e7f1; overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), #8cd9b2); min-width: 0; transition: width .3s ease; }
.meter-purple > span { background: linear-gradient(90deg, #8a75ff, var(--purple)); }
.meter-label { display: flex; justify-content: space-between; gap: 15px; margin: 10px 0; font-weight: 850; font-size: .89rem; }
.path-list { display: grid; gap: 11px; }
.path-card { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; padding: 15px; border-radius: 21px; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.path-card.current { border: 2px solid var(--purple); background: #fefeff; }
.path-card.locked { opacity: .67; }
.path-icon { width: 59px; height: 59px; flex: none; border-radius: 19px; display: grid; place-items: center; font-size: 1.34rem; font-weight: 1000; box-shadow: inset 0 -5px rgba(0,0,0,.06); }
.path-icon.mint { background: var(--mint-pale); color: #168374; }
.path-icon.blue { background: var(--blue-pale); color: #3972d5; }
.path-icon.peach { background: var(--peach-pale); color: #c8783e; }
.path-icon.yellow { background: var(--yellow-pale); color: #a96c0b; }
.path-icon.pink { background: var(--pink-pale); color: #bc4773; }
.path-icon.purple { background: var(--purple-pale); color: var(--purple-deep); }
.path-copy { flex: 1; min-width: 0; }
.path-copy strong { display: block; font-size: 1.05rem; }
.path-copy span { display: block; color: var(--muted); font-size: .86rem; line-height: 1.3; margin-top: 3px; }
.path-status { font-size: .8rem; font-weight: 900; color: var(--purple-deep); white-space: nowrap; }
.bottom-nav { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: 8px 6px max(8px, env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(33,34,68,.05); }
.bottom-nav button { min-height: 54px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; gap: 2px; font-size: .72rem; font-weight: 900; }
.bottom-nav button.active { color: var(--purple); }
.nav-icon { font-size: 1.28rem; line-height: 1; }
.onboard-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 25px 18px; }
.onboard-card { width: min(100%, 880px); overflow: hidden; display: grid; background: white; border-radius: 31px; box-shadow: var(--shadow); }
.onboard-form { padding: 29px 23px; }
.onboard-form h1 { margin: 28px 0 9px; }
.onboard-form > p { color: var(--muted); max-width: 470px; }
.onboard-form form { display: grid; gap: 17px; margin-top: 24px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 900; }
.input { width: 100%; min-height: 54px; border: 2px solid var(--line); border-radius: 15px; padding: 12px 15px; color: var(--ink); background: #fff; font-size: 1rem; }
.input:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 3px var(--purple-pale); }
.form-note { background: var(--mint-pale); color: #166459; border-radius: 15px; padding: 13px 14px; line-height: 1.4; font-size: .88rem; }
.form-error { color: #ad2d3a; font-weight: 850; min-height: 20px; }
.onboard-art { display: none; background: radial-gradient(circle at 50% 45%, #baaefa 0, #8d79f8 60%, #6c55ef 100%); align-items: center; justify-content: center; padding: 25px; }
.onboard-art img { width: min(100%, 380px); filter: drop-shadow(0 25px 22px rgba(32,22,122,.26)); }
.flow-top { display: flex; align-items: center; gap: 12px; margin: 13px 0 24px; }
.icon-button { min-width: 46px; min-height: 46px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.2rem; }
.flow-progress { flex: 1; }
.flow-progress .meter { height: 11px; }
.flow-count { min-width: 47px; text-align: right; font-weight: 900; color: var(--muted); }
.flow-card { padding: 25px 21px; }
.flow-card h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin: 7px 0 12px; }
.flow-card .prompt { font-size: clamp(1.55rem, 5vw, 2.4rem); font-weight: 1000; line-height: 1.25; margin: 25px 0 22px; white-space: pre-line; }
.flow-card .column-prompt { white-space: pre; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; letter-spacing: 0; }
.flow-card .example { background: var(--purple-pale); padding: 18px; border-radius: 18px; color: var(--purple-deep); font-size: 1.3rem; font-weight: 900; margin: 23px 0; }
.flow-card .big-mascot { width: 130px; float: right; margin: -12px -10px 0 7px; }
.flow-actions { display: grid; gap: 10px; margin-top: 22px; }
.visual-count { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 16px 0; max-width: 280px; margin: 0 auto; }
.visual-count span { width: 31px; height: 31px; border-radius: 50%; background: var(--mint); box-shadow: inset 0 -5px rgba(0,0,0,.1); }
.answer-input { width: 100%; min-height: 69px; border: 2px solid #cfcef1; border-radius: 18px; padding: 12px 16px; font-size: 1.7rem; font-weight: 900; color: var(--ink); text-align: center; background: #fff; }
.answer-input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px var(--purple-pale); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { border: 2px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); padding: 15px; min-height: 57px; font-size: 1.25rem; font-weight: 900; }
.choice.selected { border-color: var(--purple); background: var(--purple-pale); color: var(--purple-deep); }
.hint-box, .feedback-box { border-radius: 18px; padding: 16px; line-height: 1.45; }
.hint-box { background: var(--yellow-pale); color: #795008; margin-top: 15px; }
.feedback-box { margin-top: 18px; }
.feedback-box.good { background: var(--mint-pale); color: #136c5f; }
.feedback-box.try { background: var(--peach-pale); color: #8c4d26; }
.feedback-box strong { display: block; font-size: 1.12rem; margin-bottom: 4px; }
.result-hero { text-align: center; padding: 30px 24px; }
.result-hero img { width: 160px; }
.result-hero h1 { margin: 8px 0; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.result-metric { border-radius: 18px; background: var(--purple-pale); padding: 14px 9px; text-align: center; }
.result-metric strong { display: block; font-size: 1.45rem; color: var(--purple-deep); }
.result-metric span { font-size: .76rem; color: var(--muted); font-weight: 850; }
.info-card { padding: 20px; margin: 12px 0; }
.info-card h3 { margin: 0 0 8px; }
.profile-list { display: grid; gap: 9px; }
.profile-row { width: 100%; text-align: left; border: 2px solid var(--line); border-radius: 18px; background: white; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.profile-row.selected { border-color: var(--purple); background: var(--purple-pale); }
.profile-row strong { display: block; }
.profile-row span { color: var(--muted); font-size: .88rem; }
.sources { font-size: .85rem; line-height: 1.6; }
.sources a { display: inline-block; margin: 0 12px 4px 0; }
.empty-state { text-align: center; padding: 35px 20px; }
.empty-state img { width: 105px; }
.sr-status { position: fixed; bottom: -999px; }
@media (max-width: 360px) {
  .hero { grid-template-columns: 1fr 82px; padding: 23px 17px; }
  .hero h1 { font-size: 1.83rem; }
  .hero p { font-size: .94rem; }
  .hero .button { font-size: .86rem; padding: 13px 12px; }
  .hero-mascot { width: 132px; transform: translate(3px, 22px); }
  .stat-pill { padding: 7px 8px; }
}
@media (min-width: 700px) {
  .topbar { padding: 27px 36px 18px; }
  .page { padding: 15px 36px 50px; }
  .hero { padding: 36px; grid-template-columns: 1fr 180px; min-height: 300px; }
  .hero-mascot { width: 230px; transform: translate(0, 50px); }
  .home-grid { grid-template-columns: 1fr 1fr; }
  .onboard-card { grid-template-columns: 1.05fr .95fr; }
  .onboard-form { padding: 47px; }
  .onboard-art { display: flex; }
  .flow-card { padding: 36px; }
  .flow-actions { grid-template-columns: 1fr 1fr; }
  .flow-actions .button-full { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
  .app-shell { display: grid; grid-template-columns: 230px 1fr; }
  .sidebar { display: flex; flex-direction: column; gap: 9px; background: #fff; border-right: 1px solid var(--line); min-height: 100dvh; padding: 26px 18px; position: sticky; top: 0; height: 100dvh; }
  .sidebar .brand { margin: 1px 10px 32px; }
  .sidebar > button { display: flex; align-items: center; gap: 12px; min-height: 51px; padding: 10px 13px; border: 0; border-radius: 14px; background: none; color: var(--muted); font-weight: 900; text-align: left; }
  .sidebar > button.active { background: var(--purple-pale); color: var(--purple-deep); }
  .sidebar > button .nav-icon { width: 25px; text-align: center; }
  .topbar > .brand { display: none; }
  .topbar { justify-content: flex-end; }
  .sidebar-note { margin-top: auto; padding: 14px; background: var(--mint-pale); border-radius: 18px; color: #23665d; font-size: .82rem; line-height: 1.4; }
  .bottom-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
