#home-view{justify-content:flex-start;padding-top:20px}
.home-trailer{box-sizing:border-box;width:min(870px,75%);margin:0 auto 28px;border:1px solid #dbe3eb;border-radius:8px;overflow:hidden;background:#fff;color:#18384f;font-family:'Inter','Segoe UI',sans-serif;isolation:isolate}
.home-trailer *{box-sizing:border-box}.home-trailer [hidden]{display:none!important}
.home-trailer-stage{position:relative;height:300px;overflow:hidden;background:#fff}
.home-trailer-canvas{display:block;position:absolute;inset:0;width:100%;height:100%;touch-action:pan-y}
.home-trailer-copy{position:absolute;left:4.8%;top:30px;width:38%;z-index:1;pointer-events:none;opacity:0;transform:translateY(6px);transition:opacity 350ms cubic-bezier(.23,1,.32,1),transform 350ms cubic-bezier(.23,1,.32,1)}
.home-trailer-copy.is-visible{opacity:1;transform:none}
.home-trailer-kicker{margin:0 0 11px;color:#5a7189;font-size:9px;font-weight:650;letter-spacing:1.4px;line-height:1.5}
.home-trailer h1{max-width:360px;min-height:70px;margin:0 0 12px;color:#13334c;font:600 clamp(27px,2.7vw,34px)/1.12 'Outfit','Segoe UI',sans-serif;letter-spacing:-.7px;text-wrap:balance}
.home-trailer-headline.is-typing::after{content:'|';margin-left:2px;color:#286eb5;font-weight:300}
.home-trailer-description{max-width:355px;min-height:44px;margin:0;color:#5a7189;font-size:13px;line-height:1.65}
.home-trailer-explore{display:inline-flex;align-items:center;min-height:38px;margin-top:8px;color:#245b95;text-decoration:none;font-size:11px;font-weight:600;pointer-events:auto}.home-trailer-explore:hover{text-decoration:underline;text-underline-offset:4px}
.home-trailer-yourturn{display:block;color:#557153;font-size:10px;line-height:1.5}
.home-trailer-interact{position:absolute;right:4%;bottom:12px;min-height:34px;padding:6px 12px;background:white;color:#245b95;border:1px solid #b5c7da;border-radius:5px;font:600 11px/1.5 'Inter','Segoe UI',sans-serif;cursor:pointer}
.home-trailer-interact:hover{background:#eff5fc}.home-trailer-interact:active{background:#e2ecf7}
.home-trailer-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) 48px;background:white;border-top:1px solid #dbe3eb}
.home-trailer-tab{display:flex;align-items:center;gap:10px;min-width:0;min-height:48px;margin:0;padding:10px 16px;border:0;border-right:1px solid #dbe3eb;border-radius:0;background:white;color:#52697f;text-align:left;font:500 11px/1.4 'Inter','Segoe UI',sans-serif;cursor:pointer}
.home-trailer-tab>span:first-child{font-size:9px;color:#8a99a7}.home-trailer-tab[aria-pressed="true"]{background:#111;color:#fff}.home-trailer-tab[aria-pressed="true"]>span:first-child{color:#c1c8cf}.home-trailer-tab:hover:not([aria-pressed="true"]){background:#f2f5f8}
.home-trailer-toggle{border:0;border-radius:0;background:white;color:#223c50;cursor:pointer;font-size:17px;min-width:44px;min-height:44px}.home-trailer-toggle:hover{background:#edf2f7}
.home-trailer :is(button,a):focus-visible{outline:3px solid #7ca8dc;outline-offset:-3px}
.home-trailer-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.welcome-hero h2{font:650 27px/1.25 'Outfit','Segoe UI',sans-serif;letter-spacing:-.5px;color:#0b2545;margin:0 0 10px}
.trailer-practice-panel{position:absolute;right:3%;top:12px;width:52%;height:276px}.trailer-practice-title{margin:0 0 6px;color:#245b95;font:600 12px/1.4 'Inter','Segoe UI',sans-serif}
.trailer-match-board{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:34px}.trailer-match-board>div{display:grid;gap:3px}.trailer-match-board svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.trailer-match-board path{fill:none;stroke-width:2}
.trailer-match-board button{position:relative;min-width:0;height:24px;padding:2px 8px;border:1px solid #c6d4e1;border-radius:4px;background:#fff;color:#274b68;font:500 11px/1.4 'Inter','Segoe UI',sans-serif;cursor:pointer;text-align:left}
.trailer-match-board button:hover:not(:disabled),.trailer-match-board button[aria-pressed="true"]{border-color:#316ea9;background:#edf4fd}.trailer-match-board button.is-matched{border-color:var(--pair);background:#f2f7f4;color:#355e48;opacity:1;cursor:default}
.trailer-match [data-match-status]{margin:6px 0 0;color:#5a7189;font:11px/1.5 'Inter','Segoe UI',sans-serif}
.home-trailer[data-scene="matching"] .home-trailer-interact{bottom:4px;font-size:10px;min-height:28px;padding:3px 9px}
.trailer-flash{max-width:480px;top:24px;right:5%;height:250px}.trailer-flash-top{display:flex;justify-content:space-between;color:#59738b;font-size:10px;letter-spacing:.8px;margin-bottom:9px}.trailer-flash-perspective{perspective:900px;height:166px}
.trailer-flash-card{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform 400ms cubic-bezier(.23,1,.32,1)}.trailer-flash-card.is-flipped{transform:rotateY(180deg)}
.trailer-card-front,.trailer-card-back{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:22px;border:2px solid #799abf;border-radius:7px;background:#f8fbff;text-align:center;backface-visibility:hidden;color:#244765;font:500 20px/1.4 'Outfit','Segoe UI',sans-serif}.trailer-card-back{transform:rotateY(180deg);border-color:#79a18b;background:#f3f8f5;color:#365e48}
.trailer-flash-actions{display:flex;justify-content:space-between;gap:12px;margin-top:10px}.trailer-flash-actions button{min-height:34px;padding:6px 11px;border:1px solid #b6c8db;border-radius:4px;background:#fff;color:#245b95;font:600 11px/1.4 'Inter','Segoe UI',sans-serif;cursor:pointer}.trailer-flash-actions button:hover{background:#edf4fc}
@media(max-width:900px) and (min-width:701px){.home-trailer-copy{left:3%;width:38%}.home-trailer h1{font-size:28px}.home-trailer-description{font-size:12px}.trailer-match-board button{font-size:10px}.home-trailer-tab{padding:8px 10px;gap:6px}}
@media(max-width:700px){#home-view{padding:14px 12px 30px}.home-trailer-stage{height:460px}.home-trailer-copy{left:18px;right:18px;top:284px;width:auto}.home-trailer-kicker{font-size:8px;letter-spacing:1px;margin-bottom:6px}.home-trailer h1{max-width:480px;min-height:58px;margin-bottom:8px;font-size:27px;line-height:1.08}.home-trailer-description{max-width:480px;font-size:12px;line-height:1.5;min-height:36px}.home-trailer-explore{margin-top:4px;min-height:34px;font-size:10px}.home-trailer-yourturn{display:none}.home-trailer-interact{right:17px;top:242px;bottom:auto;font-size:10px;min-height:32px;padding:5px 9px}.home-trailer-strip{grid-template-columns:repeat(4,minmax(0,1fr)) 42px}.home-trailer-tab{min-height:46px;flex-direction:column;justify-content:center;gap:3px;padding:6px 2px;text-align:center;font-size:10px}.home-trailer-tab>span:first-child{font-size:8px}.home-trailer-toggle{min-width:42px}.trailer-practice-panel{left:16px;right:16px;top:14px;width:auto;height:256px}.trailer-match-board{gap:26px}.trailer-match-board button{height:25px;padding:2px 4px;font-size:10px}.trailer-practice-title{font-size:11px;margin-bottom:5px}.trailer-match [data-match-status]{font-size:10px}.home-trailer[data-scene="matching"] .home-trailer-interact{top:276px;bottom:auto;min-height:26px}.trailer-flash{top:25px;height:228px}.trailer-flash-perspective{height:156px}.trailer-card-front,.trailer-card-back{font-size:18px;padding:18px}.trailer-flash-actions{margin-top:8px}.trailer-flash-actions button{font-size:10px;min-height:32px}.welcome-hero h2{font-size:25px}.welcome-hero p{font-size:14px}}
@media(prefers-reduced-motion:reduce){.home-trailer-copy,.trailer-flash-card{transition:none;transform:none}.trailer-flash-card.is-flipped{transform:rotateY(180deg)}.home-trailer-headline.is-typing::after{display:none}}

/* Quiet slide markers: one short black bar, no labels or time/progress display. */
.home-trailer-strip{position:relative;display:flex;justify-content:center;align-items:center;gap:8px;min-height:34px;padding:0 50px;background:#fff}
.home-trailer-tab{display:flex;justify-content:center;align-items:center;flex:0 0 36px;width:36px;height:32px;min-height:32px;padding:12px 0;border:0;background:none!important;font-size:0}
.home-trailer-tab>span{display:block;width:32px;height:3px;background:#d1d8df}.home-trailer-tab[aria-pressed="true"]>span{background:#111}.home-trailer-toggle{position:absolute;right:6px;top:0;min-height:32px;height:32px;min-width:34px;font-size:13px}
.trailer-guided{position:absolute;left:44%;right:2%;top:7px;height:248px;display:flex;justify-content:center;overflow:hidden}
.trailer-real-atomic.ag-widget{width:1000px;flex:0 0 1000px}.trailer-real-atomic.ag-widget .lesson{border:0;border-radius:0}.trailer-real-atomic.ag-widget .stage{height:470px}
.trailer-real-atomic :is(.toolbar,.status,.callout,.picture-controls,.progress,.recap,.model){display:none!important}
.trailer-real-explanation{margin-top:6px;border-left:2px solid #92b4da;padding-left:10px}.trailer-real-explanation>[data-real-step]{font-size:9px;line-height:1.4;color:#38699a}.trailer-real-explanation h3{font-size:14px;line-height:1.35;margin:3px 0;color:#244967}.trailer-real-explanation p{font-size:12px;line-height:1.5;margin:0;color:#5a7189}
.home-trailer[data-scene="guided"] .home-trailer-explore{margin-top:4px}.home-trailer-interact.is-demo-click{animation:trailer-press 550ms ease-out}
@keyframes trailer-press{0%,60%{background:#245fa5;color:#fff;transform:scale(.96)}100%{transform:none}}
.home-trailer .trailer-match{top:10px;height:280px}.home-trailer .trailer-match .trailer-practice-title{font-size:10px;margin-bottom:5px}
.home-trailer .t3-match-box{margin:0;padding:0;border:0;background:white}.home-trailer .t3-match-instruction{font-size:9px;line-height:1.3;margin:0 0 5px;padding:0}.home-trailer .t3-match-instruction svg{width:12px;height:12px}
.home-trailer .practice-rounds{margin:0 0 6px;gap:5px}.home-trailer .practice-rounds button{font-size:9px;min-height:22px;padding:2px 7px}
.home-trailer .t3-match-board{gap:28px}.home-trailer .t3-match-col{gap:5px}.home-trailer .t3-match-left-row{margin:0}.home-trailer .t3-match-node{min-height:37px;padding:4px 9px;border-width:1px;border-radius:5px;font-size:10px}.home-trailer .t3-node-title{font-size:10px;line-height:1.25}.home-trailer .t3-node-meta{font-size:8px;line-height:1.2;margin-top:2px}.home-trailer .t3-match-port{width:8px;height:8px}
.home-trailer .t3-match-controls{margin-top:5px;font-size:9px;gap:5px}.home-trailer .t3-match-controls button{font-size:9px;padding:2px 6px;min-height:22px}.home-trailer .t3-unlink-pair{width:18px;height:18px;font-size:10px}
.trailer-match-grade{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:4px;font-size:10px;color:#386b52}.trailer-match-grade button{border:1px solid #b7cadb;background:#fff;color:#245b95;border-radius:4px;padding:3px 8px;min-height:25px;font:600 10px/1.4 'Inter','Segoe UI',sans-serif;cursor:pointer}
.trailer-flash-workspace{position:relative;height:214px}.trailer-flash-grid{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr;gap:8px;transition:opacity 240ms ease-out,transform 300ms cubic-bezier(.23,1,.32,1)}
.trailer-mini-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:6px;padding:10px;border:1px solid #afc4da;border-radius:6px;background:#f8fbff;color:#244765;cursor:pointer}.trailer-mini-card>span{font-size:9px;letter-spacing:.5px;color:#6b88a4}.trailer-mini-card strong{font:500 12px/1.4 'Outfit','Segoe UI',sans-serif}.trailer-mini-card:hover{background:#edf4fc;border-color:#497bad}
.trailer-flash-detail{position:absolute;inset:0;opacity:0;transform:scale(.85);pointer-events:none;transition:opacity 220ms ease-out,transform 350ms cubic-bezier(.23,1,.32,1)}.trailer-flash.is-detail .trailer-flash-grid{opacity:0;transform:scale(.9);pointer-events:none}.trailer-flash.is-detail .trailer-flash-detail{opacity:1;transform:scale(1);pointer-events:auto}
.trailer-flash-card{display:block;border:0;background:transparent;padding:0;cursor:pointer}.trailer-card-front,.trailer-card-back{font-size:18px;padding:18px}.trailer-flash-actions button{font-size:10px}
@media(max-width:700px){.home-trailer-strip{min-height:34px;padding:0 42px}.home-trailer-tab{min-height:32px;padding:12px 0}.trailer-guided{left:8px;right:8px;top:8px;height:240px}.trailer-real-explanation h3{font-size:12px}.trailer-real-explanation p{font-size:11px;line-height:1.35}.home-trailer[data-scene="guided"] .home-trailer-copy{top:279px}.home-trailer[data-scene="guided"] h1{min-height:32px;font-size:24px;margin-bottom:6px}.home-trailer .trailer-match{top:9px;left:12px;right:12px;height:267px}.home-trailer .t3-match-instruction{font-size:8px}.home-trailer .t3-match-node{padding:4px 7px;min-height:34px}.home-trailer .t3-node-title{font-size:9px}.home-trailer .t3-node-meta{font-size:7px}.home-trailer .t3-match-board{gap:24px}.trailer-match-grade{font-size:9px}.trailer-flash-workspace{height:214px}.trailer-mini-card strong{font-size:11px}.trailer-card-front,.trailer-card-back{font-size:16px}.trailer-flash-perspective{height:164px}}
@media(prefers-reduced-motion:reduce){.home-trailer-interact.is-demo-click{animation:none}.trailer-flash-detail,.trailer-flash-grid{transition:none}}
/* The surrounding cover copy already explains matching; avoid repeating the full lesson hint. */
.home-trailer .t3-game-hint{display:none}
.home-trailer .t3-match-board{margin-bottom:4px}
@media(max-width:700px){.trailer-flash{max-width:none}}

/* Keep narrow phones readable while reducing the desktop/tablet cover to 75%. */
@media(max-width:480px){.home-trailer{width:100%}}

/* Previous cover-to-subject gap: 28px cover margin + 20px grid margin = 48px.
   Keep card spacing unchanged; double only the gap before the new heading. */
#home-view .home-trailer{margin-bottom:0}
.home-subject-heading{margin:96px 0 0;font:600 clamp(24px,2.5vw,30px)/1.3 'Outfit','Segoe UI',sans-serif;color:#13334c;letter-spacing:-.4px;text-align:center;scroll-margin-top:24px}

/* Homepage trailer: a passive product demonstration, with one clear message. */
.home-trailer h1{font-size:clamp(32px,3.2vw,42px);line-height:1.1;min-height:0;letter-spacing:-1px}
.home-trailer-description{font-size:14px;line-height:1.6;min-height:44px;max-width:310px}
.home-trailer-copy{top:38px}
.home-trailer :is(.trailer-real-explanation,.home-trailer-interact,.home-trailer-yourturn,.trailer-practice-title,.t3-match-instruction,.practice-rounds,.t3-match-controls,.t3-unlink-pair,.trailer-flash-actions,.trailer-flash-top){display:none!important}
.home-trailer :is(.trailer-guided,.trailer-match,.trailer-flash){pointer-events:none;user-select:none}
.home-trailer .trailer-match-grade{min-height:24px;margin-top:12px}.home-trailer [data-match-check]{display:none}
.home-trailer .trailer-match{top:38px;height:245px}
.home-trailer .trailer-flash{top:40px;height:230px}
.home-trailer .trailer-flash-workspace{height:214px}
.home-trailer .trailer-flash-perspective{height:214px}
.home-trailer .t3-node-meta{display:none}
@media(max-width:700px){.home-trailer-copy,.home-trailer[data-scene="guided"] .home-trailer-copy{top:280px}.home-trailer h1,.home-trailer[data-scene="guided"] h1{font-size:32px;min-height:0;max-width:420px;margin-bottom:10px;line-height:1.1}.home-trailer-description{font-size:13px;min-height:0;max-width:440px}.home-trailer .trailer-match{top:20px;height:244px}.home-trailer .trailer-flash{top:20px;height:230px}.home-trailer .trailer-flash-perspective{height:214px}}
.home-improve-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:28px 0;padding:22px 24px;border:1px solid #bfd0e5;border-radius:10px;background:#f4f8ff;color:#17334b}.home-improve-entry h2{font-size:22px;margin:0 0 8px}.home-improve-entry p{margin:0;font-size:15px;line-height:1.6}.home-improve-cta{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap;padding:10px 18px;background:#1557c7;color:white!important;border-radius:6px;text-decoration:none;font-weight:600}.home-improve-cta:focus-visible{outline:3px solid #80a6dd;outline-offset:4px}@media(max-width:700px){.home-improve-entry{align-items:flex-start;flex-direction:column;padding:18px}}
