/* ============================================================
   pollbox — Landing page styles
   Loaded after bootstrap.min.css + styles.css (Xintra) + icons.css
   Palette: brand teal #3a8e9d, dark navy #12303a
   ============================================================ */

:root {
    --lp-brand: #3a8e9d;
    --lp-brand-dark: #2c707c;
    --lp-brand-light: #4da8b8;
    --lp-brand-tint: rgba(58, 142, 157, 0.1);
    --lp-navy: #12303a;
    --lp-ink: #1d3540;
    --lp-body: #4b5d66;
    --lp-muted: #71868f;
    --lp-surface: #f4f8f9;
    --lp-card-border: rgba(18, 48, 58, 0.08);
    --lp-radius-lg: 24px;
    --lp-radius-md: 16px;
    --lp-shadow-sm: 0 2px 10px rgba(18, 48, 58, 0.06);
    --lp-shadow-md: 0 12px 32px rgba(18, 48, 58, 0.1);
    --lp-shadow-lg: 0 24px 64px rgba(18, 48, 58, 0.16);
    --lp-gradient: linear-gradient(135deg, #3a8e9d 0%, #2c707c 100%);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body.lp-body {
    font-family: iranyekan, sans-serif;
    background-color: #ffffff;
    color: var(--lp-body);
    font-size: 16px;
    line-height: 1.9;
    overflow-x: hidden;
}

.lp-body h1,
.lp-body h2,
.lp-body h3,
.lp-body h4 {
    color: var(--lp-ink);
    font-weight: 800;
    line-height: 1.5;
}

.lp-container {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 24px;
}

.lp-section {
    padding-block: 88px;
}

@media (max-width: 767.98px) {
    .lp-section {
        padding-block: 56px;
    }
}

/* ---------- Buttons ---------- */

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 30px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.lp-btn:focus-visible {
    outline: 3px solid rgba(58, 142, 157, 0.4);
    outline-offset: 2px;
}

.lp-btn-primary {
    background: var(--lp-gradient);
    color: #fff;
    box-shadow: 0 10px 24px rgba(58, 142, 157, 0.35);
}

.lp-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(58, 142, 157, 0.45);
}

.lp-btn-outline {
    background: transparent;
    color: var(--lp-ink);
    box-shadow: inset 0 0 0 1.5px rgba(18, 48, 58, 0.22);
}

.lp-btn-outline:hover {
    color: var(--lp-brand-dark);
    box-shadow: inset 0 0 0 1.5px var(--lp-brand);
    background: var(--lp-brand-tint);
}

.lp-btn-ghost {
    background: transparent;
    color: var(--lp-brand-dark);
    padding-inline: 18px;
}

.lp-btn-ghost:hover {
    color: var(--lp-brand);
    background: var(--lp-brand-tint);
}

.lp-btn-lg {
    padding: 16px 38px;
    font-size: 17px;
}

.lp-btn-light {
    background: #fff;
    color: var(--lp-brand-dark);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.lp-btn-light:hover {
    color: var(--lp-brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

/* ---------- Navbar ---------- */

.lp-nav {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 1030;
    padding-block: 14px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    background: transparent;
}

.lp-nav.lp-nav-scrolled {
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px rgba(18, 48, 58, 0.08);
    padding-block: 8px;
}

.lp-nav-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lp-nav-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto 0 0;
    padding: 0;
    list-style: none;
}

.lp-nav-links a {
    display: block;
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--lp-ink);
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.lp-nav-links a:hover {
    color: var(--lp-brand-dark);
    background: var(--lp-brand-tint);
}

.lp-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-inline-start: auto;
}

.lp-nav-actions .lp-btn {
    padding: 10px 22px;
    font-size: 14px;
}

.lp-nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 26px;
    color: var(--lp-ink);
    padding: 4px 8px;
    border-radius: 10px;
}

@media (max-width: 991.98px) {
    .lp-nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        inset-inline: 16px;
        background: #fff;
        border-radius: var(--lp-radius-md);
        box-shadow: var(--lp-shadow-lg);
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .lp-nav-links.lp-open {
        display: flex;
    }

    .lp-nav-toggle {
        display: block;
        margin-inline-start: auto;
    }

    .lp-nav-actions {
        margin-inline-start: 0;
    }

    .lp-nav-actions .lp-btn-outline {
        display: none;
    }

    .lp-nav {
        background: rgba(255, 255, 255, 0.86);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }
}

