/* SimBridge public site: landing (/) and setup guide (/guide).
   No web fonts or CDNs: everything must load where those are filtered. */

:root {
    /* SimBridge's palette: iOS graphite and system greys, the app icon's indigo and violet, iOS blue for links. */
    --bg: #f5f5f7;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-2: #f2f2f7;
    --text: #1d1d1f;
    --text-2: #424245;
    --muted: #6e6e73;
    --border: #e5e5ea;
    --border-strong: #d2d2d7;
    --brand: #6366f1;
    --brand-2: #7c3aed;
    --brand-hi: #a5b4fc;
    --brand-soft: #eef0ff;
    --brand-ink: #4f46e5;
    --accent: #0071e3;
    --link: #0066cc;
    --ok: #1a9a46;
    --warn: #b25000;
    --warn-bg: #fff4e5;
    --code-bg: #1c1c1e;
    --code-text: #f5f5f7;
    --btn-grad: linear-gradient(180deg, #7b7ef6 0%, #5b4fe9 100%);
    --btn-glow: rgba(99, 102, 241, .45);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05), 0 1px 1px rgba(0, 0, 0, .03);
    --shadow: 0 12px 32px -14px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .04);
    --shadow-lg: 0 40px 80px -32px rgba(0, 0, 0, .35);
    --radius: 18px;
    --radius-sm: 12px;
    --max: 1160px;
    --nav-h: 64px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --bg-alt: #0a0a0b;
        --surface: #1c1c1e;
        --surface-2: #2c2c2e;
        --text: #f5f5f7;
        --text-2: #c7c7cc;
        --muted: #8e8e93;
        --border: #2c2c2e;
        --border-strong: #3a3a3c;
        --brand: #818cf8;
        --brand-2: #a78bfa;
        --brand-hi: #c7d2fe;
        --brand-soft: #1b1a3d;
        --brand-ink: #a5b4fc;
        --accent: #0a84ff;
        --link: #2997ff;
        --ok: #30d158;
        --warn: #ff9f0a;
        --warn-bg: #2a1d0a;
        --code-bg: #111113;
        --btn-glow: rgba(129, 140, 248, .4);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
        --shadow: 0 14px 34px -14px rgba(0, 0, 0, .8);
        --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .9);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15.5px;
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary {
    color: #fff; background: var(--btn-grad); text-shadow: 0 1px 1px rgba(30, 20, 90, .25);
    box-shadow: 0 8px 22px -8px var(--btn-glow), inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(0, 120, 40, .18);
}
.btn-primary:hover { filter: brightness(1.04); box-shadow: 0 12px 28px -8px var(--btn-glow), inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(0, 120, 40, .18); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { height: 38px; padding: 0 15px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16.5px; border-radius: 14px; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; box-shadow: none; }

/* ---------- Navigation ---------- */
.nav {
    position: sticky; top: 0; z-index: 50; height: var(--nav-h);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 18px; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
/* The SimBridge app icon (iOS-style rounded square). */
.logo-mark {
    width: 32px; height: 32px; border-radius: 7.5px; flex: none; display: block;
    box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 4px 10px -4px rgba(99, 102, 241, .55);
}
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { color: var(--text-2); font-size: 14.5px; font-weight: 550; padding: 7px 12px; border-radius: 9px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle {
    display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px;
    border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer;
    align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 1100px) {
    .nav-toggle { display: inline-flex; margin-left: 0; }
    .nav-links, .nav-cta .btn-ghost { display: none; }
    .nav-cta { margin-left: auto; }
    .nav.open .nav-links {
        display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: var(--nav-h);
        background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px 16px 18px; margin: 0;
        box-shadow: var(--shadow);
    }
    .nav.open .nav-links a { padding: 12px; font-size: 16px; }
    .nav .wrap { gap: 12px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; isolation: isolate; }
.hero::before {
    content: ""; position: absolute; inset: -30% -10% auto -10%; height: 900px; z-index: -1;
    background:
        radial-gradient(600px 380px at 18% 30%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
        radial-gradient(560px 420px at 82% 20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
        radial-gradient(500px 300px at 60% 75%, color-mix(in srgb, var(--brand-hi) 10%, transparent), transparent 70%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    font-size: 13px; font-weight: 600; color: var(--text-2);
}
.eyebrow b {
    padding: 2px 9px; border-radius: 999px; font-size: 11.5px; letter-spacing: .02em; color: #fff;
    background: var(--btn-grad);
}
.hero h1 { font-size: clamp(40px, 6vw, 66px); letter-spacing: -.035em; margin: 22px 0 20px; font-weight: 780; }
.grad {
    background: linear-gradient(110deg, var(--brand) 0%, var(--brand-2) 45%, var(--accent) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(17px, 2vw, 19.5px); color: var(--text-2); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Hero illustration: an iPhone on a call, linked to the Android gateway */
.stage { position: relative; height: 560px; }
.device {
    position: absolute; background: #0b0b0c; border-radius: 46px; padding: 11px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 0 0 2px #2c2c2e;
}
.device .screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; position: relative; }
.iphone { width: 270px; height: 552px; right: 30px; top: 0; z-index: 3; }
.iphone .screen {
    background: radial-gradient(120% 60% at 50% 0%, #2c2c30 0%, #161618 55%, #000 100%); color: #fff;
    display: flex; flex-direction: column; align-items: center; padding: 18px 20px 26px;
}
.island { width: 92px; height: 27px; background: #000; border-radius: 20px; margin-bottom: 40px; flex: none; }
.call-sim {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600;
    padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .88);
}
.call-sim i { width: 6px; height: 6px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 3px rgba(48, 209, 88, .25); }
.avatar {
    width: 86px; height: 86px; border-radius: 50%; margin: 26px 0 14px; display: grid; place-items: center;
    font-size: 32px; font-weight: 650; color: #fff;
    background: linear-gradient(180deg, #8a86b8, #56527f); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8);
}
.call-name { font-size: 25px; font-weight: 650; letter-spacing: -.02em; }
.call-time { font-size: 15px; color: #a1a1a6; margin-top: 4px; font-variant-numeric: tabular-nums; }
.wave { display: flex; gap: 4px; align-items: center; height: 34px; margin: 26px 0 auto; }
.wave span { width: 4px; border-radius: 4px; background: #30d158; animation: wave 1.2s ease-in-out infinite; }
.wave span:nth-child(odd) { background: #7ee89a; }
@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 30px; } }
.call-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 22px; margin-bottom: 26px; }
.call-keys span {
    width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center;
}
.call-keys svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.end-call { width: 62px; height: 62px; border-radius: 50%; background: #ff3b30; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(255, 59, 48, .8); }
.end-call svg { width: 28px; height: 28px; fill: #fff; transform: rotate(135deg); }

.android { width: 212px; height: 420px; left: 10px; bottom: 6px; border-radius: 30px; padding: 9px; z-index: 1; transform: rotate(-6deg); }
.android .screen { border-radius: 22px; background: var(--surface); color: var(--text); padding: 26px 16px 16px; display: flex; flex-direction: column; }
.android .cam { position: absolute; top: 10px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #000; }
.gw-head { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 13.5px; }
.gw-mark { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; background: linear-gradient(180deg, #3a3a3c, #1c1c1e); }
.gw-mark svg { width: 14px; height: 14px; fill: none; stroke: #30d158; stroke-width: 2; stroke-linejoin: round; }
.gw-status {
    margin-top: 16px; border-radius: 14px; padding: 12px; background: var(--brand-soft);
    font-size: 12px; color: var(--text-2);
}
.gw-status b { display: flex; align-items: center; gap: 7px; color: var(--text); font-size: 13.5px; margin-bottom: 2px; }
.gw-status b i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.gw-rows { margin-top: 12px; display: grid; gap: 8px; }
.gw-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 9px 11px; border-radius: 11px; background: var(--surface-2); }
.gw-row span { color: var(--muted); }
.gw-row strong { font-weight: 650; }
.bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; margin-right: 5px; vertical-align: -1px; }
.bars i { width: 3px; background: var(--ok); border-radius: 1px; }
.bars i:nth-child(1) { height: 4px; } .bars i:nth-child(2) { height: 6px; } .bars i:nth-child(3) { height: 9px; } .bars i:nth-child(4) { height: 11px; }

.link-line { position: absolute; left: 150px; top: 120px; width: 240px; height: 200px; z-index: 2; pointer-events: none; overflow: visible; }
.link-line path { fill: none; stroke: url(#lg); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -22; } }
.chip {
    position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 13px; border-radius: 13px; font-size: 12.5px; font-weight: 650; white-space: nowrap;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text);
    animation: float 6s ease-in-out infinite;
}
.chip svg { width: 16px; height: 16px; fill: none; stroke: var(--brand-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; line-height: 1.2; }
.chip-1 { left: 0; top: 64px; }
.chip-2 { left: 40px; bottom: -14px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

@media (max-width: 980px) {
    .hero { padding: 48px 0 64px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .stage { height: 520px; max-width: 480px; margin: 0 auto; width: 100%; }
}
@media (max-width: 520px) {
    .stage { height: 470px; }
    .iphone { width: 232px; height: 474px; right: 0; }
    .island { margin-bottom: 26px; }
    .avatar { width: 70px; height: 70px; font-size: 26px; margin: 18px 0 10px; }
    .call-keys { gap: 12px 16px; }
    .call-keys span { width: 48px; height: 48px; }
    .android { width: 170px; height: 340px; left: 0; }
    .gw-rows .gw-row:nth-child(3) { display: none; }
    .chip-1 { top: 10px; left: 0; }
    .chip-2 { left: 0; bottom: 0; }
    .link-line { display: none; }
    .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; }
.section-head p { margin-top: 16px; color: var(--text-2); font-size: 18px; }
@media (max-width: 640px) { .section { padding: 68px 0; } .section-head { margin-bottom: 40px; } }

/* Trust strip */
.strip { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { display: flex; align-items: center; gap: 13px; }
.stat .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); flex: none; }
.stat .ico svg { width: 21px; height: 21px; fill: none; stroke: var(--brand-ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.stat b { display: block; font-size: 15px; }
.stat span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 860px) { .strip .wrap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .strip .wrap { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
    position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.feature .ico {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
    background: var(--brand-soft);
    border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
}
.feature .ico svg { width: 23px; height: 23px; fill: none; stroke: var(--brand-ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 15.5px; }
.feature.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } .feature.wide { grid-column: auto; grid-template-columns: 1fr; gap: 18px; } }

/* Public support page */
.support-options .feature { display: flex; flex-direction: column; }
.support-options .feature p { margin-bottom: 24px; }
.support-options .feature .btn { align-self: flex-start; margin-top: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; position: relative; }
.step { position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.step-num {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
    font-weight: 750; font-size: 16px; color: #fff; background: var(--btn-grad);
    box-shadow: 0 8px 18px -8px var(--btn-glow);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15.5px; }
.step a.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: 14.5px; }
.step a.more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Requirements */
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.req { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.req-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.req-head .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--surface-2); display: grid; place-items: center; border: 1px solid var(--border); }
.req-head .ico svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.req-head h3 { font-size: 19px; }
.req-head span { color: var(--muted); font-size: 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--text-2); font-size: 15.5px; }
.checks li::before {
    content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
    background: color-mix(in srgb, var(--ok) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%2312a150' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.checks b { color: var(--text); font-weight: 650; }
@media (max-width: 760px) { .req-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.faq summary {
    list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 650; font-size: 16.5px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 22px 20px; color: var(--text-2); }

/* CTA band */
.cta {
    position: relative; overflow: hidden; border-radius: 28px; padding: 64px 48px; text-align: center; color: #fff;
    background: radial-gradient(620px 320px at 12% 0%, rgba(124, 58, 237, .42), transparent 62%),
                radial-gradient(520px 300px at 92% 110%, rgba(10, 132, 255, .32), transparent 60%),
                linear-gradient(160deg, #1c1c1e 0%, #0b0b0c 100%);
    box-shadow: var(--shadow-lg);
}
.cta::after {
    content: ""; position: absolute; inset: 0; opacity: .14;
    background-image: radial-gradient(rgba(255, 255, 255, .9) 1px, transparent 1px); background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.03em; }
.cta p { margin: 14px auto 0; max-width: 560px; font-size: 18px; color: rgba(255, 255, 255, .85); }
.cta .hero-actions { justify-content: center; }
.cta .btn-light { background: #fff; color: #1d1d1f; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); }
.cta .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); }
.cta .btn-outline:hover { border-color: #fff; }
@media (max-width: 560px) { .cta { padding: 48px 22px; border-radius: 22px; } .cta .btn { flex: 1 1 100%; } }

/* Footer */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--border); background: var(--bg-alt); margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 320px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); font-size: 15px; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13.5px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Guide ---------- */
.page-head { padding: 64px 0 40px; position: relative; isolation: isolate; overflow: hidden; }
.page-head::before {
    content: ""; position: absolute; inset: -60% -10% auto; height: 600px; z-index: -1;
    background: radial-gradient(520px 260px at 25% 40%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
                radial-gradient(480px 260px at 80% 30%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.page-head h1 { font-size: clamp(36px, 5vw, 54px); letter-spacing: -.035em; font-weight: 780; }
.page-head .lead { margin-top: 16px; font-size: 19px; color: var(--text-2); max-width: 680px; }

.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 960px) { .paths { grid-template-columns: 1fr 1fr; } }
.path {
    display: block; position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--text); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.path:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand); }
.path .badge { position: absolute; top: 20px; right: 20px; }
.path h3 { font-size: 19px; margin: 16px 0 6px; }
.path p { color: var(--text-2); font-size: 15px; }
.path .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); }
.path .ico svg { width: 22px; height: 22px; fill: none; stroke: var(--brand-ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.path .go { display: inline-flex; gap: 6px; align-items: center; margin-top: 16px; font-weight: 650; font-size: 14.5px; color: var(--brand-ink); }
.path .go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .01em; }
.badge-brand { background: var(--brand-soft); color: var(--brand-ink); }
.badge-muted { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }

.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 24px; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); }
.toc h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 7px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-2); font-size: 14.5px; }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.active { color: var(--brand-ink); border-left-color: var(--brand); font-weight: 600; }
.toc .help { margin-top: 24px; padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.toc .help a { word-break: break-all; }
.toc .help b { display: block; color: var(--text); margin-bottom: 4px; }
@media (max-width: 960px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 0; } .toc { display: none; } }

.doc-body > section { padding: 8px 0 56px; border-bottom: 1px solid var(--border); margin-bottom: 48px; }
.doc-body > section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-body h2 { font-size: 30px; letter-spacing: -.025em; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.doc-body h2 .num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; color: #fff; background: var(--btn-grad); flex: none; }
.doc-body h3 { font-size: 19px; margin: 32px 0 10px; }
.doc-body > section > p, .doc-body .prose p { color: var(--text-2); margin-top: 14px; font-size: 16.5px; max-width: 720px; }
.doc-body .prose ul { color: var(--text-2); padding-left: 22px; margin: 12px 0 0; max-width: 720px; }
.doc-body .prose li { margin: 6px 0; }
.doc-body b, .doc-body strong { color: var(--text); }
kbd {
    font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 3px 7px; border-radius: 6px;
    background: var(--surface); border: 1px solid var(--border-strong); border-bottom-width: 2px; color: var(--text);
}
code { font: 14px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }

/* Numbered walkthrough */
.walk { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: w; display: grid; gap: 0; max-width: 760px; }
.walk > li { position: relative; padding: 0 0 28px 56px; counter-increment: w; }
.walk > li::before {
    content: counter(w); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700; font-size: 14.5px; color: var(--brand-ink);
    background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}
.walk > li::after { content: ""; position: absolute; left: 16.5px; top: 38px; bottom: 4px; width: 1px; background: var(--border-strong); }
.walk > li:last-child { padding-bottom: 0; }
.walk > li:last-child::after { display: none; }
.walk h4 { font-size: 17px; margin-bottom: 5px; }
.walk p { color: var(--text-2); font-size: 15.5px; }
.walk p + p { margin-top: 8px; }

/* Callouts */
.note {
    display: flex; gap: 14px; margin-top: 22px; padding: 16px 18px; border-radius: 14px; max-width: 760px;
    background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); color: var(--text-2); font-size: 15px;
}
.note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; fill: none; stroke: var(--brand-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.note.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.note.warn svg { stroke: var(--warn); }

/* Download cards for the installers */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; max-width: 760px; }
.dl {
    display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.dl-top { display: flex; align-items: center; gap: 14px; }
.dl-top .ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); flex: none; }
.dl-top .ico svg { width: 24px; height: 24px; fill: var(--text); }
.dl-top b { display: block; font-size: 16.5px; }
.dl-top span { color: var(--muted); font-size: 13.5px; }
.dl .btn { width: 100%; }
@media (max-width: 600px) { .dl-grid { grid-template-columns: 1fr; } }

/* Terminal block */
.term { margin-top: 18px; border-radius: 14px; overflow: hidden; background: var(--code-bg); border: 1px solid #23263f; max-width: 760px; box-shadow: var(--shadow); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid #2c2c2e; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3d57; }
.term-bar span { margin-left: 8px; font-size: 12.5px; color: #8b8fb0; font-weight: 600; }
.term-bar button {
    margin-left: auto; font: 600 12px/1 inherit; color: #d1d1d6; background: #2c2c2e; border: 1px solid #3a3a3c;
    padding: 6px 10px; border-radius: 8px; cursor: pointer;
}
.term-bar button:hover { color: #fff; border-color: #4a4e75; }
.term pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 13.5px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--code-text); }
.term pre .c { color: #6f7396; }

/* Troubleshooting table */
.trouble { margin-top: 22px; display: grid; gap: 12px; max-width: 760px; }
.trouble div { padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.trouble b { display: block; font-size: 16px; margin-bottom: 4px; }
.trouble p { color: var(--text-2); font-size: 15px; }

/* Official "Download on the App Store" badge (Apple artwork, unmodified; keep the clear space). */
.store-badge { display: inline-flex; align-items: center; flex: none; border-radius: 9px; transition: transform .15s ease; }
.store-badge:hover { transform: translateY(-1px); text-decoration: none; }
.store-badge img { display: block; height: 54px; width: auto; }

/* ---------- Persian (/fa): right to left ---------- */
/* Persian font: Vazirmatn (SIL OFL 1.1, see fonts/Vazirmatn-OFL.txt). Only fetched on lang="fa" pages. */
@font-face { font-family: "Vazirmatn"; src: url("fonts/Vazirmatn-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
html[lang="fa"] body, html[lang="fa"] button, html[lang="fa"] input, html[lang="fa"] textarea, html[lang="fa"] select { font-family: "Vazirmatn", -apple-system, BlinkMacSystemFont, "SF Arabic", "Geeza Pro", "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif; line-height: 1.85; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3, html[lang="fa"] h4,
html[lang="fa"] .hero h1, html[lang="fa"] .section-head h2, html[lang="fa"] .cta h2, html[lang="fa"] .logo,
html[lang="fa"] .kicker, html[lang="fa"] .footer h4 { letter-spacing: 0; }
html[lang="fa"] h1, html[lang="fa"] h2 { line-height: 1.35; }
[dir="rtl"] .nav-links { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .nav-cta, [dir="rtl"] .nav-toggle { margin-left: 0; margin-right: auto; }
@media (max-width: 1100px) {
    [dir="rtl"] .nav-toggle { margin-right: 0; }
    [dir="rtl"] .nav-cta { margin-right: auto; }
}
[dir="rtl"] .faq summary { padding: 20px 22px 20px 56px; }
[dir="rtl"] .faq summary::after { right: auto; left: 22px; }
[dir="rtl"] .try { text-align: right; }
/* Forward arrows point left. */
[dir="rtl"] .btn-ghost svg:last-child, [dir="rtl"] a.more svg { transform: scaleX(-1); }
.nav-links a { white-space: nowrap; }
.lang-switch { font-weight: 650 !important; }

/* Version comparison tables (guide #versions, landing #versions) */
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.table-wrap th, .table-wrap td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap thead th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--bg-alt); }
.table-wrap tbody th { font-weight: 600; color: var(--text); width: 34%; }
.table-wrap td { color: var(--text); }
.versions-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .versions-grid { grid-template-columns: 1fr; } }
.versions-note { margin-top: 14px; color: var(--muted); font-size: 14.5px; text-align: center; }

/* =====================================================================================
   Customer accounts: sign up / sign in (/signup, /login, …) and the panel (/account/…)
   ===================================================================================== */
.auth { padding: 48px 16px 96px; position: relative; isolation: isolate; }
.auth::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 420px; z-index: -1; pointer-events: none;
    background: radial-gradient(600px 280px at 50% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%);
}
.auth-card {
    width: 100%; max-width: 440px; margin: 0 auto; padding: 32px 30px; border-radius: 22px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.auth-card .logo-mark { width: 52px; height: 52px; border-radius: 12px; margin: 0 auto 18px; }
.auth-card h1 { font-size: 27px; letter-spacing: -.025em; text-align: center; }
.auth-card .sub { margin-top: 8px; text-align: center; color: var(--text-2); font-size: 15px; }
.auth-card .sub b { color: var(--text); word-break: break-all; }
.auth-foot { margin-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); }
.auth-foot.center { justify-content: center; }

.form { display: grid; gap: 16px; margin-top: 24px; }
.form label, .form .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.form input[type=email], .form input[type=password], .form input[type=text], .form input[type=tel], .form input[type=number], .form select, .form .input {
    width: 100%; height: 48px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--text);
    background: var(--bg); border: 1px solid var(--border-strong); border-radius: 12px; appearance: none; -webkit-appearance: none;
}
.form select {
    padding-right: 38px; background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238e8e93' stroke-width='1.8'/%3E%3C/svg%3E");
}
[dir="rtl"] .form select { padding: 0 14px 0 38px; background-position: left 14px center; }
.form input:focus, .form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.form .hint { margin-top: 6px; font-size: 13px; color: var(--muted); }
.form .btn { width: 100%; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); font-weight: 400; }
.form .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form .row2 { grid-template-columns: 1fr; } }
.form input.code {
    height: 64px; text-align: center; font: 700 30px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .45em; padding-left: .45em;
}
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: #e5372c; }

.alert { padding: 12px 14px; border-radius: 12px; font-size: 14.5px; margin-top: 18px; border: 1px solid; }
.alert.err { color: #c4291f; background: #fdecec; border-color: #f7c9c6; }
.alert.ok { color: #137a37; background: #e8f6ee; border-color: #bfe6cd; }
.alert.info { color: var(--text-2); background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
@media (prefers-color-scheme: dark) {
    .alert.err { color: #ff6b61; background: #2c1513; border-color: #4a201c; }
    .alert.ok { color: #4cd97b; background: #0e2416; border-color: #1b4429; }
}

/* Panel layout: sidebar + content */
.panel { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; align-items: start; padding: 28px 20px 96px; }
.side {
    position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; gap: 4px; padding: 10px;
    min-height: min(640px, calc(100vh - var(--nav-h) - 40px));
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-sm);
}
.side a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--text-2); font-weight: 550; font-size: 15px; }
.side a:hover { text-decoration: none; background: var(--surface-2); color: var(--text); }
.side a.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 650; }
.side svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.side-licence { margin-top: auto; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); font-size: 13.5px; }
.side-licence .k { color: var(--muted); font-size: 12.5px; }
.side-licence b { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.4; }
.side-licence .pill { margin-top: 8px; }
@media (max-width: 900px) {
    .panel { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 16px; }
    .side { position: static; min-height: 0; flex-direction: row; overflow-x: auto; padding: 6px; border-radius: 16px; }
    .side a { white-space: nowrap; padding: 9px 12px; }
    .side-licence { display: none; }
}

.panel-head h1 { font-size: clamp(28px, 4vw, 36px); letter-spacing: -.03em; font-weight: 760; }
.panel-head p { margin-top: 6px; color: var(--text-2); font-size: 16.5px; max-width: 720px; }
.panel-body { display: grid; gap: 20px; margin-top: 24px; }
.pcard { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.pcard h2 { font-size: 19px; letter-spacing: -.015em; }
.pcard h3 { font-size: 16.5px; }
.pcard > p, .pcard .muted { color: var(--text-2); font-size: 15px; }
.pcard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.muted { color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.pill.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.pill.err { color: #e5372c; background: color-mix(in srgb, #e5372c 10%, transparent); border-color: color-mix(in srgb, #e5372c 25%, transparent); }
.pill.brand { color: var(--brand-ink); background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }

/* Home: the next step, big */
.next {
    position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
    padding: 30px; border-radius: 24px; color: #fff;
    background: radial-gradient(500px 240px at 90% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, #5b5ff0 0%, #7c5cf0 55%, #9b6cf2 100%);
    box-shadow: 0 24px 48px -24px rgba(91, 79, 233, .7);
}
.next .eyebrow-pill { display: inline-flex; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.next h2 { margin-top: 14px; font-size: clamp(22px, 3vw, 28px); letter-spacing: -.025em; }
.next p { margin-top: 8px; color: rgba(255, 255, 255, .88); font-size: 15.5px; max-width: 560px; }
.next .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.next .btn-white { color: #2b2a6b; background: #fff; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }
.next .btn-glass { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .28); }
.ring {
    --p: 0; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; text-align: center;
    background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255, 255, 255, .22) 0);
}
.ring > div { width: 92px; height: 92px; border-radius: 50%; display: grid; place-content: center; background: #6a5cf0; }
.ring b { font-size: 26px; line-height: 1; }
.ring span { font-size: 12px; opacity: .85; margin-top: 4px; }
@media (max-width: 640px) { .next { grid-template-columns: 1fr; } .ring { display: none; } }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps3 .st { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg); color: inherit; }
a.st:hover { text-decoration: none; border-color: var(--brand); }
.steps3 .st.current { border-color: var(--brand); background: var(--brand-soft); }
.steps3 .n { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.steps3 .current .n { background: var(--btn-grad); color: #fff; border-color: transparent; }
.steps3 .done .n { background: var(--ok); color: #fff; border-color: transparent; }
.steps3 b { display: block; font-size: 15px; }
.steps3 span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) { .steps3 { grid-template-columns: 1fr; } }

/* Phones */
.phone-list { display: grid; gap: 14px; }
.phone { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.phone .ico, .tcard .ico, .setup .ico {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none;
    background: color-mix(in srgb, #3ddc84 16%, transparent); border: 1px solid color-mix(in srgb, #3ddc84 30%, transparent);
}
.phone .ico svg, .tcard .ico svg, .setup .ico svg { width: 26px; height: 26px; fill: #2fbf71; }
.phone h3 { font-size: 17px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.phone .meta { margin-top: 4px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.phone .meta b { color: var(--text-2); font-weight: 600; }
.phone .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.phone-more { grid-column: 1 / -1; margin-top: 2px; }
.phone-more summary { cursor: pointer; font-size: 14px; color: var(--link); list-style: none; }
.phone-more summary::-webkit-details-marker { display: none; }
.phone-more .form { margin-top: 14px; max-width: 520px; }
@media (max-width: 700px) { .phone { grid-template-columns: auto 1fr; } .phone .acts { grid-column: 1 / -1; justify-content: flex-start; } }
.empty { text-align: center; padding: 36px 20px; border: 2px dashed var(--border-strong); border-radius: 20px; }
.empty h3 { font-size: 18px; margin-top: 12px; }
.empty p { margin: 6px auto 0; max-width: 420px; color: var(--text-2); font-size: 15px; }

/* App types */
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.tcard { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.tcard.mine { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent), var(--shadow-sm); }
.tcard .top { display: flex; gap: 14px; align-items: center; }
.tcard h3 { font-size: 19px; }
.tcard .top span { font-size: 13.5px; color: var(--muted); }
.tcard p { color: var(--text-2); font-size: 14.5px; }
.tcard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.tcard li { display: flex; gap: 9px; color: var(--text-2); }
.tcard li svg { width: 17px; height: 17px; flex: none; margin-top: 2px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tcard li.y svg { stroke: var(--ok); }
.tcard li.n svg { stroke: var(--muted); }
.tcard .badge { align-self: flex-start; margin-bottom: -2px; }
.tcard .go { margin-top: auto; padding-top: 6px; font-weight: 650; font-size: 14.5px; }

.picker { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 0; }
@media (max-width: 760px) { .picker { grid-template-columns: 1fr; } }
.picker-out { margin-top: 14px; }

.setup { border: 1px solid var(--border); border-radius: 20px; background: var(--surface); overflow: hidden; }
.setup > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 20px 22px; }
.setup > summary::-webkit-details-marker { display: none; }
.setup > summary h3 { font-size: 18px; }
.setup > summary span { color: var(--muted); font-size: 14px; }
.setup > summary::after { content: "+"; margin-left: auto; font-size: 24px; color: var(--muted); line-height: 1; }
[dir="rtl"] .setup > summary::after { margin-left: 0; margin-right: auto; }
.setup[open] > summary::after { content: "–"; }
.setup[open] > summary { border-bottom: 1px solid var(--border); }
.setup .inner { padding: 6px 22px 24px; }
.setup .walk { margin-top: 22px; }
.setup .term, .setup .note { max-width: none; }

.qa { display: grid; gap: 10px; }
.qa details { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.qa summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 650; display: flex; gap: 10px; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 22px; line-height: 1; }
.qa details[open] summary::after { content: "–"; }
.qa details p { padding: 0 20px 18px; color: var(--text-2); font-size: 15px; }
.qa details p + p { margin-top: -8px; }

.settings-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); }
.settings-row:first-of-type { border-top: 0; padding-top: 0; }
.settings-row .txt { flex: 1; min-width: 0; }
.settings-row .txt b { display: block; font-size: 15.5px; }
.settings-row .txt span { font-size: 14px; color: var(--muted); }
.avatar-lg { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: #fff; background: var(--btn-grad); flex: none; }
.danger-zone { border-color: color-mix(in srgb, #e5372c 30%, var(--border)); }
.btn-danger { color: #fff; background: #e5372c; }
.btn-danger:hover { filter: brightness(1.05); }
/* Sign in sits in the mobile menu (the header button is hidden there). */
.nav-links .m-only { display: none; }
@media (max-width: 1100px) { .nav.open .nav-links .m-only { display: block; } }
.form .btn[data-inline] { width: auto; justify-self: start; }
[dir="rtl"] .btn-primary svg:last-child:not(:first-child) { transform: scaleX(-1); }

/* Add phone: version options */
.type-pick { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.type-pick legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.type-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--bg); cursor: pointer; font-weight: 400 !important; margin: 0 !important; }
.type-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.type-opt input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.type-opt b { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 15.5px; }
.type-opt .d { display: block; margin-top: 4px; font-size: 13.5px; color: var(--text-2); }
.type-opt[hidden] { display: none; }
.side .count { margin-inline-start: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: #e5372c; }
[dir="rtl"] .panel-main, [dir="rtl"] .auth-card { text-align: right; }
[dir="rtl"] .auth-card h1, [dir="rtl"] .auth-card .sub { text-align: center; }
[dir="rtl"] .walk > li { padding: 0 56px 28px 0; }
[dir="rtl"] .walk > li::before { left: auto; right: 0; }
[dir="rtl"] .walk > li::after { left: auto; right: 16.5px; }
[dir="rtl"] .qa summary::after, [dir="rtl"] .setup > summary::after { margin-left: 0; margin-right: auto; }
[dir="rtl"] .table-wrap th, [dir="rtl"] .table-wrap td { text-align: right; }

/* Payments */
.price-card .k, .wallet .k { display: block; font-size: 13px; color: var(--muted); }
.price-card .price { margin-top: 6px; }
.price-card .price b { font-size: 40px; letter-spacing: -.03em; }
.price-card .price span { font-size: 18px; color: var(--text-2); font-weight: 600; }
.checks-sm { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; color: var(--text-2); font-size: 14.5px; }
.checks-sm li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-inline-end: 8px; }
.wallet { margin-top: 14px; display: grid; gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); }
.wallet b { font-size: 15px; }
.wallet .addr { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.wallet .addr .k { grid-column: 1 / -1; }
.wallet code { font-size: 13.5px; word-break: break-all; padding: 8px 10px; }

/* Tickets */
.form textarea.input { height: auto; min-height: 110px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.ticket-list { display: grid; gap: 8px; }
.ticket-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: inherit; }
.ticket-row:hover { text-decoration: none; border-color: var(--brand); }
.ticket-row .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ticket-row .grow b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-row .muted { font-size: 13px; }
.thread { display: grid; gap: 12px; }
.thread .msg { max-width: 760px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.thread .msg.staff { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.thread .msg.me { margin-inline-start: auto; }
.thread .who { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.thread .body { white-space: pre-wrap; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.switch { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--border-strong); position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: inset-inline-start .15s; }
.switch:checked { background: var(--ok); }
.switch:checked::after { inset-inline-start: 21px; }

/* Public download page */
.dl-step { display: grid; gap: 16px; }
#dl [hidden] { display: none !important; }

/* Panel: "your free trial is waiting" */
.trial-offer {
    display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: 20px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--ok) 14%, var(--surface)) 0%, var(--surface) 70%);
    border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--border));
}
.trial-offer-icon { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 18%, transparent); }
.trial-offer-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trial-offer-body { flex: 1; min-width: 0; }
.trial-offer h2 { font-size: 19px; letter-spacing: -.015em; }
.trial-offer p { margin-top: 6px; color: var(--text-2); font-size: 15px; max-width: 680px; }
.trial-steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: ts; }
.trial-steps li { counter-increment: ts; display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); font-size: 14px; }
.trial-steps li::before { content: counter(ts); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--ok); flex: none; }
.trial-steps li + li::before { background: var(--btn-grad); }
.trial-steps span { color: var(--muted); }
.trial-offer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn-ok { color: #fff; background: var(--ok); }
@media (max-width: 560px) { .trial-offer { flex-direction: column; } }

/* Step screenshots in the setup guides (wwwroot/site/guide, 360×800, private details blurred). */
.shots { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.shots figure { margin: 0; width: 150px; }
.shots a { display: block; }
.shots img { display: block; width: 150px; height: auto; border-radius: 18px; border: 1px solid var(--border-strong); box-shadow: 0 6px 18px rgba(16, 24, 40, .08); background: var(--bg); }
.shots figcaption { margin-top: 7px; font-size: 12.5px; line-height: 1.35; color: var(--text-2); text-align: center; }
@media (max-width: 520px) {
    .shots { gap: 10px; }
    .shots figure, .shots img { width: calc(50vw - 34px); max-width: 170px; }
}

/* Announcements (panel): the banner on every page until "Got it", and the list. */
.notice-banner { margin: 0 0 18px; padding: 18px 20px; border-radius: 18px; background: var(--brand-soft); border: 1.5px solid color-mix(in srgb, var(--brand) 45%, transparent); box-shadow: var(--shadow-sm); }
.notice-banner .nb-head { display: flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; }
.notice-banner .nb-head svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notice-banner h3 { margin-top: 8px; font-size: 18px; }
.notice-banner form { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.notice-banner .nb-all { font-size: 14px; }
.notice-body { margin-top: 6px; white-space: pre-wrap; color: var(--text); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.notice-list { display: flex; flex-direction: column; gap: 14px; }
.notice { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg); }
.notice.new { border-color: color-mix(in srgb, var(--brand) 45%, transparent); background: var(--brand-soft); }
.notice-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.notice h3 { margin-top: 6px; font-size: 16.5px; }

/* Landing: the one-month free trial offer (under the hero). */
a.eyebrow { text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
a.eyebrow:hover { transform: translateY(-1px); box-shadow: var(--shadow-md, var(--shadow-sm)); }
.offer { padding: 8px 0 24px; }
.offer-card {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 40px; padding: 44px 48px; border-radius: 28px; color: #fff;
    background: radial-gradient(520px 300px at 8% 0%, rgba(255, 255, 255, .18), transparent 60%),
                radial-gradient(560px 320px at 100% 100%, rgba(10, 132, 255, .45), transparent 62%),
                linear-gradient(120deg, #6366f1 0%, #7c3aed 55%, #a21caf 100%);
    box-shadow: 0 30px 70px -28px rgba(124, 58, 237, .65);
}
.offer-card::after { content: ""; position: absolute; inset: auto -60px -90px auto; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.offer-badge {
    flex: none; width: 150px; height: 150px; border-radius: 50%; display: grid; place-content: center; text-align: center;
    background: #fff; color: #5b21b6; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .45); transform: rotate(-8deg);
}
.offer-badge b { font-size: 58px; line-height: 1; font-weight: 820; letter-spacing: -.04em; }
.offer-badge span { margin-top: 4px; font-size: 14px; line-height: 1.15; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.offer-text { position: relative; z-index: 1; }
.offer-tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.offer-tag svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.offer-text h2 { margin: 14px 0 10px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; line-height: 1.1; font-weight: 800; }
.offer-text h2 span { display: inline-block; padding: 0 10px; border-radius: 12px; background: #fff; color: #6d28d9; }
.offer-text p { max-width: 620px; font-size: 17px; color: rgba(255, 255, 255, .9); }
.offer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.offer .btn-light { background: #fff; color: #1d1d1f; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); }
.offer .btn-light svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .offer .btn-light svg { transform: scaleX(-1); }
@media (max-width: 760px) {
    .offer-card { flex-direction: column; align-items: flex-start; gap: 24px; padding: 32px 22px; border-radius: 22px; }
    .offer-badge { width: 112px; height: 112px; }
    .offer-badge b { font-size: 44px; }
    .offer-badge span { font-size: 12px; }
    .offer-actions .btn { flex: 1 1 100%; }
}
.offer .btn-outline { color: #fff; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .1); }
.offer .btn-outline:hover { border-color: #fff; }

/* Exynos notice (guide, /download, panel) and the /exynos list */
.alert.warn { color: var(--text); background: color-mix(in srgb, var(--warn) 10%, transparent); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.alert.warn a { font-weight: 650; }
.exynos-note { display: flex; gap: 12px; align-items: flex-start; }
.exynos-note > svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: var(--warn); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.exynos-note b { display: block; margin-bottom: 2px; }
.exynos-note .soon { color: var(--ok); font-weight: 650; }
.exy { padding-bottom: 72px; }
.exy-search { position: relative; max-width: 560px; }
.exy-search svg { position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.exy-search input { width: 100%; font: inherit; font-size: 17px; padding: 14px 16px; padding-inline-start: 44px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.exy-search input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
#exy-count { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
#exy-count.exy-none { color: var(--text); font-size: 15px; max-width: 680px; }
.exy-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 28px 0 8px; }
.exy-notes > div { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: var(--surface); font-size: 14.5px; }
.exy-notes p { margin-top: 4px; color: var(--text-2); }
.exy-brand { margin-top: 36px; }
.exy-brand h2 { font-size: 24px; margin-bottom: 12px; }
.exy-brand h2 .muted { font-size: 15px; font-weight: 500; margin-inline-start: 6px; }
.exy-brand td { white-space: normal; }
.exy-foot { margin-top: 32px; }
.panel-body > .exynos-note, .doc-body > .exynos-note { margin: 0 0 8px; }

/* /privacy-check: data-flow diagram, server table, "never sent" chips */
.doc-body .pc-promises { grid-template-columns: repeat(3, 1fr); margin-top: 22px; gap: 14px; }
.pc-promises .feature { padding: 22px; }
.pc-promises .feature h3 { font-size: 17px; }
.pc-promises .feature p { font-size: 14.5px; }
@media (max-width: 1100px) { .doc-body .pc-promises { grid-template-columns: 1fr; } }
.pc-flow {
    display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: stretch; margin-top: 24px; max-width: 860px;
    padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.pc-node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.pc-node svg, .pc-server svg { width: 30px; height: 30px; fill: none; stroke: var(--brand-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.pc-node b { font-size: 15px; }
.pc-node span { font-size: 13px; color: var(--muted); }
.pc-link { position: relative; display: grid; place-items: center; min-width: 120px; padding: 0 4px; }
.pc-link::before { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 2px; background: var(--btn-grad); border-radius: 2px; }
.pc-link span { position: relative; font-size: 12.5px; font-weight: 600; color: var(--brand-ink); text-align: center; line-height: 1.35; background: var(--surface); padding: 4px 6px; border-radius: 8px; }
.pc-server {
    grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; margin-top: 8px; padding: 14px 16px; border-radius: 14px;
    border: 1.5px dashed var(--border-strong); color: var(--text-2);
}
.pc-server svg { flex: none; stroke: var(--muted); margin: 0; }
.pc-server b { display: block; color: var(--text); font-size: 15px; }
.pc-server span { font-size: 14px; }
@media (max-width: 760px) {
    .pc-flow { grid-template-columns: 1fr; }
    .pc-link { min-height: 56px; }
    .pc-link::before { inset-inline: auto; left: 50%; top: 0; bottom: 0; width: 2px; height: auto; translate: -1px 0; }
}
.pc-table td { white-space: normal; vertical-align: top; }
.pc-table .pc-group th { background: var(--surface-2); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
html[lang="fa"] .pc-table .pc-group th { text-transform: none; letter-spacing: 0; }
.pc-never { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; max-width: 760px; }
.pc-never b { margin-inline-end: 4px; }
.pc-never span { font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 28%, transparent); }
.walk h4 .badge { margin-inline-start: 8px; vertical-align: 2px; }
.walk p.pc-small { font-size: 14px; color: var(--muted); }
[dir="rtl"] .toc ol { border-left: 0; border-right: 1px solid var(--border); }
[dir="rtl"] .toc a { margin-left: 0; margin-right: -1px; border-left: 0; border-right: 2px solid transparent; }
[dir="rtl"] .toc a.active { border-right-color: var(--brand); }
/* Code blocks inside a walkthrough step: let the step shrink so the block scrolls instead of widening the page. */
.walk > li { min-width: 0; }

/* Landing #privacy: link to /privacy-check */
.trust {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 40px; border-radius: 24px;
    background: linear-gradient(135deg, var(--brand-soft), var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); box-shadow: var(--shadow);
}
.trust h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.025em; margin-top: 8px; }
.trust-text p { color: var(--text-2); font-size: 17px; margin-top: 14px; max-width: 560px; }
.trust-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.trust-actions .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .trust-actions .btn svg { transform: scaleX(-1); }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trust-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.trust-list svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; background: var(--ok); }
.trust-list b { display: block; color: var(--text); font-size: 15.5px; }
.trust-list span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; gap: 28px; padding: 26px 20px; } }

/* Mobile number with its country code (Account › contact details) */
.tel { display: flex; gap: 8px; }
.tel-cc { position: relative; flex: none; display: block; margin: 0; }
.tel-face {
    display: inline-flex; align-items: center; gap: 8px; height: 100%; min-height: 48px; padding: 0 12px; border-radius: 12px;
    border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font-weight: 600; font-size: 16px; white-space: nowrap;
}
.tel-flag { font-size: 22px; line-height: 1; }
.tel-face svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tel-cc select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.tel-cc:focus-within .tel-face { outline: 2px solid var(--brand); outline-offset: 1px; }
.tel input { flex: 1; min-width: 0; }
/* Panel notice: the account can't add phones or buy (no mobile number, or not +98) */
.licence-phone { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 18px; padding: 16px 18px; }
.licence-phone > svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--warn); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.licence-phone b { display: block; font-size: 15.5px; }
.licence-phone p { margin: 4px 0 12px; color: var(--text-2); }
.licence-phone p > span { display: block; margin-top: 4px; }
/* Language switch next to the logo: "فارسی" on English pages, the English flag on Persian pages */
.nav .wrap > .lang-pill {
    display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; margin-inline-start: -16px;
    border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 13.5px; font-weight: 650; text-decoration: none; flex: none;
}
.nav .wrap > .lang-pill:hover { border-color: var(--brand); text-decoration: none; }
.lang-pill svg { width: 22px; height: 15px; border-radius: 2px; display: block; }
.lang-pill[lang="fa"] { font-family: "Vazirmatn", -apple-system, "SF Arabic", "Geeza Pro", Tahoma, sans-serif; }
@media (max-width: 1100px) { .nav .wrap > .lang-pill { margin-inline-start: -4px; } }
.lang-pill .lp-short { display: none; }
.nav-toggle { flex: none; }
@media (max-width: 480px) {
    .nav .wrap > .lang-pill { padding: 0 8px; margin-inline-start: -6px; }
    .lang-pill .lp-long { display: none; }
    .lang-pill .lp-short { display: inline; }
}

/* "Does your phone work with our app?" (Pages/Shared/_PhoneCheck.cshtml, site/phone-check.js) */
.pc [hidden] { display: none; }
.pc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pc-row input, .pc-row select { width: 100%; }
.pc-result { margin-top: 12px; }
.pc-result .pc-extra { display: block; margin-top: 4px; font-size: 13px; opacity: .8; }
.pc-risk { margin-top: 12px; }
.pc-card { max-width: 760px; }
