:root{
  --bg:#f6f9fd;--card:#fff;--ink:#102347;--text:#20304f;--muted:#6b7890;--line:#dfe7f2;
  --blue:#146df5;--blue2:#0b5ed7;--green:#15b86b;--green2:#0d9a58;--violet:#7257e8;
  --danger:#c0392b;--warn:#b7791f;--shadow:0 18px 55px rgba(37,68,122,.09);
}
*{box-sizing:border-box}html{scroll-behavior:smooth;color-scheme:light}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.5}img{max-width:100%;display:block}a{color:var(--blue);text-decoration:none}button,input,select,textarea{font:inherit}.shell{max-width:1240px;margin:auto;padding:22px}.app-shell{padding-top:24px}.site-header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);border-bottom:1px solid rgba(217,227,241,.9)}.header-inner{max-width:1320px;margin:auto;padding:12px 24px;display:flex;align-items:center;gap:26px}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);min-width:max-content}.logo-mark{position:relative;width:39px;height:38px;display:inline-block}.logo-mark:before,.logo-mark:after,.logo-mark i:before,.logo-mark i:after{content:"";position:absolute;border-radius:999px}.logo-mark:before{width:12px;height:12px;left:5px;top:2px;background:var(--blue)}.logo-mark:after{width:12px;height:12px;right:4px;top:5px;background:var(--green)}.logo-mark i:first-child:before{width:8px;height:23px;left:8px;top:14px;background:var(--blue);transform:rotate(24deg)}.logo-mark i:first-child:after{width:8px;height:22px;left:17px;top:16px;background:var(--blue);transform:rotate(-28deg)}.logo-mark i:last-child:before{width:8px;height:22px;right:8px;top:16px;background:var(--green);transform:rotate(-24deg)}.logo-mark i:last-child:after{width:8px;height:20px;right:17px;top:17px;background:var(--green);transform:rotate(28deg)}.logo-copy{display:flex;flex-direction:column;line-height:1.02}.logo-copy strong{font-size:16px}.logo-copy b{font-size:15px;color:var(--blue)}.public-nav,.app-nav{display:flex;align-items:center;gap:24px;margin-left:auto}.public-nav a,.app-nav a{color:#40516f;font-weight:650;font-size:14px}.public-nav a:hover,.app-nav a:hover{color:var(--blue)}.header-actions{display:flex;align-items:center;gap:14px}.lang-switch{display:flex;align-items:center;gap:3px}.lang-switch a{font-size:12px;font-weight:800;padding:5px 6px;border-radius:7px;color:#738198}.lang-switch a.active{color:var(--blue);background:#edf4ff}.mobile-menu{display:none;border:0;background:transparent;color:var(--ink);font-size:24px}.btn,button.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:12px;padding:10px 15px;background:#edf3ff;color:#174fae;font-weight:800;cursor:pointer;transition:.2s ease;white-space:nowrap}.btn:hover{transform:translateY(-1px)}.btn.primary{background:linear-gradient(135deg,var(--blue),#2b84ff);color:#fff;box-shadow:0 10px 25px rgba(20,109,245,.24)}.btn.green{background:linear-gradient(135deg,var(--green),#29ca7f);color:#fff;box-shadow:0 10px 25px rgba(21,184,107,.24)}.btn.soft{background:#fff;border-color:#cfdbec;color:#29405f}.btn.danger{background:#fff1ef;color:#a9362d;border-color:#f4d2ce}.btn.large{padding:13px 20px;border-radius:14px}.btn.small{padding:7px 10px;font-size:12px;border-radius:9px}.header-login{background:var(--blue);color:#fff}.notice{max-width:1240px;margin:0 auto 14px;padding:12px 15px;border-radius:12px}.notice.ok{background:#eaf8f2;color:#14664a}.notice.error{background:#fff0f0;color:#952a24}.notice.warning{background:#fff7e7;color:#80530c}

/* Landing */
.public-page{background:#fff}.public-page .app-shell{max-width:none;padding:0}.landing{overflow:hidden}.hero{max-width:1320px;margin:0 auto;display:grid;grid-template-columns:minmax(0,.95fr) minmax(520px,1.05fr);min-height:610px;background:linear-gradient(90deg,#f6fbff 0%,#fff 50%)}.hero-copy{padding:84px 48px 60px 40px;display:flex;flex-direction:column;justify-content:center}.eyebrow,.section-head>span,.progress-copy>span,.security-panel>div>span{font-size:12px;letter-spacing:.11em;font-weight:900;color:#4c89db}.hero h1{font-size:clamp(44px,5.1vw,72px);letter-spacing:-.042em;line-height:1.02;margin:16px 0 20px;color:var(--ink);max-width:690px}.hero-sub{font-size:20px;line-height:1.55;color:#50617d;max-width:660px;margin:0 0 30px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.hero-points{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;margin-top:32px;font-size:13px;color:#54647e}.hero-points span::first-letter{color:var(--green)}.hero-media{position:relative;overflow:hidden;min-height:610px}.hero-media:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.14),transparent 25%),linear-gradient(0deg,rgba(3,29,65,.18),transparent 38%);pointer-events:none}.hero-media img{width:100%;height:100%;object-fit:cover;object-position:center}.photo-badge{position:absolute;z-index:2;right:30px;bottom:28px;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);padding:12px 16px;border-radius:14px;box-shadow:0 12px 35px rgba(0,0,0,.14);display:flex;flex-direction:column}.photo-badge strong{color:var(--ink)}.photo-badge span{font-size:12px;color:#62718a}.section-block{max-width:1240px;margin:0 auto;padding:88px 24px}.section-head{text-align:center;max-width:770px;margin:0 auto 38px}.section-head.left{text-align:left;margin-left:0}.section-head h2,.progress-copy h2,.security-panel h2,.family-cta h2{font-size:clamp(34px,4.2vw,54px);line-height:1.07;letter-spacing:-.035em;color:var(--ink);margin:9px 0 14px}.section-head p{color:var(--muted);font-size:17px}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.feature-card{border:1px solid #dfe8f4;border-radius:20px;padding:25px;min-height:225px;box-shadow:0 13px 35px rgba(40,70,120,.055);background:#fff}.feature-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-weight:950;font-size:22px;margin-bottom:18px}.feature-icon.blue{background:#e8f2ff;color:#1971e8}.feature-icon.green{background:#e9faef;color:#0aa35d}.feature-icon.violet{background:#f0edff;color:#6549db}.feature-icon.mint{background:#e5fbf5;color:#119d77}.feature-card h3{margin:0 0 9px;color:var(--ink);font-size:21px}.feature-card p{margin:0;color:#6c7a91}.progress-showcase{background:linear-gradient(135deg,#eaf7ff,#f3fbff 54%,#e9f4ff);padding:78px max(24px,calc((100vw - 1240px)/2));display:grid;grid-template-columns:.7fr 1.3fr;gap:46px;align-items:center}.progress-copy p{font-size:17px;color:#60728d;max-width:480px;margin-bottom:25px}.dashboard-demo{background:#fff;border:1px solid #d9e8f8;border-radius:24px;padding:22px;box-shadow:0 25px 80px rgba(29,89,155,.12)}.demo-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.demo-top small{color:#6d7b91}.demo-top h3{margin:3px 0;color:var(--ink)}.demo-chip{background:#e7f8f0;color:#0b9457;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:900}.demo-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.demo-stats>div{border:1px solid #e5edf6;border-radius:14px;padding:13px}.demo-stats span{display:block;font-size:12px;color:#75839a}.demo-stats b{display:block;font-size:20px;color:var(--ink);margin:2px 0}.demo-stats em{font-style:normal;color:var(--green);font-size:12px;font-weight:800}.demo-chart{margin-top:15px;border:1px solid #e5edf6;border-radius:16px;padding:13px}.chart-title{font-weight:800;color:var(--ink);font-size:14px}.demo-chart svg{width:100%;height:auto}.demo-chart .grid-line{fill:none;stroke:#e7eef7;stroke-width:1}.demo-chart .area{fill:url(#area)}.demo-chart .line{fill:none;stroke:var(--blue);stroke-width:4;stroke-linecap:round}.demo-chart circle{fill:var(--blue);stroke:#fff;stroke-width:3}.languages{padding-bottom:75px}.language-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.language-cards a{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;padding:18px;border:1px solid #dfe8f4;border-radius:16px;color:var(--ink);box-shadow:0 10px 25px rgba(40,70,120,.05)}.language-cards b{font-size:26px}.language-cards strong{font-size:16px}.language-cards span{font-size:11px;color:#8894a8;font-weight:900}.security-section{max-width:1240px;margin:auto;padding:0 24px 88px}.security-panel{background:linear-gradient(135deg,#102d5a,#123d75);border-radius:26px;padding:42px;color:#fff;display:grid;grid-template-columns:1fr 1fr;gap:34px;box-shadow:0 24px 70px rgba(12,44,91,.2)}.security-panel h2{color:#fff}.security-panel p{color:#c8d7ea}.security-panel ul{margin:0;padding:0;list-style:none;display:grid;gap:14px;align-content:center}.security-panel li{background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.12);border-radius:13px;padding:13px 15px}.family-cta{max-width:1240px;margin:0 auto 78px;border-radius:26px;overflow:hidden;min-height:260px;display:flex;align-items:center;padding:34px 48px;position:relative;background:linear-gradient(90deg,rgba(6,36,70,.98),rgba(8,54,94,.78)),url('family-cta.jpg') center/cover no-repeat;color:#fff}.family-cta-copy{position:relative;z-index:1;max-width:690px}.family-cta h2{color:#fff;font-size:41px}.family-cta p{font-size:17px;color:#d5e2ef}.public-footer{background:#f7f9fc;border-top:1px solid #e3eaf3}.footer-inner{max-width:1240px;margin:auto;padding:42px 24px 24px;display:grid;grid-template-columns:2fr 1fr 1fr;gap:45px}.footer-inner>div:not(.footer-brand){display:flex;flex-direction:column;gap:8px}.footer-inner h4{margin:0 0 6px;color:var(--ink)}.footer-brand p{max-width:500px;color:#7a879b;font-size:13px}.footer-bottom{text-align:center;border-top:1px solid #e6ecf4;padding:16px;color:#8793a5;font-size:12px}

/* App */
.app-page{background:var(--bg)}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin:4px 0 20px}.page-head h1{margin:7px 0 4px;color:var(--ink);font-size:clamp(34px,5vw,48px);letter-spacing:-.035em}.back-link{display:inline-flex;margin-bottom:7px;font-weight:750;color:#60728e}.grid{display:grid;gap:18px}.grid.two{grid-template-columns:1fr 1fr}.grid.main-child{grid-template-columns:minmax(0,1.3fr) minmax(330px,.7fr)}.family-grid{align-items:start}.card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:19px;box-shadow:0 10px 35px rgba(28,43,70,.05)}.card h1,.card h2,.card h3{color:var(--ink)}.section{margin-top:18px}.narrow{max-width:540px;margin:7vh auto}.form-stack{display:grid;gap:13px}label{font-size:14px;font-weight:750;color:#30415e}input,select,textarea{width:100%;margin-top:6px;padding:11px 12px;border:1px solid #d7e0ec;border-radius:11px;background:#fff;color:var(--ink);outline:none;transition:.15s}input:focus,select:focus,textarea:focus{border-color:#80aceb;box-shadow:0 0 0 3px rgba(34,114,232,.09)}textarea{min-height:88px;resize:vertical}.row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.muted{color:var(--muted)}.tiny{font-size:12px;color:var(--muted)}.stats{display:grid;gap:12px;margin-bottom:18px}.stats.three{grid-template-columns:repeat(3,1fr)}.stats.four{grid-template-columns:repeat(4,1fr)}.stat{background:#fff;border:1px solid var(--line);border-radius:17px;padding:16px;box-shadow:0 9px 25px rgba(28,43,70,.04)}.stat span{font-size:12px;color:#75839a}.stat strong{display:block;font-size:29px;color:var(--ink);margin-top:3px}.child-grid{display:grid;gap:13px}.child-card{display:flex;align-items:center;gap:15px;color:inherit;padding:17px;transition:.2s}.child-card:hover{border-color:#bad2f5;box-shadow:0 16px 40px rgba(29,89,155,.1);transform:translateY(-1px)}.avatar{width:56px;height:56px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(135deg,#e7f1ff,#d8e8ff);color:var(--blue);font-weight:950;font-size:24px;flex:0 0 auto}.child-main{min-width:0;flex:1}.child-main h2{margin:0 0 3px}.child-main p{margin:3px 0}.child-metrics{display:flex;gap:16px;flex-wrap:wrap;margin-top:8px;font-size:12px;color:#78879c}.child-metrics b{color:#40516c}.child-card .arrow{font-size:22px;color:#8ba8cf}.add-child-card{position:sticky;top:90px}.empty{text-align:center;padding:54px 20px}.empty-icon{width:58px;height:58px;border-radius:18px;background:#eaf2ff;color:var(--blue);display:grid;place-items:center;margin:0 auto 12px;font-size:27px}.chart-card h2{margin-bottom:10px}canvas{width:100%;height:280px;background:#fff;border-radius:13px}.exercise-editor-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:3px}.exercise-editor-head h3{margin:0}.exercise-row{display:grid;grid-template-columns:1.25fr .85fr .65fr auto;gap:8px;align-items:end;padding:11px 0;border-bottom:1px solid #edf1f6}.exercise-row:last-child{border-bottom:0}.exercise-row .remove-exercise{height:42px;margin-bottom:1px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;padding:10px 9px;border-bottom:1px solid #edf1f6;vertical-align:top}th{color:#7b879a;font-size:11px;text-transform:uppercase;letter-spacing:.045em}.actions,.admin-actions{display:flex;gap:8px;flex-wrap:wrap}.badge{display:inline-flex;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:850}.badge.green{background:#eaf8f2;color:#14664a}.badge.red{background:#fff0f0;color:#98271f}.inline-form{display:flex;gap:7px;align-items:end;margin-top:8px}.inline-form input{margin:0}.danger-form{margin-top:12px}.danger-zone{border-color:#f0d2cf}.secret{border-color:#b7cdfd;background:#f5f8ff}.secret-value{font:800 21px ui-monospace,SFMono-Regular,Menlo,monospace;padding:12px;border-radius:10px;background:#fff;border:1px dashed #8aabea;user-select:all;overflow-wrap:anywhere}.privacy-card{background:linear-gradient(135deg,#f4fbff,#f3fff9)}.meta{display:grid;grid-template-columns:130px 1fr;gap:9px}.meta dt{color:var(--muted)}.meta dd{margin:0;font-weight:750}.app-footer{text-align:center;color:#8a96a8;padding:32px 0 10px;font-size:12px}.auth-wrap{max-width:1060px;margin:55px auto 80px;display:grid;grid-template-columns:.82fr 1.18fr;background:#fff;border:1px solid #e1e8f2;border-radius:28px;overflow:hidden;box-shadow:var(--shadow)}.auth-card{padding:48px}.auth-card h1{font-size:38px;color:var(--ink);margin:7px 0}.auth-card>p{color:var(--muted);margin:0 0 25px}.auth-photo{min-height:560px}.auth-photo img{width:100%;height:100%;object-fit:cover;object-position:center}.warning-box{background:#fff7e8;border:1px solid #f1d7a7;border-radius:12px;padding:12px}details summary{cursor:pointer;font-weight:800;color:#445675;margin:7px 0}pre,code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f6f9;padding:10px;border-radius:10px}

@media(max-width:1050px){.public-nav{display:none}.hero{grid-template-columns:1fr 1fr}.hero-copy{padding-left:28px;padding-right:28px}.feature-grid{grid-template-columns:1fr 1fr}.progress-showcase{grid-template-columns:1fr}.security-panel{grid-template-columns:1fr}.demo-stats{grid-template-columns:1fr 1fr}.grid.main-child{grid-template-columns:1fr}.add-child-card{position:static}}
@media(max-width:760px){.header-inner{padding:10px 14px;gap:10px}.logo-copy strong,.logo-copy b{font-size:13px}.header-actions{margin-left:auto}.app-nav{display:none}.mobile-menu{display:none}.hero{display:flex;flex-direction:column;min-height:0}.hero-copy{padding:54px 20px 36px;order:1}.hero-media{min-height:360px;order:2}.hero h1{font-size:44px}.hero-sub{font-size:17px}.hero-points{grid-template-columns:1fr}.section-block{padding:62px 18px}.feature-grid,.language-cards{grid-template-columns:1fr}.progress-showcase{padding:60px 18px}.security-section{padding:0 18px 65px}.security-panel{padding:28px 20px}.family-cta{margin:0 18px 60px;padding:30px 24px;min-height:300px}.family-cta h2{font-size:34px}.footer-inner{grid-template-columns:1fr;padding:34px 18px}.grid.two,.stats.four{grid-template-columns:1fr}.stats.three{grid-template-columns:1fr 1fr}.row{grid-template-columns:1fr}.page-head{align-items:flex-start;flex-direction:column}.auth-wrap{margin:20px 14px 60px;grid-template-columns:1fr}.auth-photo{display:none}.exercise-row{grid-template-columns:1fr 1fr}.exercise-row label:first-child{grid-column:1/-1}.exercise-row .remove-exercise{align-self:end}.shell{padding:14px}.app-page .header-actions .lang-switch{display:none}}
@media(max-width:480px){.header-login{padding:9px 11px}.lang-switch a{padding:4px}.hero h1{font-size:38px}.hero-media{min-height:300px}.feature-grid{grid-template-columns:1fr}.stats.three{grid-template-columns:1fr}.demo-stats{grid-template-columns:1fr 1fr}.auth-card{padding:30px 22px}.exercise-row{grid-template-columns:1fr}.exercise-row label:first-child{grid-column:auto}.family-cta{border-radius:20px}.child-metrics{flex-direction:column;gap:3px}}

/* v3.1 parent/child role UI */
.child-card>a.child-main{display:flex;align-items:center;gap:15px;color:inherit;flex:1;text-decoration:none}.child-card>.admin-actions{margin-left:auto}.badge.blue{background:#eaf2ff;color:#165fcb}


/* v3.1.1 responsive hardening */
html,body{width:100%;max-width:100%;overflow-x:hidden}body{-webkit-text-size-adjust:100%;text-size-adjust:100%}.grid>*{min-width:0}button,.btn,a,input,select,textarea{touch-action:manipulation}input,select,textarea{min-width:0}.site-header{padding-top:env(safe-area-inset-top,0px)}.app-shell{padding-bottom:max(14px,env(safe-area-inset-bottom,0px))}.mobile-drawer{display:none}.mobile-drawer[hidden]{display:none!important}

/* Landing progress preview (previously intentionally lightweight, now fully responsive) */
.progress-preview{background:linear-gradient(135deg,#eaf7ff,#f7fbff 50%,#eaf4ff);padding:78px max(24px,calc((100vw - 1240px)/2));display:grid;grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);gap:46px;align-items:center}.preview-copy>span{font-size:12px;letter-spacing:.11em;font-weight:900;color:#4c89db}.preview-copy h2{font-size:clamp(34px,4.2vw,54px);line-height:1.07;letter-spacing:-.035em;color:var(--ink);margin:9px 0 14px}.preview-copy p{font-size:17px;color:#60728d;max-width:500px}.dashboard-mock{background:#fff;border:1px solid #d9e8f8;border-radius:24px;padding:22px;box-shadow:0 25px 80px rgba(29,89,155,.12);min-width:0}.mock-top{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.mock-top>div{border:1px solid #e5edf6;border-radius:14px;padding:14px;min-width:0}.mock-top small{display:block;color:#75839a;font-size:12px;line-height:1.25}.mock-top strong{display:block;color:var(--ink);font-size:22px;margin-top:4px;overflow-wrap:anywhere}.mock-chart{position:relative;height:220px;margin-top:16px;border:1px solid #e5edf6;border-radius:16px;overflow:hidden;background:linear-gradient(to bottom,#fff,#fbfdff);display:grid;grid-template-columns:repeat(4,1fr);align-items:end;padding:0 18px 18px;color:#8b97aa;font-size:11px}.mock-chart:before,.mock-chart:after{content:"";position:absolute;left:18px;right:18px;border-top:1px solid #edf2f8}.mock-chart:before{top:33%}.mock-chart:after{top:66%}.chart-line{position:absolute;left:8%;right:7%;top:38%;height:42%;border-top:4px solid var(--blue);border-radius:50% 50% 0 0;transform:rotate(-5deg);filter:drop-shadow(0 7px 10px rgba(20,109,245,.14))}.mock-chart span{position:relative;z-index:2;text-align:center}

/* Better focus/keyboard accessibility */
:focus-visible{outline:3px solid rgba(20,109,245,.35);outline-offset:2px}.btn:focus-visible,.mobile-menu:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(20,109,245,.25);outline-offset:2px}

@media(max-width:1050px){.progress-preview{grid-template-columns:1fr;gap:28px}.preview-copy{max-width:720px}.mock-top{grid-template-columns:repeat(4,minmax(0,1fr))}}

@media(max-width:860px){
  .header-inner{padding-left:max(14px,env(safe-area-inset-left,0px));padding-right:max(14px,env(safe-area-inset-right,0px))}.desktop-nav,.desktop-actions{display:none!important}.mobile-menu{display:inline-flex;width:44px;height:44px;min-width:44px;align-items:center;justify-content:center;margin-left:auto;border:1px solid #dce6f3;border-radius:12px;background:#fff;color:var(--ink);font-size:22px;line-height:1;box-shadow:0 6px 18px rgba(32,62,108,.06)}.mobile-drawer{background:rgba(255,255,255,.985);border-top:1px solid #e8eef6;padding:10px max(14px,env(safe-area-inset-right,0px)) max(14px,env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-left,0px));box-shadow:0 18px 35px rgba(22,48,84,.09)}.mobile-drawer:not([hidden]){display:block}.mobile-nav{display:grid;gap:4px}.mobile-nav a{display:flex;align-items:center;min-height:46px;padding:10px 12px;border-radius:11px;color:#30415e;font-weight:800}.mobile-nav a:hover,.mobile-nav a:active{background:#f0f5fd;color:var(--blue)}.mobile-drawer-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:10px;margin-top:6px;border-top:1px solid #edf2f7}.mobile-drawer-actions .lang-switch{display:flex!important;flex-wrap:wrap}.mobile-drawer-actions .header-login{min-height:44px}.standalone-actions{margin-left:auto}.standalone-actions .lang-switch{display:flex!important}
}

@media(max-width:760px){
  .shell{padding:12px max(12px,env(safe-area-inset-right,0px)) 12px max(12px,env(safe-area-inset-left,0px))}.app-shell{padding-top:16px}.header-inner{min-height:62px}.brand{gap:8px}.logo-mark{width:34px;height:34px;transform:scale(.9);transform-origin:left center}.logo-copy strong,.logo-copy b{font-size:13px}.site-header{backdrop-filter:blur(14px)}
  .hero-copy{padding:44px 18px 30px}.hero h1{font-size:clamp(36px,11vw,46px);line-height:1.03;margin-top:12px}.hero-sub{font-size:16px;line-height:1.55}.hero-actions{display:grid;grid-template-columns:1fr;gap:10px}.hero-actions .btn{width:100%;min-height:48px}.hero-points{margin-top:24px;gap:10px}.hero-media{min-height:330px}.hero-media img{object-position:56% center}.photo-badge{right:16px;bottom:16px;max-width:calc(100% - 32px)}
  .section-block{padding:54px 16px}.section-head{margin-bottom:26px}.section-head h2,.preview-copy h2,.security-panel h2,.family-cta h2{font-size:clamp(30px,9vw,40px)}.section-head p,.preview-copy p{font-size:16px}.feature-grid{gap:12px}.feature-card{min-height:0;padding:20px}.feature-card h3{font-size:19px}.progress-preview{padding:54px 16px;gap:24px}.dashboard-mock{padding:14px;border-radius:18px}.mock-top{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mock-top>div{padding:12px}.mock-top strong{font-size:20px}.mock-chart{height:185px;padding-left:10px;padding-right:10px}.language-cards{gap:10px}.language-cards a{padding:14px}.security-section{padding:0 16px 54px}.security-panel{border-radius:20px;padding:24px 18px;gap:20px}.security-panel li{padding:11px 12px}.family-cta{margin:0 16px 54px;padding:26px 20px;min-height:280px;background-position:62% center}.family-cta p{font-size:15px}.footer-inner{padding-left:16px;padding-right:16px;gap:28px}
  .page-head{margin-bottom:14px}.page-head h1{font-size:clamp(30px,9vw,40px);overflow-wrap:anywhere}.page-head>.btn{width:100%}.card{padding:15px;border-radius:16px}.grid{gap:12px}.grid.two{gap:12px}.stats{gap:8px}.stats.three{grid-template-columns:repeat(3,minmax(0,1fr))}.stats.four{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:12px 10px;border-radius:14px;min-width:0}.stat span{font-size:11px;line-height:1.25;overflow-wrap:anywhere}.stat strong{font-size:24px;overflow-wrap:anywhere}.child-card{padding:14px;gap:11px}.avatar{width:48px;height:48px;border-radius:14px;font-size:21px}.child-main h2{font-size:18px;overflow-wrap:anywhere}.child-metrics{gap:8px 12px}.exercise-editor-head{align-items:flex-start;flex-direction:column}.exercise-editor-head .btn{width:100%}.exercise-row{grid-template-columns:1fr 1fr;gap:9px}.exercise-row label:first-child{grid-column:1/-1}.exercise-row .remove-exercise{width:100%;height:44px}.row{grid-template-columns:1fr}.form-stack{gap:11px}input,select,textarea{font-size:16px;min-height:44px;padding:11px 12px}textarea{min-height:100px}.btn,button.btn{min-height:44px}.table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;border-radius:10px}.table-wrap table{min-width:620px}.table-wrap:focus{outline:2px solid rgba(20,109,245,.25)}th,td{padding:9px 8px}.inline-form{flex-direction:column;align-items:stretch}.inline-form .btn{width:100%}.admin-actions{display:grid;grid-template-columns:1fr 1fr}.admin-actions .btn{width:100%}.meta{grid-template-columns:110px minmax(0,1fr)}.auth-wrap{margin:14px 0 40px;border-radius:20px}.auth-card{padding:28px 20px}.auth-card h1{font-size:32px}.notice{margin-left:0;margin-right:0}.secret-value{font-size:17px}.chart-card{overflow:hidden}canvas{height:240px!important;max-width:100%}
}

@media(max-width:480px){
  .header-inner{padding-top:8px;padding-bottom:8px}.logo-copy strong,.logo-copy b{font-size:12px}.mobile-drawer-actions{align-items:stretch;flex-direction:column}.mobile-drawer-actions .lang-switch{justify-content:center}.mobile-drawer-actions .header-login{width:100%}.standalone-actions .lang-switch a{padding:5px 4px}.hero h1{font-size:clamp(34px,10.5vw,40px)}.hero-media{min-height:285px}.hero-media img{object-position:58% center}.eyebrow{font-size:10px}.photo-badge{font-size:13px}.section-block{padding-top:46px;padding-bottom:46px}.progress-preview{padding-top:46px;padding-bottom:46px}.demo-stats,.mock-top{grid-template-columns:1fr 1fr}.security-panel{padding:22px 16px}.family-cta{margin-left:12px;margin-right:12px;border-radius:18px}.family-cta .btn{width:100%}.stats.three{grid-template-columns:repeat(3,minmax(0,1fr))}.stat{padding:10px 7px}.stat strong{font-size:21px}.stat span{font-size:10px}.exercise-row{grid-template-columns:1fr}.exercise-row label:first-child{grid-column:auto}.admin-actions{grid-template-columns:1fr}.meta{grid-template-columns:1fr;gap:2px}.meta dt{margin-top:8px}.auth-card{padding:25px 17px}.child-card{align-items:flex-start}.child-card .arrow{margin-left:auto}.page-head .btn,.form-stack>.btn{width:100%}details summary{min-height:44px;display:flex;align-items:center}
}

@media(max-width:360px){
  .logo-copy b{max-width:120px;white-space:normal}.hero-copy{padding-left:14px;padding-right:14px}.hero h1{font-size:33px}.hero-media{min-height:260px}.section-block,.progress-preview{padding-left:12px;padding-right:12px}.security-section{padding-left:12px;padding-right:12px}.stats.three{grid-template-columns:1fr}.stats.four{grid-template-columns:1fr 1fr}.stat{padding:12px}.stat strong{font-size:24px}.stat span{font-size:11px}.mock-top{grid-template-columns:1fr}.language-cards a{grid-template-columns:auto 1fr}.language-cards a span{display:none}.table-wrap table{min-width:560px}.card{padding:13px}.mobile-nav a{min-height:44px}
}

@media(orientation:landscape) and (max-height:520px) and (max-width:950px){.mobile-drawer{max-height:calc(100dvh - 62px);overflow-y:auto}.hero{grid-template-columns:1fr 1fr;display:grid}.hero-copy{padding-top:30px;padding-bottom:30px}.hero-media{min-height:430px}.hero h1{font-size:38px}.hero-points{grid-template-columns:1fr 1fr}.auth-wrap{margin-top:12px}.auth-card{padding-top:24px;padding-bottom:24px}}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn,.child-card{transition:none}.btn:hover,.child-card:hover{transform:none}}

/* =====================================================================
   v3.1.3 FINAL LANDING POLISH
   - hero fits the desktop viewport
   - real SVG feature icons
   - real dashboard-style progress charts
   - hardened responsive behavior down to 320px
   ===================================================================== */

.feature-icon{
  width:50px;
  height:50px;
  border-radius:15px;
  display:grid;
  place-items:center;
  margin-bottom:18px;
  box-shadow:0 10px 28px rgba(36,75,130,.10), inset 0 1px 0 rgba(255,255,255,.8);
}
.feature-icon svg{
  width:27px;
  height:27px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.feature-card{
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover{
  transform:translateY(-3px);
  border-color:#c9dbf2;
  box-shadow:0 18px 45px rgba(40,70,120,.09);
}

.preview-bullets{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  margin-top:22px;
}
.preview-bullets span{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#526580;
  font-size:13px;
  font-weight:750;
}
.preview-bullets span::first-letter{color:var(--green)}

.preview-dashboard{
  min-width:0;
  background:rgba(255,255,255,.98);
  border:1px solid #d7e5f5;
  border-radius:26px;
  padding:20px;
  box-shadow:0 28px 85px rgba(32,82,145,.15);
}
.preview-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}
.preview-stat{
  min-width:0;
  padding:14px;
  border:1px solid #e4ecf6;
  border-radius:16px;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
}
.preview-stat span{
  display:block;
  color:#74839a;
  font-size:12px;
  line-height:1.2;
}
.preview-stat strong{
  display:block;
  margin:4px 0 2px;
  color:var(--ink);
  font-size:22px;
  letter-spacing:-.025em;
  white-space:nowrap;
}
.preview-stat small{
  display:block;
  color:#12a866;
  font-size:11px;
  font-weight:800;
}
.preview-charts{
  display:grid;
  grid-template-columns:minmax(0,1.36fr) minmax(270px,.64fr);
  gap:12px;
}
.preview-chart-card{
  min-width:0;
  overflow:hidden;
  padding:16px;
  border:1px solid #e4ecf6;
  border-radius:18px;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
}
.chart-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:5px;
}
.chart-card-head span{
  display:block;
  color:#75839a;
  font-size:12px;
}
.chart-card-head strong{
  display:block;
  color:var(--ink);
  margin-top:2px;
  font-size:15px;
  letter-spacing:-.01em;
}
.chart-chip{
  flex:none;
  display:inline-flex!important;
  align-items:center;
  min-height:28px;
  padding:4px 9px;
  border-radius:999px;
  background:#e9f8f0;
  color:#0b9a5a!important;
  font-size:11px!important;
  font-weight:900;
}
.preview-chart-svg{
  display:block;
  width:100%;
  height:auto;
  overflow:visible;
}
.preview-chart-svg text{
  fill:#8c99ab;
  font:700 11px Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
.preview-axis{
  stroke:#dce6f1;
  stroke-width:1.2;
}
.preview-grid-line{
  stroke:#edf2f8;
  stroke-width:1;
}
.preview-area{fill:url(#previewArea)}
.preview-line{
  fill:none;
  stroke:var(--blue);
  stroke-width:4;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:drop-shadow(0 5px 8px rgba(20,109,245,.13));
}
.preview-point{
  fill:var(--blue);
  stroke:#fff;
  stroke-width:3;
}
.preview-point.end{
  fill:var(--green);
}
.preview-bar{fill:#9ac9ff}
.preview-bar.active{fill:var(--blue)}

/* Desktop hero: the complete composition fits into one first-screen block. */
@media(min-width:861px){
  .hero{
    min-height:540px;
    height:min(650px,calc(100svh - 72px));
    grid-template-columns:minmax(0,.91fr) minmax(480px,1.09fr);
  }
  .hero-copy{
    padding:42px 42px 38px 40px;
  }
  .hero h1{
    max-width:590px;
    margin:13px 0 16px;
    font-size:clamp(42px,4.35vw,58px);
    line-height:.99;
    letter-spacing:-.045em;
  }
  .hero-sub{
    max-width:590px;
    margin:0 0 22px;
    font-size:17px;
    line-height:1.48;
  }
  .hero-actions .btn.large{
    min-height:48px;
    padding:11px 18px;
  }
  .hero-points{
    max-width:590px;
    margin-top:23px;
    gap:8px 18px;
    font-size:12px;
  }
  .hero-media{
    min-height:0;
    height:100%;
  }
  .hero-media img{
    height:100%;
    object-position:center 42%;
  }
  .section-block{
    padding-top:72px;
    padding-bottom:72px;
  }
  .progress-preview{
    padding-top:68px;
    padding-bottom:68px;
    grid-template-columns:minmax(300px,.68fr) minmax(0,1.32fr);
    gap:36px;
  }
}

@media(max-width:1120px){
  .preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .preview-charts{grid-template-columns:1fr}
  .preview-chart-card.compact .preview-chart-svg{max-height:210px}
}

@media(max-width:860px){
  .hero{
    display:grid;
    grid-template-columns:1fr;
    min-height:0;
    height:auto;
  }
  .hero-copy{
    padding:38px 22px 28px;
  }
  .hero h1{
    max-width:650px;
    font-size:clamp(38px,8.5vw,52px);
    line-height:1.01;
  }
  .hero-sub{max-width:650px}
  .hero-media{
    min-height:380px;
    max-height:520px;
  }
  .progress-preview{
    grid-template-columns:1fr;
    gap:25px;
  }
  .preview-copy{max-width:720px}
}

@media(max-width:760px){
  .hero-copy{padding:32px 16px 24px}
  .hero h1{
    font-size:clamp(34px,10vw,44px);
    margin:10px 0 15px;
  }
  .hero-sub{
    font-size:16px;
    line-height:1.5;
    margin-bottom:18px;
  }
  .hero-points{
    grid-template-columns:1fr;
    margin-top:20px;
    gap:8px;
  }
  .hero-media{
    min-height:310px;
    max-height:390px;
  }
  .hero-media img{object-position:57% 38%}
  .feature-grid{grid-template-columns:1fr 1fr}
  .feature-card{padding:18px}
  .feature-icon{width:46px;height:46px;margin-bottom:14px}
  .feature-icon svg{width:24px;height:24px}
  .progress-preview{padding:50px 14px}
  .preview-dashboard{padding:13px;border-radius:20px}
  .preview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .preview-stat{padding:11px;border-radius:13px}
  .preview-stat strong{font-size:19px}
  .preview-charts{grid-template-columns:1fr;gap:9px}
  .preview-chart-card{padding:12px;border-radius:15px}
  .preview-bullets{margin-top:18px}
}

@media(max-width:520px){
  .hero-media{min-height:285px}
  .feature-grid{grid-template-columns:1fr}
  .feature-card{min-height:0}
  .preview-stat strong{white-space:normal}
  .chart-card-head{align-items:center}
}

@media(max-width:360px){
  .hero-copy{padding-left:12px;padding-right:12px}
  .hero h1{font-size:32px}
  .hero-media{min-height:255px}
  .preview-grid{grid-template-columns:1fr}
  .preview-dashboard{padding:10px}
  .preview-chart-card{padding:9px}
}
