/* Amerski Academy. Shared styles for every page.
   The homepage sections keep board L's inline styles; this file holds the fonts,
   the header and footer, the animations, and the parts added for launch. */

@font-face{font-family:Newsreader;font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/newsreader.woff2) format('woff2')}
@font-face{font-family:Newsreader;font-style:italic;font-weight:200 800;font-display:swap;src:url(fonts/newsreader-italic.woff2) format('woff2')}
@font-face{font-family:Figtree;font-style:normal;font-weight:300 900;font-display:swap;src:url(fonts/figtree.woff2) format('woff2')}
@font-face{font-family:'Amerski Signature';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/signature.woff2) format('woff2')}

html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:#FFFFFF}
a{color:#2E6DB4}a:hover{color:#1C2B45}
:focus-visible{outline:3px solid #2E6DB4;outline-offset:3px}
[hidden]{display:none!important}
details summary::-webkit-details-marker{display:none}
.site{background:#FFFFFF;color:#101828;font-family:Figtree,system-ui,sans-serif;font-size:17px;line-height:1.6}
.site section[id],.site #included{scroll-margin-top:16px}
#notify{scroll-margin-top:24px}

/* ---------- header ---------- */
.site-header{border-bottom:1px solid #E3E7F0;background:#FFFFFF;font-family:Figtree,system-ui,sans-serif;line-height:1.6}
.site-header-in{max-width:1200px;margin:0 auto;padding:14px 24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;box-sizing:border-box}
.site-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#1C2B45}
.site-brand img{display:block;width:44px;height:44px;border-radius:8px}
.site-brand-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.site-brand-name{font-family:Newsreader,Georgia,serif;font-weight:600;font-size:24px;line-height:1.05;letter-spacing:-0.01em;white-space:nowrap}
.site-tagline{font-size:13px;font-weight:600;line-height:1.2;color:#4B5565;white-space:nowrap}
.site-nav{display:flex;flex-wrap:wrap;align-items:center;gap:4px 26px;font-size:15px;font-weight:600}
.site-nav a{color:#101828;text-decoration:none;padding:12px 0}
.site-nav a:hover{color:#2E6DB4}
.site-nav a.site-cta{background:#1C2B45;color:#FFFFFF;padding:11.5px 20px;border-radius:10px;white-space:nowrap}
.site-nav a.site-cta:hover{background:#26395A;color:#FFFFFF}
.site-links{display:contents}
@media (max-width:919px){
  /* phone and small tablet: logo and the "Get session dates" button share the first row; the links sit on a second row */
  .site-header-in{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;padding:12px 20px 6px}
  .site-nav{display:contents}
  .site-brand{grid-column:1;grid-row:1;min-width:0;gap:10px}
  .site-brand img{width:38px;height:38px}
  .site-brand-name{font-size:20px}
  .site-tagline{font-size:12.5px}
  .site-nav a.site-cta{grid-column:2;grid-row:1;padding:9px 13px;font-size:14px;font-weight:600}
  .site-links{grid-column:1 / -1;grid-row:2;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0 12px;max-width:520px;font-size:14px;font-weight:600;white-space:nowrap;overflow-x:auto;scrollbar-width:none}
  .site-links::-webkit-scrollbar{display:none}
  .site-links a{padding:8px 0}
}
/* narrow phones: the slogan wraps onto two lines so it never runs under the button */
@media (max-width:430px){.site-tagline{white-space:normal;text-wrap:balance}}
@media (max-width:379px){.site-header-in{padding-left:16px;padding-right:16px}.site-brand-name{font-size:18px}.site-tagline{font-size:12px}.site-nav a.site-cta{padding:8px 10px;font-size:13.5px}.site-links{gap:0 8px;font-size:13px}}
@media (max-width:339px){.site-brand-text{display:none}}

/* ---------- footer ---------- */
.site-footer{background:#142036;color:#D5DDEA;font-family:Figtree,system-ui,sans-serif;font-size:17px;line-height:1.6}
.site-footer-in{max-width:1200px;margin:0 auto;padding:48px 24px 28px;box-sizing:border-box}
.site-footer-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:24px 48px}
.site-footer-brand{max-width:360px}
.site-footer-brand div{display:flex;align-items:center;gap:14px}
.site-footer-brand img{display:block;width:52px;height:52px;border-radius:10px;border:1px solid #3A4A66}
.site-footer-brand strong{font-family:Newsreader,Georgia,serif;font-weight:600;font-size:26px;color:#FFFFFF}
.site-footer .site-footer-brand p{margin:8px 0 0;font-size:15px}
.site-footer .site-footer-brand p.site-footer-slogan{margin:14px 0 0;font-family:Newsreader,Georgia,serif;font-style:italic;font-weight:500;font-size:21px;line-height:1.2;color:#FFE34A}
.site-footer-nav{display:flex;flex-wrap:wrap;align-content:flex-start;gap:8px 32px;font-size:15px}
.site-footer a{color:#FFFFFF;text-decoration:none}
.site-footer a:hover{color:#FFE34A}
.site-footer-nav a{padding:10px 0}
.site-footer-legal{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:0 12px;margin-top:36px;padding-top:20px;border-top:1px solid #3A4A66;font-size:13px}
.site-footer-legal a{color:#D5DDEA}
.site-footer-legal a{display:inline-block;padding:10px 0}
.site-footer-legal a:hover{color:#FFFFFF}
@media (max-width:1149px){.site-footer-legal{flex-direction:column;align-items:flex-start;gap:0}}
@media (max-width:519px){.site-footer-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;width:100%}}

/* ---------- homepage: grids and the two typing animations (from board L) ---------- */
.g-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.g-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g-5{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:899px){.g-5{grid-template-columns:minmax(0,1fr)}}
@media (max-width:1119px){.g-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:899px){.g-3{grid-template-columns:minmax(0,1fr)}}
@media (max-width:599px){.g-4{grid-template-columns:minmax(0,1fr)}}
.hs-all{animation:hsAll 10s linear infinite}
.hs-t0{animation:hsT0 10s steps(30,end) infinite}
.hs-strike{animation:hsStrike 10s ease-in-out infinite}
.hs-note{animation:hsNote 10s ease-in-out infinite}
.hs-fix1{animation:hsFix1 10s steps(36,end) infinite}
.hs-fix2{animation:hsFix2 10s steps(36,end) infinite}
.hs-grade{animation:hsGrade 10s ease-in-out infinite}
@keyframes hsAll{0%{opacity:0}3%,94%{opacity:1}99%,100%{opacity:0}}
@keyframes hsT0{0%,3%{clip-path:inset(0 100% 0 0)}11%,100%{clip-path:inset(0 0 0 0)}}
@keyframes hsStrike{0%,14%{background-size:0% 2px}21%,100%{background-size:100% 2px}}
@keyframes hsNote{0%,23%{opacity:0}29%,100%{opacity:1}}
@keyframes hsFix1{0%,33%{clip-path:inset(0 100% 0 0)}47%,100%{clip-path:inset(0 0 0 0)}}
@keyframes hsFix2{0%,49%{clip-path:inset(0 100% 0 0)}62%,100%{clip-path:inset(0 0 0 0)}}
@keyframes hsGrade{0%,66%{opacity:0}72%,100%{opacity:1}}
@media (prefers-reduced-motion: reduce){.hs-all,.hs-t0,.hs-strike,.hs-note,.hs-fix1,.hs-fix2,.hs-grade{animation:none}}
.tp-all{animation:tpAll 18s linear infinite}
.tp-1{animation:tp1 18s steps(26,end) infinite}
.tp-c{animation:tpC 18s ease-in-out infinite}
.tp-x{animation:tpX 18s ease-in-out infinite}
.tp-r{animation:tpR 18s steps(44,end) infinite}
.tp-2{animation:tp2 18s steps(52,end) infinite}
.tp-3{animation:tp3 18s steps(56,end) infinite}
.tp-g{animation:tpG 18s ease-in-out infinite}
@keyframes tpAll{0%{opacity:0}2%,95%{opacity:1}99%,100%{opacity:0}}
@keyframes tp1{0%,3%{clip-path:inset(0 100% 0 0)}10%,100%{clip-path:inset(0 0 0 0)}}
@keyframes tpC{0%,12%{opacity:0}16%,100%{opacity:1}}
@keyframes tpX{0%,18%{background-size:0% 2px}23%,100%{background-size:100% 2px}}
@keyframes tpR{0%,25%{clip-path:inset(0 100% 0 0)}41%,100%{clip-path:inset(0 0 0 0)}}
@keyframes tp2{0%,44%{clip-path:inset(0 100% 0 0)}61%,100%{clip-path:inset(0 0 0 0)}}
@keyframes tp3{0%,64%{clip-path:inset(0 100% 0 0)}83%,100%{clip-path:inset(0 0 0 0)}}
@keyframes tpG{0%,86%{opacity:0}90%,100%{opacity:1}}
@media (prefers-reduced-motion: reduce){.tp-all,.tp-1,.tp-2,.tp-3,.tp-x,.tp-c,.tp-r,.tp-g{animation:none}}

/* ---------- homepage: Navigator preview ---------- */
.nv-step{border:1.5px solid #C9D0E0;background:#FFFFFF}
.nv-step:hover{border-color:#1C2B45}
.nv-step[aria-pressed="true"]{border-color:#1C2B45;background:#FFE34A}
.nv-ans{background:#FFFFFF;color:#1C2B45}
.nv-ans:hover{background:#F5F7FB}
.nv-ans[aria-pressed="true"]{background:#1C2B45;color:#FFFFFF}

/* ---------- homepage: sign-up form ---------- */
.signup input[type="email"]{box-sizing:border-box;width:100%;background:#FFFFFF;color:#101828}
.signup input[type="email"]:focus-visible{outline:3px solid #2E6DB4;outline-offset:1px;border-color:#2E6DB4}
.signup input[type="checkbox"]{accent-color:#1C2B45}
.signup button[type="submit"]:hover{background:#26395A}
.signup button[disabled]{opacity:.6;cursor:default}
.signup .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;opacity:0}
.signup-status{margin:4px 0 0;padding:12px 14px;border-radius:10px;font-size:16px;line-height:1.45;color:#101828;background:#F5F7FB}
.signup-status.ok{background:#D8F0DF}
.signup-status.err{background:#FBE3E3}
.signup a{font-weight:600}

/* ---------- homepage: the two "Which one are you?" picture slots ---------- */
.card-media{flex:1 1 200px;min-height:220px;box-sizing:border-box;background:#E8F0FA;border-right:1px solid #E3E7F0;display:flex;align-items:center;justify-content:center;padding:24px}
video.card-media{padding:0;object-fit:cover;width:100%}
/* three route cards across: the picture sits on top of the text, and all pictures are the same height */
.route-card{flex-direction:column;flex-wrap:nowrap!important}
.route-card .card-media{flex:none;height:220px;border-right:0;border-bottom:1px solid #E3E7F0}
.route-card > span:last-child{flex:1 1 auto!important}
.md-row{display:flex;align-items:center;gap:8px}
.md-row .md-l{flex:none}
.md-tag{flex:none;width:34px;height:13px;border-radius:3px}
.md-tag.g{background:#D8F0DF}.md-tag.b{background:#D6E6FA}.md-tag.y{background:#FFE34A}
.md-row .w60{width:55%}.md-row .w75{width:66%}.md-row .w45{width:42%}
.md{display:flex;flex-direction:column;width:100%;max-width:210px;background:#FFFFFF;border:1px solid #D9DFEA;border-radius:12px;box-shadow:0 1px 2px rgba(16,24,40,0.06),0 16px 28px -14px rgba(28,43,69,0.28);overflow:hidden}
.md-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border-bottom:1px solid #E3E7F0;background:#FBFCFE}
.md-top svg{flex:none;width:17px;height:17px;fill:none;stroke:#2E6DB4;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.md-pill{display:inline-flex;align-items:center;gap:5px;font-family:Figtree,system-ui,sans-serif;font-weight:700;font-size:13px;line-height:1;color:#1C2B45;background:#FFE34A;border-radius:999px;padding:5px 10px}
.md-pill svg{width:13px;height:13px;stroke:currentColor;stroke-width:2.2}
.md-body{display:flex;flex-direction:column;gap:9px;padding:16px 14px;box-sizing:border-box;height:108px}
.md-l{display:block;height:7px;border-radius:4px;background:#C9D0E0}
.md-l.dk{background:#5B6780}
.md-l.w90{width:90%}.md-l.w75{width:75%}.md-l.w60{width:60%}.md-l.w45{width:45%}.md-l.w30{width:30%}
.md-l.faint{background:#EDF0F6}
.md-type{display:flex;align-items:center;gap:3px}
.md-caret{display:block;width:2px;height:15px;background:#1C2B45;animation:mdCaret 1.1s steps(1,end) infinite}
@keyframes mdCaret{0%,49%{opacity:1}50%,100%{opacity:0}}
.md-struck{position:relative}
.md-struck::after{content:"";position:absolute;left:-3px;right:-3px;top:50%;height:2px;margin-top:-1px;background:#D42A2A;border-radius:1px}
.md-fix{display:flex;flex-direction:column;gap:9px;border-left:3px solid #17663A;padding-left:9px}
.md-grade{align-self:flex-end;display:inline-flex;align-items:center;gap:7px;margin-top:2px;font-family:Figtree,system-ui,sans-serif;font-weight:700;font-size:13px;line-height:1}
.md-grade s{color:#6B7280;text-decoration-color:#D42A2A;text-decoration-thickness:2px}
.md-grade b{color:#D42A2A}
.md-grade em{font-style:normal;color:#FFFFFF;background:#D42A2A;border-radius:6px;padding:3px 8px}
@media (prefers-reduced-motion: reduce){.md-caret{animation:none}}

/* ---------- homepage: the "Why it has to be live" picture slot ---------- */
.live-slot{position:relative;aspect-ratio:16 / 9;border-radius:16px;border:1px solid #3A4A66;background:#26395A;box-sizing:border-box;overflow:hidden}
video.live-slot{display:block;width:100%;object-fit:cover}
.lb-grid{position:absolute;inset:7% 6%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:5% 3.5%}
.lb-doc{display:flex;flex-direction:column;justify-content:center;gap:14%;padding:0 12%;border-radius:8px;border:1px solid #42557A;background:#2E446B}
.lb-doc i{display:block;height:4px;border-radius:2px;background:#6F84A8}
.lb-doc i:nth-child(1){width:88%}.lb-doc i:nth-child(2){width:66%}.lb-doc i:nth-child(3){width:78%}
.lb-doc.on{background:#FFFFFF;border-color:#FFE34A;box-shadow:0 0 0 2px #FFE34A}
.lb-doc.on i{background:#AEB8CC}
.lb-doc.on i:nth-child(2){background:#D42A2A}
.lb-doc.on-m{display:none}
@media (max-width:519px){.lb-doc.on-d{display:none}.lb-doc.on-m{display:flex}.lb-doc.off-m{display:none}}
.lb-note{position:absolute;right:6%;bottom:9%;width:48%;min-width:176px;box-sizing:border-box;display:flex;flex-direction:column;gap:7px;background:#FFFFFF;border-left:4px solid #D42A2A;border-radius:12px;padding:11px 13px 13px;box-shadow:0 14px 28px -10px rgba(8,14,26,0.6)}
.lb-who{display:flex;align-items:center;gap:9px;min-width:0}
.lb-who img{flex:none;width:30px;height:30px;border-radius:50%}
.lb-name{display:flex;flex-direction:column;min-width:0;font-family:Figtree,system-ui,sans-serif;line-height:1.25}
.lb-name b{font-weight:700;font-size:14px;color:#1C2B45;white-space:nowrap}
.lb-name span{font-size:12.5px;color:#4B5565;white-space:nowrap}
.lb-note i{display:block;height:6px;border-radius:3px;background:#C9D0E0}
.lb-note i.s{width:68%}
@media (max-width:459px){.lb-note{width:60%;padding:9px 11px 11px}.lb-who img{width:26px;height:26px}.lb-name b{font-size:13px}}

/* ---------- homepage: signature ---------- */
.signature{margin:22px 0 0;font-family:'Amerski Signature','Snell Roundhand','Segoe Script',cursive;font-weight:400;font-size:56px;line-height:1;color:#1C2B45}

/* ---------- policy pages ---------- */
.doc{max-width:800px;margin:0 auto;padding:72px 24px 104px;box-sizing:border-box}
.doc .eyebrow{margin:0 0 12px;font-size:13px;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;color:#2E6DB4}
.doc h1{font-family:Newsreader,Georgia,serif;font-weight:500;font-size:clamp(38px,4.6vw,60px);line-height:1.05;letter-spacing:-0.02em;margin:0 0 18px;color:#1C2B45}
.doc .lede{margin:0 0 8px;font-size:19px;color:#4B5565}
.doc .updated{margin:0 0 8px;font-size:14px;color:#4B5565}
.doc h2{font-family:Newsreader,Georgia,serif;font-weight:600;font-size:28px;line-height:1.2;margin:44px 0 12px;color:#1C2B45}
.doc p{margin:0 0 14px;color:#344054}
.doc ul{margin:0 0 14px;padding-left:22px;color:#344054}
.doc li{margin:0 0 8px}
.doc strong{color:#1C2B45}
.doc .box{margin:14px 0 0;padding:18px 22px;border:1px solid #E3E7F0;border-radius:16px;background:#F5F7FB}
.doc .box p:last-child,.doc .box ul:last-child{margin-bottom:0}
.doc .draft{display:inline-block;margin:0 0 20px;font-size:13px;font-weight:700;letter-spacing:0.04em;color:#1C2B45;background:#FFE34A;border-radius:6px;padding:5px 10px}
.doc .back{display:inline-block;margin-top:28px;font-weight:700;text-decoration:none}

/* ---------- skip link ---------- */
.skip{position:absolute;left:-9999px;top:0;z-index:100;background:#1C2B45;color:#FFFFFF;padding:12px 18px;border-radius:0 0 10px 0;font:700 16px/1.2 Figtree,system-ui,sans-serif;text-decoration:none}
.skip:focus{left:0}
.skip:hover{color:#FFFFFF}

/* ---------- homepage: FAQ sign turns from + to x when a question is open ---------- */
#faq summary span[aria-hidden]{display:inline-block;transition:transform .15s ease}
#faq details[open] summary span[aria-hidden]{transform:rotate(45deg)}
@media (prefers-reduced-motion:reduce){#faq summary span[aria-hidden]{transition:none}}

/* ---------- homepage: hero keeps two columns down to 900px ---------- */
@media (min-width:900px) and (max-width:1199px){
  .hero-text{flex:1 1 400px!important}
  .hero-demo{flex:1 1 380px!important}
  .hero-h1{font-size:clamp(42px,4.7vw,56px)!important}
}

/* ---------- homepage: About keeps photo and text side by side down to 700px ---------- */
@media (min-width:700px) and (max-width:903px){
  #about{flex-wrap:nowrap!important;gap:36px!important;align-items:flex-start!important}
  .about-photo{flex:0 0 240px!important;max-width:240px!important}
  .about-text{flex:1 1 0!important;min-width:0}
}

/* ---------- homepage: CFE marking scale on phones is three chips, then two ---------- */
@media (max-width:699px){
  .scale span{box-sizing:border-box;flex:1 1 calc(33.333% - 8px)!important}
  .scale span:nth-child(n+4){flex:1 1 calc(50% - 8px)!important}
}

/* ---------- homepage: the two typing demos stop after three runs ---------- */
.demo-done .hs-all,.demo-done .hs-t0,.demo-done .hs-strike,.demo-done .hs-note,.demo-done .hs-fix1,.demo-done .hs-fix2,.demo-done .hs-grade,
.demo-done .tp-all,.demo-done .tp-1,.demo-done .tp-2,.demo-done .tp-3,.demo-done .tp-x,.demo-done .tp-c,.demo-done .tp-r,.demo-done .tp-g{animation:none}
@media (min-width:700px){.scale{min-width:min(100%,590px)}}

/* ---------- sign-up form: which exam ---------- */
.exam-pick{border:0;margin:2px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.exam-pick legend{padding:0;margin:0 0 8px;font-weight:600;font-size:16px;color:#1C2B45}
.exam-pick legend span{font-weight:400;font-size:14px;color:#4B5565}
.exam-pick label{position:relative;display:flex;flex:1 1 auto}
.exam-pick input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.exam-pick label span{display:block;width:100%;text-align:center;padding:9px 14px;border:1.5px solid #C9D0E0;border-radius:999px;background:#FFFFFF;font-size:15px;font-weight:600;color:#1C2B45}
.exam-pick input:hover + span{border-color:#1C2B45}
.exam-pick input:checked + span{background:#1C2B45;border-color:#1C2B45;color:#FFFFFF}
.exam-pick input:focus-visible + span{outline:3px solid #2E6DB4;outline-offset:2px}
