/* مسطرة — the website. Tokens are the MASTARA Design System's (04 Colors & Type). */
@font-face { font-family: "Hayyakum Allah"; font-weight: 300; font-display: swap; src: url("assets/fonts/hayyakum-allah-light.ttf"); }
@font-face { font-family: "Hayyakum Allah"; font-weight: 400; font-display: swap; src: url("assets/fonts/hayyakum-allah-regular.ttf"); }
@font-face { font-family: "Hayyakum Allah"; font-weight: 500; font-display: swap; src: url("assets/fonts/hayyakum-allah-medium.ttf"); }
@font-face { font-family: "Hayyakum Allah"; font-weight: 700; font-display: swap; src: url("assets/fonts/hayyakum-allah-bold.ttf"); }

:root {
  --m-yellow: #FFCC00; --m-amber: #F5A800; --m-ink: #0F172A; --m-text: #020617;
  --m-cream: #FFFBEB; --m-butter: #FFE9A8; --m-orange: #F97316; --m-white: #FFFFFF; --m-page: #F8FAFC;
  --m-slate-600: #475569; --m-slate-500: #64748B; --m-slate-400: #94A3B8; --m-line: #E2E8F0;
  --m-success: #047857; --m-info: #0369A1; --m-danger: #B91C1C; --m-heart: #FF4D6D;
  --m-font: "Hayyakum Allah", "Segoe UI", Tahoma, sans-serif;
  --m-radius-md: 8px; --m-radius-lg: 12px; --m-radius-xl: 24px; --m-radius-pill: 999px;
  --m-shadow-card: 0 1px 2px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.06);
  --m-shadow-lift: 0 2px 4px rgba(15,23,42,.08), 0 16px 40px rgba(15,23,42,.14);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--m-font); font-size: 17px; line-height: 1.6; color: var(--m-text); background: var(--m-white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
b, strong { font-weight: 700; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--m-ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--m-ink); outline-offset: 3px; }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 24px; border-radius: var(--m-radius-lg); border: 0; font: 700 17px/1 var(--m-font); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; }
.btn:hover { transform: translateY(-3px); box-shadow: var(--m-shadow-lift); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--yellow { background: var(--m-yellow); color: var(--m-ink); }
.btn--yellow:hover { background: var(--m-amber); }
.btn--ink { background: var(--m-ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--m-ink); box-shadow: inset 0 0 0 2px var(--m-ink); }
.btn--ghost:hover { background: rgba(255,255,255,.4); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn--xl { min-height: 64px; padding: 0 28px; font-size: 20px; }
.btn__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--m-yellow); color: var(--m-ink); flex: none; }
.btn--yellow .btn__ic { background: var(--m-ink); color: var(--m-yellow); }
.btn__t { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: start; }
.btn__t small { font: 400 13px/1 var(--m-font); opacity: .8; }
.btn--ink .btn__ic svg { animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(4px); } }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.top.is-stuck { border-color: var(--m-line); box-shadow: 0 4px 20px rgba(15,23,42,.05); }
.top__in { height: 68px; display: flex; align-items: center; gap: 20px; }
.top__logo img { height: 40px; width: auto; }
.top nav { display: flex; gap: 4px; }
.top nav a { text-decoration: none; padding: 8px 14px; border-radius: 8px; font-weight: 500; color: var(--m-slate-600); transition: background .2s, color .2s; }
.top nav a:hover { background: var(--m-butter); color: var(--m-ink); }
.top__cta { margin-inline-start: auto; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--m-yellow); overflow: hidden; isolation: isolate; }
#ticks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__fallback { display: none; position: absolute; inset: 0 0 auto 0; height: 64px; z-index: -1; background: repeating-linear-gradient(90deg, var(--m-ink) 0 5px, transparent 5px 16px); }
.no-gl .hero__fallback { display: block; }
.no-gl #ticks { display: none; }
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; padding-block: 150px 84px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--m-cream); color: #92400E; font: 500 14px/1 var(--m-font); }
.chip--ink { background: var(--m-ink); color: var(--m-yellow); }
h1 { font-size: clamp(40px, 6.3vw, 78px); line-height: 1.12; margin: 0 0 20px; font-weight: 700; letter-spacing: -.5px; }
.mark { display: inline-block; background: var(--m-ink); color: var(--m-yellow); padding: 2px .28em 6px; border-radius: 14px; transform: rotate(-1.6deg); margin-top: 8px; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--m-slate-600); margin: 0 0 28px; max-width: 34em; }
.hero .lead { color: #3a3200; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 22px; flex-wrap: wrap; font-weight: 500; }
.facts li::before { content: ""; display: inline-block; width: 7px; height: 14px; margin-inline-end: 8px; vertical-align: -2px; background: var(--m-ink); border-radius: 4px; }

/* the duo */
.duo { position: relative; height: 470px; }
.face { position: absolute; border: 0; background: none; padding: 0; cursor: pointer; filter: drop-shadow(0 18px 24px rgba(15,23,42,.22)); transition: transform .3s var(--ease); }
.face img { width: 100%; height: auto; }
.face:hover { transform: scale(1.06) rotate(-2deg); }
.face:active { transform: scale(.96); }
.face--boy { width: 250px; inset-block-start: 28px; inset-inline-start: 6px; --r: -7deg; animation: bob 5s ease-in-out infinite; }
.face--girl { width: 250px; inset-block-end: 0; inset-inline-end: 6px; --r: 6deg; animation: bob 5.6s ease-in-out -1.8s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-14px) rotate(calc(var(--r) * -.6)); } }
.bubble { position: absolute; z-index: 3; background: #fff; color: var(--m-ink); font-weight: 700; padding: 10px 16px; border-radius: 16px; box-shadow: var(--m-shadow-card); white-space: nowrap; }
.bubble::after { content: ""; position: absolute; bottom: -8px; inset-inline-start: 22px; width: 16px; height: 16px; background: inherit; transform: rotate(45deg); border-radius: 3px; }
.bubble--a { inset-block-start: 0; inset-inline-start: 160px; }
.bubble--b { inset-block-end: 232px; inset-inline-end: 60px; }
.bubble--sm { position: static; display: inline-block; }
.note { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; background: var(--m-ink); color: #fff; font-size: 14px; font-weight: 500; padding: 10px 14px; border-radius: 12px; box-shadow: var(--m-shadow-lift); animation: pop 6s var(--ease) infinite; white-space: nowrap; }
.note i { width: 10px; height: 10px; border-radius: 50%; background: var(--m-yellow); box-shadow: 0 0 0 0 rgba(255,204,0,.8); animation: ping 1.6s infinite; }
.note--1 { inset-block-start: 96px; inset-inline-end: -6px; }
.note--2 { inset-block-end: 70px; inset-inline-start: 18px; animation-delay: -3s; }
@keyframes pop { 0%, 8% { opacity: 0; transform: translateY(14px) scale(.9); } 14%, 70% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255,204,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,204,0,0); } }
.duo__hint { position: absolute; inset-block-end: -6px; inset-inline-start: 50%; transform: translateX(50%); margin: 0; font-size: 14px; color: #3a3200; opacity: .8; }

/* ---------- ticks band ---------- */
.band { height: 16px; background-color: var(--m-yellow); background-image: repeating-linear-gradient(90deg, var(--m-ink) 0 4px, transparent 4px 16px); animation: slide 1.6s linear infinite; }
.band--dark { background-color: var(--m-ink); background-image: repeating-linear-gradient(90deg, var(--m-yellow) 0 4px, transparent 4px 16px); }
@keyframes slide { to { background-position-x: 16px; } }

/* ---------- headings ---------- */
.kicker { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--m-yellow); color: var(--m-ink); font: 700 14px/1 var(--m-font); margin: 0 0 12px; }
.h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.15; margin: 0 0 12px; font-weight: 700; }

