@font-face{font-family:IRANSansDN;src:url(../fonts/iransansdn.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:IRANSansDN;src:url(../fonts/iransansdnbold.woff2) format('woff2');font-weight:700;font-display:swap}

:root{
  --bg:#FFFDF6; --card:#fff; --ink:#231F20; --ink2:#3A3330; --muted:#6B6360;
  --line:#F1E7D3; --line2:#E3D6BC; --chip:#F3ECDF;
  --yellow:#FFCD21; --yellow-soft:#FFF4C2; --yellow-ink:#7A5C00;
  --blue:#5CC8EC; --blue-deep:#0089B3; --blue-ink:#00597A;
  --red:#CE1D24; --primary:#E81040; --primary-ink:#C20D36; --primary-soft:#FFE3EA;
  --green:#288038; --green-soft:#EAF8EC; --green-ink:#1E6A2E;
  --radius:22px; --tabbar:72px;
  --safe-b:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:IRANSansDN,Tahoma,sans-serif;font-size:15px;line-height:1.8;padding-bottom:calc(var(--tabbar) + var(--safe-b));display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
body > main{flex:1 0 auto}
body.has-mini{padding-bottom:calc(var(--tabbar) + 68px + var(--safe-b))}
h1,h2,h3{font-weight:700;line-height:1.4;margin:0}
p{margin:0}
a{color:var(--primary-ink);text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer}
img{max-width:100%;display:block}
svg{display:block}
main:focus{outline:none}
:focus-visible{outline:3px solid #1B6CA8;outline-offset:2px;border-radius:8px}
.skip{position:absolute;inset-inline-start:-999px;top:8px;background:#fff;padding:8px 14px;border-radius:12px;z-index:50}
.skip:focus{inset-inline-start:8px}
.wrap{max-width:1200px;margin:0 auto;padding:0 16px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.muted{color:var(--muted)}

/* ---------- chrome ---------- */
.topbar{background:var(--bg)}
.topbar-in{display:flex;align-items:center;justify-content:center;gap:12px 24px;padding-top:14px;padding-bottom:6px;flex-wrap:wrap}
.brand{font-size:19px;font-weight:700;color:var(--green);display:inline-flex;align-items:center;gap:10px}
.brand .mark{width:40px;height:40px;border-radius:12px;flex:none;transition:transform .2s}
.route-home .topbar .brand .mark{display:none}
.brand span{color:var(--red)}
.topnav,.topbar .goto-open{display:none}
.topnav a{color:var(--ink);font-weight:700}
.topnav a[aria-current="page"]{color:var(--primary-ink)}

.tabbar{position:fixed;inset-inline:0;bottom:0;z-index:20;height:calc(var(--tabbar) + var(--safe-b));padding:6px 8px calc(8px + var(--safe-b));background:#fff;border-top:1px solid #EFE6D4;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:12px;color:var(--muted);border-radius:14px}
.tabbar a[aria-current="page"]{color:var(--primary-ink);font-weight:700}
.tabbar svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.footer{display:none}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;padding:12px 22px;font-weight:700;font-size:16px;min-height:48px}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:#CC0D37;color:#fff}
.btn-white{background:#fff;color:var(--ink)}
.btn-outline{background:transparent;border:2px solid var(--line2);border-radius:999px;padding:8px 18px;font-weight:700;color:var(--ink);min-height:44px}
.btn svg{width:20px;height:20px}
.goto-open svg{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.icon-btn{width:44px;height:44px;border-radius:50%;border:0;background:var(--chip);display:inline-flex;align-items:center;justify-content:center;color:var(--ink);flex:none}
.icon-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

.card{background:var(--card);border:2px solid var(--line);border-radius:var(--radius)}
.section{margin-top:24px}
.section-title{font-size:18px;margin-bottom:12px}
.stack{display:flex;flex-direction:column;gap:12px}

/* ---------- home ---------- */
.hero{position:relative;background:var(--yellow);border-radius:28px;overflow:hidden;margin-top:4px}
.hero-text{position:absolute;top:20px;left:16px;width:60%;display:flex;flex-direction:column;gap:10px;align-items:flex-start;z-index:1;pointer-events:none}
.hero-text > *{pointer-events:auto}
.hero h1{font-size:clamp(19px,5.6vw,26px)}
.hero p{color:var(--ink2);font-size:13px;line-height:1.75}
.hero .btn{padding:10px 18px;min-height:44px;font-size:15px}
.hero .badge{display:none}
.hero .actions{display:flex;flex-wrap:wrap;gap:10px}
.hero .btn-white{display:none}
.hero-art{display:block;width:100%;border:0;padding:0;background:transparent;position:relative;cursor:default}
.hero-art img,.hero-art svg{width:100%;height:auto}
.hero-art:focus-visible{outline-offset:-6px;border-radius:28px}

/* continue + go-to-page side by side */
.quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.quick-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:14px;color:var(--ink);text-align:start;font:inherit;width:100%;min-width:0}
.quick-card .ic{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none;transition:transform .2s}
.quick-card .ic svg{width:24px;height:24px}
.quick-card .play{background:var(--primary);color:#fff}
.quick-card .hash{background:var(--yellow);color:var(--ink)}
.quick-card .hash svg{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.quick-card .txt{display:block;min-width:0;width:100%}
.quick-card small{display:block;font-size:12px;color:var(--muted);line-height:1.6}
.quick-card strong{display:block;font-size:15px;line-height:1.6}
.quick-card em{display:block;font-style:normal;font-size:12px;color:var(--ink2);line-height:1.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.book-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.book-card{border-radius:var(--radius);padding:12px;display:flex;flex-direction:column;gap:8px;color:var(--ink)}
.book-card.v1{background:var(--yellow)}
.book-card.v2{background:var(--blue-deep);color:#fff}
.book-card img{width:100%;height:auto;aspect-ratio:480/679;object-fit:cover;border-radius:14px;background:#ffffff55}
.bc-text{display:flex;flex-direction:column;gap:2px}
.book-card strong{font-size:16px}
.book-card .meta{font-size:12px;opacity:.9}
.book-card .lvl,.book-card .desc,.book-card .topics,.book-card .go{display:none}
.home-grid{display:grid;gap:12px}
.author-card{display:flex;gap:14px;align-items:center;padding:16px}
.author-card .name{display:block;font-size:16px;font-weight:700;color:var(--ink)}
.author-card > a{flex:none;border-radius:50%}
.avatar{width:72px;height:72px;flex:none;border-radius:50%;background:var(--yellow);object-fit:cover;border:3px solid var(--yellow)}
.author-card p{font-size:13px;color:var(--ink2)}
.note-card{background:var(--green-soft);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:6px;color:var(--green-ink)}
.note-card h2{font-size:15px}
.note-card p{font-size:13px;color:#2D4A33}
.note-card a{color:var(--green-ink);font-weight:700}
.features{display:none}

/* ---------- book (page grid) ---------- */
.vol-head{border-radius:0 0 28px 28px;padding:16px 16px 20px;margin:0 -16px;display:flex;flex-direction:column;gap:14px}
.vol-head.v1{background:var(--yellow)}
.vol-head.v2{background:var(--blue)}
.vol-head .row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.vol-head h1{font-size:20px}
.vol-head h1 .sub{display:block;font-size:13px;font-weight:400}
.vol-head .btn-white{padding:8px 14px;min-height:40px;font-size:14px}
.tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;background:rgba(255,255,255,.45);padding:5px;border-radius:999px}
.tabs a{border-radius:999px;padding:9px;text-align:center;font-weight:700;color:var(--ink)}
.tabs a[aria-selected="true"]{background:#fff}
.vol-head .hint{font-size:13px}
.page-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}
/* offline audio box on the book page */
.offline{display:flex;align-items:center;gap:12px;padding:12px 14px;margin-top:16px;flex-wrap:wrap}
.offline .ic{width:44px;height:44px;border-radius:50%;background:var(--green-soft);color:var(--green-ink);display:flex;align-items:center;justify-content:center;flex:none}
.offline .ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.offline > div{flex:1;min-width:150px;display:flex;flex-direction:column}
.offline strong{font-size:15px}
.offline small{font-size:12px;color:var(--muted);line-height:1.7}
.offline.done small{color:var(--green-ink)}
.offline .btn{min-height:40px;padding:8px 18px;font-size:14px}
.offline .btn-outline{min-height:40px;font-size:14px}
.offline .bar{display:block;height:6px;border-radius:3px;background:var(--chip);margin-top:6px;overflow:hidden}
.offline .bar > span{display:block;height:100%;width:0;background:var(--green);transition:width .2s}
/* install suggestion */
.install-card{display:flex;align-items:center;gap:14px;margin-top:16px;padding:14px 16px;border-radius:var(--radius);background:var(--primary-soft)}
.install-card > img{width:52px;height:52px;border-radius:14px;flex:none}
.install-card > div{flex:1;min-width:0}
.install-card h2{font-size:15px}
.install-card p{font-size:12px;color:var(--ink2);line-height:1.7}
.install-card .btn{min-height:42px;padding:8px 16px;font-size:14px;flex:none}
.install-card .btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ios-help{font-size:13px;background:#fff;border-radius:14px;padding:8px 12px;margin-top:8px;color:var(--ink)}
.tile{position:relative;background:#fff;border:2px solid var(--line);border-radius:18px;padding:12px 6px 10px;min-height:108px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;color:var(--ink)}
.tile .num{font-size:30px;font-weight:700;line-height:1}
.v1 .tile .num,.tile.v1 .num{color:#A87700}
.v2 .tile .num,.tile.v2 .num{color:var(--blue-ink)}
.tile .t{font-size:12px;line-height:1.6}
.tile .c{font-size:11px;color:var(--muted)}
.tile.last{border-color:var(--primary)}
.tile .flag{position:absolute;top:-10px;background:var(--primary);color:#fff;font-size:10px;font-weight:700;padding:1px 8px;border-radius:999px}

/* ---------- lesson ---------- */
.lesson-layout{display:block}
.lesson-side{display:none}
.lesson-head{border-radius:0 0 28px 28px;margin:0 -16px;padding:10px 16px 18px;display:flex;flex-direction:column;gap:8px}
.lesson-head.v1{background:var(--yellow)}
.lesson-head.v2{background:var(--blue)}
.lesson-head .row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.lesson-head .icon-btn{background:rgba(255,255,255,.65)}
.lesson-head .icon-btn.goto-open svg{width:20px;height:20px}
.vol-pill{font-size:13px;font-weight:700;background:rgba(255,255,255,.65);border-radius:999px;padding:2px 14px}
.lesson-head .title{display:flex;align-items:center;gap:14px}
.lesson-head .big{font-size:56px;font-weight:700;line-height:1}
.lesson-head h1{font-size:22px}

/* sound type: the most used switch, on top (sliding pill; RTL: first option on the right) */
.seg{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;background:var(--chip);padding:4px;border-radius:999px}
.seg::before{content:"";position:absolute;top:4px;bottom:4px;inset-inline-start:4px;width:calc(50% - 6px);background:#fff;border-radius:999px;box-shadow:0 1px 3px rgba(0,0,0,.1);transition:transform .25s cubic-bezier(.3,.7,.4,1)}
.seg[data-mode="s"]::before{transform:translateX(calc(-100% - 4px))}
.seg button{position:relative;border:0;border-radius:999px;padding:9px 6px;background:transparent;font-weight:700;color:var(--muted);font-size:14px;transition:color .2s}
.seg button[aria-checked="true"]{color:var(--ink)}
.seg button:disabled{opacity:.45;cursor:not-allowed}
.mode-seg{margin-top:16px}

/* exercises: play + own progress only */
.ex-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.ex{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;column-gap:12px;background:#fff;border:2px solid var(--line);border-radius:20px;padding:10px 12px;transition:border-color .2s}
.ex.on{border-color:var(--primary)}
.ex-play{grid-row:1/3;width:48px;height:48px;border-radius:50%;border:0;background:var(--primary-soft);color:var(--primary);display:flex;align-items:center;justify-content:center;transition:background-color .2s,color .2s}
.ex-play svg{width:22px;height:22px}
.ex.on .ex-play{background:var(--primary);color:#fff;box-shadow:0 6px 14px rgba(232,16,64,.28)}
.ex-play[aria-busy="true"]{opacity:.7}
.ex-name{font-weight:700;font-size:15px;line-height:1.6}
.ex-prog{display:flex;align-items:center;gap:8px;direction:ltr}
.ex-prog input{flex:1;min-width:0;margin:0;height:20px;accent-color:var(--primary)}
.ex:not(.on) .ex-prog input{opacity:.45}
.ex-time{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.err{font-size:13px;color:#A0461A;margin-top:8px}
.pager{display:flex;justify-content:space-between;gap:12px;margin-top:20px}
.pager a{border:2px solid var(--line2);border-radius:999px;padding:8px 18px;color:var(--ink);font-weight:700}
.pager span{flex:1}

/* dock: shared, less used controls; fixed above the tab bar on phones */
.dock{position:fixed;inset-inline:0;bottom:calc(var(--tabbar) + var(--safe-b));z-index:18;background:#fff;border-top:1px solid var(--line);padding:8px 12px;display:flex;align-items:center;gap:4px}
.route-lesson{padding-bottom:calc(var(--tabbar) + 60px + var(--safe-b))}
.route-lesson .mini{bottom:calc(var(--tabbar) + var(--safe-b) + 68px)}
.dock .grow{flex:1}
.dock svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.speed-chip{height:42px;border:1.5px solid var(--line2);background:#fff;border-radius:999px;padding:0 12px 0 14px;display:flex;align-items:center;gap:6px;font-weight:700;font-size:15px;font-variant-numeric:tabular-nums}
.speed-chip svg{width:22px;height:22px}
.speed-chip[aria-expanded="true"]{background:var(--yellow-soft);border-color:#E0A800}
.ghost{width:42px;height:42px;border-radius:50%;border:0;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center}
.ghost svg{width:21px;height:21px}
.ghost[aria-pressed="true"]{background:var(--yellow-soft);color:var(--yellow-ink)}
.speed-sheet{position:absolute;bottom:100%;inset-inline:0;z-index:-1;background:#fff;border-top:1px solid var(--line);border-radius:22px 22px 0 0;box-shadow:0 -10px 24px rgba(35,31,32,.1);padding:12px 14px 14px;display:grid;grid-template-columns:56px minmax(0,1fr) 56px;align-items:center;column-gap:10px;row-gap:4px;transform:translateY(100%);opacity:0;visibility:hidden;transition:transform .22s ease,opacity .22s,visibility 0s .22s}
.speed-sheet.open{transform:none;opacity:1;visibility:visible;transition:transform .22s ease,opacity .22s}
.speed-sheet .val{grid-column:1/-1;text-align:center;font-size:13px;color:var(--muted)}
.speed-sheet .val b{color:var(--ink);font-size:15px;font-variant-numeric:tabular-nums}
.speed-sheet .end{width:56px;height:56px;border-radius:50%;border:1.5px solid var(--line2);background:#fff;color:var(--ink2);display:flex;align-items:center;justify-content:center}
.speed-sheet .end svg{width:40px;height:40px;stroke-width:1.6}
.speed-sheet .mid{position:relative}
.speed-sheet .mid::after{content:"";position:absolute;left:50%;top:-8px;width:2px;height:8px;margin-left:-1px;background:var(--line2);border-radius:1px}
.speed-sheet input{width:100%;margin:0;height:28px;accent-color:#E0A800;direction:rtl;display:block}

/* ---------- mini player ---------- */
.mini{position:fixed;inset-inline:8px;bottom:calc(var(--tabbar) + var(--safe-b) + 8px);z-index:19;background:var(--ink);color:#fff;border-radius:18px;padding:8px 10px;display:flex;align-items:center;gap:10px;box-shadow:0 8px 24px rgba(0,0,0,.2)}
.mini[hidden]{display:none}
.mini button{width:44px;height:44px;border-radius:50%;border:0;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.mini button svg{width:22px;height:22px}
.mini a{color:#fff;flex:1;min-width:0;font-size:13px;line-height:1.5}
.mini a strong{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- goto sheet ---------- */
.sheet{border:0;padding:0;margin:auto auto 0;width:100%;max-width:440px;background:var(--bg);border-radius:28px 28px 0 0;color:var(--ink)}
.sheet::backdrop{background:rgba(35,31,32,.45)}
.sheet-in{padding:12px 20px calc(22px + var(--safe-b));display:flex;flex-direction:column;gap:12px}
.sheet .grip{align-self:center;width:44px;height:5px;border-radius:3px;background:#DCD2C0}
.sheet .row{display:flex;align-items:center;justify-content:space-between}
.sheet h2{font-size:19px}
.sheet .vols{display:flex;gap:8px}
.sheet .vols button{border:2px solid var(--line2);background:transparent;border-radius:999px;padding:4px 14px;font-weight:700;font-size:13px;color:var(--muted)}
.sheet .vols button[aria-checked="true"]{background:var(--yellow);border-color:var(--yellow);color:var(--ink)}
.sheet .vols button.v2[aria-checked="true"]{background:var(--blue);border-color:var(--blue)}
.sheet output{height:88px;border-radius:22px;background:#fff;border:3px solid var(--line2);display:flex;align-items:center;justify-content:center;font-size:52px;font-weight:700;letter-spacing:4px}
.sheet output.ok{border-color:var(--primary)}
.sheet .hint{min-height:24px;text-align:center;font-size:14px;color:var(--muted)}
.sheet .hint.ok{color:var(--green-ink)}
.sheet .hint.warn{color:#A0461A}
.sheet .hint a{font-weight:700}
.keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;direction:ltr}
.keypad button{height:62px;border:0;border-radius:18px;background:#fff;font-size:26px;font-weight:700;box-shadow:0 1px 0 var(--line)}
.keypad .del{background:var(--chip);font-size:20px}
.keypad .go{background:#E9DFD0;color:#8C8478;font-size:20px}
.keypad .go.ok{background:var(--primary);color:#fff}

/* ---------- content pages ---------- */
.page-head{padding:12px 0 4px;display:flex;flex-direction:column;gap:8px}
.page-head h1{font-size:24px}
.page-head p{color:var(--ink2);font-size:14px}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.stats div{background:#fff;border:2px solid var(--line);border-radius:16px;padding:10px 6px;text-align:center;display:flex;flex-direction:column}
.stats strong{font-size:19px;color:var(--primary-ink);line-height:1.5}
.stats span{font-size:11px;color:var(--muted)}
.book-info{border-radius:26px;padding:16px;display:flex;flex-direction:column;gap:12px;margin-top:16px}
.book-info.v1{background:var(--yellow)}
.book-info.v2{background:var(--blue)}
.book-info .top{display:flex;gap:14px;align-items:flex-start}
.book-info img{width:104px;height:auto;flex:none;border-radius:12px;aspect-ratio:480/679;object-fit:cover}
.book-info .top div{display:flex;flex-direction:column;gap:4px}
.book-info small{font-size:12px;font-weight:700}
.book-info h2{font-size:20px}
.book-info ul{margin:0;padding:0 18px 0 0;font-size:13px;line-height:2}
.author-hero{background:var(--yellow);border-radius:28px;padding:24px 20px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;margin-top:12px}
.author-hero .avatar{width:120px;height:120px;border:5px solid #fff}
.author-hero h1{font-size:24px}
.prose{display:flex;flex-direction:column;gap:12px;font-size:15px;line-height:2.05;color:#2E2826;margin-top:20px}
.contact-list{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.contact-item{border-radius:22px;padding:14px 16px;display:flex;align-items:center;gap:14px;color:var(--ink);background:#fff;border:2px solid var(--line)}
.contact-item.wa{background:var(--green-soft);border-color:transparent;color:var(--green-ink)}
.contact-item .ic{width:52px;height:52px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center}
.contact-item .ic svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.contact-item strong{display:block;font-size:16px}
.contact-item span{font-size:14px;direction:ltr;display:block;text-align:end}
.menu{display:flex;flex-direction:column;margin-top:12px}
.menu a,.menu button{display:flex;align-items:center;gap:14px;padding:14px 8px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);font-size:16px;font-weight:700;text-align:start;width:100%}
.menu .ic{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;flex:none}
.menu img.ic{border-radius:50%;object-fit:cover}
.menu .ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.menu small{display:block;font-size:12px;font-weight:400;color:var(--muted)}
.empty{padding:40px 0;text-align:center;display:flex;flex-direction:column;gap:12px;align-items:center}

/* ---------- desktop ---------- */
@media (min-width:960px){
  body,body.has-mini{padding-bottom:0}
  .wrap{padding:0 24px}
  .topbar{background:#fff;border-bottom:1px solid #EFE6D4;position:sticky;top:0;z-index:20}
  .topbar-in{padding-top:14px;padding-bottom:14px;justify-content:space-between}
  .route-home .topbar .brand .mark{display:block}
  .brand{font-size:21px}
  .brand .mark{width:44px;height:44px}
  .topnav{display:flex;gap:4px 26px;font-size:15px}
  .topbar .goto-open{display:inline-flex}
  .tabbar{display:none}
  .footer{display:block;background:var(--ink);color:#E9E4DA;margin-top:56px;padding:32px 0}
  .footer-in{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;align-items:center}
  .footer .brand{color:#7FD38E}
  .footer .brand span{color:#FF7A8C}
  .footer p{font-size:14px;color:#BDB5A8}
  .footer p a{color:#fff}
  .footer-links{display:flex;gap:20px}
  .footer-links a{color:#fff;font-weight:700}
  .mini{inset-inline:auto 24px;bottom:24px;width:360px}

  .hero{border-radius:36px;margin-top:28px}
  .hero-text{top:44px;left:48px;width:46%;gap:16px}
  .hero h1{font-size:44px;line-height:1.35}
  .hero p{font-size:18px;line-height:1.9}
  .hero .badge{display:inline-block;background:#fff;border-radius:999px;padding:4px 14px;font-size:13px;font-weight:700}
  .hero .btn{padding:14px 28px;font-size:17px}
  .hero .btn-white{display:inline-flex}
  .quick{gap:20px;margin-top:24px}
  .quick-card{flex-direction:row;align-items:center;gap:16px;padding:18px 20px}
  .quick-card .ic{width:60px;height:60px}
  .quick-card .ic svg{width:28px;height:28px}
  .quick-card strong{font-size:18px}
  .quick-card em{font-size:13px}
  .home-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch}
  .install-card{margin-top:24px;padding:18px 22px}
  .vol-head h1 .sub{display:inline;font-size:16px;margin-inline-start:8px;opacity:.8}
  .book-cards{gap:20px}
  .book-card{flex-direction:row;align-items:flex-start;gap:24px;padding:24px}
  .book-card img{width:150px;flex:none}
  .bc-text{gap:6px;min-width:0}
  .book-card .lvl{display:block;font-size:13px;font-weight:700;opacity:.85}
  .book-card strong{font-size:24px;line-height:1.3}
  .book-card .meta{font-size:14px}
  .book-card .desc{display:block;font-size:15px;line-height:1.9}
  .book-card .topics{display:flex;flex-direction:column;gap:4px;margin-top:4px}
  .book-card .topics span{font-size:13px;line-height:1.7;padding-inline-start:16px;position:relative}
  .book-card .topics span::before{content:"";position:absolute;inset-inline-start:2px;top:.75em;width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.6}
  .book-card .go{display:inline-block;align-self:flex-start;margin-top:8px;background:#fff;color:var(--ink);border-radius:999px;padding:6px 16px;font-size:14px;font-weight:700}
  .book-card:hover .go{background:var(--primary);color:#fff}
  .features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
  .features .card{padding:20px;display:flex;flex-direction:column;gap:6px}
  .features h3{font-size:17px}
  .features p{font-size:14px;color:var(--ink2)}
  .features .ic{width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center;margin-bottom:6px}
  .features .ic svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

  .vol-head,.lesson-head{margin:24px 0 0;border-radius:30px;padding:24px}
  .page-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}

  .lesson-layout{display:flex;gap:24px;align-items:flex-start;margin-top:24px}
  .lesson-side{display:flex;flex-direction:column;gap:10px;flex:0 0 280px;background:#fff;border:2px solid var(--line);border-radius:24px;padding:14px;position:sticky;top:96px;max-height:calc(100vh - 120px);overflow:auto}
  .lesson-side ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
  .lesson-side a{display:flex;align-items:center;gap:12px;padding:6px 10px;border-radius:14px;color:var(--ink);font-size:14px}
  .lesson-side a .n{width:36px;height:36px;flex:none;border-radius:10px;background:var(--yellow-soft);color:var(--yellow-ink);display:flex;align-items:center;justify-content:center;font-weight:700}
  .lesson-side a[aria-current="page"]{background:var(--primary-soft);font-weight:700}
  .lesson-side a[aria-current="page"] .n{background:var(--primary);color:#fff}
  .lesson-main{flex:1;min-width:0}
  .route-lesson{padding-bottom:0}
  .dock{position:sticky;bottom:16px;margin-top:20px;border:1px solid var(--line);border-radius:999px;box-shadow:0 8px 24px rgba(35,31,32,.1);padding:8px 14px}
  .speed-sheet{inset-inline:0 auto;width:380px;bottom:calc(100% + 8px);border-radius:22px;border:1px solid var(--line);transform:translateY(8px)}
  .speed-sheet.open{transform:none}
  .ex{padding:12px 16px}
  .lesson-main .lesson-head{margin:0}
  .lesson-head .big{font-size:72px}
  .lesson-head h1{font-size:28px}
  .lesson-head .back,.lesson-head .goto-open{visibility:hidden}

  .content{max-width:760px;margin:0 auto}
  .sheet{margin:auto;border-radius:28px}
}

/* ---------- hover (pointer devices only) ---------- */
@media (hover:hover){
  .btn,.btn-outline,.icon-btn,.ghost,.speed-chip,.ex-play,.tile,.book-card,.quick-card,.contact-item,.pager a,.tabs a,.menu a,.menu button,.lesson-side a,.topnav a,.footer-links a,.keypad button,.sheet .vols button,.mini button,.tabbar a{transition:background-color .15s,color .15s,border-color .15s,box-shadow .2s,transform .2s}
  .brand:hover .mark{transform:rotate(-8deg) scale(1.06)}
  .topnav a:hover{color:var(--primary)}
  .btn-primary:hover{background:var(--primary-ink);box-shadow:0 6px 16px rgba(232,16,64,.3);transform:translateY(-1px)}
  .btn-white:hover{background:var(--yellow-soft);transform:translateY(-1px)}
  .btn-outline:hover{border-color:var(--primary);color:var(--primary-ink)}
  .icon-btn:hover{background:var(--line2)}
  .quick-card:hover,.tile:hover,.contact-item:hover{border-color:var(--line2);box-shadow:0 8px 20px rgba(35,31,32,.08);transform:translateY(-2px)}
  .quick-card:hover .ic{transform:scale(1.08)}
  .contact-item.wa:hover{background:#DDF3E1}
  .tile.last:hover{border-color:var(--primary)}
  .book-card:hover{box-shadow:0 12px 26px rgba(35,31,32,.16);transform:translateY(-3px)}
  .tabs a:not([aria-selected="true"]):hover{background:rgba(255,255,255,.6)}
  .seg button:not(:disabled):not([aria-checked="true"]):hover{color:var(--ink)}
  .pager a:hover{border-color:var(--primary);color:var(--primary-ink)}
  .menu a:hover,.menu button:hover{background:var(--chip)}
  .lesson-side a:not([aria-current="page"]):hover{background:var(--chip)}
  .ex:not(.on):hover{border-color:var(--line2)}
  .ex-play:hover{background:var(--primary);color:#fff}
  .ghost:hover{background:var(--chip);color:var(--ink)}
  .speed-chip:hover,.speed-sheet .end:hover{border-color:#E0A800}
  .author-card > a:hover .avatar{transform:scale(1.05)}
  .avatar{transition:transform .2s}
  .author-card a:hover,.note-card a:hover,.sheet .hint a:hover,.book-info + .card a:hover,.content .card a:hover{text-decoration:underline}
  .footer-links a:hover{color:var(--yellow)}
  .mini button:hover{background:var(--primary-ink)}
  .mini a:hover strong{text-decoration:underline}
  .keypad button:hover{background:var(--yellow-soft)}
  .keypad .del:hover{background:var(--line2)}
  .keypad .go.ok:hover{background:var(--primary-ink)}
  .sheet .vols button:not([aria-checked="true"]):hover{border-color:var(--muted);color:var(--ink)}
  .tabbar a:not([aria-current="page"]):hover{color:var(--ink)}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
