
:root{
  --page:#f7f9fc;
  --surface:#ffffff;
  --surface-2:#eef5ff;
  --text:#07162f;
  --muted:#56637b;
  --accent:#1677ff;
  --line:#dfe7f2;
  --blueSoft:#eaf4ff;
  --shadow:0 18px 55px rgba(18,38,63,.08);
  --max:1180px;
}
html[data-theme="dark"]{
  --page:#090d16;
  --surface:#101725;
  --surface-2:#121d30;
  --text:#f5f8ff;
  --muted:#aab5c8;
  --accent:#5c9dff;
  --line:#253149;
  --blueSoft:#102b4d;
  --shadow:0 18px 55px rgba(0,0,0,.22);
}
*{box-sizing:border-box}
html,body{margin:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--page);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
}
.shell{width:min(var(--max),calc(100% - 32px));margin-inline:auto}

/* Header identical to School / Playli visual system */
.site-header{
  min-height:86px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.brand--image{
  display:inline-flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--text);
}
.brand--image img{
  width:52px;height:52px;object-fit:cover;border-radius:13px;
  border:1px solid var(--line);background:#fff;
}
.brand-name{font-size:30px;line-height:1;font-weight:800;letter-spacing:-.02em}
.header-controls{display:flex;gap:12px;align-items:center}
.language-control{
  display:flex;align-items:center;gap:8px;background:var(--surface);
  border:1px solid var(--line);padding:10px 13px;border-radius:999px;
}
.language-control select,.footer-language-control select{
  border:0;outline:0;background:transparent;color:var(--text);
  font:inherit;font-weight:650;
}
.globe-icon,.sun-icon,.moon-icon,.footer-globe-icon{
  fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.globe-icon,.sun-icon,.moon-icon{width:19px;height:19px}
.globe-icon,.footer-globe-icon{color:var(--muted)}
.sun-icon{color:#f6b800}.moon-icon{color:#d8e2ff}
.theme-toggle{
  border:1px solid var(--line);
  background:linear-gradient(90deg,#fff 0 50%,#10204a 50%);
  border-radius:999px;padding:6px 9px;min-width:100px;
  display:flex;align-items:center;justify-content:space-between;gap:7px;cursor:pointer;
}
.theme-knob{
  width:30px;height:30px;border-radius:50%;background:#fff;
  box-shadow:0 2px 7px rgba(0,0,0,.2);transform:translateX(-4px);transition:.2s;
}
html[data-theme="dark"] .theme-knob{transform:translateX(4px)}

/* Help intro */
.help-hero{
  margin-top:24px;
  padding:42px 46px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow);
}
.eyebrow{
  margin:0 0 11px;color:var(--accent);font-size:13px;font-weight:800;
  letter-spacing:.09em;text-transform:uppercase;
}
.help-hero h1,.step-copy h2{
  letter-spacing:-.035em;
}
.help-hero h1{
  margin:0 0 14px;font-size:clamp(40px,5vw,64px);line-height:1.03;
}
.help-hero>p:last-child{
  margin:0;max-width:760px;color:var(--muted);font-size:18px;line-height:1.62;
}

/* Systematic step cards: designed to scale to step 1...100 */
.steps-list{padding:34px 0 44px;display:grid;gap:24px}
.step-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,420px);
  gap:0;
  overflow:hidden;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow);
}
.step-copy{
  padding:38px 42px;
  align-self:center;
}
.step-copy h2{
  margin:0 0 14px;font-size:clamp(30px,3.5vw,44px);line-height:1.08;
}
.step-copy>p:last-of-type{
  margin:0;color:var(--muted);font-size:17px;line-height:1.62;
}
.store-buttons{
  margin-top:24px;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}
.store-buttons img{
  display:block;
  height:48px;
  width:auto;
}
.store-buttons .apple-badge{
  display:block;
  height:48px;
  width:auto;
}
.step-media{
  min-height:470px;
  background:var(--surface-2);
  display:grid;
  place-items:center;
  padding:24px 18px;
  border-left:1px solid var(--line);
}
.phone-frame{
  height:410px;
  width:auto;
  max-width:100%;
  border:4px solid var(--text);
  border-radius:34px;
  background:var(--surface);
  box-shadow:0 14px 32px rgba(12,24,42,.16);
  overflow:hidden;
}
.phone-frame img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Footer same system as School */
.site-footer{
  min-height:88px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:20px;
  font-size:14px;
  color:var(--muted);
}
.site-footer nav{display:flex;justify-content:center;gap:24px;flex-wrap:wrap}
.site-footer nav a{color:var(--muted);text-decoration:none}
.footer-language-control{
  display:inline-flex;align-items:center;gap:7px;min-height:34px;
  padding:5px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);
}
.footer-globe-icon{width:15px;height:15px}