@media (max-width: 575.98px) {
    .lp-container {
        padding-inline: 16px;
    }

    .lp-nav-inner {
        gap: 8px;
    }

    .lp-nav-logo img {
        height: 30px;
        width: auto;
    }

    .lp-nav-actions {
        gap: 6px;
    }

    .lp-nav-actions .lp-btn {
        padding: 9px 14px;
        font-size: 13px;
    }

    .lp-nav-toggle {
        font-size: 23px;
        padding: 4px 6px;
    }
}

/* ---------- Hero ---------- */

.lp-hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 96px;
    background:
        radial-gradient(900px 480px at 85% -10%, rgba(58, 142, 157, 0.16), transparent 65%),
        radial-gradient(700px 420px at 8% 110%, rgba(77, 168, 184, 0.12), transparent 60%),
        linear-gradient(180deg, #f4f9fa 0%, #ffffff 100%);
    overflow: hidden;
}

.lp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(18, 48, 58, 0.07) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(720px 480px at 22% 30%, #000 0%, transparent 75%);
    mask-image: radial-gradient(720px 480px at 22% 30%, #000 0%, transparent 75%);
    pointer-events: none;
}

.lp-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
}

@media (max-width: 991.98px) {
    .lp-hero {
        padding-top: 120px;
        padding-bottom: 64px;
    }

    .lp-hero-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }
}

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid rgba(58, 142, 157, 0.25);
    color: var(--lp-brand-dark);
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    padding: 7px 16px;
    box-shadow: var(--lp-shadow-sm);
    margin-bottom: 22px;
}

.lp-eyebrow i {
    font-size: 16px;
}

.lp-hero h1 {
    font-size: clamp(30px, 4.6vw, 50px);
    font-weight: 900;
    line-height: 1.55;
    margin-bottom: 20px;
}

.lp-highlight {
    position: relative;
    white-space: nowrap;
    color: var(--lp-brand-dark);
}

.lp-highlight::after {
    content: '';
    position: absolute;
    inset-inline: -2px;
    bottom: 4px;
    height: 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(58, 142, 157, 0.3), rgba(77, 168, 184, 0.45));
    z-index: -1;
}

.lp-hero-sub {
    font-size: 17.5px;
    max-width: 540px;
    margin-bottom: 30px;
}

.lp-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.lp-hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f7a43;
    margin-bottom: 34px;
}

.lp-hero-note i {
    font-size: 18px;
}

.lp-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.lp-hero-trust li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--lp-muted);
}

.lp-hero-trust i {
    color: var(--lp-brand);
    font-size: 17px;
}

/* ---------- Hero mockup ---------- */

.lp-mockup-wrap {
    position: relative;
    padding: 24px 8px;
}

.lp-mockup-blob {
    position: absolute;
    inset: -8% -4%;
    background: radial-gradient(closest-side, rgba(58, 142, 157, 0.18), transparent 72%);
    filter: blur(8px);
    z-index: 0;
}

.lp-browser {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1px solid var(--lp-card-border);
    border-radius: 20px;
    box-shadow: var(--lp-shadow-lg);
    transform: rotate(-2deg);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-browser:hover {
    transform: rotate(0deg);
}

.lp-browser-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--lp-card-border);
}

.lp-browser-dots {
    display: flex;
    gap: 6px;
}

.lp-browser-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.lp-browser-dots span:nth-child(1) { background: #ff5f57; }
.lp-browser-dots span:nth-child(2) { background: #febc2e; }
.lp-browser-dots span:nth-child(3) { background: #28c840; }

.lp-browser-url {
    flex: 1;
    direction: ltr;
    text-align: left;
    background: var(--lp-surface);
    border-radius: 999px;
    color: var(--lp-muted);
    font-size: 12px;
    padding: 5px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
}

.lp-browser-url i {
    color: #1f7a43;
    font-size: 13px;
}

.lp-browser-body {
    padding: 22px 24px 26px;
}

.lp-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.lp-results-head h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
}

.lp-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(220, 53, 69, 0.08);
    color: #c82333;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
}

.lp-live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc3545;
    animation: lp-pulse 1.6s ease-out infinite;
}

@keyframes lp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.lp-total-votes {
    font-size: 13px;
    color: var(--lp-muted);
    margin-bottom: 18px;
}

