/* Home v2 (2026-10-02): the course leads, one idea per section.
   Order: hero, the dialect, the course, what fluent feels like, proof, e-books, final.
   Sits on fresh.css + course-home.css tokens. No outlines, no pills. */

/* ---------- Hero: the art fills the whole band, no cream strip under it ---------- */
@media (min-width: 901px) { .home-hero { background-size: cover; background-position: center 18%; } }

/* ---------- 02 The dialect: three sunlit cards, the textbook line struck on scroll ---------- */
.dx { background: linear-gradient(180deg, var(--paper) 0%, #FFF3D6 100%); }
.dx .display { font-size: clamp(32px, 4vw, 56px); }
.dx-cards { list-style: none; margin: clamp(36px, 4vw, 56px) auto 0; padding: 0; max-width: 1160px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.dx-c { position: relative; display: grid; align-content: start; gap: 6px; padding: clamp(24px, 2.4vw, 34px); border-radius: 30px; box-shadow: var(--soft); overflow: hidden; }
.dx-c1 { background: linear-gradient(150deg, #FFF1C2 0%, #FFD96B 100%); }
.dx-c2 { background: linear-gradient(150deg, #FFE7D6 0%, #FFB98F 100%); }
.dx-c3 { background: linear-gradient(150deg, #E3F4FF 0%, #A9DCFA 100%); }
.dx-c s { justify-self: start; position: relative; text-decoration: none; font-weight: 600; font-size: 17px; color: rgba(43, 21, 0, .55); }
.dx-c s::before { content: "Textbook: "; font-weight: 500; }
.dx-c s::after { content: ""; position: absolute; left: -3px; right: -3px; top: 54%; height: 2px; border-radius: 2px; background: #FF5A4E; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.dx-c b { margin-top: 10px; font: 800 clamp(28px, 2.7vw, 40px)/1.05 var(--f-disp); letter-spacing: -.04em; color: var(--ink); }
.dx-c i { font: 700 clamp(22px, 2vw, 28px)/1.4 var(--f-ar); font-style: normal; color: #C46A00; text-align: left; }
.dx-c small { margin-top: 14px; font: 700 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(43, 21, 0, .55); }
.js [data-dx] .dx-c { opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .5s var(--ease), transform .7s var(--spring); }
.js [data-dx].dx-run .dx-c { opacity: 1; transform: none; }
.js [data-dx].dx-run .dx-c s::after { transform: scaleX(1); transition-delay: .6s; }
.js [data-dx].dx-run .dx-c2, .js [data-dx].dx-run .dx-c2 s::after { transition-delay: .15s; }
.js [data-dx].dx-run .dx-c2 s::after { transition-delay: .75s; }
.js [data-dx].dx-run .dx-c3 { transition-delay: .3s; }
.js [data-dx].dx-run .dx-c3 s::after { transition-delay: .9s; }

/* ---------- 03 The course: two big moving tiles, then the price ---------- */
.cx { background: linear-gradient(180deg, #FFF3D6 0%, var(--cream) 100%); padding-bottom: clamp(72px, 8vw, 112px); }
.cx .ch-head { max-width: 1120px; }
.cx .display { font-size: clamp(36px, 4.6vw, 64px); }
.cx-duo { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.8vw, 28px); }
.cx-tile { position: relative; margin: 0; border-radius: 32px; overflow: hidden; background: #F5D9A0; box-shadow: var(--soft-lg); transition: transform .5s var(--spring); }
.cx-tile:hover { transform: translateY(-6px); }
.cx-tile video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cx-tile figcaption { position: absolute; left: 18px; bottom: 18px; display: grid; gap: 2px; padding: 14px 18px; border-radius: 20px; background: rgba(255, 251, 242, .92); backdrop-filter: blur(8px); box-shadow: 0 16px 30px -18px rgba(43, 21, 0, .5); }
.cx-tile figcaption b { font: 800 clamp(22px, 2vw, 30px)/1 var(--f-disp); letter-spacing: -.04em; }
.cx-tile figcaption span { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.cx-buy { margin: clamp(36px, 4vw, 52px) auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 32px; }
.cx-price { margin: 0; display: flex; align-items: baseline; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.cx-price strong { font: 800 clamp(32px, 3vw, 42px)/1 var(--f-disp); letter-spacing: -.03em; color: var(--ink); }
.cx-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- 05 Proof ---------- */
.px { background: var(--paper); padding-bottom: clamp(40px, 5vw, 64px); }
.center-eyebrow { text-align: center; }
.px .voices { margin-top: clamp(36px, 4vw, 52px); }
.px-feed { position: relative; margin-top: clamp(56px, 6vw, 84px); }
.px-feed-head { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 0 var(--gutter) 26px; text-align: center; }
.px-feed-head { margin-bottom: 20px; }
.px-feed-head p { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink-soft); }
.px-feed .marquee { margin: 0 calc(var(--gutter) * -1); }

/* the final art is Saqr celebrating, portrait, so it sits as a tall card */
.final .ch-final-art img { width: min(380px, 100%); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 30px; margin-left: auto; box-shadow: 0 40px 80px -30px rgba(120, 50, 0, .55); }

/* ---------- 06 Books sit on cream, quieter than the course ---------- */
.ch-books { background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .dx-cards, .cx-duo { grid-template-columns: 1fr; }
  .dx-cards { max-width: 520px; }
}
@media (max-width: 640px) {
  .cx-tile, .dx-c { border-radius: 24px; }
  .cx-tile figcaption { left: 12px; bottom: 12px; padding: 10px 14px; border-radius: 16px; }
  .cx-price { flex-wrap: wrap; justify-content: center; }
  .cx-btns, .cx-btns .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-dx] .dx-c { opacity: 1; transform: none; transition: none; }
  .js [data-dx] .dx-c s::after { transform: scaleX(1); transition: none; }
}
