/*
 * The public site (layouts/site.blade.php): home page and the pages for visitors. Dark, in the colours
 * of the logo; written with logical properties (inline-start, inline-end) so the same rules work for
 * Persian (rtl) and English (ltr). No framework: a slow connection should get the page fast.
 */

@font-face {
    font-family: Estedad;
    src: url('../fonts/Estedad-Medium.woff2') format('woff2');
    font-weight: 400 500;
    font-display: swap;
}

@font-face {
    font-family: Estedad;
    src: url('../fonts/Estedad-Bold.woff2') format('woff2');
    font-weight: 600 800;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #0b0716;
    --bg-2: #120c22;
    --surface: rgba(255, 255, 255, .04);
    --surface-2: rgba(255, 255, 255, .07);
    --border: rgba(196, 170, 255, .14);
    --text: #f4f0fb;
    --muted: #b6abcc;
    --indigo: #3a17c9;
    --violet: #7b1fe0;
    --magenta: #e91ebb;
    --soft: #c9b2ff;
    --ok: #3ddc84;
    --grad: linear-gradient(120deg, #5b34ff 0%, #8a2be2 48%, #e91ebb 100%);
    --radius: 22px;
    --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(60rem 40rem at 85% -10%, rgba(123, 31, 224, .28), transparent 60%),
        radial-gradient(50rem 36rem at -10% 30%, rgba(233, 30, 187, .10), transparent 60%),
        var(--bg);
    color: var(--text);
    font: 500 1rem/1.85 Estedad, Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html[dir="ltr"] body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.7; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 1rem; top: 1rem; z-index: 10; background: var(--text); color: var(--bg); padding: .5rem 1rem; border-radius: 8px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 3rem; padding: .7rem 1.4rem; border-radius: 999px;
    font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(138, 43, 226, .35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(233, 30, 187, .35); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255, 255, 255, .11); }
.btn:focus-visible, .nav a:focus-visible, summary:focus-visible { outline: 3px solid var(--soft); outline-offset: 3px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 5;
    background: rgba(11, 7, 22, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 10px; background: #fff; padding: 3px; }
.nav { display: none; gap: 1.6rem; margin-inline-start: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.header-cta { margin-inline-start: auto; min-height: 2.6rem; padding: .45rem 1.1rem; font-size: .92rem; }
.lang { color: var(--muted); font-size: .85rem; text-decoration: none; }
@media (min-width: 900px) {
    .nav { display: flex; }
    .header-cta { margin-inline-start: 0; }
}

/* Sections */
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; color: var(--soft); font-weight: 700; font-size: .9rem; margin-bottom: .6rem; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
.section-head p { margin-top: .8rem; color: var(--muted); font-size: 1.05rem; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); }
.hero .wrap { display: grid; gap: 3rem; align-items: center; }
.pill {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .35rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 700;
    background: rgba(123, 31, 224, .16); border: 1px solid rgba(183, 140, 255, .28); color: var(--soft);
}
.pill .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 220, 132, .15); }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4.1rem); margin-top: 1.1rem; }
/* The coloured half of the headline wraps as one piece ("زنگ می‌خوره"), not mid-phrase. */
.hero h1 .grad-text { display: inline-block; }
.hero .lead { margin-top: 1.2rem; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #ddd3ee; max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero .note { margin-top: 1.1rem; font-size: .92rem; }
@media (min-width: 900px) {
    .hero .wrap { grid-template-columns: 1.08fr .92fr; }
}

/* The two phones */
.duo { position: relative; display: grid; place-items: center; min-height: 31rem; padding-bottom: 2rem; }
.duo::before {
    content: ""; position: absolute; inset: 8% 6%; border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, .45), transparent 65%); filter: blur(10px);
}
.phone {
    position: relative; width: min(16.5rem, 64vw); aspect-ratio: 600 / 1304;
    padding: .55rem; border-radius: 2.6rem; background: #17112a;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 40px 80px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 2.1rem; }
.android {
    /* Over the phone's bottom edge, clear of its call buttons. */
    position: absolute; inset-inline-start: 0; bottom: 0; width: min(11.5rem, 42vw);
    padding: 1rem; border-radius: 1.6rem; background: linear-gradient(160deg, #221840, #150f28);
    border: 1px solid var(--border); box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
    animation: float 6s ease-in-out infinite;
}
.android .row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .8rem; color: var(--muted); }
.android .row + .row { margin-top: .55rem; }
.android strong { color: var(--text); font-size: .92rem; }
.android .bars { display: flex; align-items: flex-end; gap: 2px; height: .8rem; }
.android .bars i { width: 3px; border-radius: 1px; background: var(--ok); }
.android .live { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .55rem; border-radius: 999px; background: rgba(61, 220, 132, .14); color: var(--ok); font-weight: 700; font-size: .75rem; }
.link-badge {
    position: absolute; inset-inline-end: 2%; top: 14%;
    display: flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 999px;
    background: rgba(18, 12, 34, .9); border: 1px solid var(--border); font-size: .82rem; font-weight: 700;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
    animation: float 6s ease-in-out -3s infinite;
}
.link-badge svg { width: 1.05rem; height: 1.05rem; color: var(--ok); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Strip of facts under the hero */
.facts { padding-block: 0; }
.facts ul {
    list-style: none; margin: 0; padding: 1.1rem; display: grid; gap: .9rem;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.facts li { display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: .95rem; }
.facts svg { width: 1.5rem; height: 1.5rem; color: var(--soft); flex: none; }

/* Cards */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); }
.card {
    padding: 1.5rem; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
    border: 1px solid var(--border);
}
.card h3 { font-size: 1.12rem; margin-top: 1rem; }
.card p { margin-top: .5rem; color: var(--muted); font-size: .96rem; }
.icon {
    display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px;
    background: linear-gradient(140deg, rgba(91, 52, 255, .3), rgba(233, 30, 187, .22));
    border: 1px solid rgba(201, 178, 255, .25); color: #fff;
}
.icon svg { width: 1.45rem; height: 1.45rem; }

/* Who it's for */
/*
 * Any number of cards (they are edited in the panel): three to a row on large screens, two on tablets, one
 * on phones; a wide card takes two places. Cards in a short last row grow to fill it, leaving no gap.
 */
.uses { display: flex; flex-wrap: wrap; gap: 1rem; }
.use { flex: 1 1 100%; }
@media (min-width: 700px) {
    .use { flex-basis: calc(50% - .5rem); }
    .use.wide { flex-basis: 100%; }
}
@media (min-width: 1000px) {
    .use { flex-basis: calc(33.33% - .67rem); }
    .use.wide { flex-basis: calc(66.66% - .34rem); }
}
.use {
    display: flex; flex-direction: column; padding: clamp(1.5rem, 3.5vw, 2rem); border-radius: calc(var(--radius) + 4px);
    background: radial-gradient(28rem 14rem at 100% 0%, rgba(123, 31, 224, .2), transparent 70%), var(--surface);
    border: 1px solid rgba(201, 178, 255, .22);
}
html[dir="rtl"] .use { background: radial-gradient(28rem 14rem at 0% 0%, rgba(123, 31, 224, .2), transparent 70%), var(--surface); }
.use h3 { font-size: clamp(1.2rem, 2.4vw, 1.4rem); margin-top: 1.1rem; }
.use p { margin-top: .6rem; color: var(--muted); }
.use .gain {
    display: flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: 1.1rem;
    color: var(--ok); font-weight: 700; font-size: .95rem;
}
.use .gain svg { width: 1.2rem; height: 1.2rem; flex: none; }

/* Screens */
.screens .wrap { display: grid; gap: 2.5rem; align-items: center; }
.screens .shots { display: flex; justify-content: center; gap: 1rem; }
.screens .phone { width: min(14rem, 44vw); }
.screens .shots .phone:last-child { margin-top: 3rem; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .85rem; }
.checks li { display: flex; gap: .7rem; }
.checks svg { width: 1.35rem; height: 1.35rem; color: var(--ok); flex: none; margin-top: .25rem; }
@media (min-width: 900px) {
    .screens .wrap { grid-template-columns: 1fr 1fr; }
}

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.step { position: relative; padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before {
    counter-increment: step; content: counter(step, persian);
    display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
    background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 1rem;
}
html[dir="ltr"] .step::before { content: counter(step); }
.step h3 { font-size: 1.1rem; }
.step p { margin-top: .5rem; color: var(--muted); font-size: .96rem; }

/* Security */
.secure {
    display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.6rem, 4vw, 2.6rem);
    border-radius: calc(var(--radius) + 6px); border: 1px solid rgba(201, 178, 255, .22);
    background: radial-gradient(40rem 20rem at 0% 0%, rgba(91, 52, 255, .22), transparent 70%), var(--surface);
}
.secure .icon { width: 3.6rem; height: 3.6rem; border-radius: 18px; }
.secure p { color: var(--muted); margin-top: .6rem; }
.secure a { color: var(--soft); }
@media (min-width: 760px) { .secure { grid-template-columns: auto 1fr; } }

/* Plans */
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: .4rem; padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.plan.featured { background: linear-gradient(180deg, rgba(123, 31, 224, .28), rgba(233, 30, 187, .08)); border-color: rgba(201, 178, 255, .4); }
.plan .tag { align-self: flex-start; padding: .15rem .65rem; border-radius: 999px; background: rgba(61, 220, 132, .14); color: var(--ok); font-size: .8rem; font-weight: 700; }
.plan h3 { font-size: 1.1rem; }
.plan .price { font-size: 1.9rem; font-weight: 800; line-height: 1.3; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan .per { color: var(--muted); font-size: .9rem; }
.plan .desc { color: var(--muted); font-size: .92rem; margin-top: .3rem; }
.plans-note { margin-top: 1.4rem; text-align: center; color: var(--muted); font-size: .92rem; }

/* Sellers */
.sellers { display: grid; gap: 1.2rem; align-items: center; padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: calc(var(--radius) + 6px); background: var(--surface); border: 1px dashed rgba(201, 178, 255, .35); }
.sellers p { color: var(--muted); margin-top: .5rem; }
@media (min-width: 760px) { .sellers { grid-template-columns: 1fr auto; } }

/* FAQ */
.faq { max-width: 50rem; margin-inline: auto; display: grid; gap: .75rem; }
.faq details { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.faq summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1.05rem 1.25rem; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--soft); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.25rem 1.15rem; color: var(--muted); }
.faq a { color: var(--soft); }

/* Closing call to action */
.closing { text-align: center; padding: clamp(2.2rem, 5vw, 3.4rem) 1.2rem; border-radius: calc(var(--radius) + 8px); background: var(--grad); box-shadow: 0 30px 80px rgba(138, 43, 226, .35); }
.closing h2 { color: #fff; }
.closing p { color: rgba(255, 255, 255, .88); margin-top: .7rem; }
.closing .actions { justify-content: center; }
.closing .btn-primary { background: #fff; color: #3d1489; box-shadow: none; }
.closing .btn-ghost { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 2.2rem 2.6rem; margin-top: clamp(3rem, 7vw, 5rem); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--text); }
.site-footer small { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .android, .link-badge { animation: none; }
    .btn { transition: none; }
}