.lp-total-votes strong {
    color: var(--lp-ink);
    font-size: 15px;
}

.lp-candidate {
    display: grid;
    grid-template-columns: 40px 1fr 48px;
    align-items: center;
    gap: 12px;
    padding-block: 9px;
}

.lp-candidate-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
}

.lp-candidate:nth-child(odd) .lp-candidate-avatar { background: var(--lp-brand); }
.lp-candidate:nth-child(even) .lp-candidate-avatar { background: #5b8aa6; }

.lp-candidate-info {
    min-width: 0;
}

.lp-candidate-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--lp-ink);
    margin-bottom: 6px;
}

.lp-bar-track {
    height: 9px;
    border-radius: 999px;
    background: var(--lp-surface);
    overflow: hidden;
}

.lp-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--lp-gradient);
}

.lp-candidate:nth-child(even) .lp-bar-fill {
    background: linear-gradient(135deg, #5b8aa6, #46708a);
}

.lp-candidate-pct {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--lp-ink);
    text-align: left;
    direction: ltr;
}

.lp-float-card {
    position: absolute;
    z-index: 2;
    background: #fff;
    border: 1px solid var(--lp-card-border);
    border-radius: var(--lp-radius-md);
    box-shadow: var(--lp-shadow-md);
    padding: 14px 18px;
    animation: lp-float 6s ease-in-out infinite;
}

.lp-float-otp {
    top: -4px;
    inset-inline-start: -14px;
}

.lp-float-receipt {
    bottom: -10px;
    inset-inline-end: -10px;
    animation-delay: -3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes lp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

.lp-float-otp-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--lp-muted);
    margin-bottom: 4px;
}

.lp-float-otp-label i {
    color: var(--lp-brand);
    font-size: 15px;
}

.lp-float-otp-code {
    direction: ltr;
    font-weight: 900;
    font-size: 21px;
    letter-spacing: 4px;
    color: var(--lp-ink);
    text-align: center;
}

.lp-float-receipt i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(31, 122, 67, 0.1);
    color: #1f7a43;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.lp-float-receipt span {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--lp-ink);
}

@media (max-width: 575.98px) {
    .lp-float-otp { inset-inline-start: -4px; }
    .lp-float-receipt { inset-inline-end: -4px; }
    .lp-browser { transform: rotate(0deg); }
}

/* ---------- Section headers ---------- */

.lp-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.lp-section-head h2 {
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 900;
    margin-bottom: 14px;
}

.lp-section-head p {
    font-size: 16.5px;
    color: var(--lp-muted);
    margin: 0;
}

.lp-section-line {
    width: 56px;
    height: 5px;
    border-radius: 999px;
    background: var(--lp-gradient);
    margin: 0 auto 22px;
}

/* ---------- Features ---------- */

.lp-features {
    background: #fff;
}

.lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 991.98px) {
    .lp-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .lp-feature-grid {
        grid-template-columns: 1fr;
    }
}

.lp-feature-card {
    background: #fff;
    border: 1px solid var(--lp-card-border);
    border-radius: var(--lp-radius-lg);
    padding: 30px 26px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.lp-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--lp-shadow-md);
    border-color: rgba(58, 142, 157, 0.3);
}

.lp-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--lp-brand-tint);
    color: var(--lp-brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    margin-bottom: 20px;
}

.lp-feature-card h3 {
    font-size: 17.5px;
    margin-bottom: 10px;
}

.lp-feature-card p {
    font-size: 14.5px;
    margin: 0;
}

/* ---------- How it works ---------- */

.lp-how {
    background: var(--lp-surface);
}

.lp-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    position: relative;
}

@media (max-width: 991.98px) {
    .lp-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .lp-steps {
        grid-template-columns: 1fr;
    }
}

.lp-step {
    position: relative;
    text-align: center;
    padding: 0 8px;
}

@media (min-width: 992px) {
    .lp-step:not(:first-child)::after {
        content: '';
        position: absolute;
        top: 32px;
        inset-inline-start: calc(-50% + 46px);
        width: calc(100% - 92px);
        border-top: 2px dashed rgba(58, 142, 157, 0.4);
    }
}

.lp-step-num {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(58, 142, 157, 0.35);
    color: var(--lp-brand-dark);
    font-size: 24px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: var(--lp-shadow-sm);
}

.lp-step h3 {
    font-size: 16.5px;
    margin-bottom: 8px;
}