@media(max-width:800px){
  .site-header{min-height:74px}
  .brand--image img{width:40px;height:40px;border-radius:10px}
  .brand-name{font-size:22px}
  .language-control{display:none}
  .theme-toggle{min-width:86px}
  .help-hero{margin-top:14px;padding:30px 22px}
  .step-card{grid-template-columns:1fr}
  .step-copy{padding:30px 22px}
  .step-media{
    min-height:420px;
    border-left:0;border-top:1px solid var(--line);
  }
  .phone-frame{height:360px}
  .site-footer{
    grid-template-columns:1fr;text-align:center;gap:14px;padding:24px 0;
  }
  .site-footer nav{gap:14px}
  .footer-language-control{display:none}
}

/* V3 — structured explanations for Steps 2 and 3 */
.detail-list{
  margin-top:22px;
  display:grid;
  gap:10px;
}
.detail-row{
  display:grid;
  grid-template-columns:90px 1fr;
  gap:14px;
  padding:11px 0;
  border-top:1px solid var(--line);
}
.detail-row strong{color:var(--text)}
.detail-row span{color:var(--muted);line-height:1.5}

.guide-groups{
  margin-top:24px;
  display:grid;
  gap:22px;
}
.guide-group{
  padding-top:18px;
  border-top:1px solid var(--line);
}
.guide-group h3{
  margin:0 0 12px;
  font-size:15px;
  letter-spacing:.01em;
}
.guide-items{
  display:grid;
  gap:12px;
}
.guide-item{
  display:grid;
  grid-template-columns:38px 1fr;
  gap:12px;
  align-items:start;
}
.guide-icon{
  width:36px;
  height:36px;
  border-radius:11px;
  display:grid;
  place-items:center;
  background:var(--blueSoft);
  color:var(--accent);
}
.guide-icon svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.guide-item strong{
  display:block;
  font-size:14px;
  margin:1px 0 2px;
}
.guide-item p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}

/* Keep real screenshots fully visible inside the slim phone frame. */
.phone-frame img{
  object-fit:contain !important;
  background:#fff;
}
html[data-theme="dark"] .phone-frame img{
  background:#fff;
}

/* Step 3 has more explanatory content, so the screenshot remains aligned at the top. */
.step-card:has(.guide-groups) .step-copy{
  align-self:start;
}
.step-card:has(.guide-groups) .step-media{
  align-items:start;
  padding-top:38px;
}
@media(max-width:800px){
  .detail-row{grid-template-columns:1fr;gap:3px}
}

