:root {
    --bg: #eef2ff;
    --ink: #0f172a;
    --muted: #475569;
    --line: #e2e8f0;
    --card: #ffffff;
    --primary: #4f46e5;
    --primary-2: #6366f1;
    --accent: #0f766e;
    --ok: #15803d;
    --bad: #b91c1c;
    --warn: #c2410c;
    --radius: 22px;
    --shadow: 0 18px 50px rgba(15, 23, 42, .08);
    --font: Inter, ui-sans-serif, system-ui, sans-serif;
    --phone-w: 248px;
    --header-h: 56px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html[lang="fa"], html[lang="ar"] { --font: Vazirmatn, Inter, sans-serif; }
html[lang="zh"] { --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Inter, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.ipv6-pending body { opacity: 0; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    min-height: 100vh;
    min-height: 100dvh;
    opacity: 1;
    transition: opacity .18s ease;
    padding-bottom: var(--safe-bottom);
}
img, svg { display: block; max-width: 100%; }
button, a { font-family: inherit; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgba(79, 70, 229, .12); }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg__blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; }
.bg__blob--a { width: 420px; height: 420px; background: #c7d2fe; top: -80px; inset-inline-start: -80px; }
.bg__blob--b { width: 380px; height: 380px; background: #99f6e4; top: 20%; inset-inline-end: -120px; }
.bg__blob--c { width: 300px; height: 300px; background: #fde68a; bottom: 8%; inset-inline-start: 20%; opacity: .35; }

.top {
    position: sticky; top: 0; z-index: 40;
    padding-top: var(--safe-top);
    backdrop-filter: blur(16px);
    background: color-mix(in srgb, #eef2ff 86%, white);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand__mark {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #4f46e5, #0d9488);
    color: #fff; box-shadow: 0 8px 18px rgba(79, 70, 229, .28);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand strong { display: block; font-size: .95rem; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: .75rem; }

.lang { position: relative; }
.lang__btn {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    padding: 7px 12px 7px 8px;
    border: 1px solid #c7d2fe;
    background: #fff;
    border-radius: 999px;
    cursor: pointer;
    color: inherit;
    box-shadow: 0 6px 18px rgba(79, 70, 229, .12);
}
.lang__btn:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.lang__pulse {
    position: absolute; inset: -6px; border-radius: 999px; pointer-events: none;
    border: 2px solid var(--primary);
    opacity: 0;
}
.lang.is-hint .lang__pulse { animation: pulse-ring 1.6s ease-out infinite; }
.lang.is-wiggle .lang__btn { animation: wiggle .8s ease-in-out 3; }
.lang.is-wiggle .lang__pulse { animation: pulse-ring 1.2s ease-out 2; }
.lang__flag { display: grid; }
.flag svg { width: 22px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15,23,42,.08); }
.lang__meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.lang__kicker { font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lang__name { font-weight: 700; font-size: .9rem; }
.lang__caret { opacity: .6; }
.lang__hint {
    position: absolute;
    top: calc(100% + 12px);
    inset-inline-end: 0;
    width: max-content;
    max-width: min(240px, 70vw);
    padding: 10px 12px;
    background: var(--ink);
    color: #fff;
    font-size: .82rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: .25s ease;
    z-index: 5;
}
.lang__hint::before {
    content: "";
    position: absolute;
    bottom: 100%;
    inset-inline-end: 28px;
    border: 7px solid transparent;
    border-bottom-color: var(--ink);
}
.lang.is-hint .lang__hint { opacity: 1; transform: none; }
.lang.is-hint .lang__hint.is-gone { opacity: 0; transform: translateY(-6px); }
.lang, .top, .top__inner { overflow: visible; }
.lang__menu {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    margin: 0; padding: 8px;
    list-style: none;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    z-index: 80;
}
.lang__opt {
    width: 100%;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 10px;
    border: 0; background: transparent; cursor: pointer;
    border-radius: 10px; color: inherit; text-align: start;
}
.lang__opt small { margin-inline-start: auto; color: var(--muted); font-size: .72rem; }
.lang__opt:hover, .lang__opt.is-active { background: #eef2ff; }
.lang__opt.is-active { font-weight: 700; color: var(--primary); }

.hero {
    display: grid; gap: 32px; align-items: center;
    padding: 40px 0 20px;
}
.hero__copy h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; margin: 12px 0 12px; letter-spacing: -.03em; }
.lede { font-size: 1.08rem; color: var(--muted); margin: 0 0 22px; max-width: 52ch; }
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: #e0e7ff; color: var(--primary);
    padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .82rem;
}
.pill svg { width: 16px; height: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 24px; list-style: none; }
.chips li {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid var(--line);
    padding: 8px 12px; border-radius: 999px; font-size: .86rem; color: var(--muted);
}
.chips svg { width: 16px; height: 16px; color: var(--primary); }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #fff; text-decoration: none; font-weight: 700;
    padding: 13px 20px; border-radius: 14px;
    box-shadow: 0 12px 24px rgba(79, 70, 229, .28);
}
.btn svg { width: 16px; height: 16px; }
.btn--accent { background: linear-gradient(135deg, #0f766e, #0d9488); box-shadow: 0 12px 24px rgba(13, 148, 136, .25); }
.hero__art { display: grid; place-items: center; }
.hero__phone { transform: rotate(-6deg); filter: drop-shadow(0 30px 40px rgba(15,23,42,.18)); }

.grid-2 { display: grid; gap: 18px; padding: 12px 0 8px; }
.card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow);
}
.card--tint { background: linear-gradient(180deg, #f0fdfa, #fff); }
.card h2, .sec h2 { margin: 0 0 10px; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checklist li {
    position: relative;
    padding-inline-start: 32px;
    color: var(--ink);
}
.checklist li::before {
    content: "";
    position: absolute; inset-inline-start: 0; top: 4px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #d1fae5 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='m6 12 4 4 8-8'/></svg>") center / 14px no-repeat;
}
.sec { margin-bottom: 18px; }
.sec p { margin: 0; color: var(--muted); }

.guide { padding: 36px 0 8px; }
.tabs {
    display: grid; grid-template-columns: 1fr; gap: 10px;
    margin-bottom: 22px;
}
.tab {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; text-align: start;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    cursor: pointer; color: inherit;
}
.tab strong, .tab small { display: block; }
.tab small { color: var(--muted); font-weight: 400; }
.tab__icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center; background: #eef2ff; color: var(--primary);
}
.tab__icon svg { width: 22px; height: 22px; }
.tab.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px #c7d2fe;
    background: #eef2ff;
}
.panel { display: none; }
.panel.is-active { display: block; }

.step {
    display: grid; gap: 20px; align-items: center;
    background: #fff; border: 1px solid var(--line);
    border-radius: 24px; padding: 22px;
    margin-bottom: 16px; box-shadow: var(--shadow);
}
.step__num { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: .82rem; }
.step__n {
    width: 36px; height: 36px; border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #4f46e5, #0d9488);
    color: #fff; font-weight: 800; font-size: 1rem;
}
.step h3 { margin: 0 0 8px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }
.step__art { display: grid; place-items: center; }

.faq { padding: 28px 0 48px; }
.acc { display: grid; gap: 8px; }
.acc__item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.acc__item summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 18px; font-weight: 700;
}
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.acc__item[open] summary svg { transform: rotate(180deg); }
.acc__body { padding: 0 18px 16px; color: var(--muted); }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); }
.foot__inner { display: grid; gap: 10px; }
.foot__row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .88rem; }
.foot a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* Phone mockup */
.phone { position: relative; width: var(--phone-w); margin: 8px auto; }
.phone__speaker { display: none; }
.phone__bezel {
    background: linear-gradient(160deg, #1e293b, #020617);
    border-radius: 34px; padding: 10px;
    box-shadow: inset 0 0 0 2px #334155, 0 18px 40px rgba(2, 6, 23, .35);
}
.phone__notch {
    position: absolute; top: 19px; left: 50%; transform: translateX(-50%);
    width: 11px; height: 11px; border-radius: 50%; z-index: 2;
    background: radial-gradient(circle at 35% 35%, #334155 0 18%, #020617 45%);
    box-shadow: 0 0 0 1.5px #0b1220;
}
.phone__glass {
    position: relative;
    height: 470px; border-radius: 26px; overflow: hidden;
    background: #f8fafc; color: #0f172a;
    display: flex; flex-direction: column;
}
.phone__btn { position: absolute; width: 3px; background: #334155; border-radius: 2px; }
.phone__btn--pwr { height: 52px; top: 118px; inset-inline-end: -3px; }
.phone__btn--vol { height: 78px; top: 88px; inset-inline-start: -3px; }

.status {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px 4px; font-size: 11px; font-weight: 700;
}
.status__icons { display: flex; gap: 4px; align-items: center; }
.status__icons svg { width: 13px; height: 13px; }
.status__bat { width: 16px; }

.nav {
    display: grid; grid-template-columns: 32px 1fr 32px; align-items: center;
    padding: 2px 6px 8px; min-height: 36px;
}
.nav__title { text-align: center; font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__btn { display: grid; place-items: center; height: 28px; font-size: 18px; font-weight: 700; }
.nav__back-ic { width: 18px; height: 18px; transform: scaleX(-1); }
[dir="rtl"] .nav__back-ic { transform: none; }
.nav__menu.is-hl { color: var(--primary); background: #e0e7ff; border-radius: 8px; }

.search {
    display: flex; align-items: center; gap: 6px;
    margin: 0 10px 8px; padding: 7px 10px;
    background: #e2e8f0; border-radius: 999px; color: #64748b; font-size: 11px;
}
.search svg { width: 13px; height: 13px; }

.rows { overflow: auto; padding-bottom: 12px; }
.row {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; min-height: 46px;
    border-bottom: 1px solid #eef2f6;
}
.row__icon {
    width: 28px; height: 28px; border-radius: 8px; color: #fff;
    display: grid; place-items: center; flex: none;
}
.row__icon svg { width: 15px; height: 15px; }
.row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row__label { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__sub { font-size: 10.5px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__go { width: 14px; height: 14px; color: #94a3b8; flex: none; }
[dir="rtl"] .row__go { transform: scaleX(-1); }
.row.is-hl { background: #eef2ff; box-shadow: inset 3px 0 0 var(--primary); }
[dir="rtl"] .row.is-hl { box-shadow: inset -3px 0 0 var(--primary); }
.row.is-hl .row__go, .row.is-done .row__go { visibility: hidden; }
.row.is-done .row__sub { color: var(--ok); font-weight: 700; }
.row.is-done .tap, .hero__art .tap { display: none; }
/* Highlighted row: reserve a strip at the bottom for the tap marker so the
   badge never covers the row above it. */
.row.is-hl { padding-bottom: 32px; }
.row.is-hl .tap { top: auto; bottom: 6px; transform: none; }
.row__ok { color: var(--ok); }
.row__ok svg { width: 14px; height: 14px; }

.radio {
    width: 16px; height: 16px; border-radius: 50%; flex: none;
    border: 2px solid #94a3b8;
}
.radio.is-on { border-color: var(--primary); box-shadow: inset 0 0 0 3px var(--primary); }
.toggle {
    width: 32px; height: 18px; border-radius: 999px; background: #cbd5e1; position: relative; flex: none;
}
.toggle i {
    position: absolute; top: 2px; inset-inline-start: 2px;
    width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .2s;
}
.toggle.is-on { background: #4f46e5; }
.toggle.is-on i { inset-inline-start: 16px; }

.tap {
    position: absolute; inset-inline-end: 14px; top: 50%;
    width: 22px; height: 22px; transform: translateY(-50%);
    pointer-events: none; z-index: 2;
}
.tap--inline { position: relative; inset: auto; transform: none; margin-inline-start: auto; }
.tap__dot {
    position: absolute; inset: 6px; border-radius: 50%;
    background: #4f46e5;
}
.tap__ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid #4f46e5;
    animation: tap-ring 1.4s ease-out infinite;
}
.tap__badge {
    position: absolute; top: 50%; inset-inline-end: 30px; transform: translateY(-50%);
    background: #4f46e5; color: #fff;
    font-size: 9px; font-weight: 700; white-space: nowrap;
    padding: 3px 6px; border-radius: 6px;
}

.scrim {
    position: absolute; inset: 0; background: rgba(15, 23, 42, .38);
    display: flex; align-items: flex-end; padding: 12px;
}
.dialog, .menu {
    width: 100%; background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 16px 40px rgba(15,23,42,.2);
}
.dialog { padding: 0 0 8px; }
.dialog__title {
    margin: 0; padding: 16px 16px 12px;
    font-weight: 800; font-size: 13px;
    border-bottom: 1px solid #eef2f6;
}
.dialog__opt, .menu__item {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    padding: 11px 16px; font-size: 13px;
}
.dialog__opt.is-hl, .menu__item.is-hl { background: #eef2ff; }
.menu { width: 62%; margin-inline-start: auto; margin-bottom: auto; margin-top: 42px; }

.quick { padding: 6px 12px 14px; }
.quick__handle { width: 36px; height: 4px; background: #cbd5e1; border-radius: 99px; margin: 4px auto 8px; }
.quick__title { margin: 0 0 10px; font-size: 12px; font-weight: 700; text-align: center; }
.quick__bright { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.quick__bright svg { width: 14px; height: 14px; }
.quick__bar { flex: 1; height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.quick__bar i { display: block; width: 70%; height: 100%; background: #4f46e5; }
.quick__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.tile {
    position: relative;
    background: #e2e8f0; border-radius: 16px; padding: 10px 6px 8px;
    display: grid; justify-items: center; gap: 6px; min-height: 78px;
}
.tile__icon {
    width: 32px; height: 32px; border-radius: 50%; background: #fff;
    display: grid; place-items: center; color: #334155;
}
.tile__icon svg { width: 16px; height: 16px; }
.tile__name { font-size: 9.5px; text-align: center; line-height: 1.2; }
.tile.is-on { background: #e0e7ff; }
.tile.is-on .tile__icon { background: #4f46e5; color: #fff; }
.tile.is-hl { outline: 2px solid #4f46e5; }

@keyframes wiggle {
    0%, 100% { transform: translateX(0) rotate(0) scale(1); }
    10% { transform: translateX(-5px) rotate(-8deg) scale(1.08); }
    25% { transform: translateX(5px) rotate(7deg) scale(1.08); }
    40% { transform: translateX(-4px) rotate(-6deg) scale(1.06); }
    55% { transform: translateX(4px) rotate(5deg) scale(1.04); }
    70% { transform: translateX(-2px) rotate(-2deg) scale(1.02); }
    85% { transform: translateX(1px) rotate(1deg) scale(1); }
}
@keyframes pulse-ring {
    0% { transform: scale(.96); opacity: .7; }
    100% { transform: scale(1.18); opacity: 0; }
}
@keyframes tap-ring {
    0% { transform: scale(.7); opacity: .8; }
    100% { transform: scale(1.8); opacity: 0; }
}

@media (min-width: 740px) {
    .hero { grid-template-columns: 1.1fr .9fr; padding-top: 56px; }
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .tabs { grid-template-columns: repeat(3, 1fr); }
    .step { grid-template-columns: 1fr var(--phone-w); gap: 28px; padding: 28px; }
    .top__inner { min-height: 72px; }
}
@media (max-width: 739px) {
    :root { --phone-w: min(236px, 78vw); --header-h: 56px; --radius: 18px; }
    .wrap { width: min(1080px, calc(100% - 20px)); }
    .hero { gap: 16px; padding: 18px 0 8px; }
    .hero__art { display: none; }
    .hero__copy h1 { font-size: 1.55rem; letter-spacing: -.02em; margin: 10px 0 8px; }
    .lede { font-size: .98rem; margin-bottom: 14px; }
    .chips { gap: 6px; margin-bottom: 16px; }
    .chips li { padding: 6px 10px; font-size: .78rem; }
    .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 16px;
    }
    .lang__kicker { display: none; }
    .lang__btn { padding: 6px 10px 6px 7px; gap: 8px; min-height: 44px; }
    .lang__name { font-size: .82rem; }
    .lang__hint {
        max-width: min(210px, calc(100vw - 28px));
        font-size: .78rem;
        z-index: 90;
    }
    .lang__menu {
        min-width: min(230px, calc(100vw - 20px));
        inset-inline-end: 0;
    }
    .lang__opt { min-height: 44px; padding: 10px 12px; }
    .brand__mark { width: 36px; height: 36px; border-radius: 10px; }
    .brand strong { font-size: .88rem; }
    .brand small { font-size: .68rem; }
    .grid-2 { gap: 12px; padding: 4px 0; }
    .card { padding: 16px; }
    .card h2, .sec h2 { font-size: 1.12rem; }
    .guide { padding: 22px 0 4px; }
    .tabs {
        position: sticky;
        top: calc(var(--header-h) + var(--safe-top));
        z-index: 30;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin: 0 -10px 14px;
        padding: 8px 10px 10px;
        background: color-mix(in srgb, #eef2ff 92%, white);
        backdrop-filter: blur(12px);
    }
    .tab {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 4px 8px;
        text-align: center;
        border-radius: 14px;
        min-height: 72px;
    }
    .tab strong { font-size: .78rem; line-height: 1.2; }
    .tab small { display: none; }
    .tab__icon { width: 32px; height: 32px; border-radius: 10px; }
    .tab__icon svg { width: 18px; height: 18px; }
    .step { padding: 16px 14px 18px; margin-bottom: 12px; border-radius: 18px; gap: 14px; }
    .step h3 { font-size: 1.05rem; }
    .step p { font-size: .95rem; }
    .step__n { width: 32px; height: 32px; font-size: .9rem; border-radius: 10px; }
    .phone { margin: 0 auto; }
    .phone__glass { height: 400px; }
    .phone__bezel { border-radius: 30px; padding: 8px; }
    .faq { padding: 18px 0 32px; }
    .acc__item summary { min-height: 52px; padding: 14px 14px; font-size: .95rem; }
    .acc__body { padding: 0 14px 14px; font-size: .92rem; }
    .foot { padding: 20px 0 calc(24px + var(--safe-bottom)); }
    .foot__row { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lang.is-wiggle .lang__btn, .lang.is-hint .lang__pulse, .tap__ring { animation: none; }
}

b { color: var(--ink); font-weight: 800; }
.step p b, .checklist b, .acc__body b { color: var(--primary); }