.lp-step p {
    font-size: 14px;
    margin: 0;
}

.lp-how-cta {
    text-align: center;
    margin-top: 56px;
}

/* ---------- Security strip ---------- */

.lp-security {
    background:
        radial-gradient(700px 320px at 80% 0%, rgba(77, 168, 184, 0.2), transparent 65%),
        var(--lp-navy);
    color: rgba(255, 255, 255, 0.78);
    padding-block: 64px;
}

.lp-security .lp-section-head {
    margin-bottom: 40px;
}

.lp-security .lp-section-head h2 {
    color: #fff;
}

.lp-security .lp-section-head p {
    color: rgba(255, 255, 255, 0.65);
}

.lp-security-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 767.98px) {
    .lp-security-grid {
        grid-template-columns: 1fr;
    }
}

.lp-security-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--lp-radius-md);
    padding: 22px;
}

.lp-security-item i {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(77, 168, 184, 0.18);
    color: #7fcbd8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.lp-security-item h3 {
    color: #fff;
    font-size: 15.5px;
    margin-bottom: 6px;
}

.lp-security-item p {
    font-size: 13.5px;
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
}

/* ---------- Pricing ---------- */

.lp-pricing {
    background: #fff;
}

.lp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
    align-items: stretch;
    margin-bottom: 18px;
}

.lp-price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid var(--lp-card-border);
    border-radius: var(--lp-radius-lg);
    padding: 28px 22px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.lp-price-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--lp-shadow-md);
}

.lp-price-card.lp-price-active {
    border-color: var(--lp-brand);
    box-shadow: 0 0 0 3px rgba(58, 142, 157, 0.15), var(--lp-shadow-md);
}

.lp-price-card.lp-price-featured {
    border-color: var(--lp-brand);
}

.lp-price-ribbon {
    position: absolute;
    top: -13px;
    inset-inline-start: 50%;
    transform: translateX(50%);
    background: var(--lp-gradient);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    box-shadow: 0 6px 14px rgba(58, 142, 157, 0.35);
    white-space: nowrap;
}

.lp-price-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--lp-ink);
    margin-bottom: 4px;
}

.lp-price-range {
    font-size: 13px;
    font-weight: 700;
    color: var(--lp-muted);
    margin-bottom: 14px;
}

.lp-price-amount {
    font-size: 34px;
    font-weight: 900;
    color: var(--lp-ink);
    line-height: 1.3;
}

.lp-price-free .lp-price-amount {
    color: #1f7a43;
}

.lp-price-unit {
    font-size: 13px;
    color: var(--lp-muted);
    margin-bottom: 20px;
    min-height: 22px;
}

.lp-price-card .lp-btn {
    margin-top: auto;
    padding: 10px 20px;
    font-size: 14px;
}

.lp-pricing-note {
    text-align: center;
    font-size: 13px;
    color: var(--lp-muted);
    margin-bottom: 48px;
}

/* Calculator */

.lp-calc {
    max-width: 720px;
    margin-inline: auto;
    background: var(--lp-surface);
    border: 1px solid var(--lp-card-border);
    border-radius: var(--lp-radius-lg);
    padding: 34px 34px 30px;
}

@media (max-width: 575.98px) {
    .lp-calc {
        padding: 24px 18px;
    }
}

.lp-calc h3 {
    font-size: 19px;
    text-align: center;
    margin-bottom: 6px;
}

.lp-calc-sub {
    text-align: center;
    font-size: 14px;
    color: var(--lp-muted);
    margin-bottom: 26px;
}

.lp-calc-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}

@media (max-width: 575.98px) {
    .lp-calc-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

.lp-calc-controls input[type='range'] {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 22px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    margin: 0;
}

/* Track — WebKit/Blink. Must be set explicitly here to override the global
   `input[type=range]::-webkit-slider-runnable-track` rule in styles.css that
   paints it near-white (invisible on the light calculator card). */
.lp-calc-controls input[type='range']::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
    background: #d6e2e6;
    border: none;
}

.lp-calc-controls input[type='range']::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: #d6e2e6;
    border: none;
}

.lp-calc-controls input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    margin-top: -7px; /* center the 22px thumb on the 8px track */
    border-radius: 50%;
    background: var(--lp-gradient);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(18, 48, 58, 0.3);
}

.lp-calc-controls input[type='range']::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--lp-gradient);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(18, 48, 58, 0.3);
}