/* V4 — Library status indicators */
.guide-icon[data-icon="checkgreen"]{
  color:#25a55f;
  background:color-mix(in srgb,#25a55f 12%,var(--surface));
}

/* V5 — Step 4 mirrors the actual Library UI */
.level-help-tags{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin:2px 0 10px;
}
.level-help-tags span{
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--surface);
  color:var(--text);
  font-size:12px;
  line-height:1;
  white-space:nowrap;
}
.level-help-tags span.active{
  color:#fff;
  background:var(--accent);
  border-color:var(--accent);
}
.group-note{
  margin:0 !important;
  color:var(--muted);
  font-size:14px !important;
  line-height:1.5 !important;
}
.topic-anatomy{
  margin-top:14px;
  display:grid;
  grid-template-columns:48px 1fr auto;
  gap:12px;
  align-items:center;
  padding:10px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--page);
}
.topic-thumb{
  width:48px;height:48px;border-radius:10px;
  background:linear-gradient(135deg,var(--blueSoft),var(--line));
}
.topic-middle{display:grid;gap:3px}
.topic-middle b{font-size:13px}
.topic-middle small{font-size:11px;color:var(--muted)}
.topic-statuses{
  display:flex;
  gap:6px;
  align-items:center;
}
.status-plus,.status-check{
  width:28px;height:28px;border-radius:50%;
  display:inline-grid;place-items:center;
  flex:0 0 28px;
  font-size:18px;font-weight:700;line-height:1;
}
.status-plus{
  color:var(--accent);
  background:var(--surface);
  border:2px solid var(--line);
}
.status-check{
  color:#fff;
  border:0;
  font-size:15px;
}
.status-blue{background:#1684ff}
.status-green{background:#25a55f}
.status-legend{
  margin-top:12px;
  display:grid;
  gap:9px;
}
.status-legend>div{
  display:grid;
  grid-template-columns:30px 1fr;
  gap:10px;
  align-items:start;
}
.status-legend strong,.status-legend small{display:block}
.status-legend strong{font-size:13px;margin-bottom:1px}
.status-legend small{font-size:12px;line-height:1.4;color:var(--muted)}

/* V6 — larger screenshot presentation for Listening */
.step-card:has(.guide-groups) .step-media{
  padding-inline:12px;
}
.step-card:has(.guide-groups) .phone-frame{
  height:470px;
}
.guide-icon[data-icon="heart"]{
  color:#d71920;
  background:color-mix(in srgb,#d71920 10%,var(--surface));
}
.guide-icon[data-icon="checkgray"]{
  color:#aab3c2;
  background:var(--surface);
}
@media(min-width:1000px){
  .step-card:has(.guide-groups){
    grid-template-columns:minmax(0,1fr) minmax(360px,460px);
  }
  .step-card:has(.guide-groups) .phone-frame{
    height:520px;
  }
}
@media(max-width:800px){
  .step-card:has(.guide-groups) .phone-frame{
    height:420px;
  }
}

/* V7 — substantially larger app screenshots */
.step-card{
  grid-template-columns:minmax(0,.9fr) minmax(500px,1.1fr) !important;
}
.step-media{
  min-height:760px !important;
  padding:20px 12px !important;
}
.phone-frame,
.step-card:has(.guide-groups) .phone-frame{
  height:720px !important;
  max-height:none !important;
}
.phone-frame img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}

@media(min-width:1200px){
  .step-card{
    grid-template-columns:minmax(0,.85fr) minmax(560px,1.15fr) !important;
  }
  .phone-frame,
  .step-card:has(.guide-groups) .phone-frame{
    height:800px !important;
  }
  .step-media{
    min-height:840px !important;
  }
}

@media(max-width:800px){
  .step-card{
    grid-template-columns:1fr !important;
  }
  .step-media{
    min-height:620px !important;
    padding:18px 10px !important;
  }
  .phone-frame,
  .step-card:has(.guide-groups) .phone-frame{
    height:590px !important;
    max-width:100% !important;
  }
}

/* V8 — more room for explanatory copy, screenshots ~10% smaller */
.step-card,
.step-card:has(.guide-groups){
  grid-template-columns:minmax(0,1.25fr) minmax(420px,.75fr) !important;
}
.step-media,
.step-card:has(.guide-groups) .step-media{
  min-height:700px !important;
}
.phone-frame,
.step-card:has(.guide-groups) .phone-frame{
  height:650px !important;
}

@media(min-width:1200px){
  .step-card,
  .step-card:has(.guide-groups){
    grid-template-columns:minmax(0,1.3fr) minmax(450px,.7fr) !important;
  }
  .phone-frame,
  .step-card:has(.guide-groups) .phone-frame{
    height:720px !important;
  }
  .step-media,
  .step-card:has(.guide-groups) .step-media{
    min-height:760px !important;
  }
}

@media(max-width:800px){
  .step-card,
  .step-card:has(.guide-groups){
    grid-template-columns:1fr !important;
  }
  .phone-frame,
  .step-card:has(.guide-groups) .phone-frame{
    height:530px !important;
  }
  .step-media,
  .step-card:has(.guide-groups) .step-media{
    min-height:560px !important;
  }
}

/* V10 — status legend typography matches the other Help explanations */
.status-legend strong{
  font-size:14px !important;
  margin-bottom:2px;
}
.status-legend small{
  font-size:14px !important;
  line-height:1.45 !important;
  color:var(--muted);
}

/* V11 — supported languages below Step 2 */
.available-languages{
  margin-top:20px;padding-top:18px;border-top:1px solid var(--line);
  display:flex;flex-wrap:wrap;gap:8px 10px;
}
.language-chip{
  display:inline-flex;align-items:center;gap:7px;min-height:30px;
  padding:5px 9px 5px 6px;border:1px solid var(--line);border-radius:10px;
  background:var(--page);color:var(--text);font-size:12px;line-height:1.2;
}
.language-chip img{
  display:block;width:25px;height:17px;object-fit:cover;
  border-radius:4px;border:1px solid rgba(255,255,255,.95);
  box-shadow:0 0 0 1px rgba(10,20,38,.08);flex:0 0 auto;
}
html[data-theme="dark"] .language-chip img{
  border-color:rgba(255,255,255,.95);
  box-shadow:0 0 0 1px rgba(255,255,255,.08);
}

/* V12 — equal-width supported-language cards in Step 2 */
.available-languages{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:8px !important;
}
.language-chip{
  width:100% !important;
  min-width:0 !important;
  justify-content:flex-start !important;
  padding:7px 10px !important;
  min-height:38px !important;
  border-radius:10px !important;
  font-size:12px !important;
}
.language-chip span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.language-chip img{
  width:27px !important;
  height:18px !important;
  border-radius:4px !important;
}
@media(max-width:1000px){
  .available-languages{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:560px){
  .available-languages{
    grid-template-columns:1fr !important;
  }
}

/* V13 — Playli activity overview in Step 1 */
.step-activities{
  margin-top:28px;
  padding-top:22px;
  border-top:1px solid var(--line);
}
.step-activities h3{
  margin:0 0 14px;
  font-size:15px;
  line-height:1.2;
}
.step-activity-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.step-activity{
  margin:0;
  min-width:0;
}
.step-activity img{
  display:block;
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--line);
}
.step-activity figcaption{
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
  line-height:1.25;
  text-align:center;
}
@media(max-width:950px){
  .step-activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* V14 — typography and first sub-step hierarchy */

/* Step 1 activity labels and Step 2 language names match regular explanatory text. */
.step-activity figcaption,
.language-chip{
  font-size:14px !important;
  line-height:1.45 !important;
}
.language-chip{
  min-height:42px !important;
}

/* Sub-steps are visibly subordinate and shifted to the right on desktop. */
.step-card--substep{
  width:calc(100% - 46px);
  margin-left:46px;
  border-radius:24px;
}
.step-card--substep .step-copy{
  padding-left:36px;
}
.step-card--substep .eyebrow{
  font-size:12px;
}
@media(max-width:800px){
  .step-card--substep{
    width:100%;
    margin-left:0;
  }
}

/* V15 — unified explanatory typography
   Large page/step headings remain distinct; explanatory UI copy is one size. */
.step-copy > p:last-of-type,
.detail-row strong,
.detail-row span,
.guide-group h3,
.guide-item strong,
.guide-item p,
.group-note,
.status-legend strong,
.status-legend small,
.step-activity figcaption,
.language-chip,
.topic-middle b,
.topic-middle small{
  font-size:15px !important;
  line-height:1.5 !important;
}

/* Section labels can remain semibold/bold, but not smaller. */
.guide-group h3,
.detail-row strong,
.guide-item strong,
.status-legend strong,
.topic-middle b{
  font-weight:700;
}

/* Eyebrow/STEP labels remain intentionally small navigation labels. */

/* V16 — stronger visual hierarchy for sub-steps such as 6.1 */
.step-card--substep{
  width:calc(100% - 92px) !important;
  margin-left:92px !important;
}
@media(max-width:800px){
  .step-card--substep{
    width:100% !important;
    margin-left:0 !important;
  }
}

/* V17 — note below supported languages */
.languages-note{
  margin:12px 0 0 !important;
  color:var(--muted);
  font-size:15px !important;
  line-height:1.5 !important;
}

/* V18 — preserve the real iPhone screenshot ratio at every viewport width */
.step-media,
.step-card:has(.guide-groups) .step-media{
  min-width:0 !important;
  overflow:hidden !important;
}
.phone-frame,
.step-card:has(.guide-groups) .phone-frame{
  width:auto !important;
  max-width:calc(100% - 24px) !important;
  aspect-ratio:828 / 1792 !important;
  height:min(650px, calc((100vw - 64px) * 2.164)) !important;
  flex:none !important;
}
.phone-frame img,
.step-card:has(.guide-groups) .phone-frame img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
}

/* Wide screens may grow taller, but never distort the phone ratio. */
@media(min-width:1200px){
  .phone-frame,
  .step-card:has(.guide-groups) .phone-frame{
    height:min(720px, calc((100vw - 64px) * 2.164)) !important;
  }
}

/* On narrower desktop/tablet widths the phone simply becomes smaller. */
@media(max-width:1050px){
  .step-card,
  .step-card:has(.guide-groups){
    grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr) !important;
  }
  .phone-frame,
  .step-card:has(.guide-groups) .phone-frame{
    max-width:calc(100% - 20px) !important;
    height:auto !important;
  }
}

/* Mobile keeps the same aspect ratio and scales down to available width. */
@media(max-width:800px){
  .phone-frame,
  .step-card:has(.guide-groups) .phone-frame{
    width:min(100%,330px) !important;
    height:auto !important;
    aspect-ratio:828 / 1792 !important;
  }
  .step-media,
  .step-card:has(.guide-groups) .step-media{
    min-height:0 !important;
    padding-block:18px !important;
  }
}

.step-link{
  display:inline-block;
  margin-top:6px;
  color:var(--accent);
  font-size:15px;
  line-height:1.5;
  font-weight:700;
  text-decoration:none;
}
.step-link:hover{text-decoration:underline}
.step-anchor{
  display:block;
  position:relative;
  top:-18px;
  visibility:hidden;
}

/* V19 — Step 1 activity section is desktop/tablet only */
@media(max-width:800px){
  .step-activities{
    display:none !important;
  }
}

/* V20 — cross-browser phone aspect ratio fix (especially Safari)
   Do not combine width:auto with a fixed height on a stretched CSS Grid item.
   Give the frame an explicit width and derive its height from aspect-ratio. */
.phone-frame,
.step-card:has(.guide-groups) .phone-frame{
  box-sizing:border-box !important;
  justify-self:center !important;
  align-self:start !important;
  width:min(calc(100% - 24px), 300px) !important;
  max-width:100% !important;
  height:auto !important;
  aspect-ratio:828 / 1792 !important;
  flex:none !important;
  overflow:hidden !important;
}

.phone-frame img,
.step-card:has(.guide-groups) .phone-frame img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
}

