/* Shared visual rhythm. Served as a static asset; quiz geometry stays in quiz-layout.css. */
:root{--radius-control:14px;--radius-card:24px;--field-border:#8e8e93;--space-unit:8px}
:root{--pass-ink:#16763a}
.result-hero>.eyebrow::before{content:none;display:none}
.result-hero .exam-verdict.verdict-pass,.result-hero .pass-label,.result-box .pass-label,.sample-results .pass-label,.result-panel .pass-label,.sample-encouragement.pass-label{color:var(--pass-ink);font-weight:650}
.result-hero .exam-verdict.verdict-retry{color:#9a5725}
.result-overall.sample-passed>strong,.section-outcome.section-passed>strong,.result-status.is-pass,.section-outcome>.is-pass{color:var(--pass-ink)}
.result-box.section-strong :is(strong,h3),.celebrate-result :is(.result-score,h1){color:var(--pass-ink)}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
body:not(.quiz-active):not(.sample-active) :is(h1,h2){word-break:normal;overflow-wrap:normal;hyphens:none;text-wrap:balance}
body:not(.quiz-active):not(.sample-active)>header{width:min(1180px,100%);min-height:72px;padding:16px 32px;box-sizing:border-box}
body:not(.quiz-active):not(.sample-active)>header>.brand{white-space:nowrap;gap:8px}
body:not(.quiz-active):not(.sample-active)>header>.home-link{position:absolute;left:50%;right:auto;top:50%;width:auto;max-width:120px;margin:0;transform:translate(-50%,-50%);min-height:44px;min-width:76px;border-radius:var(--radius-control);display:inline-flex;align-items:center;justify-content:center;line-height:1.2}
body:not(.quiz-active):not(.sample-active)>header>.support-link{right:24px;font-size:13px;min-height:44px;border-radius:var(--radius-control)}
body:not(.quiz-active):not(.sample-active) :is(.primary,.secondary,.btn):not(.session-card){border-radius:var(--radius-control);line-height:1.35;min-height:48px;display:inline-flex;align-items:center;justify-content:center;text-align:center;text-decoration:none}
body[data-page="purchase"]>header>.micro{display:none}
body[data-page="purchase"] main{padding:0 24px}
.purchase-shell{display:block;max-width:640px;margin:40px auto 56px;padding:36px 40px;border:1px solid #e1e4e9;border-radius:var(--radius-card);background:#fff;box-shadow:0 8px 32px #1d1d1f05}
.purchase-shell #step{min-width:0;text-align:center}
.purchase-shell .eyebrow{margin:0 0 12px;font-size:12px;line-height:1.5;letter-spacing:1.3px}
.purchase-shell h1{font-size:38px;line-height:1.15;letter-spacing:-1.3px;margin:0 auto 16px;max-width:100%}
.purchase-shell #step>p{margin:16px auto;max-width:48ch;line-height:1.6}
.purchase-shell #step>.checkout-price{font-size:44px;line-height:1.15;font-weight:650;letter-spacing:-1.6px;margin:16px 0 20px;color:#1d1d1f}
.checkout-price span{display:block;font-size:15px;line-height:1.5;font-weight:400;color:#626268;letter-spacing:0;margin-top:8px}
.purchase-shell #step>.checkout-description{color:#626268;font-size:16px}
.purchase-shell .primary{width:100%;padding:14px 18px;margin:16px 0 0;font-size:16px;color:#fff!important;min-height:52px;border-radius:var(--radius-control);box-sizing:border-box}
.purchase-shell .primary:disabled{opacity:.55}
.purchase-shell .launch-note{font-size:14px;line-height:1.55;color:#626268}
.purchase-shell #step>.payment-reassurance{font-size:13px;max-width:none;margin:12px 0 20px}
.purchase-shell .returning-customer{border-top:1px solid #e5e5e7;padding-top:16px;margin-top:20px;font-size:14px}
.returning-customer p{margin:8px 0}.returning-customer a{display:inline-flex;align-items:center;min-height:44px;padding-inline:3px}
.purchase-shell #step>.checkout-legal{font-size:12px;margin-top:16px;line-height:1.6}
.purchase-shell .checkout-legal a{display:inline-flex;align-items:center;min-height:36px}
.purchase-shell .local-preview-tools{display:none}
.purchase-shell .order{border:0;border-top:1px solid #e5e5e7;border-radius:0;padding:24px 0 0;margin-top:24px;background:#fff}
.purchase-shell .order h2{text-align:center;font-size:20px;line-height:1.3;letter-spacing:-.4px;margin:0 0 16px}
.purchase-shell .order ul{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px;margin:0;padding:0;list-style:none;font-size:14px;line-height:1.5}
.purchase-shell .order li{position:relative;padding-left:20px;margin:0}
.purchase-shell .order li::before{content:"✓";position:absolute;left:0;top:0;color:#0071e3;font-weight:650}
.purchase-shell .order .eyebrow,.purchase-shell .order .amount,.purchase-shell .order .micro{display:none}
.purchase-shell .success-check{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;font-size:30px;color:#17803d;background:#edf9f0;margin:0 auto 20px}
.purchase-complete{max-width:640px;margin-top:40px}
.purchase-complete .order{display:none}
.save-access{margin:24px 0 8px;padding:24px 0 0;border-top:1px solid #e5e5e7}
.save-access h2{font-size:20px;letter-spacing:-.4px;margin:0 0 12px}.save-access p{font-size:15px;line-height:1.6}.save-access a{display:inline-flex;align-items:center;min-height:44px}
.account-shell{max-width:520px;margin:40px auto 56px;padding:32px;border:1px solid #e1e4e9;border-radius:var(--radius-card);background:#fff;box-shadow:0 8px 32px #1d1d1f05}
.account-shell>.eyebrow,.account-shell>h1,.account-shell>p:not(.error){text-align:center}
.account-shell h1{font-size:32px;line-height:1.2;letter-spacing:-1px;margin:12px 0 16px}
.account-shell>p{margin:16px 0;font-size:15px;line-height:1.6}
.account-shell label{margin:24px 0 8px}.account-shell input{min-height:52px;border-color:var(--field-border);border-radius:var(--radius-control)}
.account-shell .primary,.account-shell .secondary{width:100%;padding:14px 16px;margin-top:24px;border-radius:var(--radius-control)}
.account-shell .hint{font-size:13px}.account-shell .hint a{display:inline-block;padding-block:8px}
.account-shell .optional-google{margin-top:24px;padding-top:0}.account-shell .optional-google .secondary{margin-top:20px}
.support-page{max-width:584px;margin:40px auto 56px;padding:32px;border:1px solid #e1e4e9;border-radius:var(--radius-card);background:#fff}
.support-page h1{text-align:center;font-size:32px;letter-spacing:-1px;line-height:1.2;margin:0 0 16px}
.support-page>p{text-align:center;font-size:15px}.support-page form{text-align:left}
.support-page :is(input:not([type="hidden"]),textarea,select){border-color:var(--field-border);border-radius:var(--radius-control);font-size:16px}
.support-page textarea{min-height:144px}.support-page :is(.primary,button[type="submit"]){width:100%;border-radius:var(--radius-control);min-height:52px}
.legal-page,.search-article{padding-top:40px;padding-bottom:48px}
.legal-page>h1,.search-article h1{text-align:center;font-size:clamp(29px,4vw,40px);line-height:1.2;margin:0 auto 24px;max-width:26ch}
.legal-page h2,.search-article h2{margin-top:32px;line-height:1.3;letter-spacing:-.5px}
body[data-page="guide"] #guide>h1{text-align:center;text-wrap:balance;font-size:clamp(29px,4vw,36px);line-height:1.25}
body[data-page="guide"] .download{border-radius:var(--radius-control);min-height:48px;padding:12px 16px;display:inline-flex;align-items:center;justify-content:center}
body[data-page="home"] .landing-intro{text-align:center}
body[data-page="home"] .landing-intro h1{text-wrap:balance}
body[data-page="study"]:not(.quiz-active) .compact-cards{gap:12px}
body[data-page="study"]:not(.quiz-active) .session-card{border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px 12px}
body[data-page="study"]:not(.quiz-active) .session-card .unit{line-height:1.45;margin-top:8px;white-space:normal}
body[data-page="study"]:not(.quiz-active) :is(.dashboard-results,.review-entry,.resume){border-radius:18px}
.result-hero h1,.sample-results h1,.sample-results h2{text-wrap:balance}
.mobile-study-links{display:none}
.auth-problem{max-width:520px;margin:40px auto 56px;padding:32px;border:1px solid #e1e4e9;border-radius:var(--radius-card);background:#fff}
.auth-problem h1{text-align:center;font-size:32px;line-height:1.2;margin:0 0 20px}
.auth-problem .actions{display:grid;grid-template-columns:1fr;gap:12px;margin-top:24px}
.auth-problem .actions :is(button,a){width:100%;min-height:48px;text-align:center}
@media(max-width:650px){
 body:not(.quiz-active):not(.sample-active)>header{height:68px;min-height:68px;padding:12px 16px}
 body:not(.quiz-active):not(.sample-active)>header>.brand{visibility:visible;font-size:0;gap:0;position:absolute;left:16px;top:50%;transform:translateY(-50%)}
 body:not(.quiz-active):not(.sample-active)>header>.brand :is(b,strong){font-size:0}
 body:not(.quiz-active):not(.sample-active)>header>.brand>span:not(.mark):not(.logo){display:none}
 body:not(.quiz-active):not(.sample-active)>header>.brand :is(.mark,.logo){font-size:23px}
 body:not(.quiz-active):not(.sample-active)>header>.share-button{left:54px;top:50%;transform:translateY(-50%);width:44px;height:44px;min-height:44px;border-radius:12px}
 body:not(.quiz-active):not(.sample-active)>header>.home-link{left:50%;top:50%;min-width:64px;min-height:44px;padding:10px 12px;font-size:13px;transform:translate(-50%,-50%)}
 body:not(.quiz-active):not(.sample-active)>header>.support-link{right:12px;top:50%;transform:translateY(-50%);font-size:12px;min-width:52px}
 body:not(.quiz-active):not(.sample-active)>header>.header-buy{right:68px;top:50%;font-size:12px;padding:8px 10px;min-height:44px;border-radius:14px}
 body[data-page="home"]:not(.sample-active)>header>.home-link{display:none}
 body[data-page="home"]:not(.sample-active)>header>.brand{visibility:visible}
 body[data-page="study"]:not(.quiz-active)>header>.header-note{display:none}
 .mobile-study-links{display:flex;align-items:center;justify-content:center;gap:24px;margin:12px 0}
 .mobile-study-links a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-size:14px;color:#0066cc;text-decoration:none;padding:8px}
 .purchase-shell{margin:24px auto 32px;padding:28px 24px;border-radius:22px}
 body[data-page="purchase"] main{padding:0 16px}
 .purchase-shell h1{font-size:32px;letter-spacing:-1px}
 .purchase-shell #step>.checkout-price{font-size:40px;margin-top:16px;margin-bottom:20px}
 .purchase-shell #step>p{font-size:15px;line-height:1.6}.purchase-shell #step>.launch-note{font-size:13px}
 .purchase-shell .order ul{grid-template-columns:1fr;gap:12px}.purchase-shell .order h2{font-size:19px}
 .purchase-shell .primary{padding:14px 12px;line-height:1.35;font-size:15px}
 .account-shell{margin:24px auto 32px;padding:28px 24px;border-radius:22px}.account-shell h1{font-size:29px;letter-spacing:-.8px}
 .auth-problem{margin:24px auto 32px;padding:24px;border-radius:22px}.auth-problem h1{font-size:28px}
 body[data-page="account"] main{padding-inline:16px}
 .support-page{margin:24px 16px 32px;padding:28px 24px;max-width:calc(100% - 32px);border-radius:22px}.support-page h1{font-size:29px}
 .legal-page,.search-article{padding:28px 24px 40px}.legal-page>h1,.search-article h1{font-size:30px;margin-bottom:24px}
}
@media(max-width:360px){.purchase-shell,.account-shell,.support-page{padding:24px 20px}.purchase-shell h1{font-size:29px}.account-shell h1,.support-page h1{font-size:27px}.purchase-shell .eyebrow{font-size:11px}.purchase-shell #step>.payment-reassurance{font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Keep marketing controls on their own row when a centered Home is present. */
body>main{padding-inline:32px}body>footer{padding-inline:32px}
.purchase-shell .save-access{text-align:left}.purchase-shell .save-access h2{text-align:center}
.purchase-shell #step>p:has(>a){line-height:1.6}.purchase-shell #step>p:not(.payment-reassurance):not(.checkout-legal)>a{display:inline-flex;align-items:center;min-height:44px}.purchase-shell .payment-reassurance a{padding-block:4px}
@media(max-width:650px){
 body>main,body>footer{padding-inline:16px}body.landing:not(.sample-active)>main{padding-inline:16px}
 body[data-page="study"]:not(.quiz-active)>main#app{padding-inline:16px}
 body:not([data-page="home"]):not(.quiz-active):not(.sample-active)>header:has(>.header-buy){height:116px;min-height:116px}
 body:not([data-page="home"]):not(.quiz-active):not(.sample-active)>header:has(>.header-buy)>:is(.brand,.share-button,.home-link,.support-link){top:34px}
 body:not([data-page="home"]):not(.quiz-active):not(.sample-active)>header>.header-buy{left:50%;right:auto;top:88px;transform:translate(-50%,-50%);max-width:calc(100% - 32px);margin:0;white-space:nowrap}
 .mobile-study-links{gap:16px}.mobile-study-links :is(a,button){display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px;font:inherit;font-size:14px;color:#0066cc;background:none;border:0;border-radius:12px;cursor:pointer}
}