.lp-calc-controls input[type='range']:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(58, 142, 157, 0.25), 0 2px 8px rgba(18, 48, 58, 0.3);
}

.lp-calc-count {
    width: 130px;
    border: 1.5px solid var(--lp-card-border);
    border-radius: 12px;
    background: #fff;
    text-align: center;
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    color: var(--lp-ink);
    padding: 10px 12px;
}

.lp-calc-count:focus {
    outline: none;
    border-color: var(--lp-brand);
    box-shadow: 0 0 0 3px rgba(58, 142, 157, 0.15);
}

.lp-calc-result {
    background: #fff;
    border: 1px solid var(--lp-card-border);
    border-radius: var(--lp-radius-md);
    padding: 20px 24px;
}

.lp-calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
    padding-block: 6px;
}

.lp-calc-row span:last-child {
    font-weight: 700;
    color: var(--lp-ink);
}

.lp-calc-total {
    border-top: 1.5px dashed var(--lp-card-border);
    margin-top: 8px;
    padding-top: 14px;
    font-size: 16px;
    font-weight: 800;
    color: var(--lp-ink);
}

.lp-calc-total span:last-child {
    color: var(--lp-brand-dark);
    font-size: 20px;
    font-weight: 900;
}

.lp-calc-result.lp-calc-free .lp-calc-total span:last-child {
    color: #1f7a43;
}

/* ---------- FAQ ---------- */

.lp-faq {
    background: var(--lp-surface);
}

.lp-faq .accordion {
    max-width: 760px;
    margin-inline: auto;
}

.lp-faq .accordion-item {
    border: 1px solid var(--lp-card-border);
    border-radius: var(--lp-radius-md) !important;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

.lp-faq .accordion-button {
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--lp-ink);
    background: #fff;
    padding: 18px 22px;
    box-shadow: none;
    text-align: start;
}

.lp-faq .accordion-button:not(.collapsed) {
    color: var(--lp-brand-dark);
    background: var(--lp-brand-tint);
}

.lp-faq .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(58, 142, 157, 0.18);
}

.lp-faq .accordion-button::after {
    margin-inline-start: auto;
    margin-inline-end: 0;
}

.lp-faq .accordion-body {
    font-size: 14.5px;
    color: var(--lp-body);
    padding: 18px 22px;
}

/* ---------- Final CTA ---------- */

.lp-cta {
    background:
        radial-gradient(640px 320px at 15% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
        var(--lp-gradient);
    color: #fff;
    text-align: center;
    padding-block: 84px;
}

.lp-cta h2 {
    color: #fff;
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 900;
    margin-bottom: 14px;
}

.lp-cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16.5px;
    max-width: 560px;
    margin: 0 auto 32px;
}

/* ---------- Footer ---------- */

.lp-footer {
    background: var(--lp-navy);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 64px;
}

.lp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

@media (max-width: 991.98px) {
    .lp-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575.98px) {
    .lp-footer-grid {
        grid-template-columns: 1fr;
    }
}

.lp-footer-logo img {
    height: 38px;
    width: auto;
    margin-bottom: 16px;
}

.lp-footer-about {
    font-size: 13.5px;
    line-height: 2;
    max-width: 320px;
}

.lp-footer h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 18px;
}

.lp-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-footer ul li {
    margin-bottom: 10px;
}

.lp-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.2s ease;
}

.lp-footer a:hover {
    color: #7fcbd8;
}

.lp-footer-contact li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
}

.lp-footer-contact i {
    color: #7fcbd8;
    font-size: 16px;
}

.lp-footer-enamad {
    background: #fff;
    border-radius: var(--lp-radius-md);
    padding: 10px;
    display: inline-block;
}

.lp-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-block: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- Reveal on scroll ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].lp-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-delay='1'] { transition-delay: 0.1s; }
[data-reveal-delay='2'] { transition-delay: 0.2s; }
[data-reveal-delay='3'] { transition-delay: 0.3s; }
[data-reveal-delay='4'] { transition-delay: 0.4s; }
[data-reveal-delay='5'] { transition-delay: 0.5s; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Legal page (terms) ---------- */

.lg-hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 48px;
    background:
        radial-gradient(800px 380px at 85% -20%, rgba(58, 142, 157, 0.14), transparent 65%),
        linear-gradient(180deg, var(--lp-surface) 0%, #ffffff 100%);
}

.lg-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: var(--lp-muted);
    margin-bottom: 20px;
}