/* ---------- stories ---------- */
.story { padding: 96px 0 48px; background: var(--m-page); }
.story--expert { background: var(--m-cream); }
.story__head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-bottom: 28px; }
.story__head img { width: 132px; height: auto; animation: bob 5s ease-in-out infinite; --r: -4deg; }
.story__head .lead { margin: 0; }
.story__body { display: grid; grid-template-columns: 64px 1fr; gap: 24px; }
.rail { position: relative; }
.rail__track { position: sticky; top: 120px; height: min(58vh, 440px); }
.rail__bar, .rail__fill, .rail__ticks { position: absolute; top: 0; display: block; }
.rail__bar { bottom: 0; right: 28px; width: 8px; border-radius: 8px; background: var(--m-line); }
.rail__fill { right: 28px; width: 8px; border-radius: 8px; height: calc(var(--p, 0) * 100%); background: var(--m-yellow); box-shadow: 0 0 0 2px var(--m-ink) inset; }
.rail__ticks { bottom: 0; right: 0; width: 24px; background: repeating-linear-gradient(180deg, var(--m-ink) 0 2px, transparent 2px 14px) right / 12px 100% no-repeat, repeating-linear-gradient(180deg, var(--m-ink) 0 3px, transparent 3px 70px) right / 24px 100% no-repeat; }
.rail__face { position: absolute; right: 14px; top: calc(var(--p, 0) * 100%); width: 44px; height: 44px; transform: translateY(-50%); transition: top .15s linear; filter: drop-shadow(0 4px 6px rgba(15,23,42,.25)); }

