@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=IBM+Plex+Mono:wght@400;600&family=Kalam:wght@300;400;700&display=swap");
@import url("../learning/assets/style.css");

:root { --muted:var(--ink-2); --yellow:#ffe38a; --line:var(--grid); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:24px; }
body { margin:0; color:var(--ink); font:18px/1.65 var(--body); }
a { color:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
a:focus-visible,button:focus-visible { outline:3px solid var(--blue); outline-offset:5px; }
button { font:inherit; }
[hidden] { display:none !important; }
.skip-link { position:fixed; left:16px; top:-100px; z-index:10; background:var(--ink); color:white; padding:12px; }
.skip-link:focus { top:12px; }
.site-header,main,footer { width:min(1180px,calc(100% - 64px)); margin:auto; }
.site-header { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:28px 0; border-bottom:1px solid var(--line); }
.logo { display:flex; align-items:center; gap:12px; text-decoration:none; font-weight:800; font-size:20px; letter-spacing:-.7px; }
.logo-dot { color:var(--blue); }
.logo-icon { width:39px; height:39px; border:2px solid var(--ink); display:flex; align-items:center; justify-content:center; font-size:17px; line-height:1; transform:rotate(-6deg); border-radius:5px 10px 10px 5px; background:var(--yellow); box-shadow:3px 3px 0 var(--ink); }
.logo-icon span { font-size:12px; align-self:flex-end; margin-bottom:5px; }
nav { display:flex; align-items:center; gap:30px; }
.header-link { text-decoration:none; font-size:14px; font-weight:700; }
.languages { display:flex; gap:3px; padding:4px; border:1px solid var(--line); border-radius:30px; }
.languages a { padding:5px 12px; font-size:12px; text-decoration:none; border-radius:24px; font-weight:700; }
.languages a[aria-current="page"] { background:var(--ink); color:white; }
.hero { display:grid; grid-template-columns:1.1fr 1fr; gap:30px; align-items:center; padding:76px 0 80px; }
.eyebrow { font-size:11px; font-weight:800; letter-spacing:2px; margin:0 0 20px; display:flex; align-items:center; gap:9px; }
.eyebrow>span:first-child:not([data-i18n]) { width:7px; height:7px; border-radius:50%; background:var(--blue); flex-shrink:0; }
h1,h2,h3 { font-family:var(--hand); line-height:1.1; }
h1 { font-size:clamp(48px,6vw,80px); letter-spacing:0; margin:0; font-weight:700; }
h1 em { font-family:var(--hand); font-weight:700; font-style:normal; color:var(--blue); letter-spacing:0; background:linear-gradient(transparent 65%,var(--highlight) 65%,var(--highlight) 92%,transparent 92%); }
.hero-description { max-width:530px; color:var(--muted); margin:26px 0; font-size:17px; }
.button { display:inline-flex; align-items:center; justify-content:space-between; gap:30px; padding:15px 22px; border-radius:8px; text-decoration:none; font-weight:700; font-size:14px; transition:transform .2s,background .2s,box-shadow .2s; }
.primary { background:var(--ink); color:white; }
.primary:hover { background:var(--blue); transform:translateY(-3px); box-shadow:0 8px 20px #254edb20; }
.button>span:last-child { font-size:22px; line-height:1; }
.hero-note { font-size:12px; color:var(--muted); margin:14px 0 0; }
.hero-art { position:relative; min-height:410px; isolation:isolate; }
.orbit { position:absolute; width:350px; height:350px; border:1px dashed #b9c1b4; border-radius:50%; left:50%; top:45%; transform:translate(-50%,-50%); z-index:-1; }
.mini-book { position:absolute; width:195px; height:275px; border-radius:3px 12px 12px 3px; box-shadow:inset 7px 0 0 #ffffff25,inset 10px 0 0 #00000012,12px 18px 24px #182b3520; display:flex; flex-direction:column; padding:24px; transition:transform .4s; }
.blue-book { background:var(--blue); color:#fff; left:10%; top:40px; transform:rotate(-13deg); }
.yellow-book { background:var(--yellow); color:var(--ink); right:5%; top:100px; transform:rotate(12deg); }
.hero-art:hover .blue-book { transform:translateY(-8px) rotate(-16deg); }
.hero-art:hover .yellow-book { transform:translateY(-8px) rotate(16deg); }
.book-top { font-size:9px; letter-spacing:2px; }
.mini-book strong { font-size:87px; font-weight:600; line-height:1.7; letter-spacing:-6px; }
.book-line { border-top:1px solid currentColor; opacity:.5; }
.book-caption { margin-top:auto; font-size:12px; }
.art-note { position:absolute; font-family:var(--hand); font-size:29px; font-weight:700; }
.note-top { top:0; right:25%; transform:rotate(7deg); }
.note-bottom { bottom:0; left:8%; transform:rotate(-7deg); }
.art-star { position:absolute; bottom:15px; right:6%; font-size:56px; color:var(--blue); }
.library { border-top:1px solid var(--line); padding:48px 0 64px; }
.section-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:36px; margin-bottom:32px; }
.section-heading .eyebrow { color:var(--muted); margin-bottom:12px; }
h2 { font-size:clamp(27px,3vw,36px); letter-spacing:-1.4px; margin:0; }
.section-heading>p { color:var(--muted); font-size:14px; max-width:310px; margin:0; }
.book-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:28px; }
.course-card { min-width:0; border:1px solid var(--line); border-radius:14px; background:#fffdfa; overflow:hidden; transition:transform .25s,box-shadow .25s,border-color .25s; }
.course-card:hover,.course-card:focus-within { transform:translateY(-5px); box-shadow:0 15px 30px #182b3510; border-color:#b8c2c6; }
.course-card.recommended { outline:3px solid var(--blue); outline-offset:5px; }
.card-art { height:238px; padding:24px 30px; position:relative; overflow:hidden; }
.a1 .card-art { background:var(--blue); color:#fff; }
.a2 .card-art { background:var(--yellow); }
.b1 .card-art { background:#efe4fb; color:var(--t2); }
.card-art::after { content:""; width:230px; height:230px; border:1px solid currentColor; opacity:.18; position:absolute; border-radius:50%; right:-40px; top:70px; pointer-events:none; }
.edition { font-size:10px; letter-spacing:2px; }
.level-art { display:block; font-size:105px; font-family:var(--hand); font-weight:700; line-height:1.4; letter-spacing:0; }
.level-art>span { font-size:60px; position:absolute; right:40px; top:55px; font-weight:400; }
.art-caption { font-size:13px; letter-spacing:.4px; }
.level-badge { position:absolute; top:24px; right:24px; border:1px solid currentColor; border-radius:20px; padding:3px 9px; font-size:9px; letter-spacing:1px; }
.card-content { padding:28px 30px; }
.card-title { display:flex; align-items:center; justify-content:space-between; gap:12px; }
h3 { font-size:23px; margin:0; letter-spacing:-.7px; }
.pill { flex-shrink:0; border-radius:20px; background:#eef1ec; padding:4px 10px; font-size:10px; font-weight:700; }
.card-content>p { font-size:14px; color:var(--muted); margin:18px 0; }
.features { list-style:none; padding:0; margin:22px 0; font-size:13px; }
.features li { margin:9px 0; padding-left:23px; position:relative; }
.features li::before { content:"✓"; position:absolute; left:0; color:var(--blue); font-weight:700; }
.card-content .access-note { font-size:11px; border-top:1px solid var(--line); padding-top:16px; }
.course-link { width:100%; }
.practice-link { display:block; text-align:center; font-size:12px; margin-top:15px; text-underline-offset:4px; }
.level-helper { background:#edeedf; border-radius:12px; padding:26px 30px; margin-top:36px; display:grid; grid-template-columns:1fr auto; gap:16px 24px; align-items:center; }
.level-helper h3 { font-size:20px; }
.level-helper p { font-size:13px; color:var(--muted); margin:8px 0 0; max-width:520px; }
.helper-options { display:flex; flex-wrap:wrap; gap:8px; }
.helper-options button { border:1px solid #b7c0b0; border-radius:6px; padding:10px 14px; cursor:pointer; background:#fffdfa; font-size:12px; color:var(--ink); }
.helper-options button:hover { border-color:var(--blue); }
.helper-options button[aria-pressed="true"] { background:var(--ink); color:white; }
.level-helper .recommendation { grid-column:1 / -1; margin:0; color:var(--ink); font-weight:600; }
.recommendation:empty { display:none; }
.learning-strip { border-top:1px solid var(--line); padding:44px 0 62px; }
.learning-strip h2 { max-width:620px; }
.method-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:48px; margin-top:35px; }
.method-number { font-size:11px; color:var(--blue); font-weight:700; display:block; margin-bottom:12px; }
.method-grid h3 { font-size:20px; }
.method-grid p { color:var(--muted); font-size:14px; }
footer { padding:24px 0 34px; border-top:1px solid var(--line); display:flex; justify-content:space-between; align-items:flex-start; gap:30px; font-size:11px; color:var(--muted); }
.footer-brand { color:var(--ink); font-weight:800; font-size:15px; text-decoration:none; white-space:nowrap; }
footer p { max-width:470px; margin:0; }
footer>a:last-child { white-space:nowrap; text-underline-offset:4px; }
@media (max-width:1000px) {
  .hero-art { transform:scale(.85); transform-origin:center; }
  .mini-book { width:175px; }
  .section-heading { align-items:flex-start; }
  .level-helper { grid-template-columns:1fr; }
  .card-title { flex-wrap:wrap; }
}
@media (max-width:720px) {
  .site-header,main,footer { width:calc(100% - 36px); }
  .site-header { padding:18px 0; gap:12px; }
  .logo { font-size:16px; gap:8px; }
  .logo-icon { width:30px; height:32px; font-size:14px; }
  .header-link { display:none; }
  nav { gap:0; }
  .languages a { padding:4px 8px; }
  .hero { grid-template-columns:1fr; padding:44px 0 32px; gap:0; }
  h1 { letter-spacing:0; }
  .hero-description { font-size:15px; }
  .hero-art { min-height:345px; max-width:410px; width:100%; margin:auto; transform:scale(.86); }
  .mini-book { height:250px; width:170px; }
  .blue-book { top:30px; left:3%; }
  .yellow-book { top:70px; right:0; }
  .orbit { width:300px; height:300px; }
  .mini-book strong { line-height:1.45; }
  .note-top { right:10%; }
  .note-bottom { bottom:-5px; }
  .art-star { bottom:-20px; }
  .library { padding-top:32px; }
  .section-heading { display:block; }
  .section-heading>p { margin-top:16px; max-width:none; }
  .book-grid { grid-template-columns:1fr; gap:24px; }
  .card-art { height:220px; }
  .card-content { padding:24px; }
  .level-helper { padding:24px; }
  .helper-options { flex-direction:column; }
  .method-grid { grid-template-columns:1fr; gap:22px; }
  .method-grid p { margin-bottom:0; }
  footer { flex-wrap:wrap; gap:16px; }
  footer p { order:3; flex-basis:100%; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition:none !important; }
}

.site-header { border-bottom:2px solid var(--ink); padding:18px 0; background:rgba(252,252,251,.95); }
.logo { font:700 30px var(--hand); letter-spacing:0; }
.logo-icon { border-radius:2px 8px 3px 5px; font-family:var(--body); }
.header-link { font-size:18px; }
.languages { border:0; border-radius:0; gap:10px; }
.languages a { border-radius:2px; font:600 14px var(--mono); border-bottom:2px solid transparent; padding:5px; }
.languages a[aria-current="page"] { background:none; color:var(--blue); border-color:var(--blue); }
.hero { padding:56px 0 64px; }
.eyebrow { font:12px var(--mono); letter-spacing:.5px; color:var(--mute); }
.hero-description { color:var(--ink); font-size:19px; background:rgba(252,252,251,.8); }
.hero-note { font-size:16px; color:var(--ink-2); }
.button { border:2px solid var(--ink); border-radius:3px; padding:8px 17px; font-size:19px; box-shadow:3px 3px 0 var(--ink); transition:transform .2s,box-shadow .2s; }
.primary { background:var(--yellow); color:var(--ink); }
.primary:hover { background:var(--yellow); transform:translate(-1px,-1px); box-shadow:4px 4px 0 var(--ink); }
.primary:active { transform:translate(2px,2px); box-shadow:1px 1px 0 var(--ink); }
.orbit { border:2px dashed var(--mute); border-radius:48% 52% 46% 54%; }
.mini-book { border:2px solid var(--ink); border-radius:3px 10px 4px 3px; box-shadow:5px 5px 0 var(--ink); }
.mini-book::before { content:""; position:absolute; inset:5px 5px 5px 11px; border:1px solid currentColor; opacity:.55; border-radius:1px 7px 2px 1px; pointer-events:none; }
.blue-book { background:#eaf1fa; color:var(--blue); }
.yellow-book { background:#fff5cf; color:var(--t1); }
.mini-book strong { font-family:var(--hand); font-weight:700; letter-spacing:0; }
.book-top { font:10px var(--mono); letter-spacing:.3px; }
.book-caption { font-size:17px; }
.art-star { color:var(--t2); }
.library,.learning-strip { border-top:2px dashed #8793a3; }
h2 { font-size:clamp(36px,4vw,48px); letter-spacing:0; }
.section-heading>p { font-size:18px; background:rgba(252,252,251,.8); }
.course-card { border:2px solid var(--ink); border-radius:3px 8px 3px 5px; background:var(--paper); box-shadow:4px 4px 0 var(--ink); }
.course-card:hover,.course-card:focus-within { transform:translate(-2px,-2px); box-shadow:6px 6px 0 var(--ink); border-color:var(--ink); }
.card-art { border-bottom:2px solid var(--ink); background-image:repeating-linear-gradient(0deg,transparent,transparent 23px,#c9d6e660 23px,#c9d6e660 24px); }
.a1 .card-art { background-color:#eaf1fa; color:var(--blue); }
.a2 .card-art { background-color:#fff5cf; color:var(--t1); }
.b1 .card-art { background-color:#efe4fb; color:var(--t2); }
.card-art::after { border:2px dashed currentColor; opacity:.35; border-radius:48% 52% 44% 56%; }
.edition { font:11px var(--mono); letter-spacing:.5px; }
.level-badge { border:2px solid currentColor; border-radius:3px; font:10px var(--mono); transform:rotate(2deg); background:var(--paper); }
.art-caption { font:700 23px var(--hand); letter-spacing:0; }
.level-art>span { transform:rotate(-12deg); }
h3 { font-size:30px; letter-spacing:0; }
.pill { background:#fff5cf; border-radius:2px; font:12px var(--mono); }
.card-content>p { font-size:18px; color:var(--ink); }
.features { font-size:17px; }
.features li::before { color:var(--green); }
.card-content .access-note { font:12px/1.6 var(--mono); border-top:1px dashed var(--mute); color:var(--ink-2); }
.practice-link { font-size:17px; color:var(--blue); }
.level-helper { background:#fffdf3; border-radius:2px; border-left:6px solid var(--t2); box-shadow:3px 3px 0 var(--t2); }
.level-helper h3 { color:var(--t2); font-size:30px; }
.level-helper p { font-size:17px; }
.helper-options button { background:white; border:2px solid var(--ink); border-radius:3px; box-shadow:2px 2px 0 var(--ink); font-size:16px; padding:7px 12px; }
.helper-options button[aria-pressed="true"] { background:var(--yellow); color:var(--ink); }
.learning-strip h2 { max-width:780px; }
.method-grid>div { border-left:4px solid var(--blue); padding:0 14px; background:rgba(252,252,251,.9); }
.method-grid>div:nth-child(2) { border-color:var(--t1); }
.method-grid>div:nth-child(3) { border-color:var(--green); }
.method-number { font:12px var(--mono); }
.method-grid h3 { font-size:30px; }
.method-grid p { font-size:17px; }
footer { border-top:2px solid var(--ink); background:rgba(252,252,251,.9); font-size:15px; }
.footer-brand { font:700 25px var(--hand); }
.account-button { font-size:15px; padding:6px 10px; }
.rewards-section { border-top:2px dashed #8793a3; padding:48px 0 64px; }
.rewards-card { display:grid; grid-template-columns:minmax(250px, .9fr) 1.1fr; align-items:center; gap:28px; border:2px solid var(--ink); padding:28px; background:var(--paper); box-shadow:4px 4px 0 var(--ink); }
.wheel-stage { display:grid; justify-items:center; gap:12px; position:relative; }
.wheel-pointer { position:absolute; z-index:1; top:-7px; color:var(--ink); font-size:24px; line-height:1; }
.fortune-wheel { width:min(250px, 70vw); aspect-ratio:1; border:3px solid var(--ink); border-radius:50%; background:conic-gradient(#dfe9f8 0deg 180deg,#f5e8b7 180deg 288deg,#dcebdc 288deg 342deg,#f5d9c9 342deg 356.4deg,#d9d2f0 356.4deg 360deg); box-shadow:inset 0 0 0 7px var(--paper),4px 4px 0 var(--ink); transition:transform 4.2s cubic-bezier(.12,.72,.16,1); position:relative; }
.fortune-wheel::after { content:"✳"; position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%); width:48px; height:48px; display:grid; place-items:center; border:2px solid var(--ink); border-radius:50%; background:var(--paper); color:var(--ink); font:24px var(--hand); }
.wheel-legend { list-style:none; display:flex; flex-wrap:wrap; justify-content:center; gap:6px 12px; margin:0; padding:0; color:var(--ink-2); font:11px/1.5 var(--mono); }
.rewards-copy { display:grid; justify-items:start; gap:14px; }
.credit-balance-line { width:100%; display:flex; justify-content:space-between; align-items:center; gap:16px; margin:0; padding-bottom:10px; border-bottom:1px dashed var(--mute); font:15px var(--mono); }
.credit-balance-line strong { font-size:24px; }
.rewards-copy .button { min-width:min(100%,260px); cursor:pointer; }
.rewards-copy .button:disabled { cursor:not-allowed; opacity:.64; }
.reward-status,.rewards-note { margin:0; color:var(--ink-2); font-size:14px; }
.rewards-note { font-size:12px; }
.rewards-section .section-heading { margin-bottom:24px; }
@media (max-width:720px) {
  .logo { font-size:23px; gap:7px; }
  .languages { gap:6px; }
  .languages a { font-size:12px; }
  .site-header nav { gap:10px; flex-wrap:wrap; justify-content:flex-end; }
  .account-button { max-width:150px; overflow:hidden; text-overflow:ellipsis; font-size:12px; padding:4px 6px; }
  .hero { padding:36px 0 32px; }
  .hero-description { font-size:18px; }
  .hero .eyebrow { font-size:10px; }
  .book-caption { font-size:15px; }
  .level-badge { font-size:9px; right:14px; }
  .card-content { padding:22px; }
  .level-helper { padding:20px; }
  .rewards-section { padding:32px 0 40px; }
  .rewards-card { grid-template-columns:1fr; padding:20px; gap:24px; }
  .method-grid { gap:26px; }
  footer { gap:12px; }
}