.lg-breadcrumb a {
    color: var(--lp-brand-dark);
    text-decoration: none;
    font-weight: 700;
}

.lg-breadcrumb a:hover {
    color: var(--lp-brand);
}

.lg-hero h1 {
    font-size: clamp(26px, 3.6vw, 40px);
    margin: 16px 0 12px;
}

.lg-hero-sub {
    max-width: 760px;
    font-size: 16.5px;
    color: var(--lp-body);
    margin-bottom: 20px;
}

.lg-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--lp-card-border);
    box-shadow: var(--lp-shadow-sm);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--lp-ink);
}

.lg-updated i {
    color: var(--lp-brand);
    font-size: 16px;
}

.lg-section {
    padding-block: 56px 88px;
}

.lg-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

/* Table of contents */

.lg-toc-inner {
    position: sticky;
    top: 96px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-card-border);
    border-radius: var(--lp-radius-md);
    padding: 24px;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
}

.lg-toc h2 {
    font-size: 16px;
    margin: 0 0 14px;
}

.lg-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: lg-toc;
}

.lg-toc li {
    counter-increment: lg-toc;
}

.lg-toc a {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--lp-body);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lg-toc a::before {
    content: counter(lg-toc, persian) '.';
    color: var(--lp-muted);
    font-weight: 700;
    flex-shrink: 0;
}

.lg-toc a:hover {
    color: var(--lp-brand-dark);
}

.lg-toc a:hover::before {
    color: var(--lp-brand);
}

/* Content */

.lg-content > section {
    margin-bottom: 44px;
    scroll-margin-top: 96px;
}

.lg-content h2 {
    font-size: 21px;
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--lp-card-border);
}

.lg-content p {
    margin-bottom: 14px;
    text-align: justify;
}

.lg-content a {
    color: var(--lp-brand-dark);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed rgba(58, 142, 157, 0.5);
}

.lg-content a:hover {
    color: var(--lp-brand);
}

.lg-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.lg-list li {
    position: relative;
    padding-inline-start: 22px;
    margin-bottom: 12px;
    text-align: justify;
}

.lg-list li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 13px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lp-brand);
}

.lg-list-danger li::before {
    background: #c0564f;
}

.lg-list-contact {
    display: grid;
    gap: 4px;
}

.lg-list-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-inline-start: 0;
}

.lg-list-contact li::before {
    content: none;
}

.lg-list-contact i {
    color: var(--lp-brand);
    font-size: 18px;
}

/* Definitions */

.lg-defs {
    margin: 0;
    display: grid;
    gap: 14px;
}

.lg-defs dt {
    font-weight: 800;
    color: var(--lp-ink);
    margin-bottom: 2px;
}

.lg-defs dd {
    margin: 0;
    padding-inline-start: 14px;
    border-inline-start: 3px solid var(--lp-brand-tint);
    color: var(--lp-body);
}

/* Callout */

.lg-callout {
    display: flex;
    gap: 14px;
    padding: 20px 22px;
    border-radius: var(--lp-radius-md);
    margin-bottom: 44px;
}

.lg-callout i {
    font-size: 22px;
    line-height: 1.6;
    flex-shrink: 0;
}

.lg-callout strong {
    display: block;
    color: var(--lp-ink);
    margin-bottom: 4px;
}

.lg-callout p {
    margin: 0;
    font-size: 15px;
}

.lg-callout-brand {
    background: var(--lp-brand-tint);
    border-inline-start: 4px solid var(--lp-brand);
}

.lg-callout-brand i {
    color: var(--lp-brand-dark);
}

/* Closing CTA */

.lg-cta {
    text-align: center;
    padding: 32px 24px;
    border: 1.5px dashed rgba(58, 142, 157, 0.4);
    border-radius: var(--lp-radius-lg);
    background: var(--lp-surface);
}

.lg-cta p {
    text-align: center;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--lp-ink);
}

@media (max-width: 991.98px) {
    .lg-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .lg-toc-inner {
        position: static;
        max-height: none;
    }
}

@media (max-width: 575.98px) {
    .lg-hero {
        padding-top: 116px;
    }

    .lg-section {
        padding-block: 40px 64px;
    }

    .lg-content h2 {
        font-size: 19px;
    }
}