.chap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px 0; }
.chap:nth-child(even) .copy { order: 2; }
.chap--wide { grid-template-columns: 1fr; gap: 24px; }
.chap__n { font: 700 14px/1 var(--m-font); color: var(--m-slate-500); margin: 0 0 12px; }
.chap h3 { font-size: clamp(25px, 3vw, 36px); line-height: 1.22; margin: 0 0 12px; font-weight: 700; }
.chap p { color: var(--m-slate-600); font-size: 18px; margin: 0 0 16px; }
.chap .btn { margin-top: 8px; }

.stage { position: relative; min-height: 300px; padding: 44px 28px 28px; background: #fff; border-radius: var(--m-radius-xl); box-shadow: var(--m-shadow-card); overflow: hidden; display: grid; align-content: center; justify-items: center; gap: 14px; }
.stage::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 12px; background: repeating-linear-gradient(90deg, var(--m-ink) 0 3px, transparent 3px 14px); }
.stage__face { position: absolute; inset-block-end: 10px; inset-inline-end: 14px; width: 110px; height: auto; animation: bob 5s ease-in-out infinite; --r: 4deg; }
.sticker { position: absolute; width: 118px; height: auto; pointer-events: none; filter: drop-shadow(0 8px 12px rgba(15,23,42,.18)); animation: wiggle 4s ease-in-out infinite; }
.sticker--tl { inset-block-start: 8px; inset-inline-start: -14px; --r: -8deg; }
.sticker--br { inset-block-end: -4px; inset-inline-end: -12px; --r: 7deg; }
@keyframes wiggle { 0%, 100% { transform: rotate(var(--r)); } 50% { transform: rotate(calc(var(--r) * -.5)) translateY(-6px); } }

