/* New home page (from the approved mockup). Loaded on the home page only. Source: site-src/home.css */
body{margin:0;background:#F4F7FB}
.page{font-family:'Public Sans',sans-serif;color:#10213F;background:#F4F7FB;width:100%;display:block}
.wrap{max-width:1200px;margin:0 auto;padding:0 40px;box-sizing:border-box}
.serif{font-family:'Source Serif 4',Georgia,serif}
.mono{font-family:'IBM Plex Mono',monospace;font-size:13px;letter-spacing:.08em;text-transform:uppercase;font-weight:500}
.page a,.nx-bar a{color:inherit}
.page .btn-gold,.nx-bar .btn-gold{color:#10213F}.page .btn-ghost,.nx-bar .btn-ghost{color:#fff}.nx-bar .btn-blue{color:#fff}.page .btn-blue{color:#fff}.page .btn-line{color:#17357E}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;border-radius:10px;font-weight:600;font-size:16px;text-decoration:none;border:2px solid transparent;box-sizing:border-box}
.btn-gold{background:#DFA400;color:#10213F}
.btn-gold:hover{background:#F0B514}
.btn-ghost{border-color:rgba(255,255,255,.7);color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.12)}
.btn-blue{background:#17357E;color:#fff}
.btn-blue:hover{background:#2F5BD0}
.btn-line{border-color:#17357E;color:#17357E}
.card{background:#fff;border:1px solid #D9E1EF;border-radius:16px;box-sizing:border-box}
.pg-home .card{padding:28px}
.h2{font-family:'Source Serif 4',Georgia,serif;font-weight:600;font-size:40px;line-height:1.15;margin:0 0 12px}
.pg-home .h2{letter-spacing:-.01em}
.lead{font-size:19px;line-height:1.55;color:#34425E;margin:0;max-width:640px}
.sec{padding:96px 0}
.eyebrow{color:#8A6400;margin-bottom:14px;display:block}
.on-blue .eyebrow{color:#F2C94C}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.chip{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 14px;border-radius:999px;font-size:14px;font-weight:600;background:#fff;border:1px solid #D9E1EF;color:#10213F;box-sizing:border-box}
.nx-hero{overflow:hidden}
.nx-frame{position:absolute;inset:16px;border:2px solid #DFA400;border-radius:20px;opacity:.55;pointer-events:none}
.nx-hero .nx-wrap{z-index:1}
.page h1,.page h2,.page h3{margin-top:0}
.page details>summary{list-style:revert}
@media (max-width:900px){.stack{grid-template-columns:1fr !important;gap:32px !important}.stack>*,.hero-grid>*{min-width:0}.grid3,.grid4{grid-template-columns:1fr !important}.hero-grid{grid-template-columns:1fr !important;padding-bottom:96px !important}.h2{font-size:32px}.loop{grid-template-columns:1fr 1fr !important}.two{grid-template-columns:1fr !important}.page .card p{min-width:0 !important}.wrap{padding:0 24px}.sec{padding:64px 0}}
@media (max-width:560px){.loop{grid-template-columns:1fr !important}.page h1.serif,.nx-hero h1.serif{font-size:42px !important;line-height:1.05 !important;letter-spacing:-.02em !important}}
.page .card{max-width:100%}
[hidden]{display:none!important}
.qcard .opt.sel{border:2px solid #17357E;background:#EAF0FF}.qcard .opt.ok{border:2px solid #0E7A52;background:#DDF3EA}.qcard .opt.bad{border:2px solid #CE4A18;background:#FBE8DF}
.qexp.good{background:#DDF3EA}.qexp.miss{background:#FFF3CC}
.page table{max-width:none}
@media (max-width:640px){
main [style*="grid-template-columns"]:not(.opts),.nx-bar [style*="grid-template-columns"]:not(.nx-menu):not(.hero-grid){grid-template-columns:1fr !important}
main .wrap,main .narrow,.nx-bar .wrap,.nx-bar .narrow{padding-left:max(16px,env(safe-area-inset-left,0px)) !important;padding-right:max(16px,env(safe-area-inset-right,0px)) !important}
.nx-bar .nx-wrap{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
body:not(.pg-home) h1{font-size:34px !important}
body:not(.pg-home) main .card{padding:20px !important}
main svg{max-width:100%;height:auto}
main table{display:block;overflow-x:auto;max-width:100%}
}
.qcard .opt{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border:1px solid #D9E1EF;border-radius:10px;background:#fff;font-size:17px;cursor:pointer}
.qcard .opt b{flex:none}
.qcard .opt>span{line-height:normal}
body[class*="pg-learn-"] main table{color:#10213F;line-height:normal}
@media (max-width:640px){body[class*="pg-learn-"] main [style*="position:sticky"]{flex-wrap:nowrap !important;overflow-x:auto}body[class*="pg-learn-"] main [style*="position:sticky"] a{flex:none;white-space:nowrap}}

/* ---- Phone version of the home page: same content, condensed (see Mobile mockup) ---- */
.m-fold>summary{display:none}
.m-sticky{display:none}
@media (max-width:640px){
.m-fold>summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:0 16px;border:2px solid #17357E;border-radius:10px;background:#fff;color:#17357E;font-weight:600;font-size:16px;cursor:pointer;list-style:none}
.m-fold>summary::-webkit-details-marker{display:none}
.m-fold>summary::after{content:"+";font-size:22px;line-height:1}
.m-fold[open]>summary::after{content:"\2212"}
.m-fold[open]>summary{margin-bottom:12px}
.m-fold>.card,.m-fold>div{margin-top:0}
.pg-home{padding-bottom:72px}
.m-sticky{display:block;position:fixed;left:0;right:0;bottom:0;z-index:50;background:#fff;border-top:1px solid #D9E1EF;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));transform:translateY(110%);transition:transform .2s}
.m-sticky.on{transform:none}
.m-sticky .btn{width:100%;min-height:48px}
.pg-home .nx-nav{height:64px}
.pg-home .nx-frame{inset:10px;border-radius:16px}
.pg-home .hero-grid{padding:4px 0 56px !important;gap:12px !important}
.pg-home .hero-grid .mono{margin-bottom:10px !important}
.pg-home h1.serif{font-size:34px !important;line-height:1.08 !important;margin:0 0 12px !important}
.pg-home .hero-p{font-size:16px !important;line-height:1.45 !important;margin:0 0 16px !important}
.pg-home .hero-btns{gap:10px !important;margin-bottom:14px !important}
.pg-home .hero-btns .btn{flex:1 1 100%;min-height:48px}
.pg-home .hero-checks{gap:4px 16px !important;font-size:14px !important}
.pg-home .hero-owl .chip{display:none}
.pg-home .hero-owl img{width:120px !important}
.pg-home section[style*="margin-top:-64px"]{margin-top:-36px !important}
.pg-home .grid4{grid-template-columns:1fr 1fr !important;gap:16px 14px}
.pg-home .grid4 .sub{display:none}
.pg-home .grid4 [style*="font-size:44px"]{font-size:32px !important}
.pg-home .grid4 [style*="height:44px"]{height:32px !important}
.pg-home .grid4 [style*="height:44px"] svg{width:30px;height:30px}
.pg-home .grid4 [style*="margin-top:10px"]{margin-top:6px !important;font-size:14px}
.pg-home .card[style*="padding:32px"]{padding:18px !important}
.pg-home .sec{padding:40px 0}
.pg-home .h2{font-size:27px}
.pg-home .lead{font-size:16px}
.pg-home .s-worries .card{padding:14px 16px !important;border-top-width:4px !important}
.pg-home .s-worries .card>svg{display:none}
.pg-home .s-worries .card h3{font-size:21px !important;margin:0 0 4px !important}
.pg-home .s-worries .card p{font-size:15px !important}
.pg-home .s-worries .card .mono{margin-top:8px !important;font-size:12px}
.pg-home .s-worries .lead{margin-bottom:20px !important}
.pg-home .s-loop,.pg-home .s-ways,.pg-home .s-plans,.pg-home .s-lang{padding:40px 0 !important}
.pg-home .s-loop .lead{margin-bottom:20px !important}
.pg-home .loop{grid-template-columns:1fr !important;gap:10px !important}
.pg-home .loop>div{padding:14px 16px !important}
.pg-home .loop .serif{font-size:18px !important;margin:6px 0 0 !important}
.pg-home .loop p,.pg-home .loop [style*="display:grid"]{display:none !important}
.pg-home .s-loop>.wrap>p{font-size:14px !important;margin-top:20px !important}
.pg-home .s-ways .card{padding:14px 16px !important}
.pg-home .s-ways h3{font-size:21px !important;margin:6px 0 4px !important}
.pg-home .s-ways .lead,.pg-home .s-plans .lead{margin-bottom:20px !important}
.pg-home .card.hero-grid{padding:18px !important;gap:16px !important}
.pg-home .t-sample{padding:16px !important}
.pg-home .t-sample .serif{font-size:18px !important}
.pg-home .s-plans .card{padding:18px !important}
.pg-home .s-plans .card .serif{font-size:32px !important}
.pg-home .s-plans ul{font-size:15px !important;gap:8px !important}
.pg-home .s-close{padding:44px 0 !important}
.pg-home .s-close img{width:96px !important}
.pg-home .s-close .h2{font-size:30px !important}
.pg-home section[style*="padding:8px 0 40px"]{padding:8px 0 24px !important}
.pg-home .chip{min-height:32px;padding:0 12px;font-size:13px}
.pg-home details.card{padding:14px 16px !important}
.nx-foot{padding:32px 0 28px}
.nx-foot .nx-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px}
.nx-foot .nx-col{min-width:0}
}

/* Review fixes: phone tap targets, small text, wide tables */
.nx-brand{min-height:44px}
@media (max-width:640px){
body[class*="pg-learn-"] main table{display:block;max-width:100%;overflow-x:auto;min-width:0 !important}
.m-sticky .btn{font-family:'Public Sans',sans-serif}
.mono,.eyebrow,.note,.nx-h,main caption{font-size:14px !important}
main .crumb a,main nav a:not(.btn){display:inline-block;padding:13px 2px}
}

/* Plan page: compact form, one row on desktop */
.plan-form{display:grid;grid-template-columns:150px minmax(0,1fr) 150px auto;gap:12px;align-items:end}
.plan-form .in{padding-left:12px;padding-right:8px}
.plan-form label{margin-top:12px}
.plan-form .in{margin-top:6px;width:100%}
.plan-form .plan-go .btn{height:48px;white-space:nowrap}
.plan-why{margin-top:4px}
.plan-why>summary{cursor:pointer;font-weight:600;color:#17357E;min-height:44px;display:flex;align-items:center}
@media (max-width:860px){.plan-form{grid-template-columns:1fr 1fr !important}.plan-form>div:nth-child(2){grid-column:1/-1;order:3}.plan-form .plan-go{grid-column:1/-1;order:4}.plan-form .plan-go .btn{width:100%}}
@media (max-width:480px){.plan-form{grid-template-columns:1fr 1fr;gap:4px 10px}.plan-form>div:nth-child(2){order:3}}