/* On genuinely wide screens the phone may grow, but always by width;
   height remains derived from the same iPhone aspect ratio. */
@media(min-width:1200px){
  .phone-frame,
  .step-card:has(.guide-groups) .phone-frame{
    width:min(calc(100% - 24px), 333px) !important;
    height:auto !important;
  }
}

/* If the screenshot column gets narrower, the phone shrinks instead of stretching. */
@media(max-width:1050px){
  .phone-frame,
  .step-card:has(.guide-groups) .phone-frame{
    width:min(calc(100% - 20px), 285px) !important;
    height:auto !important;
  }
}

@media(max-width:800px){
  .phone-frame,
  .step-card:has(.guide-groups) .phone-frame{
    width:min(100%, 330px) !important;
    height:auto !important;
    aspect-ratio:828 / 1792 !important;
  }
}

/* V21 — align Step 1 explanatory typography with the hero intro */
.step-card:first-child .step-copy > p:last-of-type,
.step-card:first-child .step-activity figcaption{
  font-size:18px !important;
  line-height:1.62 !important;
}

/* Keep Step 1 activity labels visually balanced at the larger size. */
.step-card:first-child .step-activity figcaption{
  margin-top:7px !important;
}

/* Step 2 "new languages" note keeps standard explanatory size. */
.languages-note{
  font-size:15px !important;
  line-height:1.5 !important;
}