/* ---------- mock UI (decorative; drawn from the app's own look) ---------- */
.code { margin: 0; width: 100%; max-width: 380px; padding: 18px; border-radius: 12px; background: var(--m-ink); color: #cbd5e1; font: 13px/1.7 ui-monospace, Consolas, monospace; text-align: left; white-space: pre-wrap; }
.code em { color: #fb7185; font-style: normal; }
.code b { color: #fff; font-weight: 400; }
.post { width: 100%; max-width: 380px; border: 1px solid var(--m-line); border-radius: 14px; padding: 16px; background: #fff; }
.post__h { display: flex; gap: 10px; align-items: center; }
.post__h small { display: block; color: var(--m-slate-500); font-size: 12px; }
.av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--m-yellow); color: var(--m-ink); font-weight: 700; flex: none; }
.av--girl { background: var(--m-butter); }
.post p { margin: 12px 0 !important; font-size: 15px !important; color: var(--m-text) !important; }
.post__stats { display: flex; gap: 14px; font-size: 13px; color: var(--m-slate-500); padding-bottom: 10px; border-bottom: 1px solid var(--m-line); }
.post__stats span:last-child { color: var(--m-danger); font-weight: 700; }
.comments { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.comments li { background: var(--m-page); border-radius: 12px; padding: 6px 12px; font-size: 14px; }
.comments b { margin-inline-end: 6px; color: var(--m-slate-600); }
.chat-friend { display: flex; align-items: center; gap: 10px; }
.dl { width: 100%; max-width: 340px; border: 1px solid var(--m-line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; }
.dl b { font-size: 14px; direction: ltr; text-align: start; }
.dl small { color: var(--m-slate-500); }
.dl__bar { display: block; height: 8px; border-radius: 8px; background: var(--m-line); overflow: hidden; }
.dl__bar u { display: block; height: 100%; width: 100%; background: var(--m-yellow); transform-origin: right; transform: scaleX(0); transition: transform 2.6s var(--ease) .5s; }
.in .dl__bar u, .stage.in .dl__bar u { transform: scaleX(1); }
.form { width: 100%; max-width: 360px; display: grid; gap: 10px; }
.form label { font-size: 13px; color: var(--m-slate-500); }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 5px; border-radius: 5px; background: var(--m-line); }
.steps i.on { background: var(--m-yellow); }
.field { border: 2px solid var(--m-yellow); border-radius: 10px; padding: 12px 14px; font-size: 15px; background: #fff; }
.field--text { font-size: 14px; color: var(--m-slate-600); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { background: var(--m-cream); color: #92400E; border-radius: 999px; padding: 4px 12px; font-size: 13px; direction: ltr; }
.prev { background: var(--m-page); border-radius: 12px; padding: 12px 14px; display: grid; }
.prev small { color: var(--m-slate-500); }
.fakebtn { background: var(--m-ink); color: var(--m-yellow); border-radius: 12px; text-align: center; padding: 14px; font-weight: 700; }
.stage--offers { padding-bottom: 40px; }
.offers { width: 100%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.offer { position: relative; border: 1.5px solid var(--m-line); border-radius: 14px; padding: 12px 10px; text-align: center; background: #fff; display: grid; gap: 4px; justify-items: center; opacity: 0; transform: scale(.8) translateY(14px); }
.stage.in .offer { animation: offerIn .6s var(--ease) forwards; animation-delay: calc(var(--k) * 110ms + 200ms); }
@keyframes offerIn { to { opacity: 1; transform: none; } }
.offer .av { width: 38px; height: 38px; font-size: 15px; }
.offer b { font-size: 15px; }
.offer small { color: var(--m-slate-500); font-size: 12px; }
.offer .price { font-weight: 700; font-size: 14px; }
.offer .tag { position: absolute; inset-block-start: -10px; background: var(--m-ink); color: var(--m-yellow); font-size: 11px; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.offer--pick { border-color: var(--m-yellow); box-shadow: 0 0 0 3px var(--m-yellow); }
.log { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 400px; display: grid; gap: 8px; }
.log li { border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.5; }
.log .sys { background: var(--m-page); color: var(--m-slate-600); }
.log .sys--warn { background: #FEF3C7; color: #92400E; }
.log .sys--ok { background: #D1FAE5; color: var(--m-success); }
.log .me { background: var(--m-yellow); color: var(--m-ink); justify-self: end; border-end-end-radius: 4px; }
.stage--door { min-height: 340px; grid-auto-flow: column; align-items: end; justify-content: center; gap: 16px; }
.door { position: relative; width: 120px; height: 220px; background: var(--m-butter); border: 4px solid var(--m-ink); border-radius: 14px 14px 0 0; }
.knob { position: absolute; inset-block-start: 110px; inset-inline-start: 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--m-ink); }
.box { position: relative; width: 110px; height: 90px; background: var(--m-amber); border: 4px solid var(--m-ink); border-radius: 10px; display: grid; place-items: center; transform: rotate(-3deg); animation: wiggle 4s ease-in-out infinite; --r: -3deg; }
.box b { font-size: 16px; }
.tape { position: absolute; inset-block-start: 0; inset-inline: 40% ; height: 100%; background: var(--m-ink); opacity: .85; }
.folder { width: 100%; max-width: 340px; border: 2px dashed var(--m-slate-400); border-radius: 14px; padding: 16px 18px; display: grid; gap: 8px; }
.folder small { color: var(--m-slate-500); font-weight: 400; }
.folder ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; direction: ltr; text-align: left; font-size: 13px; color: var(--m-slate-600); }
.views { justify-self: end; background: var(--m-ink); color: #fff; border-radius: 999px; padding: 3px 12px; font-size: 13px; }
.msgs { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 340px; display: grid; gap: 8px; }
.msgs li { padding: 10px 14px; border-radius: 14px; font-size: 15px; max-width: 80%; }
.msgs .in { background: var(--m-page); justify-self: start; }
.msgs .out { background: var(--m-yellow); justify-self: end; }
.msgs .seen { justify-self: center; background: none; font-size: 12px; color: var(--m-slate-400); }
.verify { width: 100%; max-width: 360px; border: 1px solid var(--m-line); border-radius: 14px; padding: 16px; display: grid; gap: 14px; }
.verify__h { display: flex; gap: 10px; align-items: center; }
.verify__h small { display: block; color: var(--m-slate-500); font-size: 13px; }
.badge { margin-inline-start: auto; background: #D1FAE5; color: var(--m-success); font-style: normal; font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.verify ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.verify li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-inline-end: 8px; border-radius: 50%; background: var(--m-success); color: #fff; font-size: 13px; }
.pushes { display: grid; gap: 10px; width: 100%; max-width: 380px; }
.push { display: flex; gap: 12px; align-items: center; background: var(--m-ink); color: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--m-shadow-card); }
.stage.in .push { animation: slideIn .7s var(--ease) both; }
.stage.in .push:nth-child(2) { animation-delay: .5s; }
.stage.in .push:nth-child(3) { animation-delay: 1s; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-16px) scale(.96); } }
.push i { width: 38px; height: 38px; border-radius: 10px; background: var(--m-yellow) url("assets/icons/favicon-32.png") center / 24px no-repeat; flex: none; }
.push b { display: block; font-size: 15px; }
.push small { color: #cbd5e1; font-size: 13px; }
.form--sheet .field b { font-size: 22px; }
.lock { background: var(--m-cream); color: #92400E; border-radius: 10px; padding: 8px 12px; font-size: 13px; text-align: center; }
.stepper { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 340px; display: grid; gap: 12px; }
.stepper li { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--m-line); }
.stepper i { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--m-line); font-style: normal; font-weight: 700; }
.stepper small { color: var(--m-slate-500); }
.stepper .done i { background: var(--m-success); color: #fff; }
.stepper .now { border-color: var(--m-yellow); box-shadow: 0 0 0 3px var(--m-butter); }
.stepper .now i { background: var(--m-yellow); animation: ping 1.6s infinite; }
.rate { width: 100%; max-width: 360px; display: grid; gap: 12px; text-align: center; }
.stars { font-size: 38px; letter-spacing: 4px; color: var(--m-amber); text-shadow: 0 2px 0 rgba(15,23,42,.1); }
.stage.in .stars { animation: stars 1s var(--ease) both; }
@keyframes stars { from { opacity: 0; transform: scale(.6); letter-spacing: -8px; } }
.rate p { margin: 0 !important; color: var(--m-text) !important; }
.direct { background: var(--m-ink); color: #fff; border-radius: 14px; padding: 14px; display: grid; }
.direct small { color: var(--m-butter); }
.fine { text-align: center; color: var(--m-slate-500); font-size: 15px; margin: 24px 0 0; }

/* ---------- why ---------- */
.why { padding: 96px 0; background: #fff; text-align: center; }
.tabs { display: inline-flex; background: var(--m-page); border-radius: 14px; padding: 5px; margin: 20px 0 36px; box-shadow: inset 0 0 0 1px var(--m-line); }
.tabs button { border: 0; background: none; padding: 12px 26px; border-radius: 10px; font: 700 17px/1 var(--m-font); cursor: pointer; transition: background .25s, box-shadow .25s; }
.tabs button[aria-selected="true"] { background: var(--m-yellow); box-shadow: var(--m-shadow-card); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: start; }
.cards[hidden] { display: none; }
.card { background: #fff; border-radius: 18px; padding: 24px; box-shadow: var(--m-shadow-card); border: 1px solid var(--m-line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--m-shadow-lift); }
.card img { width: 64px; height: 64px; margin-bottom: 12px; transition: transform .4s var(--ease); }
.card:hover img { transform: rotate(-8deg) scale(1.12); }
.card h3 { margin: 0 0 6px; font-size: 22px; }
.card p { margin: 0; color: var(--m-slate-600); }
.cards:not([hidden]) .card { animation: cardIn .6s var(--ease) both; }
.cards .card:nth-child(2) { animation-delay: .06s; } .cards .card:nth-child(3) { animation-delay: .12s; }
.cards .card:nth-child(4) { animation-delay: .18s; } .cards .card:nth-child(5) { animation-delay: .24s; } .cards .card:nth-child(6) { animation-delay: .3s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px); } }

/* ---------- faq ---------- */
.faq { padding: 96px 0; background: var(--m-page); }
.faq__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.qa { display: grid; gap: 12px; }
.qa details { background: #fff; border-radius: 14px; box-shadow: var(--m-shadow-card); padding: 0 20px; }
.qa summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--m-butter); font-size: 22px; line-height: 1; transition: transform .3s var(--ease), background .2s; flex: none; }
.qa details[open] summary::after { transform: rotate(135deg); background: var(--m-yellow); }
.qa p { margin: 0 0 18px; color: var(--m-slate-600); }

/* ---------- final download ---------- */
.final { background: var(--m-ink); color: #fff; padding: 88px 0; overflow: hidden; }
.final__in { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; }
.final__faces { animation: wiggle 4s ease-in-out infinite; --r: -5deg; filter: drop-shadow(0 18px 24px rgba(0,0,0,.4)); }
.final .h2 { color: #fff; }
.final .lead { color: #cbd5e1; margin-bottom: 24px; }
.how { list-style: none; margin: 26px 0 0; padding: 0; display: flex; gap: 10px 24px; flex-wrap: wrap; color: #cbd5e1; }
.how b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--m-yellow); color: var(--m-ink); margin-inline-end: 8px; }
.verify-apk { margin-top: 28px; color: #94a3b8; font-size: 14px; max-width: 640px; }
.verify-apk summary { cursor: pointer; color: #cbd5e1; }
.verify-apk code { direction: ltr; unicode-bidi: embed; display: inline-block; word-break: break-all; background: rgba(255,255,255,.08); padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.copybtn { background: var(--m-yellow); color: var(--m-ink); border: 0; border-radius: 8px; padding: 4px 12px; font-weight: 700; cursor: pointer; }

/* ---------- footer ---------- */
.foot { background: var(--m-ink); color: #cbd5e1; }
.foot__in { display: flex; gap: 24px; align-items: center; padding-block: 32px; flex-wrap: wrap; }
.foot p { margin: 0; flex: 1; font-size: 15px; min-width: 220px; }
.foot__up { color: var(--m-yellow); text-decoration: none; font-weight: 700; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .top nav { display: none; }
  .hero__in { grid-template-columns: 1fr; padding-block: 120px 56px; }
  .duo { height: 400px; max-width: 420px; margin-inline: auto; width: 100%; }
  .face { width: 200px; }
  .bubble--a { inset-inline-start: 120px; }
  .story { padding-top: 64px; }
  .story__head { grid-template-columns: 1fr; text-align: start; }
  .story__head img { width: 96px; }
  .story__body { grid-template-columns: 1fr; }
  .rail { display: none; }
  .chap, .chap--wide { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
  .chap:nth-child(even) .copy { order: 0; }
  .offers { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .faq__in, .final__in { grid-template-columns: 1fr; }
  .final__faces { width: 160px; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .cards { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .btn--xl { min-height: 60px; }
  .duo { height: 360px; }
  .face { width: 170px; }
  .bubble--a { inset-inline-start: 90px; font-size: 14px; }
  .bubble--b { inset-block-end: 190px; inset-inline-end: 20px; font-size: 14px; }
  .note--1 { inset-block-start: 160px; }
  .stage { padding-inline: 18px; }
  .tabs button { padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .offer { opacity: 1; transform: none; }
  .dl__bar u { transform: scaleX(1); }
}

/* ---------- hero title + bubbles (layout polish) ---------- */
.hero__title { font-size: clamp(44px, 6vw, 76px); line-height: 1.1; margin-bottom: 22px; }
.hero__title .mark { display: table; font-size: .5em; line-height: 1.35; padding: 6px .55em 10px; margin-top: 14px; border-radius: 16px; }
.hero .lead { max-width: 34em; }
.bubble { white-space: normal; max-width: 260px; line-height: 1.5; }
.bubble--a { inset-block-start: -8px; inset-inline-start: 150px; }
.bubble--b { max-width: 230px; }
.duo__hint { white-space: nowrap; }
@media (max-width: 900px) {
  .hero__title .mark { font-size: .56em; }
  .bubble--a { inset-inline-start: 110px; max-width: 230px; }
}
@media (max-width: 560px) {
  .bubble { max-width: 190px; }
  .bubble--a { inset-inline-start: 70px; }
}
@media (max-width: 560px) { .note--1 { inset-block-start: 56px; } }
