:root {
  --ink: #10213d;
  --navy: #0b152a;
  --cream: #fff9f0;
  --white: #fff;
  --red: #e94b5d;
  --green: #69ab75;
  --blue: #79c5dd;
  --yellow: #ffd36e;
  --muted: #667086;
  --line: #dfe5ea;
  --shadow: 0 24px 70px rgba(16, 33, 61, .14);
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--cream); }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: radial-gradient(circle at 10% 0, rgba(121,197,221,.14), transparent 25%), var(--cream); }
button { font: inherit; }
button:focus-visible { outline: 3px solid #1b6f91; outline-offset: 3px; }
[hidden] { display: none !important; }

.prototype-bar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px max(24px, calc((100% - 1240px)/2)); color: #fff; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.14); }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 47px; height: 53px; object-fit: contain; }
.brand span { display: grid; }.brand strong { font-size: 20px; }.brand small { color: rgba(255,255,255,.58); font-size: 11px; }
.prototype-tools { display: flex; align-items: center; gap: 12px; }
.language-preview { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(255,255,255,.05); }
.language-preview span { min-width: 30px; padding: 5px 7px; border-radius: 7px; color: rgba(255,255,255,.43); text-align: center; font-size: 10px; font-weight: 900; letter-spacing: .05em; }
.language-preview .is-current { color: var(--navy); background: var(--blue); }
.prototype-label { padding: 9px 14px; border: 1px solid rgba(121,197,221,.38); border-radius: 999px; color: #dff7ff; background: rgba(121,197,221,.1); font-size: 12px; font-weight: 750; }
.prototype-label span { color: var(--yellow); }

.screen-nav { width: min(760px, calc(100% - 32px)); min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 auto; position: relative; }
.screen-nav::before { content: ""; position: absolute; left: 9%; right: 9%; top: 29px; height: 2px; background: #dfe5ea; }
.screen-dot { position: relative; z-index: 1; display: grid; justify-items: center; gap: 5px; padding: 0; border: 0; color: #7b8495; background: transparent; cursor: pointer; }
.screen-dot span { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid #d6dde4; border-radius: 50%; background: var(--cream); font-size: 11px; font-weight: 900; }
.screen-dot b { font-size: 10px; }.screen-dot.is-active { color: var(--ink); }.screen-dot.is-active span { color: #fff; border-color: var(--red); background: var(--red); box-shadow: 0 5px 15px rgba(233,75,93,.25); }

.screen { min-height: calc(100vh - 196px); width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 68px; }
.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, .82fr); min-height: 650px; overflow: hidden; border: 1px solid var(--line); border-radius: 34px; background: #fff; box-shadow: var(--shadow); }
.split-layout.reverse { grid-template-columns: minmax(400px, .82fr) minmax(0, 1fr); }
.story-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 90px); color: #fff; background: radial-gradient(circle at 90% 10%, rgba(121,197,221,.2), transparent 30%), var(--navy); }
.story-panel::after { content: ""; position: absolute; width: 420px; height: 420px; right: -220px; bottom: -210px; border: 1px solid rgba(121,197,221,.28); border-radius: 50%; box-shadow: 0 0 0 45px rgba(105,171,117,.05), 0 0 0 90px rgba(233,75,93,.035); }
.story-panel h1, .story-panel h2 { max-width: 560px; margin: 0 0 22px; font-size: clamp(42px, 5vw, 68px); line-height: 1.02; letter-spacing: -.05em; }
.story-panel h2 { font-size: clamp(36px, 4vw, 54px); }.story-panel > p:not(.eyebrow) { max-width: 540px; margin: 0; color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.7; }
.eyebrow { margin: 0 0 15px; color: #b52a42; font-size: 12px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }.story-panel .eyebrow, .child-shell .eyebrow { color: var(--blue); }
.story-panel aside { position: relative; z-index: 1; margin-top: 42px; padding: 16px 18px; border-left: 3px solid var(--yellow); color: rgba(255,255,255,.72); background: rgba(255,255,255,.06); font-size: 13px; line-height: 1.6; }.story-panel aside strong { color: #fff; }
.tree-motif { display: flex; align-items: center; gap: 0; margin: 42px 0 5px; color: var(--red); }.tree-motif span { display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid currentColor; border-radius: 50%; }.tree-motif span:nth-of-type(2){color:var(--green)}.tree-motif span:nth-of-type(3){color:var(--blue)}.tree-motif i { width: 75px; height: 2px; background: linear-gradient(90deg,var(--red),var(--green)); }.tree-motif i:nth-of-type(2){background:linear-gradient(90deg,var(--green),var(--blue))}

.auth-card { align-self: center; width: min(500px, 100%); padding: clamp(38px, 6vw, 72px); margin: auto; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.step-tag,.safe-note { padding: 7px 10px; border-radius: 9px; color: #8d2638; background: #ffe8eb; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }.step-tag.blue { color:#27677f;background:#e2f5fb }.safe-note { color: #397449; background: #e8f5ea; }
.auth-card h1,.auth-card h2 { margin: 26px 0 9px; font-size: 38px; letter-spacing: -.04em; }.subcopy { margin: 0 0 28px; color: var(--muted); line-height: 1.6; }
.visual-field { position: relative; display: grid; gap: 6px; margin: 13px 0; padding: 12px 15px; border: 1px solid #d8dee5; border-radius: 14px; background: #fff; }.visual-field small { color: var(--muted); font-size: 11px; font-weight: 800; }.visual-field span { font-size: 15px; }.visual-field.secret em { position: absolute; right: 15px; top: 23px; color: #7f8999; font-style: normal; }.visual-field.standalone { max-width: 420px; margin: 28px auto; text-align: left; }
.strength { display: flex; align-items: center; gap: 5px; }.strength i { width: 35px; height: 4px; border-radius: 5px; background: var(--green); }.strength small { margin-left: 6px; color: var(--muted); font-size: 10px; }
.visual-check { display: flex; align-items: center; gap: 10px; margin: 22px 0; }.visual-check span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 6px; color: #fff; background: var(--green); font-size: 11px; }.visual-check p { margin: 0; color: var(--muted); font-size: 12px; }.visual-check.compact { margin: 0; }
.primary,.secondary { min-height: 52px; padding: 0 22px; border: 0; border-radius: 15px; font-weight: 900; cursor: pointer; }.primary { width: 100%; color: var(--navy); background: var(--yellow); box-shadow: 0 12px 24px rgba(255,211,110,.28); }.primary span { padding-left: 10px; }.secondary { color: var(--ink); border: 1px solid var(--line); background: #fff; }.compact-button { width: auto; }.text-button,.inline-link { border: 0; color: #536079; background: transparent; cursor: pointer; }.text-button { display: block; margin: 18px auto 0; font-size: 12px; }.text-button strong,.inline-link { color: #226c89; }.inline-link { padding: 6px; font-size: 12px; text-decoration: underline; }.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0; }
.story-panel.calm { background: radial-gradient(circle at 10% 90%,rgba(105,171,117,.2),transparent 30%), var(--ink); }.mini-summary { display:flex;align-items:center;gap:16px;margin-top:16px;padding:17px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(255,255,255,.07) }.mini-summary>span{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#fff;font-size:24px}.mini-summary div{display:grid;gap:4px}.mini-summary small{color:rgba(255,255,255,.56)}

.center-card { width: min(650px, 100%); margin: 35px auto; padding: clamp(40px, 7vw, 78px); border: 1px solid var(--line); border-radius: 34px; background: #fff; box-shadow: var(--shadow); text-align: center; }.state-card h1,.pin-card h1 { margin: 12px 0 17px; font-size: clamp(36px,5vw,52px);line-height:1.05;letter-spacing:-.045em }.state-card>p:not(.eyebrow),.pin-card>p:not(.eyebrow){color:var(--muted);line-height:1.7}.mail-illustration{position:relative;display:grid;place-items:center;width:110px;height:110px;margin:0 auto 26px;border-radius:32px;color:#226c89;background:#e2f5fb;font-size:46px;transform:rotate(-4deg)}.mail-illustration i{position:absolute;right:-8px;bottom:-8px;display:grid;place-items:center;width:36px;height:36px;border:4px solid #fff;border-radius:50%;color:#fff;background:var(--green);font-size:15px;font-style:normal}.mail-illustration.coral{color:#9f263b;background:#ffe7ea}.mail-illustration.coral i{background:var(--red)}.demo-message{margin:28px 0;padding:16px;border-radius:15px;color:#526078;background:#f5f7f9;font-size:13px}.state-card .primary,.pin-card .primary{max-width:390px}

.dashboard-shell { min-height: 680px; display: grid; grid-template-columns: 210px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 32px; background: #fff; box-shadow: var(--shadow); }.side-rail { display:flex;flex-direction:column;padding:28px 20px;color:#fff;background:var(--navy) }.rail-brand{display:flex;align-items:center;gap:10px;margin-bottom:42px}.rail-brand img{width:38px;height:43px;object-fit:contain}.rail-item{padding:13px;border-radius:12px;color:rgba(255,255,255,.62);font-size:13px}.rail-item.active{color:#fff;background:rgba(121,197,221,.15)}.side-rail>small{margin-top:auto;color:rgba(255,255,255,.45)}.dashboard-content{padding:48px}.dash-heading{display:flex;justify-content:space-between;align-items:center}.dash-heading h1{margin:0;font-size:42px;letter-spacing:-.045em}.avatar-small{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;color:#fff;background:var(--red);font-weight:900}.demo-banner{margin:25px 0;padding:13px 16px;border-radius:13px;color:#58657a;background:#fff7dc;font-size:12px}.profile-builder{display:grid;grid-template-columns:1fr 1fr;gap:45px;align-items:center;margin-top:35px;padding:38px;border:1px solid var(--line);border-radius:25px;background:#fbfcfd}.section-number{color:var(--red);font-size:12px;font-weight:900;letter-spacing:.12em}.profile-builder h2{margin:12px 0;font-size:32px}.profile-builder p{color:var(--muted);line-height:1.6}.builder-preview{padding:24px;border-radius:20px;background:#fff;box-shadow:0 12px 34px rgba(16,33,61,.1)}.avatar-choice{display:grid;place-items:center;width:76px;height:76px;margin:auto;border-radius:24px;background:#e3f5fa;font-size:42px}.age-row{display:flex;gap:8px;margin-top:14px}.age-row span{flex:1;padding:9px;border:1px solid var(--line);border-radius:10px;text-align:center;font-size:12px}.age-row .selected{border-color:var(--green);color:#2c7040;background:#ecf7ee}.dash-actions{display:flex;justify-content:space-between;gap:12px;margin-top:28px}

.playful-screen{text-align:center;padding:34px 0}.playful-screen h1{margin:0 0 12px;font-size:clamp(42px,6vw,68px);letter-spacing:-.05em}.profile-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;max-width:880px;margin:45px auto 30px}.profile-card{min-height:290px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25px;border:1px solid var(--line);border-radius:26px;color:var(--ink);background:#fff;box-shadow:0 12px 35px rgba(16,33,61,.08);cursor:pointer}.profile-card:hover{transform:translateY(-3px)}.profile-avatar{display:grid;place-items:center;width:110px;height:110px;margin-bottom:19px;border-radius:36px;background:#ffe6d6;font-size:60px}.profile-avatar.bird{background:#e1f6ed}.profile-card strong{font-size:23px}.profile-card small{margin-top:6px;color:var(--muted)}.profile-card i{margin-top:18px;padding:7px 10px;border-radius:9px;color:#317346;background:#e9f6ec;font-size:11px;font-style:normal}.add-card{border-style:dashed;background:transparent}.add-card>span{display:grid;place-items:center;width:70px;height:70px;margin-bottom:20px;border-radius:50%;color:#528096;background:#e3f5fa;font-size:34px}
.profile-avatar.large{width:100px;height:100px;margin:0 auto 18px}.pin-dots{display:flex;justify-content:center;gap:15px;margin:28px 0}.pin-dots span{display:grid;place-items:center;width:48px;height:54px;border:2px solid #d7dfe6;border-radius:14px;color:var(--red);font-size:21px}.keypad{display:grid;grid-template-columns:repeat(3,62px);justify-content:center;gap:10px;margin:0 auto 28px}.keypad span{display:grid;place-items:center;height:50px;border-radius:14px;background:#f1f5f6;font-weight:900}.keypad span:last-child{color:#fff;background:var(--green)}

.child-shell{min-height:680px;padding:38px;border-radius:34px;color:#fff;background:radial-gradient(circle at 90% 0,rgba(121,197,221,.22),transparent 26%),var(--navy);box-shadow:var(--shadow)}.child-top{display:flex;align-items:center;gap:14px}.child-top>div:first-child{display:flex;align-items:center;gap:9px;margin-right:auto}.profile-avatar.tiny{width:44px;height:44px;margin:0;border-radius:14px;font-size:25px}.streak,.stars{padding:9px 13px;border-radius:12px;background:rgba(255,255,255,.09);font-size:12px;font-weight:900}.stars{color:var(--yellow)}.child-hero{display:flex;justify-content:space-between;align-items:center;gap:30px;margin:55px 4% 35px}.child-hero h1{margin:0;font-size:clamp(45px,6vw,72px);letter-spacing:-.05em}.child-hero p:not(.eyebrow){color:rgba(255,255,255,.62)}.oak-badge{display:grid;place-items:center;width:140px;height:140px;border:1px solid rgba(255,255,255,.14);border-radius:45px;background:rgba(255,255,255,.08);font-size:70px}.oak-badge span{font-size:11px}.adventure-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.adventure{display:flex;align-items:center;gap:18px;padding:24px;border-radius:22px;color:var(--ink);background:#fff}.adventure>span{display:grid;place-items:center;flex:none;width:62px;height:62px;border-radius:19px;color:#fff;background:var(--red);font-size:25px;font-weight:900}.adventure.sky>span{background:#4fa9c4}.adventure.green>span{background:var(--green)}.adventure small{color:var(--muted)}.adventure h2{margin:4px 0;font-size:19px}.adventure p{margin:0;color:var(--muted);font-size:11px}.child-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:30px;padding-top:24px;border-top:1px solid rgba(255,255,255,.12)}.child-bottom>span{color:rgba(255,255,255,.55);font-size:12px}

footer { padding: 22px; color: #6c7584; background: #f4f1e9; text-align: center; font-size: 11px; }

@media (max-width: 820px) {
  .prototype-bar { min-height: 68px; padding-inline: 16px; }.brand small{display:none}.prototype-label{max-width:210px;text-align:center;font-size:10px}
  .screen-nav { overflow-x:auto;justify-content:flex-start;gap:24px;padding:0 10px }.screen-nav::before{display:none}.screen-dot{flex:none}.screen-dot b{display:none}
  .screen { width: min(100% - 24px, 1240px); padding-top: 12px; }
  .split-layout,.split-layout.reverse { grid-template-columns:1fr; }.story-panel{min-height:380px;padding:45px 30px}.story-panel h1,.story-panel h2{font-size:42px}.auth-card{padding:38px 24px}
  .dashboard-shell{grid-template-columns:1fr}.side-rail{display:none}.dashboard-content{padding:30px 20px}.profile-builder{grid-template-columns:1fr;padding:25px;gap:25px}.dash-heading h1{font-size:34px}.dash-actions{flex-direction:column-reverse}.dash-actions button{width:100%}
  .profile-grid{grid-template-columns:1fr;max-width:380px}.profile-card{min-height:230px}.playful-screen{padding-inline:10px}
  .child-shell{padding:22px 16px}.child-hero{margin:45px 0 25px}.oak-badge{display:none}.adventure-grid{grid-template-columns:1fr}.child-bottom{align-items:flex-start;flex-direction:column}.child-bottom button{width:100%}
}

@media (max-width: 440px) {
  .prototype-bar .brand strong{font-size:16px}.brand img{width:37px;height:42px}.prototype-tools{gap:7px}.language-preview span{min-width:27px;padding:4px 5px}.prototype-label{display:none}
  .screen-nav{min-height:62px}.screen-dot span{width:28px;height:28px}
  .center-card{margin:8px auto;padding:36px 20px;border-radius:25px}.state-card h1,.pin-card h1{font-size:38px}.row-between{align-items:flex-start;flex-direction:column}.inline-link{padding-left:0}.primary{padding-inline:14px}
  .dashboard-content{padding:25px 15px}.dash-heading{align-items:flex-start}.avatar-small{width:42px;height:42px}.profile-builder{padding:20px 15px}.profile-builder h2{font-size:28px}
  .child-top{gap:6px}.streak,.stars{padding:7px;font-size:10px}.child-hero h1{font-size:43px}.adventure{padding:18px 15px}.adventure>span{width:52px;height:52px}.keypad{grid-template-columns:repeat(3,58px)}
}

@media (prefers-reduced-motion: reduce) { .profile-card:hover { transform: none; } }