/* V22 — media stack + strict mobile stacking */
.step-media-stack{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
  width:100%;
  min-width:0;
}

.secondary-image-card{
  width:min(100%,360px);
  margin:0;
  padding:8px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 10px 28px rgba(15,31,52,.08);
}
.secondary-image-card img{
  display:block;
  width:100%;
  height:auto;
  border-radius:12px;
}
.secondary-image-card figcaption{
  margin-top:7px;
  color:var(--muted);
  font-size:15px;
  line-height:1.5;
  text-align:center;
}

/* On mobile every card is always top/bottom: explanation first, media second. */
@media(max-width:800px){
  .step-card,
  .step-card:has(.guide-groups),
  .step-card--substep{
    display:grid !important;
    grid-template-columns:1fr !important;
    width:100% !important;
    margin-left:0 !important;
  }

  .step-copy{
    grid-column:1 !important;
    grid-row:1 !important;
  }

  .step-media,
  .step-card:has(.guide-groups) .step-media{
    grid-column:1 !important;
    grid-row:2 !important;
    width:100% !important;
    min-width:0 !important;
    border-left:0 !important;
    border-top:1px solid var(--line) !important;
    padding:18px 12px !important;
  }

  .step-media-stack{
    width:100% !important;
  }

  .secondary-image-card{
    width:min(100%,330px) !important;
  }
}

/* V23 — Step 4.1 share example */
.secondary-image-card{
  width:100% !important;
  max-width:333px !important; /* same media column / visual width as phone */
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  border:2px solid #000 !important;
  border-radius:18px !important;
  box-shadow:none !important;
  overflow:hidden !important;
}
.secondary-image-card img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  border-radius:15px !important;
}
.secondary-image-card figcaption{
  display:none !important;
}
.share-image-cue{
  display:block;
  margin-top:7px;
  color:var(--muted);
  font-size:15px;
  line-height:1.5;
}
.example-share-link{
  display:block;
  margin-top:4px;
  color:var(--accent);
  font-size:15px;
  line-height:1.5;
  font-weight:700;
  text-decoration:none;
  overflow-wrap:anywhere;
}
.example-share-link:hover{text-decoration:underline}

@media(max-width:800px){
  .secondary-image-card{
    width:min(100%,330px) !important;
    max-width:330px !important;
  }
}

/* V24 — share image follows the example URL in the Share explanation */
.share-image-cue{display:none !important}
.share-inline-image{
  margin-top:12px;
  width:min(100%,360px);
  border:2px solid #000;
  border-radius:18px;
  overflow:hidden;
  background:transparent;
}
.share-inline-image img{
  display:block;
  width:100%;
  height:auto;
}

/* V25 — smaller auxiliary illustrations */

/* Step 4.1 share image: no border, approximately 50% of previous width. */
.share-inline-image{
  width:min(50%,180px) !important;
  border:0 !important;
  border-radius:0 !important;
  overflow:visible !important;
  background:transparent !important;
}
.share-inline-image img{
  width:100% !important;
  height:auto !important;
  border:0 !important;
  border-radius:0 !important;
}

/* Step 1 activity illustrations: approximately 50% of previous visual size. */
.step-activity-grid{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  max-width:50% !important;
}
.step-activity img{
  width:100% !important;
  height:auto !important;
}

/* Keep activity labels readable; only the illustrations/grid become smaller. */
@media(max-width:950px) and (min-width:801px){
  .step-activity-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    max-width:50% !important;
  }
}

/* Activities are already hidden on mobile. Share example stays compact. */
@media(max-width:800px){
  .share-inline-image{
    width:min(50%,165px) !important;
  }
}

