/* Homepage copy layout; shared sections retain their existing styles. */
.home .hero-inner { padding-top:clamp(164px,23svh,244px); padding-bottom:40px; }
.home .home-hero h1 { max-width:1060px; font-size:clamp(78px,8vw,116px); line-height:.98; margin-top:0; }
.home .hero-lede { max-width:62ch; margin-top:26px; }
.home .home-hero .hero-actions { margin-top:28px; }
.home-support { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:clamp(36px,7vw,110px); }
.home-support-copy { max-width:760px; }
.home-support h2 { max-width:17ch; margin-top:18px; }
.home-support-copy>p:last-child { max-width:56ch; margin-top:24px; font-size:14px; line-height:1.9; color:var(--muted); }
.home-support-action { margin-bottom:4px; white-space:nowrap; }
@media(max-width:760px) { .home-support { grid-template-columns:1fr; gap:30px; } .home-support h2 { max-width:18ch; } .home-support-copy>p:last-child { font-size:13px; } .home-support-action { justify-self:start; } }
.stuck-section { background:#faf9f6; }
.stuck-grid { display:grid; grid-template-columns:1.08fr .92fr; gap:clamp(48px,7vw,110px); align-items:center; }
.stuck-problem h2 { max-width:17ch; }
.stuck-problem p:not(.eyebrow),.stuck-answer p { font-size:14px; color:var(--muted); line-height:1.9; margin-top:24px; }
.stuck-problem ul { list-style:none; padding:0; margin:26px 0; }
.stuck-problem li { position:relative; padding:14px 0 14px 21px; border-top:1px solid var(--line); color:var(--muted); font-size:13px; line-height:1.85; }
.stuck-problem li:last-child { border-bottom:1px solid var(--line); }
.stuck-problem li::before { content:'—'; position:absolute; left:0; color:var(--teal); }
.stuck-answer { border-left:1px solid #afc0b3; padding-left:clamp(28px,3.5vw,52px); }
.stuck-answer h3 { font-style:italic; font-size:clamp(34px,3vw,44px); max-width:17ch; }
.home-community { background:#f7f6f1; }
.community-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:clamp(40px,6vw,88px); align-items:center; }
.community-grid>img { width:100%; height:390px; object-fit:cover; object-position:48% center; border-radius:14px; }
.community-grid h2 { max-width:14ch; }
.community-grid p { max-width:42ch; margin-top:26px; font-size:14px; line-height:1.9; color:var(--muted); }
.home-playbooks { background:#faf9f6; padding-block:144px; }
@media(max-width:760px) { .home-playbooks { padding-block:96px; } }
.home-playbook-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:28px; }
.home-playbook { min-width:0; display:flex; flex-direction:column; align-items:center; text-align:center; text-decoration:none; }
.home-playbook-tag { align-self:center; padding:4px 12px; border-radius:3px; background:#e9e9e2; color:var(--ink); font:500 14px/1.5 var(--label); }
.home-playbook-tag.is-free,.home-playbook-tag.is-hardcopy { background:var(--promo-red); color:#fff; border:0; border-radius:999px; font-weight:600; }
.tutoring-card .home-playbook-tag { background:var(--promo-red); color:#fff; border-radius:999px; font-weight:600; }
.home-playbook h3 { font-size:42px; font-style:italic; margin-top:18px; }
.home-playbook:not(.tutoring-card) h3 { min-height:109px; }
.home-playbook-course { display:block; margin-bottom:8px; font:500 16px/1.5 var(--label); letter-spacing:.045em; }
.home-playbook-detail { display:block; font-size:28px; line-height:1.25; }
.home-playbook-scope { font-size:14px; line-height:1.6; color:var(--muted); margin-top:10px; }
.home-playbook-art { width:100%; height:284px; display:flex; justify-content:center; align-items:center; padding:28px 8px; }
.home-playbook-art img { width:auto; height:auto; max-width:78%; max-height:100%; object-fit:contain; filter:drop-shadow(5px 9px 7px #15251b26); transition:transform .25s ease; }
.home-playbook-art.is-pair img { width:60%; max-width:130px; max-height:190px; transform:rotate(-7deg); }
.home-playbook-art.is-pair img+img { margin-left:-27%; transform:rotate(7deg) translateY(7px); }
.home-playbook-art.is-tutoring { width:232px; height:310px; margin-bottom:6px; padding:0; overflow:hidden; border-radius:3px; }
.home-playbook-art.is-tutoring img { width:100%; height:100%; max-width:none; max-height:none; object-fit:cover; object-position:center; transform:translateY(-14px) scale(1.25); filter:none; }
.home-playbook>.button { width:94%; margin-top:auto; gap:18px; }
.home-playbook:focus-visible { border-radius:4px; outline-offset:9px; }
@media(hover:hover) and (pointer:fine) {
 .home-playbook:hover .home-playbook-art:not(.is-pair):not(.is-tutoring) img { transform:translateY(-5px); }
 .home-playbook:hover .home-playbook-art.is-pair img:first-child { transform:translateY(-5px) rotate(-9deg); }
 .home-playbook:hover .home-playbook-art.is-pair img+img { transform:rotate(9deg) translateY(2px); }
 .home-playbook:hover>.primary { background:var(--teal-dark); }
 .home-playbook:hover>.outline { background:#e8ece5; border-color:#7a887d; }
}
@media(max-width:1199px) {
 .home-playbook-grid {
  grid-template-columns:repeat(2,minmax(0,264px));
  justify-content:center;
  gap:clamp(28px,7vw,48px) clamp(14px,4vw,38px);
 }
}
@media(max-width:600px) {
 .home-playbook-tag { font-size:12px; padding:3px 9px; }
 .home-playbook-grid .home-playbook h3 {
  min-height:clamp(66px,14vw,84px);
  margin-top:12px;
  font-size:clamp(23px,6.5vw,38px);
 }
 .home-playbook-course { margin-bottom:5px; font-size:clamp(11px,3vw,15px); letter-spacing:0; }
 .home-playbook-detail { font-size:clamp(17px,5vw,27px); }
 .home-playbook-art {
  height:auto;
  aspect-ratio:264 / 310;
  margin-bottom:7px;
  padding:0 3%;
 }
 .home-playbook-art.is-tutoring {
  width:calc(100% * 232 / 264);
  height:auto;
  aspect-ratio:232 / 310;
  margin-bottom:7px;
 }
 .home-playbook-art.is-tutoring img { transform:translateY(-4.5%) scale(1.25); }
 .home-playbook-art.is-pair img { width:52.4%; }
 .home-playbook>.button {
  min-height:46px;
  padding:6px;
  gap:5px;
  font-size:clamp(12px,3.1vw,13px);
  line-height:1.2;
  letter-spacing:0;
  text-wrap:balance;
 }
 .home-playbook>.button .icon-arrow { width:12px; height:12px; }
}
.home .method-grid h2 + .eyebrow { margin-top:16px; }
.home .upcoming-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:760px) { .home .upcoming-grid { grid-template-columns:minmax(0,1fr); } }

.home .faq-section {
 --faq-rule-step:48px;
 --faq-gutter:clamp(34px,7vw,72px);
 --faq-margin-line:max(calc(var(--faq-gutter) - 18px), calc((100% - 1140px) / 2 - 18px));
 --faq-maroon-rule:#7d304a73;
 --faq-teal-rule:#17695e36;
 padding-block:calc(2 * var(--faq-rule-step)) calc(3 * var(--faq-rule-step));
 background:
  linear-gradient(var(--faq-maroon-rule), var(--faq-maroon-rule))
   left var(--faq-margin-line) top / 1px 100% no-repeat,
  repeating-linear-gradient(
   to bottom,
   transparent 0 calc(var(--faq-rule-step) - 1px),
   var(--faq-teal-rule) calc(var(--faq-rule-step) - 1px) var(--faq-rule-step)
  ) center / calc(100% - 16px) 100% no-repeat,
  #fdfbf7;
}
.home .faq-grid {
 width:min(1140px,calc(100% - 2 * var(--faq-gutter)));
 grid-template-columns:minmax(0,.85fr) minmax(320px,1.15fr);
}
.home .faq-grid h2 {
 font-size:clamp(62px,10vw,108px);
 line-height:calc(2 * var(--faq-rule-step));
 letter-spacing:-.045em;
}
.home .faq-grid .faqs details { border:0; }
.home .faq-grid .faqs summary {
 position:relative;
 min-height:var(--faq-rule-step);
 align-items:flex-end;
 padding:0 24px 2px 0;
 font:400 clamp(17px,2.3vw,22px)/1.15 var(--serif);
}
.home .faq-grid .faqs summary::after {
 content:"";
 position:absolute;
 inset-inline:0 2px;
 bottom:0;
 height:1px;
 background:#000;
 pointer-events:none;
}
.home .faq-grid .faqs summary > span {
 position:absolute;
 right:2px;
 bottom:9px;
}
.home .faq-grid .faqs details[open] summary,
.home .faq-grid .faqs summary:hover { color:var(--teal-dark); }
.home .faq-grid .faqs summary:focus-visible { outline-width:2px; outline-offset:0; }
.home .faq-grid .faq-answer {
 /* Keep each answer line on the same ruling as the questions. */
 position:relative;
 top:calc(var(--faq-rule-step) / 5);
 padding:0 clamp(16px,3vw,28px) 0 12px;
 font-size:14px;
 line-height:var(--faq-rule-step);
}
@media(max-width:619px) {
 .home .faq-section {
  --faq-rule-step:44px;
  --faq-gutter:clamp(22px,6vw,34px);
  --faq-margin-line:max(12px, calc(var(--faq-gutter) - 12px));
  padding-block-start:var(--faq-rule-step);
 }
 .home .faq-grid { grid-template-columns:minmax(0,1fr); gap:0; }
 .home .faq-grid h2 { font-size:clamp(56px,12vw,70px); }
 .home .faq-grid .faqs summary {
  padding-inline-end:18px;
  font-size:clamp(15px,4.25vw,19px);
 }
 .home .faq-grid .faq-answer { font-size:13px; }
}

@media(prefers-reduced-motion:reduce) {
 .home-playbook-art img { transition:none; }
 .home-playbook:hover .home-playbook-art:not(.is-pair):not(.is-tutoring) img { transform:none; }
 .home-playbook:hover .home-playbook-art.is-pair img:first-child { transform:rotate(-7deg); }
 .home-playbook:hover .home-playbook-art.is-pair img+img { transform:rotate(7deg) translateY(7px); }
}
@media(max-width:1050px) {
 .home .home-hero h1 { font-size:clamp(70px,8.5vw,90px); }
 .community-grid { gap:38px; }
 .community-grid>img { height:340px; }
}
@media(max-width:760px) {
 .home .hero-inner { padding-top:clamp(118px,18svh,160px); padding-bottom:32px; }
 .home .home-hero h1 { max-width:100%; font-size:clamp(32px,calc((100vw - 64px)/7.2),84px); line-height:1; }
 .home .hero-lede { margin-top:22px; max-width:43ch; }
 .stuck-grid,.community-grid { grid-template-columns:1fr; gap:42px; }
 .stuck-problem h2 { max-width:19ch; }
 .stuck-answer { padding:32px 0 0; border-left:0; border-top:1px solid #afc0b3; }
 .stuck-answer h3 { max-width:21ch; }
 .stuck-answer p { margin-top:20px; }
 .community-grid>img { height:auto; aspect-ratio:4/3; }
 .community-grid h2 { max-width:18ch; }
 .community-grid p { margin-top:20px; max-width:50ch; }
}
@media(max-width:500px) {
 .home .home-hero h1 { font-size:clamp(32px,calc((100vw - 64px)/7.2),84px); }
 .home .hero-actions .primary { padding-inline:16px; gap:12px; }
}
@media(max-width:760px) and (max-height:680px) {
 .home .hero-inner { padding-top:clamp(118px,18svh,160px); padding-bottom:24px; }
 .home .home-hero h1 { font-size:clamp(32px,calc((100vw - 64px)/7.2),84px); }
 .home .hero-lede { margin-top:16px; font-size:13px; line-height:1.7; }
 .home .hero-rating { margin-top:10px; }
 .home .home-hero .hero-actions { margin-top:20px; }
}
@media(min-width:761px) and (max-height:660px) {
 .home .hero-inner { padding-top:110px; padding-bottom:30px; }
 .home .home-hero h1 { font-size:clamp(48px,min(6.7vw,10svh),72px); }
 .home .hero-lede { margin-top:18px; }
}
@media(min-width:761px) and (max-height:480px) {
 .home .hero-inner { padding-top:94px; padding-bottom:20px; }
 .home .home-hero h1 { font-size:clamp(32px,8.5svh,42px); }
 .home .hero-lede { margin-top:12px; }
}


/* A commanding headline and a visible classroom scene; retain the light serif weight. */
.home .hero-rating strong { font-weight:500; }
.home-hero .hero-photo { object-position:center center; }
.home-hero:after { background:linear-gradient(90deg,#100f0d9c 0%,#100f0d70 32%,#100f0d18 67%,transparent 82%); }
@media(max-width:760px) {
 .home-hero { background:#22201d; }
 .home-hero .hero-photo { top:0; bottom:0; height:100%; object-position:76% center; }
 .home-hero:after { background:linear-gradient(180deg,#171612c9 0%,#171612b0 35%,#17161280 58%,#17161218 83%); }
}
@media(max-width:500px) {
 .home-hero .hero-photo { object-position:90% center; }
}
@media(max-width:350px) {
 .home .home-hero h1 { font-size:clamp(32px,calc((100vw - 64px)/7.2),84px); }
 .home .hero-actions .primary { font-size:11px; padding-inline:12px; gap:8px; }
}

/* A clear entrance for current students. */
.home-login { background:linear-gradient(115deg,#eef2eb,#dfeae2); border-block:1px solid #cbd6ca; }
.home-login-inner { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:40px; }
.home-login h2 { margin-top:14px; font-size:clamp(42px,4.2vw,60px); }
.home-login-copy { margin-top:20px; color:var(--muted); font-size:14px; }
.home-login .home-login-action { width:300px; max-width:100%; min-height:68px; padding:20px 30px; font-size:17px; letter-spacing:.035em; justify-content:space-between; gap:44px; }
.home-login-action .icon-arrow { width:24px; height:24px; }
@media(max-width:760px) {
 .home-login { padding-block:56px; }
 .home-login-inner { grid-template-columns:1fr; gap:30px; }
 .home-login h2 { font-size:44px; line-height:1.08; }
 .home-login-copy { margin-top:18px; max-width:33ch; font-size:13px; line-height:1.8; }
 .home-login .home-login-action { width:100%; max-width:360px; }
}

/* Approved homepage composition: image-led hero, module index and continuous review band. */
.home main { margin-top:calc(-1 * var(--site-header-height)); }
.home .home-hero { min-height:calc(100svh - 175px); }
.home .hero-inner { position:relative; min-height:calc(100svh - 175px); padding-top:124px; padding-bottom:59px; justify-content:center; }
.home .home-hero h1 { max-width:760px; font-size:clamp(64px,6.8vw,82px); line-height:1.02; }
.home .hero-lede, .home .hero-slogan { font-size:20px; line-height:1.5; color:#fff; }
.home .hero-lede { margin-top:14px; }
.home .hero-slogan {
 position:absolute;
 right:0;
 bottom:22px;
 margin:0;
 font-family:var(--serif);
 font-style:italic;
 text-shadow:0 1px 2px #07110d59;
}
.home .home-hero .hero-actions { margin-top:22px; }
.home .home-hero .hero-actions .button { padding:14px 27px; border-radius:999px; background:#b54238; color:#fff; font-size:15px; letter-spacing:0; }
.home .home-hero .hero-actions .button:hover { background:#98372f; }
.home-hero .hero-photo { object-position:center 65%; }
.home-hero:after { background:linear-gradient(90deg,#172421 0%,#172421ef 32%,#17242140 82%); }
.home-subjects { background:#faf9f6; }
.home-subject-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.home-subject-grid>a { position:relative; min-height:120px; padding:22px 28px 30px 0; color:var(--ink); text-decoration:none; }
.home-subject-grid>a+a { border-left:1px solid #c6cec4; padding-left:27px; }
.home-subject-grid h2 { font-size:32px; font-style:normal; line-height:1.03; letter-spacing:-.035em; }
.subject-short { display:none; }
.home-subject-grid .subject-arrow { position:absolute; right:23px; bottom:22px; color:#346657; }
.home-subjects:after { content:""; display:block; border-bottom:1px solid #c6cec4; }
@media (min-width: 761px) and (max-width: 1100px) {
 .home-subject-grid h2 { font-size:clamp(26px, 2.65vw, 31px); }
}
.home-reviews-band { background:linear-gradient(130deg,#f5f3ec,#e5eae2 57%,#f3f1e9); }
.home-rating { min-height:55px; display:grid; place-items:center; }
.home-rating a { display:inline-flex; align-items:center; gap:8px; color:var(--ink); font-family:var(--label); font-size:13px; text-decoration:none; }
.home-rating a:hover { text-decoration:underline; text-underline-offset:4px; }
.home-rating a>span { color:#846a2a; }
.home .reviews-section { padding-top:56px; background:transparent; }
.home .reviews-track { will-change:transform; }
@media(max-width:760px) {
 .home .home-hero { min-height:calc(100svh - 168px); }
 .home .hero-inner { min-height:calc(100svh - 168px); padding-top:104px; padding-bottom:30px; justify-content:center; }
 .home .home-hero h1 { max-width:10ch; font-size:clamp(48px,12.8vw,66px); }
 .home .hero-lede, .home .hero-slogan { font-size:16px; }
 .home .hero-slogan { bottom:14px; }
 .home-subject-grid { grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; }
 .home-subject-grid>a { min-height:104px; padding:18px 12px 24px; }
 .home-subject-grid>a+a { border-left:1px solid #c6cec4; padding-left:12px; }
 .home-subject-grid h2 { font-size:clamp(16px,4.6vw,22px); line-height:1.08; }
 .home-subject-grid .subject-arrow { right:10px; bottom:9px; width:14px; height:14px; }
 .subject-long { display:none; }
 .subject-short { display:inline; }
 .home-subjects:after { display:block; }
 .home-rating { min-height:64px; }
 .home .reviews-section { padding-top:42px; }
}
@media(max-width:760px) and (max-height:680px) {
 .home .hero-inner { padding-top:88px; padding-bottom:20px; }
 .home .home-hero h1 { font-size:clamp(38px,11vw,48px); }
 .home .hero-lede { margin-top:14px; }
 .home .hero-lede, .home .hero-slogan { font-size:14px; }
 .home .home-hero .hero-actions { margin-top:16px; }
}
