@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');
:root{--ink:#222139;--muted:#5f5a70;--violet:#5031ab;--line:#e3dbf0;--cream:#fbf8f4;--white:#fff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font:16px/1.55 "DM Sans",sans-serif}button,a,select{font:inherit}a{color:inherit}button,select{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #7953dc;outline-offset:4px}header{border-bottom:1px solid var(--line);background:#fff}.bar,main,footer{max-width:1120px;margin:auto;padding-inline:28px}.bar{min-height:75px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{font-weight:800;text-decoration:none;display:flex;gap:10px;align-items:center;white-space:nowrap}.brand span{background:var(--violet);color:white;padding:5px 10px;border-radius:10px}nav{display:flex;gap:20px}nav a{text-decoration:none;font-weight:700;color:var(--violet)}
.hero{margin-top:32px;background:#eae0ff;border-radius:28px;min-height:405px;overflow:hidden;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;padding:44px 52px;position:relative;gap:24px}.hero h1,h2,h3{font-family:Outfit,"DM Sans",sans-serif;line-height:1.12;margin:0;letter-spacing:-.035em}.hero h1{font-size:clamp(48px,7.6vw,92px);font-weight:800}.eyebrow{color:var(--violet);font-size:.78rem;letter-spacing:.13em;font-weight:800;margin:0 0 10px}.intro{max-width:345px;color:#48405c;margin:17px 0 23px}.cta,button.primary{display:inline-block;background:var(--violet);color:white;border:1px solid var(--violet);padding:11px 19px;border-radius:12px;font-weight:700;text-decoration:none}.hero-art{position:relative;display:grid;place-items:center;min-height:285px;isolation:isolate}.orb{position:absolute;width:min(86%,310px);aspect-ratio:1;background:#f6bf66;border-radius:50%;z-index:-1}.arabic-big{background:#fff;color:#3c2784;border:3px solid #332365;border-radius:28px 28px 6px 28px;padding:0 27px;font:800 clamp(66px,12vw,125px)/1.35 Tahoma,sans-serif;transform:rotate(-10deg);box-shadow:9px 9px #332365}.hello{position:absolute;right:9%;bottom:6%;background:#312357;color:#fff;padding:9px 18px;border-radius:30px;transform:rotate(8deg);font-weight:700}
.overview{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:24px 0}.overview>div,article,details{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px 22px}.overview>div:last-child{display:flex;align-items:center;color:var(--violet);font-weight:700}.track{height:8px;background:#eee8fa;border-radius:99px;margin-top:10px;overflow:hidden}.track span{display:block;height:100%;background:#6744bd;transition:width .25s}article{padding:27px;scroll-margin-top:18px}h2{font-size:clamp(28px,4vw,42px)}h3{font-size:23px}.stages{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0 22px}.stages span{border-radius:20px;padding:4px 10px;color:var(--muted);background:#f5f2f8;font-size:.86rem}.stages .active{background:#eae0ff;color:#402487;font-weight:800}.scene{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:23px}.scene-art{min-height:182px;background:#f4eaff;border-radius:16px;display:flex;align-items:center;justify-content:center;gap:10px;padding:12px}.actor{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#eadbf9;border:2px solid #7451ba;color:#452780;font-weight:800}.actor:nth-child(3){background:#fae3b9;color:#483524;border-color:#c88839}.bubble{font-size:1.5rem;color:#5031ab;animation:arrive .38s ease-out}@keyframes arrive{from{opacity:0;transform:translateY(9px) scale(.94)}to{opacity:1;transform:none}}.arabic{font:700 clamp(23px,4vw,34px)/1.5 Tahoma,sans-serif;margin:7px 0;text-align:start}.muted{color:var(--muted)}.actions,.choices{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}button.secondary,.choices button{border:1px solid #cec0e8;background:#fff;border-radius:10px;padding:8px 13px;color:#42268a;font-weight:700}.choices button:disabled{opacity:.7;cursor:default}.notice{color:#43288c;min-height:25px;margin:10px 0 0}.feedback:empty{display:none}.section-head{display:flex;gap:20px;justify-content:space-between;align-items:end;margin-top:56px;margin-bottom:16px}.section-head p:last-child{margin-bottom:0;color:var(--muted)}details{margin:8px 0}summary{cursor:pointer;font-weight:800;color:#42268a}.days{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:8px;padding:0}.days li{background:#f6f1fa;border-radius:10px;padding:8px 11px}.days a{color:var(--violet);font-weight:700}footer{display:flex;justify-content:space-between;gap:16px;padding-block:36px;color:var(--muted)}p{margin:8px 0}
@media(max-width:650px){.bar,main,footer{padding-inline:15px}.bar{min-height:62px;font-size:.86rem}nav{gap:9px}.hero{margin-top:16px;padding:25px;grid-template-columns:1fr;gap:10px}.hero-art{min-height:155px}.orb{width:160px}.hello{right:13%;bottom:0}.overview,.scene{grid-template-columns:1fr;gap:10px}.overview{margin:12px 0}.scene-art{min-height:95px}.section-head,footer{display:block}.section-head p:last-child,footer span{display:block;margin-top:7px}article{padding:17px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
[hidden]{display:none!important}
.preferences{display:flex;align-items:center;gap:12px;margin:0 0 12px;color:var(--muted);font-weight:700}.preferences select,input{background:#fff;border:1px solid #cec0e8;border-radius:9px;padding:7px 10px;color:var(--ink)}#account-panel{margin-bottom:15px}#account-form{display:flex;align-items:end;flex-wrap:wrap;gap:12px}#account-form label{display:grid;gap:4px}#account-form input{font:inherit;max-width:100%;width:208px}#account-form .actions{margin:0}.guide-note{color:#493087;margin:8px 0 0;font-weight:600}.mission-quiz fieldset{border:1px solid var(--line);border-radius:12px;margin:12px 0;padding:10px 14px}.mission-quiz label{display:block;padding:3px 0}.mission-quiz input{margin-inline-end:8px}footer span span{display:inline}
.practice-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.practice-grid article{min-width:0}.practice-grid h3{margin-bottom:8px}.practice-grid p{margin:10px 0}.film{margin-top:16px}video{display:block;width:min(100%,640px);margin-top:10px;border-radius:12px;background:#231841}audio{display:block;max-width:100%;margin-top:8px}.exercise{margin-top:16px;border-top:1px solid var(--line);padding-top:10px}.exercise .choices button{text-align:start}.exercise .correct{background:#e3f5e9;color:#245632}.exercise .incorrect{background:#faece9;color:#742d23}#voice-practice{margin-bottom:8px}#assessment-panel{margin-top:16px}#practice{scroll-margin-top:20px}
@media(max-width:650px){.practice-grid{grid-template-columns:1fr;gap:10px}nav{flex-wrap:wrap;justify-content:end}.bar{gap:7px}}
#translation-panel{margin-top:16px}.translation-label{display:grid;gap:6px;margin-top:12px}.translation-label textarea{font:inherit;color:var(--ink);border:1px solid #cec0e8;border-radius:9px;padding:8px;width:100%;max-width:610px}
.voice-mode{display:inline-flex;align-items:center;gap:8px;min-height:44px}
.mic-icon{position:relative;display:inline-block;flex-shrink:0;width:18px;height:20px;background:linear-gradient(currentColor,currentColor) center bottom/2px 5px no-repeat}
.mic-icon::before{content:'';position:absolute;inset:0 5px auto;height:12px;border-radius:5px;background:currentColor}
.mic-icon::after{content:'';position:absolute;inset:6px 2px auto;height:10px;border:2px solid currentColor;border-top:0;border-radius:0 0 8px 8px}
.voice-recorder{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;width:fit-content;max-width:100%;padding:8px 12px;margin-top:12px;border:1px solid var(--line);border-radius:16px;background:#f5effb;color:#42268a;font-weight:700}
.voice-recorder[data-state=recording]{background:#fff1f2;border-color:#f4c2ca;color:#8e1731}
.voice-recorder[data-state=recording] .recorder-mic{color:#b3213f;animation:recorder-pulse 1.4s ease-in-out infinite alternate}
.recorder-time{font-variant-numeric:tabular-nums}
button.recorder-stop{min-height:44px}
@keyframes recorder-pulse{to{transform:scale(1.16)}}

/* Main course design */
:root{--cream:#fff8eb;--ink:#25134a;--violet:#5927b6;--line:#e5d8f7;--muted:#635675;--orange:#ff8f55;--lime:#dfff71}
body{background:radial-gradient(ellipse at 92% 14%,#f7e1ff,transparent 35rem),var(--cream)}
header{background:#fffaf1}.bar,main,footer{max-width:1240px}
.brand{font-family:Outfit,sans-serif;font-size:1.24rem}.brand span{background:#311557;color:#e5ff83}
nav a:hover,.hero-link:hover{text-decoration:underline}
.hero{min-height:485px;padding:52px 58px;background:#e3cdff;border:1px solid #d8b7fa;gap:18px}
.hero-copy{position:relative;z-index:1}.hero h1{font-size:clamp(60px,9vw,115px);line-height:.88;letter-spacing:-.07em}
.hero h1 em{font-style:normal;color:#6a2bd3}.hero .intro{margin-top:25px;max-width:405px;font-size:1.08rem}
.hero .cta{background:#301650;border-color:#301650}.hero-link{align-self:center;padding:8px;font-weight:800;color:#331760}
.hero-art{min-height:370px;position:relative}.street-grid{position:absolute;inset:4% 2%;background-image:radial-gradient(#7c49ba 1.5px,transparent 1.5px);background-size:20px 20px;mask-image:radial-gradient(ellipse,#000 40%,transparent 73%);opacity:.55;z-index:-2}
.orbit{position:absolute;width:min(96%,370px);aspect-ratio:1;border:2px dashed #9468d2;border-radius:50%;z-index:-1}.hero-art .orb{background:#ff9f62;width:min(73%,292px)}
.hero-dialogue{transform:translate(-27px,-35px) rotate(-8deg);display:grid;justify-items:center}
.hero-dialogue .arabic-big{display:block;background:#fff8ed;transform:none;box-shadow:8px 8px #311755}
.hero-dialogue .hello{position:static;margin-top:-7px;transform:translateX(45px) rotate(6deg);z-index:1}
.hero-reply{position:absolute;right:3%;bottom:13%;border:2px solid #331760;border-radius:20px 20px 5px 20px;background:var(--lime);padding:7px 18px;color:#331760;transform:rotate(10deg);box-shadow:5px 5px #331760;text-align:center}
.hero-reply span{display:block;font-size:clamp(21px,4vw,38px);font-weight:800}.hero-reply small{display:block;font-weight:700}
.method{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}.method span{padding:12px 13px;background:#fff;border:1px solid var(--line);border-radius:13px;font-weight:800}.method b{margin-inline-end:8px;color:#6533ba}
.overview{margin:16px 0}.overview>div:last-child{background:#eff9d6}.overview>div{border-color:#ddcdef}
#lesson{background:#fffdf9;border-top:5px solid #a678ff}.scene-art{background:#eadbff}
#studio,#practice,#films,#journey{scroll-margin-top:16px}.studio-card{background:#faecff}.studio-card h3{margin-top:16px}
#studio-topics{margin-top:0}.studio-card .selected,.film-library .selected{background:#5927b6;color:white}
.studio-message{padding:14px;background:white;border-radius:12px;margin-top:16px}.studio-message p:last-child{margin-bottom:0}
.studio-feedback{margin-top:12px;padding:12px 14px;background:#eaf6d5;border-radius:10px}.studio-feedback:empty{display:none}
.roleplay-language{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-bottom:14px;font-weight:700}
.roleplay-language select{font:inherit;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:8px;min-height:44px;padding:6px 10px}
.roleplay-arabic,.roleplay-roman,.roleplay-subtitle{display:block;text-align:start;overflow-wrap:anywhere}
.roleplay-arabic{font:700 clamp(1.25rem,1rem + 1vw,1.7rem)/1.55 Tahoma,sans-serif}
.roleplay-roman{color:var(--muted);font-weight:500}
.roleplay-subtitle{color:var(--ink);margin-top:4px}
.roleplay-subtitle[lang=ur]{line-height:1.8}
#studio-view h4{margin:18px 0 8px}
#studio-view .studio-message button{margin-top:12px}
.roleplay-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px}
.roleplay-option{display:flex;align-items:stretch;gap:6px;min-width:0}
button.roleplay-choice{flex:1;min-width:0;padding:10px 12px}
button.roleplay-listen{min-height:44px;align-self:center}
.studio-audio-status:empty{display:none}
.practice-grid article:first-child{background:#f3f9dd}.practice-grid article:nth-child(2){background:#fff0dd}
.film-library{display:grid;grid-template-columns:minmax(155px,280px) minmax(0,1fr);gap:15px}
#film-list{display:grid;align-content:start;gap:7px}#film-list button{text-align:start}#film-screen{min-width:0;background:#2b194b;color:white}#film-screen h3{margin-bottom:10px}#film-screen .muted{color:#ebdefa}
.journey-search{display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-weight:700}.journey-search input{width:min(100%,330px);font:inherit}
#roadmap .days a{text-decoration:none}
@media(max-width:650px){.hero{min-height:0;padding:25px 22px}.hero h1{font-size:clamp(55px,14vw,82px)}.hero-art{min-height:210px}.hero-art .orb{width:165px}.orbit{width:205px}.hero-reply{right:9%;bottom:5%}.hero-dialogue{transform:translate(-13px,-8px) rotate(-8deg)}.hero .intro{margin-top:16px}.method{gap:5px}.method span{font-size:.78rem;padding:8px 6px}.method b{display:block}.film-library{grid-template-columns:minmax(0,1fr)}#film-list{display:flex;min-width:0;overflow:auto}#film-list button{flex:0 0 auto}}
#studio-view [aria-pressed="true"]{border-color:#5927b6;box-shadow:inset 0 0 0 1px #5927b6;background:#f0e5ff}.method span{text-align:center}#guest-tools{margin-top:12px}

.page-hero{margin:28px 0 20px;padding:34px clamp(18px,5vw,54px);border:1px solid #d8b7fa;border-radius:24px;background:#e3cdff}.page-hero h1{font:800 clamp(38px,7vw,80px)/.96 Outfit,sans-serif;letter-spacing:-.052em;margin:0}.page-hero p{font-size:1.08rem;margin-top:14px;max-width:58ch}.bar nav [aria-current=page]{background:#eee1ff;border-radius:9px;padding:3px 8px}.bar nav{gap:clamp(7px,1.2vw,20px)}
body:not([data-page=home]) #learn .hero,body:not([data-page=home]) .method,
body:not([data-page=lesson]) #lesson,body:not([data-page=lesson]) .preferences,
body:not([data-page=account]) #account-panel,body:not([data-page=account]) #account-unavailable,
body:not([data-page=roleplay]) #studio,body:not([data-page=films]) #films,body:not([data-page=course]) #journey,
body:not([data-page=practice]):not([data-page=assessment]):not([data-page=translation]) #practice,
body:not([data-page=practice]) #practice>.section-head,body:not([data-page=practice]) .practice-grid,
body:not([data-page=practice]) #practice>.actions,body:not([data-page=practice]) #offline-status,
body:not([data-page=assessment]) #assessment-panel,body:not([data-page=translation]) #translation-panel,
body:not([data-page=assessment]):not([data-page=translation]) #guest-tools,
body:not([data-page=home]):not([data-page=course]):not([data-page=lesson]):not([data-page=account]) .overview{display:none}
body[data-page=roleplay] .page-hero{background:#fae0ff}body[data-page=practice] .page-hero{background:#eff9d6}body[data-page=films] .page-hero{background:#2b194b;color:white}body[data-page=translation] .page-hero{background:#ffe4ce}body[data-page=assessment] .page-hero{background:#f2e5ff}body[data-page=account] .page-hero{background:#e1f4d5}
body[data-page=roleplay] #studio>.section-head,body[data-page=films] #films>.section-head,body[data-page=course] #journey>.section-head{display:none}
@media(max-width:650px){.bar{flex-wrap:wrap;padding-block:10px}.bar nav{width:100%;justify-content:start;gap:7px 13px}.page-hero{margin-top:15px}}

#field-mission{background:#e9f8d9;margin-bottom:16px}body:not([data-page=practice]) #field-mission{display:none}

.scene-art{position:relative;isolation:isolate;min-height:205px;overflow:hidden;background:linear-gradient(152deg,#ede4ff,#ffd9ae);gap:12px}
.scene-art::before{content:"";position:absolute;inset:16px 12px 36px;border-radius:90px 90px 22px 22px;background:#fff8df88;z-index:-1}
.scene-art::after{content:"";position:absolute;bottom:0;width:100%;height:40px;background:#ad98da66;z-index:-1}
.scene-art .actor{position:relative;width:61px;height:87px;margin:23px 0 0;border:0;border-radius:28px 28px 12px 12px;background:#336d70;box-shadow:inset -9px -5px #0002,0 5px #47347440}
.scene-art .actor-second{background:#8052aa}
.scene-art .actor::before{content:"";position:absolute;top:-29px;left:8px;width:45px;height:53px;border-radius:48% 48% 42% 42%;background:radial-gradient(circle at 34% 51%,#2c2143 2px,transparent 2.7px),radial-gradient(circle at 68% 51%,#2c2143 2px,transparent 2.7px),linear-gradient(#29233d 0 30%,#dfa179 30%);box-shadow:inset -5px -1px #68366d22}
.scene-art .actor-second::before{background:radial-gradient(circle at 34% 51%,#2c2143 2px,transparent 2.7px),radial-gradient(circle at 68% 51%,#2c2143 2px,transparent 2.7px),linear-gradient(#342541 0 26%,#b97555 26%);border-radius:49% 49% 39% 39%}
.scene-art .actor i{position:absolute;top:6px;width:10px;height:5px;border-bottom:2px solid #492945;border-radius:50%}
.scene-art .bubble{align-self:flex-start;margin-top:30px;border-radius:20px;padding:2px 15px;background:#fffdf5;box-shadow:0 4px #724b9c40}
.scene-art[data-speaker="0"] .actor-first,.scene-art[data-speaker="1"] .actor-second{outline:3px solid #fff4c9}
.scene-art.is-speaking[data-speaker="0"] .actor-first,.scene-art.is-speaking[data-speaker="1"] .actor-second{animation:hala-speech .65s ease-in-out infinite alternate}
@keyframes hala-speech{to{transform:translateY(-5px) rotate(2deg)}}
@media(prefers-reduced-motion:reduce){.scene-art.is-speaking .actor{animation:none!important}}
.film-transcript{color:var(--ink);background:#fff8eb}.film-transcript>div{border-top:1px solid var(--line);padding-block:10px}.audio-label{font-weight:500}
#film-list{max-height:475px;overflow-y:auto;padding:2px 5px 4px 2px}
#film-search{margin-bottom:8px}
#film-list button[hidden]{display:none}
@media(max-width:650px){#film-list{max-height:initial;overflow-x:auto}}

.lesson-nav {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 18px;
}
.lesson-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--violet);
  font-weight: 700;
}
.lesson-nav a:hover {
  background: #f6f1fa;
}

/* Arabic foundations */
.foundation-layout{display:grid;grid-template-columns:minmax(190px,245px) minmax(0,1fr);gap:20px;align-items:start}
.foundation-sidebar{border:1px solid var(--line);border-radius:18px;background:#fff;padding:18px}
.foundation-sidebar h2{font-size:1.25rem}
.foundation-sidebar progress{width:100%;height:12px;accent-color:var(--violet)}
#foundation-count{font-size:.9rem;color:var(--muted);margin:4px 0 12px}
#foundation-menu{display:grid;gap:4px}
#foundation-menu a{display:flex;justify-content:space-between;gap:8px;padding:7px 9px;border-radius:9px}
#foundation-menu a[aria-current=step]{background:#eee1ff;color:#3c2372}
.foundation-lesson{min-width:0}
#foundation-module{padding:clamp(16px,3vw,28px)}
#foundation-module h2{font-size:clamp(28px,4vw,42px);scroll-margin-top:16px}
#foundation-module h3{margin-top:20px}
.foundation-rule{background:#f2e8ff;padding:14px;border-radius:12px;margin-top:16px}
#foundation-module .foundation-rule h3{margin:0}
.foundation-rule p:last-child{margin-bottom:0}
.foundation-alphabet{display:grid;grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:7px}
.foundation-alphabet button{display:grid;justify-items:center;gap:2px;padding:6px}
.foundation-alphabet .foundation-letter{font:700 1.6rem/1.4 Tahoma,sans-serif}
.foundation-alphabet .foundation-letter-word{font:700 1.12rem/1.5 Tahoma,sans-serif}
.foundation-alphabet small{line-height:1.3}
.foundation-words{list-style:none;display:grid;gap:5px;margin:12px 0 0;padding:0}
.foundation-words li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding:9px 0}
.foundation-words li div{display:grid;gap:2px}
.foundation-words bdi{font:700 1.35rem/1.4 Tahoma,sans-serif;justify-self:start}
.foundation-words span{color:var(--muted)}
#foundation-audio-status:empty,.foundation-feedback:empty{display:none}
#foundation-audio-status,.foundation-feedback{color:var(--violet)}
#foundation-module fieldset{min-width:0;margin:12px 0;padding:10px 13px;border:1px solid var(--line);border-radius:10px}
#foundation-module legend{font-weight:700}
#foundation-module [aria-pressed=true]{background:#eee1ff;border-color:var(--violet)}
@media(max-width:650px){
  .foundation-layout{grid-template-columns:minmax(0,1fr)}
  #foundation-menu{grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr))}
}

/* Numbers, prices and quantities */
.number-progress{margin-block:18px 10px;padding:12px 15px;background:#eff9dc;border:1px solid #d9e9bb;border-radius:14px;display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px}
#foundation-module .number-progress h3{margin:0;font-size:1.1rem}
.number-progress p{margin:2px 0 0;color:var(--muted)}
.number-progress progress{min-width:84px;flex:1;max-width:220px;accent-color:#506639}
.number-stops{display:flex;flex-wrap:wrap;justify-content:start;gap:6px;margin-bottom:12px}
.number-stops button{min-width:44px;min-height:44px;padding:6px}
.number-stops [aria-current=step]{background:#e7d9ff;border-color:var(--violet)}
.number-mission{border:1px solid #d6bffd;background:#f9f4ff;border-radius:14px;padding:clamp(12px,3vw,22px)}
#foundation-module .number-mission h3{margin:0;font-size:1.65rem;scroll-margin-top:16px}
.number-mission .eyebrow{margin-bottom:4px}
.number-mission [data-audio]{min-height:44px}
.number-mission .choices button{min-height:44px;text-align:start}
.number-feedback:empty{display:none}
.number-hint{border-inline-start:3px solid #c18f37;padding:8px 10px;background:#fff6df}
.number-reply{display:grid;gap:4px;margin-block:12px;padding:12px;border-radius:11px;background:#fff}
.number-reply bdi{font:700 1.25rem/1.55 Tahoma,sans-serif}
.number-reply small{display:block;color:var(--muted)}
.number-reply p,.number-reply h4{margin:0}
.number-win{margin-top:12px;background:#eaf6d4;padding:10px 12px;border-radius:11px}
.number-reference{padding:8px 12px;border:1px solid var(--line);border-radius:10px}
.number-examples{padding:0;margin:4px 0 0;list-style:none}
.number-examples li{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px 10px;border-top:1px solid var(--line);padding:7px 0}
.number-examples li div{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 10px}
.number-script-digits{color:#5031ab;font-weight:700}
.number-examples small{color:var(--muted)}

.secure-film {
  --picture-ratio: 800 / 346;
  --film-width: 960px;
  width: min(100%, var(--film-width));
  margin: 12px auto;
}
.secure-film-first-week {
  --picture-ratio: 880 / 570;
  --film-width: min(880px, 106svh);
}
.film-language, .film-sign-in {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 0 0 12px;
}
.film-language select { min-height: 44px; }
.film-sign-in a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #f5ebff;
  color: #33205e;
  font-weight: 700;
}
.film-picture {
  /* The old files have fixed English subtitles in the lower band. */
  aspect-ratio: var(--picture-ratio);
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #18132b;
}
.secure-film .film-picture video {
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
}
.film-captions, .film-controls, .film-status {
  margin: 0;
  background: #18132b;
  color: white;
}
.film-captions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 7.5rem;
  padding: 8px 12px;
  text-align: center;
  overflow-wrap: anywhere;
}
.film-captions p { margin: 0; }
.film-captions [lang="ar"] { font-size: clamp(1.12rem, 1rem + 0.7vw, 1.55rem); }
.film-captions .film-roman { font-size: .85rem; color: #e0d1ff; }
.film-captions [lang="ur"] {
  font-family: Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  font-size: clamp(1.02rem, 1rem + .4vw, 1.3rem);
  line-height: 1.8;
}
.film-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 8px;
  border-radius: 0 0 12px 12px;
}
.film-controls button {
  min-height: 44px;
  padding: 4px 10px;
  background: #f5ebff;
  color: #33205e;
}
.film-controls input { flex: 1 1 84px; min-width: 65px; min-height: 44px; accent-color: #d9bbff; }
.film-controls span { white-space: nowrap; font-size: .88rem; font-variant-numeric: tabular-nums; }
.film-status { padding: 8px 12px; border-radius: 8px; }
@media (min-width: 651px) and (max-width: 820px) {
  .film-library { grid-template-columns: minmax(0, 1fr); }
  #film-list { display: flex; min-width: 0; max-height: none; overflow-x: auto; }
  #film-list button { flex: 0 0 auto; }
}

/* Shared navigation and learning surfaces. */
:root {
  --ink: #251a3b;
  --muted: #50465f;
  --violet: #5526a9;
  --cream: #f8f5ef;
  --line: #ded5e8;
  --campus-deep: #292043;
  --campus-lavender: #eee7fa;
  --campus-mint: #eaf2d9;
  --campus-peach: #fff0e3;
}
body { background: var(--cream); }
.bar, main, footer { max-width: 1220px; }
.site-header { background: #fffcf7; position: relative; }
.site-header .bar { min-height: 76px; gap: clamp(14px, 3vw, 36px); }
.site-header .brand { color: var(--campus-deep); font-family: Outfit, "DM Sans", sans-serif; font-size: 1.15rem; }
.site-header .brand span { background: var(--campus-deep); }
.site-header .campus-nav { flex: 1; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; width: auto; }
.campus-nav-primary, .campus-nav-tools { display: flex; align-items: stretch; gap: 4px; }
.campus-nav-primary { padding: 3px; background: #f4eff8; border-radius: 14px; }
.site-header .campus-nav a, .site-header .campus-nav [aria-current] {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--campus-deep);
  text-decoration: none;
  white-space: nowrap;
  font-size: .92rem;
}
.site-header .campus-nav a:hover { background: #e7dbf7; }
.site-header .campus-nav [aria-current] { border-color: #c6afe8; background: #e8dbfa; color: #3e1b7f; }
.site-header .campus-nav a[href="account.html"] { border-color: #d0bce9; }
.skip-content { position: absolute; top: 8px; left: 12px; z-index: 2; transform: translateY(-150%); padding: 9px 14px; background: white; color: var(--ink); border-radius: 8px; }
.skip-content:focus { transform: none; }
:where(a, button, input, select, summary, textarea):focus-visible { outline: 3px solid #6b37c2; outline-offset: 3px; }
:where(.cta, .hero-link, button.primary, button.secondary, .choices button, .lesson-nav a) {
  min-height: 44px;
}
.cta, .hero-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.cta, button.primary { background: var(--violet); border-color: var(--violet); }
.cta:hover, button.primary:not(:disabled):hover { background: #421a8a; border-color: #421a8a; }
.hero-link { padding: 9px 14px; border-radius: 10px; border: 1px solid #ab88d6; color: #381d69; background: #fffaf4; }
.hero-link:hover, button.secondary:not(:disabled):hover, .choices button:not(:disabled):hover { background: #f2eafb; text-decoration: none; }
button.secondary:not(:disabled).selected:hover, #film-list button[aria-pressed="true"] { background: #5526a9; color: white; }
#studio-topics button[aria-pressed="true"] { background: #5526a9; color: white; }
button:disabled { cursor: default; }
.page-hero, body[data-page] .page-hero { background: var(--campus-lavender); border-color: var(--line); color: var(--ink); }
body[data-page=films] .page-hero { background: var(--campus-deep); color: #fffaf4; }
body[data-page=translation] .page-hero { background: var(--campus-peach); }
body[data-page=practice] .page-hero, body[data-page=account] .page-hero { background: var(--campus-mint); }
.page-hero h1 { font-size: clamp(2.2rem, 6.2vw, 4.2rem); line-height: 1.02; }
body[data-page=home] .hero {
  background: linear-gradient(120deg, #efe5fa 12%, #e1cff3 100%);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  border: 1px solid #ddcbea;
}
body[data-page=home] .hero h1 { font-size: clamp(2.65rem, 5.85vw, 5.6rem); }
body[data-page=home] .hero .intro { max-width: 42ch; }
.learning-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.learning-paths a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fffcf7;
  color: var(--ink);
  text-decoration: none;
}
.learning-paths a:hover { border-color: #a887d0; background: #f0e9f8; }
.learning-paths strong { font: 700 1.13rem/1.15 Outfit, "DM Sans", sans-serif; }
.learning-paths span:not(.path-arrow) { grid-column: 1; color: var(--muted); font-size: .92rem; }
.learning-paths .path-arrow { grid-area: 1 / 2 / span 2; align-self: center; color: var(--violet); font-size: 1.2rem; }
#roadmap .days li { padding: 0; background: #f4effa; }
#roadmap .days a { display: flex; align-items: center; min-height: 44px; padding: 8px 11px; border-radius: inherit; }
#roadmap .days a:hover { background: #e9def8; }
.lesson-film { margin-top: 18px; padding: clamp(14px, 3vw, 24px); background: #f5eefb; border: 1px solid var(--line); border-radius: 16px; }
.lesson-film [data-film-player] { margin: 12px 0 0; }
.lesson-film .film-sign-in { margin-bottom: 0; }
.lesson-film .film-sign-in a { background: var(--violet); color: #fff; text-decoration: none; }
.lesson-film .film-sign-in a:hover { background: #421a8a; }
.lesson-watch-actions { margin: 14px 0; }
.lesson-transcript summary { min-height: 44px; padding-block: 9px; }
#film-list button { min-height: 44px; }

@media (max-width: 920px) {
  .site-header .bar { flex-direction: column; align-items: stretch; padding-block: 10px; gap: 8px; }
  .site-header .brand { align-self: flex-start; }
  .site-header .campus-nav { width: 100%; }
}
@media (max-width: 650px) {
  .site-header .bar { padding-inline: 16px; }
  .site-header .campus-nav { flex-direction: column; align-items: stretch; gap: 2px; }
  .campus-nav-primary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .campus-nav-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-header .campus-nav a, .site-header .campus-nav [aria-current] { padding-inline: 3px; font-size: .82rem; }
  .site-header .campus-nav-tools a[href="account.html"] { border-color: transparent; }
  .site-header .campus-nav-tools a[aria-current] { border-color: #c6afe8; }
  body[data-page=home] .hero, .learning-paths { grid-template-columns: minmax(0, 1fr); }
  body[data-page=home] .hero-art { min-height: 188px; }
  .learning-paths a { padding-block: 13px; }
}

/* Account controls keep registration separate from returning sign-in. */
#account-form .account-mode{flex-basis:100%;margin-bottom:8px}
#account-form .account-mode [aria-pressed=true]{background:var(--ink);color:#fff}
#account-form label.remember-signin{display:flex;align-items:center;gap:10px;flex-basis:100%;font-size:.95rem}
#account-form .remember-signin input{width:18px;height:18px;flex:0 0 auto;accent-color:#5031ab}
#account-form .account-help{flex-basis:100%;font-size:.9rem;color:var(--muted);margin:0}
#account-form button[hidden],#account-form label[hidden]{display:none!important}
#account-form label>button{font-size:.85rem;padding:6px 10px;justify-self:start}


/* Shared learning surfaces and action hierarchy */
:root {
  --cream: #f8f5ef;
  --ink: #25203c;
  --muted: #59546b;
  --violet: #522a9d;
  --line: #dcd4e9;
  --campus-deep: #30204d;
  --campus-lavender: #eee7fa;
  --campus-peach: #f9e8d7;
  --campus-mint: #e4f1e9;
  --lime: #e4f1e9;
}
body { background: var(--cream); }
.site-header { background: #fffdfb; }
.campus-nav-primary { background: #f2edf8; }
.site-header .campus-nav a[aria-current] {
  background: #e9dff7;
  box-shadow: inset 0 -2px var(--violet);
}
body[data-page=home] .hero {
  background: var(--campus-lavender);
  border-color: var(--line);
  padding: clamp(22px, 5vw, 68px);
}
body[data-page=home] .hero h1 {
  font-size: clamp(2.5rem, 5.1vw, 5rem);
  line-height: 1.03;
}
.hero-dialogue .arabic-big { background: #fffdfb; }
.hero-art .orb { background: #edb27b; }
.hero-link { background: #fffdfb; color: var(--violet); }
.home-preview-link {
  align-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 6px;
  color: var(--violet);
  text-underline-offset: .2em;
}
.overview { gap: 12px; }
.overview > div, .learning-paths a { background: #fffdfb; border-color: var(--line); }
.overview > div:last-child { background: var(--campus-mint); color: #24523b; }
.track { background: #e9dff7; }
.track span { background: var(--violet); }
.learning-paths { margin-block: 16px 24px; }
.learning-paths a:hover { background: #eee7fa; border-color: #9277bd; }
.learning-paths .path-arrow { color: var(--violet); }
:where(a, button, input, select, summary, textarea):focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}
@media (max-width: 650px) {
  body[data-page=home] .hero-art { min-height: 205px; }
  .hero .actions { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .track span { transition: none; }
  .bubble { animation: none; }
}

/* HalaSpeak learning theme */
:root {
  --ink: #20223a;
  --muted: #52566c;
  --violet: #5831a7;
  --line: #e4dff0;
  --cream: #faf9fd;
}
.site-header { background: #fff; }
.site-header .bar, main, footer { max-width: 1220px; }
.campus-nav-primary { background: #f4f1fb; border-radius: 14px; }
body[data-page=home] .hero {
  background: #241838;
  color: #fff;
  border: 0;
  border-radius: 28px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
}
body[data-page=home] .hero h1 em { color: #e1ccff; font-style: normal; }
body[data-page=home] .hero .intro, body[data-page=home] .hero .eyebrow { color: #e6daef; }
body[data-page=home] .hero .intro { max-width: 34ch; }
body[data-page=home] .hero .cta { color: #241838; background: #e1ccff; border-color: #e1ccff; }
body[data-page=home] .hero .cta:hover { background: white; }
body[data-page=home] .hero-link { color: white; background: transparent; border-color: #ad96c2; }
body[data-page=home] .home-preview-link { color: #f3e8ff; }
body[data-page=home] .hero :focus-visible { outline-color: #f4d488; }
body[data-page=home] .hero-art .orb { background: #e5ad70; }
.learning-paths a { padding: 20px; background: #fff; border-radius: 16px; }
.learning-paths a strong { font-family: Outfit, "DM Sans", sans-serif; font-size: 1.17rem; }
.learning-paths a:nth-child(2) { background: #f1eafb; }
.learning-paths a:nth-child(3) { background: #eaf5ee; }
.learning-paths a:hover { background: #fff; border-color: var(--violet); }
.overview > div, .studio-card, .lesson-film { border-radius: 16px; }
.secure-film .film-captions p { min-block-size: 1.45em; }
@media (max-width: 650px) {
  body[data-page=home] .hero { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
  body[data-page=home] .hero h1 { font-size: clamp(2.2rem, 9vw, 3.3rem); }
  .learning-paths a { padding: 16px; }
}

/* Learning activity navigation */
.learning-hub { margin-block: clamp(26px, 4vw, 46px); }
.learning-hub-heading h2 { font-size: clamp(1.65rem, 3.5vw, 2.35rem); }
.learning-hub .learning-paths {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 0;
}
.learning-hub .learning-paths a {
  --activity-accent: #5831a7;
  --activity-tint: #efe7fb;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 7px 10px;
  min-height: 152px;
  padding: 18px;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  text-decoration: none;
}
.learning-hub .learning-paths a:nth-child(2) { --activity-tint: #fbe9dc; --activity-accent: #833b22; }
.learning-hub .learning-paths a:nth-child(3) { --activity-tint: #e4f4ea; --activity-accent: #245841; }
.learning-hub .learning-paths a:nth-child(4) { --activity-tint: #e6ecfb; --activity-accent: #344c88; }
.learning-hub .activity-icon {
  grid-area: 1 / 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--activity-tint);
  color: var(--activity-accent);
  font-size: 1.18rem;
}
.learning-hub .learning-paths strong { grid-area: 2 / 1 / 3 / -1; }
.learning-hub .activity-description { grid-area: 3 / 1 / 4 / -1; color: var(--muted); }
.learning-hub .learning-paths .path-arrow { grid-area: 1 / 2; color: var(--activity-accent); }
.learning-hub .learning-paths a:hover {
  background: var(--activity-tint);
  border-color: var(--activity-accent);
}
.site-header .campus-nav a { min-height: 44px; }
body[data-page=home] .hero .cta, body[data-page=home] .hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}
@media (max-width: 850px) {
  .learning-hub .learning-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .learning-hub .learning-paths { gap: 9px; }
  .learning-hub .learning-paths a { min-height: 136px; padding: 12px; }
  body[data-page=home] .hero .cta { width: 100%; }
}

/* Navigation, reading rhythm and controls */
:root { --cream: #f9f8fc; --ink: #231c33; --muted: #51485f; --violet: #53309b; --line: #e5deee; }
.site-header .bar { min-height: 82px; gap: clamp(12px, 3vw, 36px); }
.site-header .brand { font-family: Outfit, "DM Sans", sans-serif; font-size: 1.22rem; }
.site-header .campus-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #382950;
  font-weight: 700;
  text-decoration: none;
}
.site-header .campus-nav a:hover { background: #eee6fa; }
.site-header .campus-nav a[aria-current="page"] { color: #402078; background: #e9dcfa; }
.site-header .campus-nav a[href="account.html"]:not([aria-current]) {
  color: #fff;
  background: #46277e;
  border-color: #46277e;
}
.site-header .campus-nav a[href="account.html"]:not([aria-current]):hover { background: #382064; }
body[data-page=home] .hero { margin-top: clamp(18px, 4vw, 44px); }
body[data-page=home] .hero .intro { max-width: 45ch; font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.65; }
body[data-page=home] .hero .actions { gap: 12px; }
body[data-page=home] .hero-link:hover { color: #241838; background: #f2e7ff; }
.learning-hub .learning-paths { gap: clamp(10px, 2vw, 20px); }
.learning-hub .learning-paths a { padding: clamp(14px, 2vw, 22px); min-height: 168px; }
.learning-hub .learning-paths strong { font-size: 1.2rem; line-height: 1.3; }
.learning-hub .activity-description { font-size: .96rem; line-height: 1.5; }
main button.primary, main button.secondary { min-height: 44px; }
@media (max-width: 650px) {
  .site-header .bar { min-height: auto; gap: 8px; }
  .site-header .campus-nav { gap: 6px; }
  .site-header .campus-nav a { font-size: .83rem; }
  .learning-hub .learning-paths a { min-height: 152px; }
}
@media (max-width: 345px) {
  .learning-hub .learning-paths { grid-template-columns: minmax(0, 1fr); }
  .learning-hub .learning-paths a { min-height: auto; }
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(24px, 5.5vw, 72px);
  margin-top: clamp(18px, 4vw, 44px);
  background: linear-gradient(135deg, #f1ebff, #faf7ff 57%, #e8f4ef);
  border: 1px solid #e5dbf5;
  border-radius: 28px;
}
.home-intro h1 {
  margin: 12px 0 16px;
  color: #291b44;
  font: 700 clamp(2.75rem, 6vw, 5.8rem)/.98 Outfit, "DM Sans", sans-serif;
  letter-spacing: -.05em;
}
.home-course-label { margin: 0; color: #563394; font-weight: 750; }
.home-intro-copy > p:not(.home-course-label) { max-width: 42ch; color: #514563; font-size: 1.07rem; line-height: 1.65; margin: 0; }
.home-intro-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.home-intro-actions a, .home-demo { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 10px 17px; border-radius: 12px; font-weight: 750; text-decoration: none; }
.home-start { background: #4d2890; color: white; }
.home-start:hover { background: #3d2072; }
.home-secondary { background: #fff; color: #45277d; border: 1px solid #dbceee; }
.home-secondary:hover { background: #f6efff; }
.home-dialogue { min-width: 0; padding: clamp(15px, 2.6vw, 26px); background: #fff; border: 1px solid #e8dff2; border-radius: 22px; box-shadow: 0 12px 36px #41266612; }
.home-dialogue-heading { display: flex; gap: 11px; align-items: center; }
.home-dialogue-mark { display: grid; place-items: center; flex: 0 0 42px; height: 42px; background: #eee4fc; color: #4d2890; border-radius: 12px; font-size: 1.4rem; }
.home-dialogue h2 { font-size: clamp(1.06rem, 2vw, 1.4rem); }
.home-dialogue-heading p { color: #5a5068; font-size: .88rem; margin: 3px 0 0; }
.home-example { display: grid; gap: 9px; padding-block: 19px; }
.home-bubble { width: fit-content; max-width: 100%; margin: 0; padding: 9px 14px; background: #f1e9ff; color: #372356; border-radius: 13px 13px 13px 4px; }
.home-bubble-reply { justify-self: end; background: #e7f4ed; color: #234737; border-radius: 13px 13px 4px 13px; }
.home-bubble strong, .home-bubble span { display: block; }
.home-bubble strong { font-size: 1.35rem; }
.home-bubble span { font-size: .85rem; }
.home-demo { display: flex; color: #472583; background: #f7f2ff; }
.home-demo:hover { background: #eee2ff; }
.home-demo span:last-child { margin-left: auto; }
@media (max-width: 720px) {
  .home-intro { grid-template-columns: minmax(0,1fr); border-radius: 20px; }
}
@media (max-width: 400px) {
  .home-intro-actions a { width: 100%; }
}

/* Homepage lesson imagery and boxed Arabic dialogue */
.home-intro { gap: clamp(28px, 5vw, 68px); }
.home-dialogue { padding: 0; overflow: hidden; position: relative; }
.home-dialogue-heading { padding: 17px 20px; }
.home-dialogue-image { display: block; width: 100%; height: auto; aspect-ratio: 2.3; object-fit: cover; object-position: center 42%; }
.home-example { margin-top: -19px; position: relative; padding: 0 18px 14px; }
.home-bubble { box-shadow: 0 3px 14px #2f1b4914; border: 1px solid #e2d5f6; }
.home-bubble-reply { border-color: #cae6d8; }
.home-bubble strong { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.35; }
.home-demo { margin: 0 18px 18px; }
.home-scenes { margin-block: clamp(32px, 5vw, 60px); }
.home-scenes h2 { font-size: clamp(1.65rem, 3.5vw, 2.35rem); margin-bottom: 16px; }
.home-scenes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 3vw, 24px); }
.home-scenes-grid a { display: block; overflow: hidden; color: #35224f; background: #fff; border: 1px solid #e5deee; border-radius: 18px; text-decoration: none; }
.home-scenes-grid a:hover { border-color: #8969b5; background: #f5edff; }
.home-scenes-grid img { display: block; width: 100%; height: auto; aspect-ratio: 2.3; object-fit: cover; }
.home-scenes-grid a > span { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 56px; padding: 12px 18px; }
.home-scenes-grid a > span > span { color: #53309b; }
@media (max-width: 520px) {
  .home-scenes-grid { grid-template-columns: minmax(0, 1fr); }
  .home-dialogue-heading { padding: 14px; }
  .home-example { padding-inline: 14px; }
  .home-demo { margin-inline: 14px; }
}

.home-intro .hero-art { min-height: clamp(275px, 31vw, 365px); }
.home-intro .hero-art .arabic-big { font-size: clamp(4.3rem, 9.5vw, 7.9rem); }
.home-intro .hero-art .orb { background: #edb481; }
.home-intro .hero-art .hero-reply { background: #e4f1e9; }
.home-intro .hero-art .hero-dialogue { transform: translate(-16px, -24px) rotate(-8deg); }
.home-scenes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) {
  .home-intro .hero-art { min-height: clamp(210px, 60vw, 300px); }
  .home-intro .hero-art .orbit { width: min(80%, 270px); }
  .home-intro .hero-art .orb { width: min(60%, 210px); }
}
@media (max-width: 620px) {
  .home-scenes-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Illustrated navigation to the four learning activities */
.learning-hub .learning-paths a {
  grid-template-rows: auto auto auto 1fr;
  padding: 0 14px 16px;
  overflow: hidden;
}
.learning-hub .activity-image {
  grid-area: 1 / 1 / 2 / -1;
  display: block;
  width: calc(100% + 28px);
  max-width: none;
  height: auto;
  aspect-ratio: 1.95;
  object-fit: cover;
  object-position: center 42%;
  margin: 0 -14px 5px;
}
.learning-hub .activity-icon { grid-area: 2 / 1; }
.learning-hub .learning-paths .path-arrow { grid-area: 2 / 2; }
.learning-hub .learning-paths strong { grid-area: 3 / 1 / 4 / -1; }
.learning-hub .activity-description { grid-area: 4 / 1 / 5 / -1; }
.home-scenes-grid a > span { min-height: 48px; }
@media (max-width: 420px) {
  .learning-hub .learning-paths a { padding-inline: 10px; }
  .learning-hub .activity-image { width: calc(100% + 20px); margin-inline: -10px; }
}

/* Shared page spacing and activity hierarchy */
.site-header { background: #fff; }
.site-header .campus-nav a[href="account.html"]:not([aria-current]) {
  background: var(--campus-deep);
  color: #fff;
}
body:not([data-page="home"]) .page-hero {
  margin-block: clamp(22px, 4vw, 48px) clamp(22px, 3vw, 34px);
  padding-block: clamp(26px, 5vw, 52px);
  border-radius: 26px;
}
body:not([data-page="home"]) .page-hero p {
  max-width: 58ch;
  margin-bottom: 0;
  line-height: 1.6;
}
main :is(input, textarea, select):focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}
main :is(button.primary, button.secondary, .choices button) { min-height: 44px; }
.learning-hub { margin-block: clamp(28px, 5vw, 60px); }
.learning-hub .learning-paths { gap: clamp(10px, 1.8vw, 22px); }
.learning-hub .learning-paths a { min-width: 0; }
.learning-hub .learning-paths a:hover {
  border-color: var(--violet);
  box-shadow: 0 6px 20px #4323741a;
}
footer { margin-top: clamp(32px, 6vw, 72px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .learning-hub .learning-paths a { transition: none; }
}

/* HalaSpeak product theme */
:root {
  --hs-navy: #172448;
  --hs-blue: #3e46bd;
  --hs-blue-hover: #303697;
  --hs-lavender: #eef0ff;
  --hs-mint: #e7f8f3;
  --hs-peach: #fff1e7;
  --hs-border: #dce3f3;
  --hs-shadow: 0 14px 38px #24366f12;
}
body { background: #f7f8fd; }
.site-header { background: #fff; border-bottom: 1px solid var(--hs-border); }
.site-header .brand { color: var(--hs-navy); }
.site-header .brand span { background: var(--hs-blue); }
.site-header .campus-nav-primary { background: #f0f2fb; padding: 4px; border-radius: 999px; }
.site-header .campus-nav a { border-radius: 999px; color: var(--hs-navy); }
.site-header .campus-nav a:hover { background: #e1e6fb; }
.site-header .campus-nav a[aria-current] {
  background: #fff; color: #303697; border-color: #d4dbf5;
  box-shadow: 0 2px 6px #24366f12;
}
.site-header .campus-nav a[href="account.html"]:not([aria-current]) {
  background: var(--hs-blue); border-color: var(--hs-blue); color: #fff;
}
.site-header .campus-nav a[href="account.html"]:not([aria-current]):hover { background: var(--hs-blue-hover); }

body[data-page] .page-hero {
  margin-block: clamp(20px, 4vw, 45px) clamp(22px, 4vw, 42px);
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid #dbe1fa;
  border-radius: clamp(20px, 4vw, 36px);
  background: linear-gradient(120deg, #e9edff, #f7f8ff);
  color: var(--hs-navy);
}
body[data-page="roleplay"] .page-hero, body[data-page="translation"] .page-hero {
  background: linear-gradient(120deg, #fce9ff, #f8f5ff);
}
body[data-page="practice"] .page-hero, body[data-page="foundations"] .page-hero {
  background: linear-gradient(120deg, #def6ec, #effaf7);
}
body[data-page="assessment"] .page-hero { background: linear-gradient(120deg, #fff0db, #fff8ed); }
body[data-page="films"] .page-hero { background: linear-gradient(120deg, #172448, #363d98); color: #fff; }
.page-hero h1 { max-width: 20ch; letter-spacing: -.048em; }
.page-hero p { font-size: clamp(1rem, 2vw, 1.18rem); }
main h2, main h3 { text-wrap: balance; }

main :is(article, details, .overview > div, .foundation-sidebar) {
  border-color: var(--hs-border);
  box-shadow: var(--hs-shadow);
}
main :is(#lesson, .studio-card, .practice-grid article, #translation-panel, #assessment-panel, #account-panel) {
  background: #fff;
  border-radius: 22px;
}
main :is(.page-hero, .home-intro-actions, #lesson, #practice, #studio, #account-panel, #journey, #films, .foundation-layout)
  :is(.cta, button.primary) {
  background: var(--hs-blue); border-color: var(--hs-blue); color: #fff;
  border-radius: 999px;
}
main :is(.page-hero, .home-intro-actions, #lesson, #practice, #studio, #account-panel, #journey, #films, .foundation-layout)
  :is(.cta, button.primary):hover { background: var(--hs-blue-hover); border-color: var(--hs-blue-hover); }
main :is(button.secondary, .choices button, .lesson-nav a) {
  border-color: #ccd5ef; border-radius: 12px; color: var(--hs-navy);
}
main :is(input:not([type="range"]), select, textarea) {
  border-color: #c9d2eb; border-radius: 12px;
}
main :is(a, button, input, select, textarea):focus-visible { outline-color: var(--hs-blue); }
main #roadmap .days li { background: #f0f3fd; }
main #roadmap .days a:hover { background: #e0e8fc; }
.learning-hub .learning-paths a, .home-scenes-grid > a {
  background: #fff; border-color: var(--hs-border); box-shadow: var(--hs-shadow);
  border-radius: 24px;
}
.learning-hub .learning-paths a:nth-child(2) { background: var(--hs-lavender); }
.learning-hub .learning-paths a:nth-child(3) { background: var(--hs-mint); }
.learning-hub .learning-paths a:nth-child(4) { background: var(--hs-peach); }
.learning-hub .learning-paths a:hover, .home-scenes-grid > a:hover { border-color: var(--hs-blue); }
#film-screen { background: var(--hs-navy); }
footer { color: #354364; border-color: var(--hs-border); }

@media (max-width: 650px) {
  .site-header .campus-nav-primary { border-radius: 18px; }
  body[data-page] .page-hero { padding: 26px 20px; }
  .learning-hub .learning-paths a, .home-scenes-grid > a { border-radius: 18px; }
}

.ai-tutor { margin-block: 40px; }
.ai-tutor form { display: grid; gap: 16px; }
.ai-tutor label { display: grid; gap: 6px; }
.ai-tutor textarea { width: 100%; font: inherit; padding: 12px; }
.ai-tutor [data-messages] { max-height: 560px; overflow-y: auto; }
.ai-tutor .studio-message p { white-space: pre-line; }
.ai-tutor [lang="ar"] { font-size: 1.4rem; line-height: 1.8; }

/* AI learning introduction */
.ai-learning { margin-block: clamp(36px, 7vw, 80px); }
.ai-learning-heading { max-width: 760px; margin-bottom: 24px; }
.ai-learning-heading h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.ai-learning-heading > p:last-child { color: #514563; max-width: 58ch; }
.ai-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ai-benefits article { min-width: 0; padding: 25px; background: #fff; }
.ai-benefits article:nth-child(2) { background: #f1eaff; }
.ai-benefits article:nth-child(3) { background: #eaf6ed; }
.ai-benefits h3 { margin-top: 18px; font-size: 1.35rem; }
.ai-benefits p { color: #493e5e; margin-bottom: 0; }
.ai-feature-icon { display: grid; place-items: center; width: 42px; height: 42px; background: #fff; color: #5031ab; border: 1px solid #ded5e8; border-radius: 12px; font-weight: 800; }
.ai-learning-cta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding: clamp(20px, 4vw, 36px); margin-top: 20px; border-radius: 24px; background: #e9edff; }
.ai-learning-cta p { margin-bottom: 0; max-width: 52ch; }
.ai-learning-cta .cta { border-radius: 99px; display: inline-flex; gap: 14px; }
.ai-tutor { scroll-margin-top: 30px; }
.home-intro .hero-art .orb { background: #f6bf66; }
.home-intro .hero-art .arabic-big { background: #fff8ed; color: #3c2784; border-color: #332365; box-shadow: 8px 8px #332365; }
.home-intro .hero-art .hello { background: #5031ab; color: #fff; }
.home-intro .hero-art .hero-reply { background: #d9f58b; color: #331760; border-color: #331760; box-shadow: 5px 5px #331760; }
@media (max-width: 720px) { .ai-benefits { grid-template-columns: minmax(0,1fr); } .ai-learning-cta .cta { width: 100%; } }

/* Editorial layout with restrained learning surfaces */
.site-header { border-bottom: 1px solid #e6e2dc; background: #fffdf9; }
.campus-nav-primary { background: transparent; padding: 0; }
.site-header .campus-nav a, .site-header .campus-nav [aria-current] {
  border-radius: 6px; box-shadow: none;
}
.site-header .campus-nav a[aria-current] { background: #f0ece5; border-color: transparent; color: #302846; }
body[data-page] .page-hero {
  background: #f2efe8; color: #282232; border-color: transparent; border-radius: 12px;
}
body[data-page="films"] .page-hero { background: #29243a; color: #fff; }
body[data-page="practice"] .page-hero, body[data-page="foundations"] .page-hero { background: #edf1e9; }
body[data-page="translation"] .page-hero, body[data-page="roleplay"] .page-hero { background: #f0ecf4; }
main :is(article, details, .overview > div, .foundation-sidebar) { box-shadow: none; }
main :is(#lesson, .studio-card, .practice-grid article, #translation-panel, #assessment-panel, #account-panel) { border-radius: 12px; }
.learning-hub .learning-paths a, .home-scenes-grid > a {
  background: #fffdf9; box-shadow: none; border-color: #e1ddd5; border-radius: 12px;
}
.learning-hub .learning-paths a:nth-child(n) { background: #fffdf9; }
.learning-hub .learning-paths a:hover, .home-scenes-grid > a:hover { box-shadow: none; border-color: #7a698d; }
.ai-benefits { gap: 0; border-top: 1px solid #ded9d0; border-bottom: 1px solid #ded9d0; }
.ai-benefits article:nth-child(n) { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 26px 22px; }
.ai-benefits article + article { border-inline-start: 1px solid #ded9d0; }
.ai-benefits h3 { margin-top: 0; }
.ai-learning-cta { border-radius: 0; border-top: 1px solid #ded9d0; padding-inline: 0; background: transparent; }
.ai-learning-cta .cta { border-radius: 7px; }
main :is(.page-hero, .home-intro-actions, #lesson, #practice, #studio, #account-panel, #journey, #films, .foundation-layout)
 :is(.cta, button.primary) { border-radius: 7px; }
@media (max-width: 720px) {
 .ai-benefits article + article { border-inline-start: 0; border-top: 1px solid #ded9d0; }
 .ai-benefits article:nth-child(n) { padding-inline: 0; }
}

.ai-learning .ai-learning-cta { background: #f0ecf7; border: 1px solid #e0d7eb; border-radius: 16px; padding: clamp(22px,4vw,38px); }
.ai-learning-cta h2 { font-size: clamp(1.55rem,3vw,2.2rem); }

/* Films library: light canvas with a distinct, readable player */
body[data-page="films"] { background: #faf9f6; }
body[data-page="films"] .page-hero {
  background: #eee8f7; color: #302540; border: 1px solid #ded3ed;
}
body[data-page="films"] #film-screen { background: #fff; color: #302540; border-color: #e0d9e8; }
body[data-page="films"] #film-screen .muted { color: #5c5268; }
body[data-page="films"] #film-list button {
  box-sizing: border-box;
  height: auto;
  min-height: 44px;
  line-height: 1.25;
  padding-block: 9px;
  white-space: normal;
  overflow-wrap: anywhere;
  background: #fff; color: #3d3151; border: 1px solid #ded7e7;
}
body[data-page="films"] #film-list button:hover { background: #f0eafa; border-color: #a68bc6; }
body[data-page="films"] #film-list button[aria-pressed="true"],
body[data-page="films"] #film-list button.selected {
  background: #51317d; color: #fff; border-color: #51317d;
}
body[data-page="films"] .film-language { color: #40314f; }
body[data-page="films"] .film-language select { background: #fff; color: #302540; }
body[data-page="films"] .film-captions,
body[data-page="films"] .film-controls,
body[data-page="films"] .film-status { background: #f3eef9; color: #302540; }
body[data-page="films"] .film-captions .film-roman { color: #634981; }
body[data-page="films"] .film-controls { border-top: 1px solid #ded3ed; }
body[data-page="films"] .film-controls button { background: #fff; color: #47296c; border: 1px solid #cdbdde; }
body[data-page="films"] .film-controls button:hover { background: #e6dcf3; }
body[data-page="films"] .film-controls input { accent-color: #63418c; }
body[data-page="films"] .film-sign-in a { color: #51317d; }

/* Keep the hero and AI tutor introduction visually distinct. */
.home-intro { position: relative; isolation: isolate; margin-bottom: 0; }
.home-intro-copy { min-width: 0; }
.home-intro h1 { line-height: 1.06; overflow-wrap: normal; }
.home-intro + .ai-learning {
  display: block;
  clear: both;
  position: relative;
  margin: clamp(32px, 5vw, 60px) 0;
}
.ai-learning .ai-learning-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(20px, 4vw, 48px);
  row-gap: 24px;
  margin: 0;
  padding: clamp(24px, 4vw, 40px);
  background: #f0ecf7;
  border: 1px solid #ded3eb;
  border-radius: 18px;
}
.ai-learning-cta > div { display: grid; gap: 14px; min-width: 0; }
.ai-learning-cta .eyebrow { margin: 0; font-size: .75rem; line-height: 1.5; letter-spacing: .09em; }
.ai-learning-cta h2 { margin: 0; max-width: 25ch; font-size: clamp(1.5rem, 2.8vw, 2.15rem); line-height: 1.2; letter-spacing: -.025em; }
.ai-learning-cta p:not(.eyebrow) { margin: 0; max-width: 54ch; color: #514563; line-height: 1.65; }
.ai-learning-cta > .cta { margin: 0; align-self: center; white-space: nowrap; }
@media (max-width: 780px) {
  .ai-learning .ai-learning-cta { grid-template-columns: minmax(0, 1fr); }
  .ai-learning-cta > .cta { justify-self: start; width: auto; }
}
@media (max-width: 420px) {
  .ai-learning .ai-learning-cta { padding: 24px 20px; }
  .ai-learning-cta > .cta { width: 100%; white-space: normal; }
}

.site-faq { margin-block: clamp(32px,6vw,64px); }
.site-faq details { margin-bottom: 10px; }
.site-faq summary { cursor: pointer; padding-block: 6px; line-height: 1.5; }
.site-faq p { max-width: 68ch; line-height: 1.7; }
.blog-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.blog-grid h2 { font-size: clamp(1.5rem,3vw,2rem); }
.blog-grid h2 a { text-decoration: none; }
.learning-guide { max-width: 820px; margin-inline: auto; }
.learning-guide h2 { margin-top: 32px; font-size: clamp(1.4rem,3vw,1.9rem); }
.learning-guide p { line-height: 1.8; }
.ai-tutor [data-mic][aria-pressed="true"] { background: #8a223b; color: #fff; }
@media(max-width:650px) { .blog-grid { grid-template-columns: minmax(0,1fr); } .campus-nav-tools { grid-template-columns: repeat(4,minmax(0,1fr)); } }

/* In-site course content protection */
body { -webkit-user-select: none; user-select: none; }
input, textarea, [contenteditable="true"], [contenteditable=""], [data-allow-copy] {
  -webkit-user-select: text; user-select: text;
}
img, video, audio { -webkit-user-drag: none; }
footer { flex-wrap: wrap; }
footer .privacy-link { color: inherit; text-underline-offset: 3px; }
.privacy-policy { max-width: 820px; margin-inline: auto; }
.privacy-policy h2 { margin-top: 28px; font-size: clamp(1.35rem,3vw,1.85rem); }
.privacy-policy p, .privacy-policy li { line-height: 1.75; }

#cache-course { display: none !important; }


/* Use the same compact player layout for every film on narrow screens. */
@media (max-width:650px) {
  .secure-film { width:100%; min-width:0; }
  .secure-film .film-language { margin-block-end:6px; }
  .secure-film .film-captions { min-height:0; padding:6px 8px; line-height:1.3; }
  .secure-film .film-captions p { min-block-size:0; }
  .secure-film .film-controls {
    display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;
    gap:4px;padding:4px;
  }
  .secure-film .film-controls input { width:100%;min-width:0;margin:0; }
  .secure-film .film-controls button { min-inline-size:44px;padding-inline:6px;font-size:.8rem; }
  .secure-film .film-controls span { font-size:.75rem; }
}

/* Keep subtitles and controls inside the fullscreen viewport on every film. */
html.film-expanded-open { overflow: hidden; }
.secure-film.is-film-expanded {position:fixed;inset:0;z-index:2147483000;}
.secure-film:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) {
  box-sizing:border-box;width:100%;max-width:none;height:100vh;height:100dvh;max-height:100dvh;
  margin:0;border:0;border-radius:0;display:flex;flex-direction:column;gap:0;
  padding:max(4px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
  overflow:hidden;background:#18132b;color:#fff;
}
.secure-film:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-language {flex:0 0 auto;margin:0;padding:4px 8px;color:#fff;}
.secure-film:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-picture {
  flex:1 1 0;min-height:0;width:100%;max-width:100%;height:auto;aspect-ratio:auto;border-radius:0;overflow:hidden;position:relative;
}
.secure-film:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-picture video {
  position:static;inset:auto;display:block;width:100%;height:100%;max-height:100%;object-fit:contain;transform:none;
}
.secure-film:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-captions {
  flex:0 0 auto;width:100%;box-sizing:border-box;min-height:0;max-height:32dvh;overflow-y:auto;
  background:#241a3a;color:#fff;padding:8px 12px;line-height:1.45;text-align:center;
}
.secure-film:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-captions .film-roman {color:#e0d1ff;}
.secure-film:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-controls {
  flex:0 0 auto;box-sizing:border-box;width:100%;max-width:1100px;align-self:center;background:#241a3a;color:#fff;
}
.secure-film:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-status:not([hidden]) {flex:0 0 auto;margin:0;padding:2px 8px;font-size:.85rem;}
.secure-film:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-captions p {min-block-size:0;}
.secure-film:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-picture {container-type:size;}
.secure-film.is-film-caption-band-cropped:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-picture {
  display:grid;place-items:center;
}
.secure-film.is-film-caption-band-cropped:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-picture video {
  width:min(100cqw, 100cqh * (var(--fullscreen-picture-ratio)));height:auto;
  aspect-ratio:var(--fullscreen-picture-ratio);
  object-fit:cover;object-position:center top;
}
@media (orientation:portrait) {
  .secure-film:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-picture {
    flex:0 1 auto;aspect-ratio:var(--fullscreen-picture-ratio, var(--picture-ratio));margin-block-start:auto;
  }
  .secure-film:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-controls {margin-block-end:auto;}
}
@media (max-width:600px), (max-height:500px) {
  .secure-film:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-controls {
    display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;gap:4px;padding:2px;
  }
  .secure-film:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-controls input {width:100%;min-width:0;margin:0;}
  .secure-film:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-controls button {min-inline-size:44px;padding-inline:6px;font-size:.8rem;}
  .secure-film:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-controls span {font-size:.75rem;}
}
@media(max-height:500px){
  .secure-film:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-language {font-size:.8rem;padding:0;}
  .secure-film:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-captions {padding:3px 8px;max-height:34dvh;font-size:.85rem;line-height:1.2;}
  .secure-film:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-captions [lang="ar"] {font-size:1rem;}
  .secure-film:is(:fullscreen, :-webkit-full-screen, .is-film-expanded) .film-controls {padding:2px;gap:2px;}
}

/* Free practice leads; AI is an optional next step. */
.home-intro h1 { text-wrap: balance; }
body[data-page="roleplay"] #studio > .section-head { display: flex; margin-top: 28px; }
.roleplay-intro .actions { align-items: center; gap: 16px 24px; margin-top: 22px; }
.roleplay-intro .eyebrow { margin: 0 0 14px; }
.roleplay-intro .roleplay-free-note { font-size: .9rem; font-weight: 600; color: #514563; margin-top: 14px; }
.roleplay-tutor-link { font-size: .95rem; text-underline-offset: 4px; }
#studio { scroll-margin-top: 30px; }
.roleplay-quick-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; list-style: none; padding: 0; margin: 0 0 22px; }
.roleplay-quick-steps li { border-top: 2px solid #d6c7e8; padding: 12px 0; }
.roleplay-quick-steps strong, .roleplay-quick-steps span { display: block; }
.roleplay-quick-steps span { color: #5f5a70; margin-top: 5px; }
.free-practice-next { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px; margin: 36px 0; background: #edf1e9; border: 1px solid #d8e0d2; border-radius: 16px; }
.free-practice-next h2 { font-size: clamp(1.5rem,3vw,2rem); }
.free-practice-next nav { display: grid; gap: 10px; align-content: center; }
.free-practice-next nav a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; background: #fff; border: 1px solid #d8e0d2; border-radius: 10px; color: #302540; text-decoration: none; font-weight: 700; }
.free-practice-next nav a:hover { border-color: #7953a1; }
.ai-tutor > .section-head p:not(.eyebrow) { max-width: 58ch; line-height: 1.65; }
@media(max-width:650px) {
 body[data-page="roleplay"] #studio > .section-head { display: block; }
 .roleplay-quick-steps { grid-template-columns: minmax(0,1fr); gap: 0; }
 .roleplay-quick-steps li { padding: 10px 0; }
 .free-practice-next { grid-template-columns: minmax(0,1fr); padding: 22px 18px; }
}

/* Homepage hero typography: readable rhythm beside the original Hala artwork. */
.home-intro h1 {
  font-family: Outfit, "DM Sans", sans-serif;
  font-size: clamp(2.65rem, 5.1vw, 4.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.035em;
  margin: 14px 0 22px;
  text-wrap: balance;
}
.home-intro h1 .hero-heading-accent { color: #62408c; font-weight: 700; }
.home-intro .home-course-label { font-size: .78rem; line-height: 1.5; font-weight: 700; letter-spacing: .085em; }
.home-intro-copy > p:not(.home-course-label) { font-size: clamp(1rem, 1.35vw, 1.1rem); line-height: 1.7; }
@media(max-width:480px) {
  .home-intro h1 { font-size: clamp(2.4rem, 9.4vw, 2.9rem); line-height: 1.12; letter-spacing: -.03em; }
}

/* Keep the hero message clearly readable against its light background. */
body[data-page="home"] .home-intro { background: #f2ebfc; border-color: #ded1ee; }
body[data-page="home"] .home-intro-copy h1 { color: #241633; }
body[data-page="home"] .home-intro-copy h1 .hero-heading-accent { color: #573182; }
body[data-page="home"] .home-intro-copy > p { color: #463650; }
body[data-page="home"] .home-intro-copy > .home-course-label { color: #573182; }
body[data-page="home"] .home-intro-actions .home-start { background: #4d2890; color: #fff; }
body[data-page="home"] .home-intro-actions .home-start:hover { background: #3d2072; }
.home-languages { margin-block-start: .9rem; color: #463650; font-size: .9rem; line-height: 1.55; }
.home-languages-label { font-weight: 700; }
.home-languages-list { display: flex; flex-wrap: wrap; gap: .15rem .8rem; margin: .2rem 0 0; padding: 0; list-style: none; }
.home-languages-list li { white-space: nowrap; }

/* Shared FAQ: a calm introduction and accessible question accordions. */
.site-faq { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.35fr); gap: 32px clamp(28px,5vw,64px); align-items: start; padding: clamp(24px,4vw,44px); background: #f1edf6; border: 1px solid #e1d8ec; border-radius: 24px; }
.site-faq .faq-intro { min-width: 0; }
.site-faq .faq-intro .eyebrow { margin: 0 0 14px; color: #624184; }
.site-faq h2 { font: 600 clamp(1.8rem,3.3vw,2.6rem)/1.12 Outfit,"DM Sans",sans-serif; letter-spacing: -.03em; color: #302540; margin: 0 0 18px; }
.site-faq .faq-intro > p:not(.eyebrow) { color: #5c5069; margin: 0; line-height: 1.7; }
.site-faq .faq-start-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; color: #573182; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.site-faq .faq-items { display: grid; gap: 12px; min-width: 0; }
.site-faq .faq-items details { padding: 0; margin: 0; border: 1px solid #ded6e7; border-radius: 14px; background: #fff; overflow: clip; }
.site-faq .faq-items details[open] { border-color: #a68bbf; }
.site-faq .faq-items summary { position: relative; display: block; list-style: none; padding: 20px 56px 20px 22px; min-height: 64px; color: #302540; font-size: 1.02rem; font-weight: 600; line-height: 1.5; cursor: pointer; overflow-wrap: anywhere; }
.site-faq .faq-items summary::-webkit-details-marker { display: none; }
.site-faq .faq-items summary::before, .site-faq .faq-items summary::after { content: ""; position: absolute; background: #68468b; border-radius: 1px; top: 31px; right: 22px; width: 14px; height: 2px; }
.site-faq .faq-items summary::after { transform: rotate(90deg); }
.site-faq .faq-items details[open] summary::after { transform: rotate(0deg); }
.site-faq .faq-items summary:hover { background: #f8f5fc; }
.site-faq .faq-items summary:focus-visible { outline: 3px solid #7953a1; outline-offset: -4px; border-radius: 13px; }
.site-faq .faq-items details > p { padding: 0 22px 22px; margin: 0; max-width: 68ch; color: #51465e; font-size: .98rem; line-height: 1.75; }
@media(max-width:760px) { .site-faq { grid-template-columns: minmax(0,1fr); gap: 26px; border-radius: 20px; } .site-faq .faq-start-link { margin-top: 16px; } }
@media(max-width:420px) { .site-faq { padding: 24px 16px; } .site-faq .faq-items summary { padding: 18px 45px 18px 16px; } .site-faq .faq-items summary::before,.site-faq .faq-items summary::after { right: 16px; top: 29px; } .site-faq .faq-items details > p { padding-inline: 16px; } }

/* Keep navigation and introductory links free of decorative underlines. */
.site-faq .faq-start-link, .roleplay-tutor-link, .home-intro-actions a,
.site-header .campus-nav a, footer .privacy-link,
.site-faq .faq-start-link:hover, .roleplay-tutor-link:hover,
.site-header .campus-nav a:hover, footer .privacy-link:hover { text-decoration: none; }
.site-faq .faq-start-link:hover, .roleplay-tutor-link:hover { color: #3d2072; }

/* Page landmarks can receive focus after skip links and navigation. */
main[tabindex="-1"]:focus { outline: none; }

#translate-form button.voice-mode[aria-pressed="true"] {
  background: #3c3ead;
  border-color: #3c3ead;
  color: #fff;
}
#translate-form button.voice-mode[aria-pressed="true"] .mic-icon { color: inherit; }
