/* Corteno Player Pro — public website. Dark/gold by default (matches the app), light mode available. */
:root {
  --bg: #09090b; --bg-2: #0f0f12; --surface: #141418; --surface-2: #1b1b20; --line: #26262d; --line-2: #34343c;
  --text: #f4f1ea; --text-2: #b9b5ab; --muted: #85827a;
  --gold: #d4af37; --gold-2: #f2da86; --gold-3: #a8862a; --gold-soft: rgba(212,175,55,.12); --on-gold: #17130a;
  --ok: #3ccf8e; --warn: #f0b429; --err: #ff6b6b; --info: #6aa8ff;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 20px 50px -20px rgba(0,0,0,.6);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --font-d: 'Outfit', var(--font);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #faf8f3; --bg-2: #f3efe5; --surface: #ffffff; --surface-2: #f6f3ec; --line: #e7e1d3; --line-2: #d9d1bf;
  --text: #17150f; --text-2: #4c473c; --muted: #7a7466;
  --gold: #b8901f; --gold-2: #d4af37; --gold-3: #8c6c12; --gold-soft: rgba(184,144,31,.1); --on-gold: #fff;
  --shadow: 0 20px 50px -24px rgba(60,45,10,.25);
  color-scheme: light;
}
html[dir="rtl"] { --font: 'IBM Plex Sans Arabic', system-ui, sans-serif; --font-d: 'IBM Plex Sans Arabic', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; }
p { margin: 0 0 1em; }
.ic { flex-shrink: 0; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.hide-sm { }
.nav-mobile-only { display: none; }

/* announcement */
.announce { background: var(--gold); color: var(--on-gold); text-align: center; font-size: 14px; font-weight: 600; padding: 8px 16px; }

/* navigation */
.site-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-d); font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand img { border-radius: 0; }
.brand-logo { display: block; height: 42px; width: auto; }
.site-footer .brand-logo { height: 40px; }
.logo-on-light { display: none; }
:root[data-theme="light"] .logo-on-dark { display: none; }
:root[data-theme="light"] .logo-on-light { display: block; }
@media (max-width: 560px) { .site-nav .brand-logo { height: 34px; } }
.nav-links { display: flex; gap: 4px; margin-inline-start: 12px; flex: 1; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-weight: 500; font-size: 15px; transition: .15s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--gold); background: var(--gold-soft); }
.nav-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: 600 13px var(--font); cursor: pointer; }
.chip-btn:hover { color: var(--text); border-color: var(--line-2); }
.chip-btn.icon-only { width: 38px; padding: 0; justify-content: center; }
.burger { display: none; }
.t-moon { display: none; }
:root[data-theme="light"] .t-sun { display: none; }
:root[data-theme="light"] .t-moon { display: inline-flex; }
.lang-switch { position: relative; }
.dropdown { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 160px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); display: none; z-index: 60; }
[data-dropdown].open .dropdown { display: block; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; color: var(--text-2); font: 500 14px var(--font); background: none; border: 0; cursor: pointer; text-align: start; }
.dropdown a:hover, .dropdown button:hover, .dropdown a.on { background: var(--surface-2); color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 600 15px var(--font); cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--on-gold); box-shadow: 0 10px 30px -12px rgba(212,175,55,.7); }
:root[data-theme="light"] .btn-primary { background: var(--gold); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(212,175,55,.85); }
.btn-outline { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-2); }
.btn-wa { background: #25d366; color: #062b14; }
.btn-wa:hover { background: #2fe072; }
.btn-danger { background: transparent; border-color: color-mix(in srgb, var(--err) 50%, transparent); color: var(--err); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }

/* hero */
.hero { position: relative; padding: 84px 0 64px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 700px; background: radial-gradient(closest-side, rgba(212,175,55,.18), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
.display { font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; margin-bottom: 18px; }
.display em { font-style: normal; background: linear-gradient(90deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust .ic { color: var(--gold); }
.hero-visual { position: relative; }
.hero-visual .shot { border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); overflow: hidden; background: #000; aspect-ratio: 16/10; }
.hero-visual .shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .shot.small { position: absolute; width: 46%; inset-inline-start: -8%; bottom: -12%; aspect-ratio: 16/10; }
.floating-card { position: absolute; inset-inline-end: -4%; top: 8%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.floating-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(60,207,142,.18); }

/* platforms strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-in { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 40px; padding: 22px 20px; color: var(--text-2); font-weight: 600; }
.strip-in span { display: inline-flex; align-items: center; gap: 8px; }
.strip-in small { color: var(--muted); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }

/* sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.section-head p { color: var(--text-2); font-size: 17px; }
.page-hero { padding: 64px 0 28px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.page-hero p { color: var(--text-2); font-size: 17px; max-width: 640px; margin: 0 auto; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { transition: border-color .2s, transform .2s; }
.feature:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); transform: translateY(-3px); }
.feature .f-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--gold-soft); color: var(--gold); margin-bottom: 18px; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--text-2); margin: 0; font-size: 15px; }

/* downloads */
.dl-card { display: flex; flex-direction: column; gap: 16px; }
.dl-top { display: flex; align-items: center; gap: 16px; }
.dl-top .f-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.dl-top h3 { margin: 0; font-size: 20px; }
.dl-top p { margin: 0; color: var(--muted); font-size: 14px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; font-weight: 600; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--bg-2); border: 1px dashed var(--line-2); font-family: var(--font); font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .05em; font-size: 15px; cursor: pointer; direction: ltr; }
.code-box b { color: var(--gold); font-size: 18px; letter-spacing: .06em; }
.code-box.copied { border-color: var(--ok); }
.code-box.copied::after { content: "✓"; color: var(--ok); font-weight: 800; }

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding-top: 64px; }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; top: 22px; inset-inline-start: 28px; font: 800 28px var(--font-d); color: var(--gold); }
.step h3 { font-size: 19px; }
.step p { color: var(--text-2); margin: 0; font-size: 15px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price { display: flex; flex-direction: column; gap: 14px; position: relative; }
.price.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.price .ribbon { position: absolute; top: -12px; inset-inline-end: 20px; background: var(--gold); color: var(--on-gold); font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.price h3 { margin: 0; font-size: 18px; color: var(--text-2); }
.price .amount { font: 800 40px var(--font-d); }
.price .amount small { font-size: 15px; color: var(--muted); font-weight: 600; }
.price ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; color: var(--text-2); font-size: 15px; }
.price li { display: flex; gap: 10px; align-items: flex-start; }
.price li .ic { color: var(--gold); margin-top: 3px; }
.price .btn { margin-top: auto; }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-2); padding-bottom: 20px; margin: 0; }

/* CTA band */
.cta-band { background: radial-gradient(120% 140% at 0% 0%, rgba(212,175,55,.22), transparent 55%), var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.cta-band p { color: var(--text-2); margin: 0; max-width: 560px; }

/* forms */
.form-card { max-width: 520px; margin: 0 auto; }
.form-card.wide { max-width: 720px; }
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--text-2); }
.input, .field input, .field select, .field textarea { width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 500 16px var(--font); transition: border-color .15s, box-shadow .15s; }
.field textarea { height: auto; min-height: 110px; padding: 12px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
input[data-mac], .mono { font-family: var(--font); font-variant-numeric: tabular-nums; direction: ltr; text-align: start; letter-spacing: .05em; }
html[dir="rtl"] input[data-mac] { text-align: right; }
.with-btn { position: relative; }
.with-btn .reveal { position: absolute; inset-inline-end: 6px; top: 6px; height: 38px; width: 38px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); cursor: pointer; margin: 6px 0 18px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.plan-opt { position: relative; cursor: pointer; }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt span { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg-2); transition: .15s; }
.plan-opt b { font-size: 16px; }
.plan-opt small { color: var(--muted); font-size: 13.5px; }
.plan-opt input:checked + span { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px var(--gold-soft); }
.plan-opt input:focus-visible + span { outline: 2px solid var(--gold); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* alerts */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 15px; border: 1px solid; }
.alert-ok { background: rgba(60,207,142,.1); border-color: rgba(60,207,142,.35); color: var(--ok); }
.alert-error { background: rgba(255,107,107,.1); border-color: rgba(255,107,107,.35); color: var(--err); }
.alert-warn { background: rgba(240,180,41,.1); border-color: rgba(240,180,41,.35); color: var(--warn); }
.alert-info { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 35%, transparent); color: var(--text); }
.alert.fade { opacity: 0; transition: opacity .4s; }

