/* Learning home: tools, public lessons, owned courses and personal practice. */
body.ac-home{--hub-bg:#fff;--hub-card:#fff;--hub-soft:#f7f7f8;--hub-line:#e8e8ec;--hub-text:#18191e;--hub-muted:#71727b;--ac-bg:var(--hub-bg);background:var(--hub-bg)!important;color:var(--hub-text)}
html[data-pg-theme=dark] body.ac-home{--hub-bg:#080808;--hub-card:#131313;--hub-soft:#1b1b1c;--hub-line:#2b2b2e;--hub-text:#f3f3f5;--hub-muted:#a4a4ad;--ac-bg:var(--hub-bg)}
body.ac-home .ld-home{width:100%;max-width:1080px;box-sizing:border-box;padding:38px 32px 24px!important}
.home-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.ac-home .home-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0;padding:0}
body.ac-home .home-tool{--tool-bg:#dfb64a;--tool-ink:#292314;position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px;min-width:0;min-height:190px;padding:25px 16px;box-sizing:border-box;background:var(--tool-bg);background-image:linear-gradient(155deg,#ffffff12 0%,transparent 42%,#00000013 100%);color:var(--tool-ink)!important;text-decoration:none;border:0;border-radius:14px;box-shadow:0 4px 0 #00000018,0 9px 18px #0000000a;transition:transform .2s ease,box-shadow .2s ease;-webkit-tap-highlight-color:transparent}
body.ac-home .tool-range{--tool-bg:#7256b7;--tool-ink:#fff}
body.ac-home .tool-practice{--tool-bg:#b95342;--tool-ink:#fff}
body.ac-home .tool-review{--tool-bg:#3c719f;--tool-ink:#fff}
body.ac-home .home-tool::after{content:'♠';position:absolute;right:-9px;bottom:-23px;z-index:-1;font:140px/.95 Georgia,serif;transform:rotate(-18deg);color:currentColor;opacity:.065;pointer-events:none}
body.ac-home .tool-symbol{display:flex;align-items:center;justify-content:center;flex:none;width:72px;height:72px;filter:drop-shadow(0 2px 1px #0000001c)}
body.ac-home .tool-symbol svg{display:block;width:100%;height:100%;overflow:visible}
body.ac-home .tool-title{font-size:23px;line-height:1.35;letter-spacing:-.6px;font-weight:650;text-align:center}
html[data-pg-theme=dark] body.ac-home .home-tool{box-shadow:0 4px 0 #0006,0 12px 20px #0003}
html[data-pg-theme=dark] body.ac-home .tool-lecture{--tool-bg:#d4a94a}
html[data-pg-theme=dark] body.ac-home .tool-range{--tool-bg:#6850a8}
html[data-pg-theme=dark] body.ac-home .tool-practice{--tool-bg:#aa4b3e}
html[data-pg-theme=dark] body.ac-home .tool-review{--tool-bg:#34648d}
body.ac-home .home-tool:active{transform:translateY(2px);box-shadow:0 2px 0 #00000018,0 4px 8px #00000008}
body.ac-home .home-tool:focus-visible,body.ac-home .learning-resume:focus-visible,body.ac-home .learning-method summary:focus-visible{outline:3px solid #8a68d6;outline-offset:4px}
body.ac-home .learning-resume{font-weight:650;box-sizing:border-box}
body.ac-home .learning-resume:active{opacity:.8}
body.ac-home .home-learning{color:var(--hub-text)}
body.ac-home .learning-head{display:flex;align-items:center;justify-content:space-between}
body.ac-home .learning-head h2{line-height:1.4;margin:0!important;color:var(--hub-text)}
body.ac-home .stat-label{font-weight:500}
body.ac-home .learning-meta{display:flex;align-items:flex-start;justify-content:space-between;color:var(--hub-muted)}
body.ac-home .learning-method{min-width:0;flex:1}
body.ac-home .learning-method summary{padding:10px 0;cursor:pointer;width:fit-content}
body.ac-home .learning-method p{margin:0 0 10px}
body.ac-home .learning-sync{line-height:1.6;text-align:right;margin:10px 0;flex:1}
body.ac-home .ac-footer{width:100%;max-width:1016px;box-sizing:border-box;gap:28px;border-top:1px solid var(--hub-line);margin:18px auto 24px;padding:24px 0 16px;color:var(--hub-muted)}
body.ac-home .ac-footer-brand{font-size:15px;color:var(--hub-text)!important}
body.ac-home .ac-footer p{font-size:10px!important;line-height:1.7;margin:0}
@media(hover:hover){body.ac-home .home-tool:hover{transform:translateY(-3px);filter:none;box-shadow:0 7px 0 #00000018,0 14px 24px #00000010}body.ac-home .learning-resume:hover{opacity:.86}}
@media(max-width:780px){
 body.ac-home .ld-home{padding:24px 20px 18px!important;max-width:600px}
 body.ac-home .home-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body.ac-home .home-tool{min-height:158px;border-radius:13px;gap:12px;padding:22px 12px}
 body.ac-home .home-tool::after{font-size:122px;bottom:-20px}
 body.ac-home .tool-symbol{width:62px;height:62px}
 body.ac-home .tool-title{font-size:21px;letter-spacing:-.6px}
 body.ac-home .ac-footer{display:flex;flex-wrap:wrap;align-items:center;width:calc(100% - 40px);max-width:560px;gap:14px 20px;padding:20px 0 12px;margin:14px auto 12px}
 body.ac-home .ac-footer p{order:3;width:100%;font-size:9px!important}
 body.ac-home .ac-footer>a:last-child{margin:0 0 0 auto;font-size:11px}
 html body.ac-home>.pg-bottom-nav.pg-bottom-nav{background:rgba(255,255,255,.94)!important;border-color:#e6e6e8!important;box-shadow:0 4px 20px #0000000c!important}
 html[data-pg-theme=dark] body.ac-home>.pg-bottom-nav.pg-bottom-nav{background:rgba(20,20,20,.94)!important;border-color:#303033!important;box-shadow:none!important}
}
@media(max-width:360px){body.ac-home .ld-home{padding:20px 14px 16px!important}body.ac-home .home-tool{min-height:146px;padding:18px 10px;gap:10px}body.ac-home .tool-symbol{width:58px;height:58px}body.ac-home .tool-title{font-size:20px}}
@media(prefers-reduced-motion:reduce){body.ac-home .home-tool{transition:none;transform:none!important}}

/* Growth report styles live in home-growth.css. */

/* Content stays usable before authentication or personal records finish loading. */
body.ac-home .home-classroom[hidden],body.ac-home .home-classroom [hidden]{display:none!important}
body.ac-home .home-classroom{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-top:28px;padding:20px;border:1px solid var(--hub-line);border-radius:14px;background:var(--hub-soft);box-sizing:border-box}
body.ac-home .home-classroom-cover{display:block;flex:none;width:112px;height:63px;object-fit:cover;border-radius:7px;background:var(--hub-line)}
body.ac-home .home-classroom-copy{flex:1;min-width:150px}
body.ac-home .home-classroom-label{display:block;font-size:12px;font-weight:600;color:var(--hub-muted);margin-bottom:5px}
body.ac-home .home-classroom-copy h2{font-size:19px!important;line-height:1.45;letter-spacing:-.5px;font-weight:650;margin:0!important;color:var(--hub-text);overflow-wrap:anywhere}
body.ac-home .home-classroom-copy p{font-size:13px;line-height:1.65;margin:5px 0 0;color:var(--hub-muted);overflow-wrap:anywhere}
body.ac-home .home-classroom-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
body.ac-home .home-classroom-link,body.ac-home #homeClassroomRefresh{display:inline-flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box;padding:11px 17px;border:1px solid var(--hub-text);border-radius:8px;background:var(--hub-text);color:var(--hub-bg)!important;text-decoration:none;font-family:inherit;font-size:13px;line-height:1.5;font-weight:600;white-space:nowrap;cursor:pointer;touch-action:manipulation}
body.ac-home #homeClassroomRefresh{background:transparent;border-color:var(--hub-line);color:var(--hub-text)!important;font-family:inherit;font-size:13px;font-weight:600}
body.ac-home #homeClassroomRefresh:disabled{opacity:.55;cursor:wait}
body.ac-home .home-classroom-status{flex-basis:100%;font-size:12px;line-height:1.7;margin:0;color:var(--hub-muted)}
body.ac-home .home-classroom-status:empty{display:none}
body.ac-home .home-discover{margin-top:32px;scroll-margin-top:100px}
body.ac-home .home-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 17px}
body.ac-home .home-section-head h2{font-size:22px!important;line-height:1.4;font-weight:700;letter-spacing:-.8px;margin:0!important;color:var(--hub-text)}
body.ac-home .home-section-head>a{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--hub-muted);text-decoration:none;font-size:13px;white-space:nowrap}
body.ac-home .home-course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 18px}
body.ac-home .home-course-card{display:block;min-width:0;text-decoration:none;color:var(--hub-text)!important;border-radius:12px;-webkit-tap-highlight-color:transparent}
body.ac-home .home-course-image{position:relative;overflow:hidden;aspect-ratio:16/9;background:var(--hub-soft);border-radius:12px;box-shadow:0 2px 7px #00000014}
body.ac-home .home-course-image>img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease}
body.ac-home .home-video-badge{position:absolute;top:12px;left:12px;padding:5px 9px;background:#131313e6;color:#fff;font-size:12px;line-height:1.3;font-weight:600;border-radius:5px}
body.ac-home .home-video-play{position:absolute;right:14px;bottom:14px;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fffffff0;color:#171717;box-shadow:0 2px 8px #0004}
body.ac-home .home-video-play svg{width:21px;height:21px;fill:currentColor;margin-left:1px}
body.ac-home .home-course-copy{padding:12px 1px 0}
body.ac-home .home-course-copy h3{font-size:17px;font-weight:650;line-height:1.5;letter-spacing:-.4px;margin:0;color:var(--hub-text);overflow-wrap:anywhere}
body.ac-home .home-course-copy p{font-size:13px;line-height:1.6;margin:5px 0 0;color:var(--hub-muted)}
body.ac-home :is(.home-course-card,.home-section-head>a,.home-classroom-link,#homeClassroomRefresh,.home-back,.home-video-heading>a,.home-next-links>a):focus-visible{outline:3px solid #8a68d6;outline-offset:4px}
@media(hover:hover){body.ac-home .home-course-card:hover .home-course-image>img{transform:scale(1.025)}body.ac-home .home-section-head>a:hover{color:var(--hub-text)}body.ac-home .home-classroom-link:hover{opacity:.85}}
@media(max-width:780px){
 body.ac-home .home-classroom{gap:13px;margin-top:24px;padding:16px}
 body.ac-home .home-classroom-cover{width:96px;height:54px}
 body.ac-home .home-classroom-copy h2{font-size:17px!important}
 body.ac-home .home-classroom-actions{flex-basis:100%}
 body.ac-home .home-classroom-actions>a{flex:1}
 body.ac-home .home-discover{margin-top:27px}
 body.ac-home .home-section-head{margin-bottom:13px}
 body.ac-home .home-section-head h2{font-size:20px!important}
 body.ac-home .home-course-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 14px}
 body.ac-home .home-free-card{grid-column:1/-1}
 body.ac-home .home-course-image{border-radius:10px}
 body.ac-home .home-course-copy h3{font-size:16px}
 body.ac-home .home-free-card .home-course-copy h3{font-size:18px}
 body.ac-home .home-course-copy p{font-size:12px;margin-top:3px}
}
@media(max-width:360px){body.ac-home .home-classroom-copy{min-width:120px}body.ac-home .home-course-grid{column-gap:10px}body.ac-home .home-course-copy h3{font-size:15px}}
@media(prefers-reduced-motion:reduce){body.ac-home .home-course-image>img{transition:none;transform:none!important}}

/* Public video uses the same header, theme and safe-area navigation as the home. */
body.ac-free .home-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0 0 16px;color:var(--hub-muted);font-size:14px;text-decoration:none}
body.ac-free .home-free-player{aspect-ratio:16/9;background:#080808;border:1px solid var(--hub-line);border-radius:13px;overflow:hidden}
body.ac-free .home-free-player iframe{display:block;width:100%;height:100%;border:0}
body.ac-free .home-video-heading{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-top:24px}
body.ac-free .home-video-heading h1{font-size:26px!important;font-weight:700;line-height:1.45;letter-spacing:-.8px;margin:0!important;color:var(--hub-text);overflow-wrap:anywhere}
body.ac-free .home-video-heading p{font-size:13px;line-height:1.6;margin:9px 0 0;color:var(--hub-muted)}
body.ac-free .home-video-heading>a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;box-sizing:border-box;padding:10px 14px;border:1px solid var(--hub-line);border-radius:8px;color:var(--hub-text);text-decoration:none;font-size:13px}
body.ac-free .home-video-help{margin:19px 0 0;font-size:13px;line-height:1.75;color:var(--hub-muted)}
body.ac-free .home-after-video{margin-top:36px;padding-top:26px;border-top:1px solid var(--hub-line)}
body.ac-free .home-after-video h2{font-size:20px!important;line-height:1.5;letter-spacing:-.5px;margin:0 0 15px!important;color:var(--hub-text)}
body.ac-free .home-next-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.ac-free .home-next-links>a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;box-sizing:border-box;padding:15px 18px;border:1px solid var(--hub-line);border-radius:10px;background:var(--hub-soft);color:var(--hub-text);font-size:15px;font-weight:600;text-decoration:none}
@media(max-width:780px){body.ac-free .home-video-heading{margin-top:20px;gap:13px}body.ac-free .home-video-heading h1{font-size:21px!important}body.ac-free .home-free-player{border-radius:10px}body.ac-free .home-next-links{grid-template-columns:1fr}body.ac-free .home-after-video{margin-top:28px}}

/* Four tactile tools: lift on hover, compress on touch, keep scrolling native. */
body.ac-home .home-tool{touch-action:manipulation;transform:perspective(700px) rotateX(var(--home-tilt-x,0deg)) rotateY(var(--home-tilt-y,0deg)) translateY(var(--home-lift,0px)) scale(var(--home-scale,1));transition:transform .22s cubic-bezier(.2,.75,.25,1),box-shadow .22s ease}
body.ac-home .tool-symbol{transform-origin:50% 62%;transition:transform .25s cubic-bezier(.2,.75,.25,1)}
@media(hover:hover) and (pointer:fine){
 body.ac-home .home-tool:hover{--home-lift:-4px;transform:perspective(700px) rotateX(var(--home-tilt-x,0deg)) rotateY(var(--home-tilt-y,0deg)) translateY(-4px);box-shadow:0 7px 0 #00000018,0 16px 25px #00000014}
 body.ac-home .home-tool:hover .tool-symbol{transform:translateY(-3px) scale(1.06)}
 body.ac-home .tool-practice:hover .home-ace{rotate:-4deg;translate:-1px 0}
 body.ac-home .tool-practice:hover .home-jack{rotate:4deg;translate:1px 0}
}
body.ac-home .home-ace,body.ac-home .home-jack{transform-origin:center;transform-box:fill-box;transition:rotate .25s ease,translate .25s ease}
body.ac-home .home-tool.is-pressed,body.ac-home .home-tool:active{transform:translateY(2px) scale(.97);box-shadow:0 1px 0 #00000018,0 3px 7px #00000012;transition-duration:90ms}
body.ac-home .home-tool.is-pressed .tool-symbol,body.ac-home .home-tool:active .tool-symbol{transform:scale(.94);transition-duration:90ms}
body.ac-home .home-tool:focus-visible .tool-symbol{transform:translateY(-2px) scale(1.04)}
/* An opaque old frame stays beneath the new page throughout its fade-in. */
::view-transition-old(root){animation:none;mix-blend-mode:normal}
::view-transition-new(root){animation:pg-home-arrive .18s ease-out both;mix-blend-mode:normal}
@keyframes pg-home-arrive{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){body.ac-home .home-tool,body.ac-home .tool-symbol,body.ac-home .home-ace,body.ac-home .home-jack{animation:none!important;transition:none!important;transform:none!important;rotate:none!important;translate:none!important}::view-transition-new(root){animation:none!important}}