/* V26 — mobile language grid + centered phone screenshots */
@media(max-width:800px){
  /* Step 2 languages stay compact: two equal columns on mobile. */
  .available-languages{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
  }

  /* Center every phone/media screenshot in the lower half of its card. */
  .step-media,
  .step-card:has(.guide-groups) .step-media{
    justify-items:center !important;
    align-items:start !important;
  }

  .step-media-stack{
    align-items:center !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  .phone-frame,
  .step-card:has(.guide-groups) .phone-frame{
    justify-self:center !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
}

/* V27 — collapsible Step 2 language list on mobile */
.languages-toggle{
  display:none;
}

@media(max-width:800px){
  /* Show only the first three rows (6 languages) initially. */
  .language-chip--extra{
    display:none !important;
  }

  .languages-expanded .language-chip--extra{
    display:inline-flex !important;
  }

  .languages-toggle{
    display:block;
    width:100%;
    margin-top:10px;
    padding:10px 12px;
    border:1px solid var(--line);
    border-radius:10px;
    background:var(--surface);
    color:var(--accent);
    font:inherit;
    font-size:15px;
    line-height:1.5;
    font-weight:700;
    cursor:pointer;
    text-align:center;
  }

  /* The update note belongs after the complete list, so hide it until expanded. */
  .languages-note{
    display:none;
  }
  .languages-expanded .languages-note{
    display:block;
  }
}

/* V28 — auxiliary visual refinements */

/* Share PNG: no frame, but softly rounded image corners. */
.share-inline-image{
  border:0 !important;
  border-radius:14px !important;
  overflow:hidden !important;
}
.share-inline-image img{
  border-radius:14px !important;
}

/* Desktop Step 1 activities stay in one horizontal row. */
@media(min-width:801px){
  .step-activity-grid{
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    max-width:100% !important;
    gap:9px !important;
  }
}

/* V29 — Step 1 onboarding preview replaces activity gallery */
.step-onboarding-preview{
  margin-top:28px;
  padding-top:22px;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  align-items:start;
}
.onboarding-phone{
  min-width:0;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 7px 18px rgba(15,31,52,.07);
}
.onboarding-phone img{
  display:block;
  width:100%;
  height:auto;
}

/* On mobile Step 1 stays compact; onboarding previews are omitted. */
@media(max-width:800px){
  .step-onboarding-preview{
    display:none !important;
  }
}

/* V31 — native share action */
.native-share-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:10px;
  min-height:40px;
  padding:8px 14px;
  border:0;
  border-radius:10px;
  background:var(--accent);
  color:#fff;
  font:inherit;
  font-size:15px;
  line-height:1.5;
  font-weight:700;
  cursor:pointer;
}

/* V34 — in-page cross-step navigation */
.step-card{
  scroll-margin-top:24px;
}
.step-link{
  cursor:pointer;
}

/* V36 — Listening Settings save-button continuation */
.settings-save-preview{width:min(100%,333px);overflow:hidden;border-radius:14px}
.settings-save-preview img{display:block;width:100%;height:auto}
@media(max-width:800px){.settings-save-preview{width:min(100%,330px)}}

/* V37 — second-level sub-steps (x.x.x) get a deeper desktop indent */
@media(min-width:801px){
  .step-card[id="step-5-3-1"],
  .step-card[id="step-5-4-1"]{
    width:calc(100% - 184px) !important;
    margin-left:184px !important;
  }
}

/* Mobile keeps every step full-width, regardless of nesting depth. */
@media(max-width:800px){
  .step-card[id="step-5-3-1"],
  .step-card[id="step-5-4-1"]{
    width:100% !important;
    margin-left:0 !important;
  }
}

/* V39 — Step 5.3.1 save-buttons continuation matches the iPhone frame */
.settings-save-preview{
  box-sizing:border-box !important;
  justify-self:center !important;
  align-self:start !important;
  width:min(calc(100% - 24px),333px) !important;
  max-width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding:0 !important;
  background:#fff !important;
  border:2px solid #0b1423 !important;
  border-radius:28px !important;
  overflow:hidden !important;
  box-shadow:none !important;
}
.settings-save-preview img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  border-radius:26px !important;
}