/* status pills */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-active { background: rgba(60,207,142,.12); color: var(--ok); }
.b-trial { background: rgba(240,180,41,.13); color: var(--warn); }
.b-expired { background: rgba(255,107,107,.12); color: var(--err); }
.b-disabled { background: var(--surface-2); color: var(--muted); }

/* device summary (manage / activate) */
.device-bar { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding: 18px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; }
.device-bar .k { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
html[dir="rtl"] .device-bar .k { letter-spacing: 0; }
.device-bar .v { font-weight: 700; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.pl-list { display: grid; gap: 12px; }
.pl-item { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.pl-item .pl-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.pl-item h4 { margin: 0 0 2px; font-size: 16px; font-family: var(--font); }
.pl-item .url { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: start; }
.pl-item .acts { display: flex; gap: 8px; }
.pl-item > div:nth-child(2) { min-width: 0; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { color: var(--gold); border-color: var(--gold); }
.icon-btn.danger:hover { color: var(--err); border-color: var(--err); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 14px; }
.empty .ic { margin: 0 auto 10px; color: var(--gold); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-box { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-body { padding: 22px 24px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 0 24px 22px; }
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; }
.tabs button { flex: 1; height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font: 600 14px var(--font); cursor: pointer; }
.tabs button.active { background: var(--surface); color: var(--gold); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
body.modal-open { overflow: hidden; }

/* legal pages */
.prose { max-width: 780px; margin: 0 auto; color: var(--text-2); }
.prose h2 { color: var(--text); font-size: 22px; margin-top: 36px; }
.prose ul { padding-inline-start: 22px; }
.prose li { margin-bottom: 6px; }

/* summary card (activation step 2) */
.summary { display: grid; gap: 10px; margin-bottom: 20px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary div:last-child { border-bottom: 0; }
.summary span { color: var(--muted); }
.summary b { text-align: end; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 24px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; font-family: var(--font); }
.foot-grid a:not(.brand) { display: flex; align-items: center; gap: 6px; color: var(--text-2); padding: 4px 0; font-size: 15px; }
.foot-grid a:not(.brand):hover { color: var(--gold); }
.foot-grid p { margin-top: 14px; font-size: 14px; max-width: 340px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

/* responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; margin: 10px auto 40px; }
  .grid-3, .steps, .price-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px 18px; margin: 0; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .nav-mobile-only { display: block; }
  .hide-sm { display: none !important; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 60px 0; }
  .grid-3, .grid-2, .steps, .price-grid, .two, .foot-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .cta-band { padding: 30px 22px; }
  .pl-item { grid-template-columns: 1fr; }
  .pl-item .pl-ic { display: none; }
  .hero-visual .shot.small { display: none; }
  .floating-card { inset-inline-end: 8px; }
  .brand span { font-size: 15px; }
  .nav-in { gap: 10px; }
}

/* ───────── v2.1: brand logos, motion, hover ───────── */
.brand-ic { flex-shrink: 0; }
.c-android { color: #3ddc84; } .c-windows { color: #4cc2ff; } .c-firetv { color: #ff9900; } .c-tv { color: var(--gold); }
:root[data-theme="light"] .c-android { color: #1f9d55; } :root[data-theme="light"] .c-windows { color: #0b6fd1; } :root[data-theme="light"] .c-firetv { color: #e47911; }
.strip-in span { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); transition: transform .2s ease, border-color .2s ease; }
.strip-in span:hover { transform: translateY(-2px); border-color: var(--line-2); }
.dl-top .f-ic.android { background: rgba(61,220,132,.12); color: #3ddc84; }
.dl-top .f-ic.windows { background: rgba(0,120,212,.14); color: #4cc2ff; }
:root[data-theme="light"] .dl-top .f-ic.android { color: #1f9d55; } :root[data-theme="light"] .dl-top .f-ic.windows { color: #0b6fd1; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes progress { 0% { transform: scaleX(0); } 60% { transform: scaleX(.7); } 100% { transform: scaleX(.92); } }
.hero-grid > div:first-child > * { animation: fadeUp .6s cubic-bezier(.2,.8,.2,1) both; }
.hero-grid > div:first-child > *:nth-child(2) { animation-delay: .06s; } .hero-grid > div:first-child > *:nth-child(3) { animation-delay: .12s; }
.hero-grid > div:first-child > *:nth-child(4) { animation-delay: .18s; } .hero-grid > div:first-child > *:nth-child(5) { animation-delay: .24s; }
.hero-visual { animation: fadeUp .8s .15s cubic-bezier(.2,.8,.2,1) both; }
.floating-card { animation: floaty 4.5s ease-in-out infinite; }
.page-hero > .container > * { animation: fadeUp .55s cubic-bezier(.2,.8,.2,1) both; }
.page-hero > .container > *:nth-child(2) { animation-delay: .06s; } .page-hero > .container > *:nth-child(3) { animation-delay: .12s; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.alert { animation: fadeUp .35s ease both; }

.modal { display: flex; visibility: hidden; opacity: 0; transition: opacity .22s ease, visibility 0s linear .22s; }
.modal.open { visibility: visible; opacity: 1; transition: opacity .22s ease; }
.modal .modal-box { transform: translateY(16px) scale(.97); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.modal.open .modal-box { transform: none; }
.dropdown { display: block; visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; }
[data-dropdown].open .dropdown { visibility: visible; opacity: 1; transform: none; transition: opacity .16s ease, transform .16s ease; }

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-outline:hover, .btn-ghost:hover { box-shadow: 0 10px 24px -14px rgba(0,0,0,.6); }
.btn-wa:hover { box-shadow: 0 12px 28px -12px rgba(37,211,102,.6); }
.feature .f-ic { transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .25s ease; }
.feature:hover .f-ic { transform: scale(1.08) rotate(-4deg); background: color-mix(in srgb, var(--gold) 22%, transparent); }
.card.price, .card.step, .dl-card { transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .25s ease; }
.card.price:hover, .card.step:hover, .dl-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(0,0,0,.7); }
.pl-item { transition: border-color .2s ease, transform .2s ease; }
.pl-item:hover { border-color: var(--line-2); transform: translateY(-1px); }
.icon-btn, .chip-btn, .nav-links a, .foot-grid a, .code-box, .faq details { transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease; }
.icon-btn:hover { transform: translateY(-1px); }
.faq details[open] { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.faq details p { animation: fadeUp .3s ease both; }
.hero-visual .shot { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.hero-visual:hover .shot:first-child { transform: translateY(-4px) rotate(-.4deg); }

.nav-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transform-origin: left; transform: scaleX(0); opacity: 0; pointer-events: none; }
html[dir="rtl"] .nav-progress { transform-origin: right; }
body.navigating .nav-progress { opacity: 1; animation: progress 1.6s ease-out forwards; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
/* ───────── Hero A — program guide ───────── */
.hero-a { padding: 76px 0 84px; border-bottom: 1px solid var(--line); }
.ha-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 64px; align-items: center; }
.ha-kicker { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 22px; }
html[dir="rtl"] .ha-kicker { letter-spacing: 0; }
.ha-kicker span { width: 28px; height: 2px; background: var(--gold); }
.hero-a h1 { font-size: clamp(36px, 4.4vw, 58px); font-weight: 800; line-height: 1.06; letter-spacing: -.032em; margin-bottom: 22px; }
html[dir="rtl"] .hero-a h1 { letter-spacing: 0; line-height: 1.25; }
.ha-mark { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--gold) 34%, transparent) 62%, color-mix(in srgb, var(--gold) 34%, transparent) 92%, transparent 92%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ha-lead { font-size: 18px; color: var(--text-2); max-width: 540px; margin-bottom: 30px; }
.ha-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.ha-link { font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s ease, color .2s ease; }
.ha-link:hover { color: var(--gold); border-color: var(--gold); }
.ha-link span { display: inline-block; transition: transform .2s ease; }
.ha-link:hover span { transform: translateX(3px); }
html[dir="rtl"] .ha-link span { transform: scaleX(-1); }
.ha-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 36px; margin: 44px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.ha-facts dt { font: 800 34px/1 var(--font-d); letter-spacing: -.02em; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.ha-facts dd { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 140px; }

.ha-guide { background: #0e0e11; color: #e9e6df; border: 1px solid #23232a; border-radius: 18px; padding: 18px 18px 14px; box-shadow: 0 30px 60px -36px rgba(0,0,0,.55); font-size: 13px; direction: ltr; text-align: left; }
.g-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.g-title { font: 700 15px var(--font-d); letter-spacing: -.01em; }
.g-day { font-size: 12px; color: #9d988d; padding: 4px 10px; border: 1px solid #2a2a31; border-radius: 999px; }
.g-times, .g-row { display: grid; grid-template-columns: 132px 1fr; gap: 8px; }
.g-times { grid-template-columns: 132px repeat(4, 1fr); font: 500 11.5px var(--font); font-variant-numeric: tabular-nums; color: #7f7b73; margin-bottom: 8px; }
.g-body { position: relative; }
.g-now { position: absolute; top: -4px; bottom: 0; width: 2px; background: #d4af37; left: calc(140px + (100% - 140px) * .35); z-index: 2; }
.g-now::before { content: ""; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: #d4af37; }
.g-row { margin-bottom: 7px; }
.g-ch { display: flex; align-items: center; gap: 10px; min-width: 0; }
.g-ch b { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: #1b1b20; border: 1px solid #2a2a31; font: 700 11px var(--font-d); color: #cfcab9; }
.g-ch span { color: #a29d92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.g-show { position: relative; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 9px 11px; border-radius: 8px; background: #17171b; border: 1px solid #24242a; color: #cdc8be; }
.g-show.is-on { background: #1d1b16; border-color: #3a3220; color: #f1eee7; }
.g-show em { position: absolute; left: 0; bottom: 0; height: 2px; background: #d4af37; }
.g-row.is-focus .g-show.is-on { box-shadow: 0 0 0 2px #d4af37; background: #2a2414; }
.g-foot { display: flex; gap: 18px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid #202026; color: #8b877e; font-size: 12px; }
.g-foot kbd { font: 600 11px var(--font); font-variant-numeric: tabular-nums; padding: 2px 6px; border-radius: 5px; border: 1px solid #34343c; color: #d9d5cb; margin-right: 4px; }
.g-src { margin-left: auto; }

/* ───────── Hero B — TV first ───────── */
.hero-b { padding: 76px 0 60px; text-align: center; border-bottom: 1px solid var(--line); }
.hero-b h1 { font-size: clamp(38px, 5.4vw, 70px); font-weight: 800; line-height: 1.04; letter-spacing: -.036em; margin: 0 auto 20px; max-width: 900px; }
html[dir="rtl"] .hero-b h1 { letter-spacing: 0; line-height: 1.25; }
.hero-b h1 span { color: var(--gold); }
.hb-lead { font-size: 18.5px; color: var(--text-2); max-width: 640px; margin: 0 auto 30px; }
.hb-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hb-tv { max-width: 880px; margin: 56px auto 0; }
.tv-frame { background: #070708; padding: 12px; border-radius: 20px; border: 1px solid #222228; box-shadow: 0 46px 80px -48px rgba(0,0,0,.6); }
.tv-screen { aspect-ratio: 16 / 9; background: #0f0f12; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; color: #ece9e2; direction: ltr; text-align: left; }
.tv-bar { display: flex; justify-content: space-between; align-items: center; padding: 20px 28px; font-size: 14px; }
.tv-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 15px var(--font-d); }
.tv-brand img { border-radius: 6px; }
.tv-clock { font: 500 14px var(--font); font-variant-numeric: tabular-nums; color: #8f8a80; }
.tv-main { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; padding: 6px 28px 28px; align-items: stretch; }
.tv-card { background: #16161a; border: 1px solid #25252b; border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; }
.tv-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8c877d; margin: 0 0 10px; }
.tv-kv { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #222228; font-size: 14.5px; }
.tv-kv:last-child { border-bottom: 0; }
.tv-kv span { color: #9a958b; }
.tv-kv b { font: 600 15px var(--font); font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.tv-ok { color: #4ad48f; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font) !important; letter-spacing: 0 !important; }
.tv-ok i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tv-menu { display: grid; gap: 10px; align-content: center; }
.tv-menu span { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; background: #16161a; border: 1px solid #23232a; color: #cdc8be; font-weight: 600; font-size: 15px; }
.tv-menu span.is-focus { background: #d4af37; border-color: #d4af37; color: #17130a; transform: scale(1.03); box-shadow: 0 10px 24px -14px rgba(212,175,55,.8); }
.tv-stand { width: 26%; height: 14px; margin: 0 auto; background: linear-gradient(#1a1a1e, #0b0b0d); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.hb-platforms { list-style: none; padding: 0; margin: 40px 0 10px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 34px; }
.hb-platforms li { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--text-2); }
.hb-platforms i { display: inline-flex; }
.hb-note { color: var(--muted); font-size: 14px; margin: 0; }

@media (max-width: 980px) {
  .ha-grid { grid-template-columns: 1fr; gap: 44px; }
  .ha-guide { max-width: 640px; }
}
@media (max-width: 640px) {
  .hero-a, .hero-b { padding: 48px 0 52px; }
  .ha-facts { gap: 22px; grid-template-columns: repeat(3, 1fr); }
  .ha-facts dt { font-size: 28px; }
  .g-times, .g-row { grid-template-columns: 40px 1fr; }
  .g-times { grid-template-columns: 40px repeat(4, 1fr); }
  .g-ch span { display: none; }
  .g-now { left: calc(48px + (100% - 48px) * .35); }
  .g-show { padding: 8px; font-size: 11.5px; }
  .g-foot .g-src { display: none; }
  .tv-screen { aspect-ratio: auto; }
  .tv-main { grid-template-columns: 1fr; padding: 4px 16px 18px; }
  .tv-bar { padding: 14px 16px; }
  .tv-menu { grid-template-columns: 1fr 1fr; }
  .tv-menu span { padding: 11px 12px; font-size: 13px; }
  .hb-tv { margin-top: 40px; }
}
/* ───────── v2.2: unified labels (same as the home hero), smooth tabs, playlist manager ───────── */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; padding: 0; border-radius: 0; background: none; color: var(--text-2); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow .ic { display: none; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); flex-shrink: 0; }
.center .eyebrow::after, .section-head .eyebrow::after, .page-hero .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--gold); flex-shrink: 0; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
.page-hero h1, .section-head h2 { letter-spacing: -.03em; }
html[dir="rtl"] .page-hero h1, html[dir="rtl"] .section-head h2 { letter-spacing: 0; }

/* smooth switch between Link / Xtream / File */
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
[data-pane]:not([hidden]) { animation: paneIn .28s cubic-bezier(.2,.8,.2,1); }
.tabs { position: relative; }
.tabs button { transition: background-color .22s ease, color .22s ease, box-shadow .22s ease, transform .15s ease; }
.tabs button:active { transform: scale(.97); }

/* ── playlist manager: sign-in ── */
.mp-login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); max-width: 940px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(0,0,0,.35); }
.mp-form { padding: 40px 40px 36px; }
.mp-form h2 { font-size: 22px; margin-bottom: 6px; }
.mp-form > p { color: var(--muted); margin-bottom: 26px; font-size: 15px; }
.mp-help { background: var(--bg-2); border-inline-start: 1px solid var(--line); padding: 40px 36px; display: flex; flex-direction: column; gap: 22px; }
.mp-help h3 { font-size: 15px; margin: 0; color: var(--text-2); font-family: var(--font); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
html[dir="rtl"] .mp-help h3 { letter-spacing: 0; }
.mp-screen { background: #0e0e11; border: 1px solid #23232a; border-radius: 14px; padding: 18px; color: #e9e6df; direction: ltr; text-align: left; box-shadow: 0 18px 40px -28px rgba(0,0,0,.6); }
.mp-screen .s-top { display: flex; align-items: center; gap: 8px; font: 700 13px var(--font-d); margin-bottom: 14px; }
.mp-screen .s-top img { border-radius: 5px; }
.mp-screen .s-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 9px; background: #17171b; border: 1px solid #25252b; margin-top: 8px; font-size: 13px; }
.mp-screen .s-row span { color: #8f8a80; }
.mp-screen .s-row b { font: 600 13.5px var(--font); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.mp-screen .s-row.hl { border-color: #d4af37; box-shadow: 0 0 0 1px #d4af37 inset; }
.mp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: st; }
.mp-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 14.5px; color: var(--text-2); }
.mp-steps li::before { counter-increment: st; content: counter(st); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font: 700 12.5px var(--font-d); color: var(--gold); }
.mp-help .mp-alt { margin-top: auto; font-size: 14px; color: var(--muted); }
.mp-help .mp-alt a { color: var(--gold); font-weight: 600; }

/* ── playlist manager: signed in ── */
.mp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.mp-head h1 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.03em; margin: 0; }
html[dir="rtl"] .mp-head h1 { letter-spacing: 0; }
.mp-device { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 18px; overflow: hidden; }
.mp-device > div { padding: 18px 22px; border-inline-start: 1px solid var(--line); min-width: 0; }
.mp-device > div:first-child { border-inline-start: 0; }
.mp-device .k { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
html[dir="rtl"] .mp-device .k { letter-spacing: 0; }
.mp-device .v { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.mp-device .v.mono { font-size: 15px; }
.mp-copy { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; display: inline-grid; place-items: center; border-radius: 6px; transition: color .15s ease; }
.mp-copy:hover, .mp-copy.copied { color: var(--gold); }
.mp-days { height: 4px; border-radius: 99px; background: var(--surface-2); margin-top: 10px; overflow: hidden; }
.mp-days span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.mp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.mp-bar h2 { font-size: 18px; margin: 0; font-family: var(--font); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.mp-bar h2 small { font-size: 13px; color: var(--muted); font-weight: 600; }
.mp-list { display: grid; gap: 10px; }
.mp-item { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.mp-item:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: 0 14px 30px -24px rgba(0,0,0,.4); }
.mp-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.mp-ic.t-m3u { background: var(--gold-soft); color: var(--gold); }
.mp-ic.t-xtream { background: rgba(76,194,255,.12); color: #2f8fd6; }
.mp-ic.t-file { background: rgba(61,220,132,.12); color: #1f9d55; }
.mp-ic.t-lock { background: var(--surface-2); color: var(--muted); }
.mp-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.mp-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); letter-spacing: .03em; }
.mp-tag.lock { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.mp-url { font: 500 13px var(--font); font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: start; }
.mp-meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.mp-acts { display: flex; gap: 8px; }
.mp-acts .icon-btn { width: 40px; height: 40px; border-radius: 11px; }
.mp-empty { text-align: center; padding: 48px 20px; border: 1.5px dashed var(--line-2); border-radius: 18px; background: var(--surface); }
.mp-empty .mp-ic { margin: 0 auto 14px; width: 56px; height: 56px; }
.mp-empty h3 { font-size: 18px; margin-bottom: 6px; }
.mp-empty p { color: var(--muted); max-width: 420px; margin: 0 auto 18px; }
.mp-notice { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 20px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line)); background: var(--gold-soft); margin-bottom: 18px; }
.mp-notice p { margin: 0; color: var(--text); font-size: 15px; }
.mp-notice.err { border-color: rgba(255,107,107,.35); background: rgba(255,107,107,.08); }
.mp-list .mp-item { animation: paneIn .35s cubic-bezier(.2,.8,.2,1) both; }
.mp-list .mp-item:nth-child(2) { animation-delay: .04s; } .mp-list .mp-item:nth-child(3) { animation-delay: .08s; } .mp-list .mp-item:nth-child(n+4) { animation-delay: .12s; }

@media (max-width: 820px) {
  .mp-login { grid-template-columns: 1fr; }
  .mp-help { border-inline-start: 0; border-top: 1px solid var(--line); }
  .mp-device { grid-template-columns: 1fr 1fr; }
  .mp-device > div:nth-child(3) { border-inline-start: 0; }
  .mp-device > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .mp-form, .mp-help { padding: 28px 22px; }
  .mp-item { grid-template-columns: 40px minmax(0, 1fr); }
  .mp-ic { width: 40px; height: 40px; }
  .mp-acts { grid-column: 1 / -1; justify-content: flex-end; }
}
/* ───────── v2.3: phone layout fixes + animated mobile menu ───────── */
.grid-2, .grid-3, .steps, .price-grid { grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); }
.grid-2 { --cols: 2; } .grid-3, .steps, .price-grid { --cols: 3; }
.dl-card, .step, .price, .feature { min-width: 0; }
.code-box { flex-wrap: wrap; row-gap: 4px; }
.code-box span { flex-shrink: 0; }
.code-box b { min-width: 0; overflow-wrap: anywhere; text-align: end; }
.burger .b-close { display: none; }

@media (max-width: 980px) { .grid-3, .steps, .price-grid { --cols: 2; } }

@media (max-width: 860px) {
  .burger { position: relative; }
  .burger .b-open, .burger .b-close { display: inline-flex; position: absolute; inset: 0; align-items: center; justify-content: center; transition: opacity .2s ease, transform .25s cubic-bezier(.2,.8,.2,1); }
  .burger .b-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
  body.nav-open .burger .b-open { opacity: 0; transform: rotate(90deg) scale(.6); }
  body.nav-open .burger .b-close { opacity: 1; transform: none; }
  .nav-links { display: flex !important; visibility: hidden; opacity: 0; transform: translateY(-10px); pointer-events: none;
    box-shadow: 0 24px 40px -24px rgba(0,0,0,.45); border-radius: 0 0 18px 18px;
    transition: opacity .22s ease, transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s linear .28s; }
  body.nav-open .nav-links { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .22s ease, transform .28s cubic-bezier(.2,.8,.2,1); }
  .nav-links a { opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .3s cubic-bezier(.2,.8,.2,1), background-color .15s ease, color .15s ease; }
  body.nav-open .nav-links a { opacity: 1; transform: none; }
  body.nav-open .nav-links a:nth-child(2) { transition-delay: .03s; } body.nav-open .nav-links a:nth-child(3) { transition-delay: .06s; }
  body.nav-open .nav-links a:nth-child(4) { transition-delay: .09s; } body.nav-open .nav-links a:nth-child(5) { transition-delay: .12s; }
  body.nav-open .nav-links a:nth-child(6) { transition-delay: .15s; }
  .nav-links a.active { background: var(--gold-soft); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .steps, .price-grid { --cols: 1; }
  .nav-in { gap: 8px; min-height: 64px; }
  .nav-links { inset: 64px 0 auto 0; }
  .brand { min-width: 0; flex: 1 1 auto; gap: 8px; }
  .brand img { object-fit: contain; }
  .brand span { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .nav-tools { gap: 6px; flex-shrink: 0; }
  .lang-switch .chip-btn span { display: none; }
  .lang-switch .chip-btn { width: 38px; padding: 0; justify-content: center; }

  /* download */
  .dl-card { gap: 14px; }
  .dl-top { gap: 12px; align-items: flex-start; }
  .dl-top .f-ic { width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; }
  .dl-top .f-ic svg { width: 24px; height: 24px; }
  .dl-top h3 { font-size: 17px; line-height: 1.3; }
  .code-box { flex-direction: column; align-items: flex-start; padding: 12px 14px; }
  .code-box b { text-align: start; font-size: 15px !important; }
  .code-box.copied::after { position: absolute; inset-inline-end: 14px; top: 12px; }
  .code-box { position: relative; }

  /* how it works */
  .step { padding: 56px 20px 20px; }
  .step::before { top: 18px; inset-inline-start: 20px; font-size: 24px; }

  /* pricing + misc */
  .price .amount { font-size: 34px; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 27px; }
  .strip-in { gap: 10px; padding: 18px 16px; }
  .strip-in small { width: 100%; text-align: center; }
  .strip-in span { padding: 7px 12px; font-size: 14px; }
}
/* the text cursor only belongs to fields you can type in */
body { caret-color: transparent; }
input, textarea, select, [contenteditable="true"] { caret-color: auto; }
/* ───────── v2.4: phone review 2026-10-23 (shorter home, 44 px tap targets, menu backdrop) ───────── */
.dl-hint { margin: 0; font-size: 14px; color: var(--muted); }
.dl-ios { display: flex; gap: 10px; align-items: flex-start; margin: 0 auto 22px; max-width: 760px; }
.dl-ios[hidden] { display: none; }
@media (max-width: 860px) {
  body::before { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.55); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility 0s linear .22s; }
  body.nav-open::before { opacity: 1; visibility: visible; transition: opacity .22s ease; }
  :root[data-theme="light"] body::before { background: rgba(23,21,15,.35); }
  body.nav-open { overflow: hidden; }
  .nav-links a { min-height: 48px; display: flex; align-items: center; }
}
@media (max-width: 640px) {
  /* features: icon beside the text instead of tall cards */
  .grid-3 { gap: 12px; }
  .card.feature { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 4px 14px; padding: 18px; align-items: start; }
  .feature .f-ic { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; margin: 0; }
  .feature .f-ic svg { width: 20px; height: 20px; }
  .feature h3 { font-size: 16.5px; margin: 0; }
  .feature p { font-size: 14px; line-height: 1.55; }
  /* pricing: tighter cards */
  .price-grid { gap: 14px; }
  .card.price { padding: 22px 20px; gap: 10px; }
  .price .amount { font-size: 30px; }
  .price ul { gap: 6px; font-size: 14.5px; }
  /* how it works */
  .steps { gap: 12px; }
  .step { padding: 50px 18px 18px; }
  .step::before { top: 16px; inset-inline-start: 18px; font-size: 22px; }
  .section { padding: 48px 0; }
  .section-head p { font-size: 15.5px; }
  /* footer: two columns, the brand block across both */
  .site-footer { padding: 36px 0 20px; margin-top: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .foot-grid h4 { margin-bottom: 4px; }
  .foot-grid a:not(.brand) { min-height: 44px; padding: 0; }
  .foot-bottom { margin-top: 20px; flex-direction: column; }
  .faq summary { padding: 16px 0; font-size: 15.5px; }
}