@media(max-width:1050px){
  .settings-save-preview{
    width:min(calc(100% - 20px),285px) !important;
  }
}
@media(max-width:800px){
  .settings-save-preview{
    width:min(100%,330px) !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
}

/* V40 — robust nested indentation + exact media alignment */
@media(min-width:801px){
  .step-card[data-depth="1"]{
    width:calc(100% - 92px) !important;
    margin-left:92px !important;
  }
  .step-card[data-depth="2"]{
    width:calc(100% - 184px) !important;
    margin-left:184px !important;
  }
}
@media(max-width:800px){
  .step-card[data-depth="1"],
  .step-card[data-depth="2"]{
    width:100% !important;
    margin-left:0 !important;
  }
}

.step-media-stack{
  --help-phone-width:min(calc(100% - 24px),300px);
  width:100% !important;
  align-items:center !important;
}
.phone-frame,
.step-card:has(.guide-groups) .phone-frame,
.settings-save-preview{
  width:var(--help-phone-width) !important;
  max-width:100% !important;
  justify-self:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.settings-save-preview{
  box-sizing:border-box !important;
  border:4px solid var(--text) !important;
  border-radius:34px !important;
  background:var(--surface) !important;
  box-shadow:0 14px 32px rgba(12,24,42,.16) !important;
  overflow:hidden !important;
}
.settings-save-preview img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  border-radius:30px !important;
}
@media(min-width:1200px){
  .step-media-stack{--help-phone-width:min(calc(100% - 24px),333px)}
}
@media(max-width:1050px){
  .step-media-stack{--help-phone-width:min(calc(100% - 20px),285px)}
}
@media(max-width:800px){
  .step-media-stack{--help-phone-width:min(100%,330px)}
}

/* Final support card */
.support-playli-card{
  margin:28px 0 0;
  padding:38px;
  border:1px solid var(--line);
  border-radius:28px;
  background:var(--surface);
  box-shadow:0 12px 34px rgba(15,31,52,.08);
}
.support-playli-card h2{
  margin:4px 0 12px;
  font-size:32px;
  line-height:1.15;
}
.support-lead{
  max-width:820px;
  margin:0;
  font-size:18px;
  line-height:1.6;
  color:var(--muted);
}
.support-rating{
  margin-top:26px;
  padding-top:22px;
  border-top:1px solid var(--line);
}
.support-rating strong,
.support-rating span{
  display:block;
  font-size:15px;
  line-height:1.5;
}
.support-rating span{color:var(--muted);margin-top:3px}
.rating-stars{display:flex;gap:7px;margin-top:12px}
.rating-star{
  border:0;
  background:transparent;
  padding:0;
  font-size:34px;
  line-height:1;
  color:#cfd5df;
  cursor:pointer;
}
.rating-star.selected{color:#f2b01e}
.share-playli-button{
  margin-top:22px;
  min-height:48px;
  padding:11px 18px;
  border:0;
  border-radius:12px;
  background:var(--accent);
  color:#fff;
  font:inherit;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
}
.rating-modal{
  position:fixed;
  inset:0;
  z-index:1000;
  display:none;
  place-items:center;
  padding:20px;
  background:rgba(0,0,0,.45);
}
.rating-modal.open{display:grid}
.rating-modal-card{
  width:min(100%,420px);
  padding:28px;
  border-radius:24px;
  background:var(--surface);
  color:var(--text);
  box-shadow:0 24px 70px rgba(0,0,0,.25);
}
.rating-modal-card h2{margin:0 0 8px;font-size:26px}
.rating-modal-card p{margin:0 0 20px;color:var(--muted);font-size:15px;line-height:1.5}
.rating-primary,
.rating-secondary{
  display:flex;
  width:100%;
  min-height:46px;
  align-items:center;
  justify-content:center;
  border-radius:11px;
  font:inherit;
  font-size:15px;
  font-weight:700;
  text-decoration:none;
}
.rating-primary{background:var(--accent);color:#fff}
.rating-secondary{
  margin-top:9px;
  border:1px solid var(--line);
  background:transparent;
  color:var(--text);
  cursor:pointer;
}
@media(max-width:800px){
  .support-playli-card{padding:24px 20px;border-radius:22px}
  .support-playli-card h2{font-size:26px}
  .support-lead{font-size:15px}
}

/* V41 — nested hierarchy, icon semantics, research card */

/* Robust hierarchy: 5.2.1 / 5.4.1 are deeper than 5.2 / 5.4 */
@media(min-width:801px){
  .step-card[data-depth="1"]{
    width:calc(100% - 92px) !important;
    margin-left:92px !important;
  }
  .step-card[data-depth="2"]{
    width:calc(100% - 184px) !important;
    margin-left:184px !important;
  }
}
@media(max-width:800px){
  .step-card[data-depth="1"],
  .step-card[data-depth="2"]{
    width:100% !important;
    margin-left:0 !important;
  }
}

/* Red X semantics */
.guide-icon .icon-red,
.guide-icon:has(.icon-red){
  color:#d91f26 !important;
  stroke:#d91f26 !important;
}
.guide-icon:has(.icon-red-bg){
  background:#f7d9dc !important;
  color:#d91f26 !important;
  border-radius:999px !important;
}

/* Step 6 research evidence */
.research-card{
  margin-top:24px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--page);
}
.research-card > strong{
  display:block;
  font-size:15px;
  line-height:1.5;
}
.research-card p{
  margin:7px 0 0;
  font-size:15px;
  line-height:1.5;
  color:var(--muted);
}
.research-sources{
  display:flex;
  flex-direction:column;
  gap:5px;
  margin-top:10px;
}
.research-sources a{
  color:var(--accent);
  font-size:13px;
  line-height:1.4;
  text-decoration:none;
}
.research-sources a:hover{text-decoration:underline}

/* Make 5.2.1 save continuation exactly match phone width/alignment */
.step-media-stack{
  --help-phone-width:min(calc(100% - 24px),300px);
}
.phone-frame,
.settings-save-preview{
  width:var(--help-phone-width) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
@media(min-width:1200px){
  .step-media-stack{--help-phone-width:min(calc(100% - 24px),333px)}
}
@media(max-width:1050px){
  .step-media-stack{--help-phone-width:min(calc(100% - 20px),285px)}
}
@media(max-width:800px){
  .step-media-stack{--help-phone-width:min(100%,330px)}
}

/* V42 — support actions on one desktop row */
@media(min-width:801px){
  .support-playli-card{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    column-gap:28px;
  }
  .support-playli-card > .eyebrow,
  .support-playli-card > h2,
  .support-playli-card > .support-lead{
    grid-column:1 / -1;
  }
  .support-rating{
    grid-column:1;
    align-self:end;
  }
  .share-playli-button{
    grid-column:2;
    align-self:end;
    margin-bottom:0;
  }
}

/* V43 — test X states and final support-card bottom row */
.guide-icon:has(.icon-red-bg){
  background:#f8d9dc !important;
  color:#d91f26 !important;
  border-radius:999px !important;
}
.guide-icon:has(.icon-red-bg) svg{
  stroke:#d91f26 !important;
}

/* Keep the rating block and Share button as the final left/right row on desktop. */
@media(min-width:801px){
  .support-playli-card{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    column-gap:32px !important;
    align-items:end !important;
  }
  .support-playli-card > .eyebrow,
  .support-playli-card > h2,
  .support-playli-card > .support-lead{
    grid-column:1 / -1 !important;
  }
  .support-rating{
    grid-column:1 !important;
    grid-row:4 !important;
    align-self:end !important;
    margin-bottom:0 !important;
  }
  .share-playli-button{
    grid-column:2 !important;
    grid-row:4 !important;
    align-self:end !important;
    justify-self:end !important;
    margin:0 !important;
  }
}


/* V49 — animated Fanti in the Help hero (desktop only) */
@media(min-width:801px){
  .help-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) 260px;
    align-items:center;
    gap:24px;
    overflow:hidden;
  }
  .help-hero-copy{
    min-width:0;
  }
  .hero-elephant{
    position:relative;
    width:260px;
    height:260px;
    justify-self:end;
    align-self:center;
    margin:0;
  }
  .elephant{
    position:relative;
    width:260px;
    height:260px;
    z-index:3;
    filter:drop-shadow(0 22px 30px rgba(0,0,0,.18));
    transform:none;
  }
  .layer{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:contain;
    pointer-events:none;
    user-select:none;
  }
  .left-arm{
    z-index:1;
    animation:leftArmMove 1.8s ease-in-out infinite;
    transform-origin:65% 75%;
  }
  .body{
    z-index:2;
    animation:bodyMove 1.8s ease-in-out infinite;
    transform-origin:50% 90%;
  }
  .head{
    z-index:3;
    animation:headMove 1.8s ease-in-out infinite;
    transform-origin:50% 75%;
  }
  .right-arm{
    z-index:4;
    animation:rightArmMove 1.8s ease-in-out infinite;
    transform-origin:45% 85%;
  }
}
@media(max-width:800px){
  .hero-elephant{display:none !important}
}
@keyframes headMove{
  0%,100%{transform:rotate(-2deg) translateY(0)}
  50%{transform:rotate(2deg) translateY(-2px)}
}
@keyframes bodyMove{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(0)}
}
@keyframes leftArmMove{
  0%,100%{transform:rotate(-2deg)}
  50%{transform:rotate(3deg)}
}
@keyframes rightArmMove{
  0%,100%{transform:rotate(0deg) translateY(0)}
  50%{transform:rotate(-1deg) translateY(-1px)}
}
@media(prefers-reduced-motion:reduce){
  .left-arm,.body,.head,.right-arm{animation:none !important}
}


/* V54 — language selector must remain visible in the header on mobile */
@media(max-width:800px){
  .header-language-control,
  .language-control,
  .language-selector,
  #header-language,
  header select[aria-label="Website language"]{
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
  }

  #header-language{
    display:block !important;
  }
}


/* V55 — mobile header: centered brand on first row, controls on second row */
@media(max-width:800px){
  .site-header{
    min-height:0 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;
    padding:12px 0 14px !important;
  }

  .brand--image{
    align-self:center !important;
    justify-content:center !important;
  }

  .header-controls{
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;
  }

  .language-control{
    display:flex !important;
  }

  .theme-toggle{
    min-width:86px !important;
  }
}
