/* ═══════════════════════════════════════════
   دفترک — Single-page landing
   Direction: ink + emerald + warm brass
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

/* Shared theme tokens (landing + inner pages) */
body.page-landing,
body.page-inner {
    --ink: #0a1612;
    --ink-soft: #14241e;
    --panel: #f3f6f2;
    --paper: #fafbf8;
    --line: rgba(10, 22, 18, 0.1);
    --muted: #5a6b63;
    --text: #12201a;
    --emerald: #1f7a55;
    --emerald-deep: #145c3f;
    --brass: #b0893d;
    --brass-soft: #d4b36a;
    --header-height: 72px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --max: 1120px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--paper);
    color: var(--text);
    overflow-x: hidden;
}

body.page-landing .main-content {
    margin-top: 0;
}

body.page-inner .main-content {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - 280px);
}

/* Shared header — same as homepage on every page */
body.page-landing .header,
body.page-inner .header {
    background: rgba(250, 251, 248, 0.72);
    border-bottom-color: transparent;
    box-shadow: none;
}

body.page-landing .header.scrolled,
body.page-inner .header.scrolled {
    background: rgba(250, 251, 248, 0.94);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 30px rgba(10, 22, 18, 0.06);
}

body.page-landing .brand-text,
body.page-inner .brand-text {
    background: none;
    -webkit-text-fill-color: var(--ink);
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.02em;
}

body.page-landing .nav-link,
body.page-inner .nav-link {
    color: #1a6b4a !important;
    font-weight: 700 !important;
}

body.page-landing .nav-link i,
body.page-inner .nav-link i {
    color: #b0893d !important;
    opacity: 1;
}

body.page-landing .nav-link:hover,
body.page-landing .nav-link.active,
body.page-inner .nav-link:hover,
body.page-inner .nav-link.active {
    color: #0a1612 !important;
    background: rgba(31, 122, 85, 0.12);
}

body.page-landing .nav-link:hover i,
body.page-landing .nav-link.active i,
body.page-inner .nav-link:hover i,
body.page-inner .nav-link.active i {
    color: #1f7a55 !important;
}

body.page-landing .nav-actions,
body.page-inner .nav-actions {
    gap: 0.55rem;
}

body.page-landing .btn-nav-cta,
body.page-inner .btn-nav-cta {
    background: var(--ink);
    box-shadow: none;
}

body.page-landing .btn-nav-cta:hover,
body.page-inner .btn-nav-cta:hover {
    background: var(--emerald-deep);
    box-shadow: none;
}

body.page-landing .header.scrolled .lang-toggle,
body.page-landing .lang-toggle,
body.page-inner .header.scrolled .lang-toggle,
body.page-inner .lang-toggle {
    background: rgba(255, 255, 255, 0.9);
}

body.page-landing .back-to-top,
body.page-inner .back-to-top {
    background: var(--ink);
    display: none;
    align-items: center;
    justify-content: center;
}

body.page-landing .back-to-top.show,
body.page-landing .back-to-top[style*="block"],
body.page-inner .back-to-top.show,
body.page-inner .back-to-top[style*="block"] {
    display: flex !important;
}

body.page-landing .footer,
body.page-inner .footer {
    background: var(--ink);
}

body.page-landing .footer-links a:hover,
body.page-landing .footer-bottom-links a:hover,
body.page-landing .contact-item a:hover,
body.page-inner .footer-links a:hover,
body.page-inner .footer-bottom-links a:hover,
body.page-inner .contact-item a:hover {
    color: var(--brass-soft);
}

body.page-landing .footer-logo i,
body.page-landing .contact-item i,
body.page-inner .footer-logo i,
body.page-inner .contact-item i {
    color: var(--brass-soft);
}

/* ── Layout ── */
.lp-container {
    width: min(var(--max), calc(100% - 2.5rem));
    margin-inline: auto;
}

.lp-section {
    padding: clamp(4.5rem, 10vw, 7rem) 0;
    position: relative;
}

/* Home hub — links to separate pages */
.lp-hub {
    padding-top: clamp(2.5rem, 6vw, 4rem);
    background:
        radial-gradient(ellipse 45% 40% at 0% 0%, rgba(31, 122, 85, 0.07), transparent 55%),
        var(--bg, #f7f9f5);
}

.lp-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.lp-hub-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.25rem 1.2rem;
    border-radius: 16px;
    background: var(--panel, #fff);
    border: 1px solid var(--line, rgba(10, 22, 18, 0.1));
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lp-hub-card i {
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 0.35rem;
    background: rgba(31, 122, 85, 0.1);
    color: #1a6b4a;
    font-size: 1rem;
}

.lp-hub-card strong {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink, #0a1612);
}

.lp-hub-card span {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--muted, #5a6b62);
}

.lp-hub-card:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 122, 85, 0.3);
    box-shadow: 0 14px 32px rgba(7, 18, 14, 0.08);
}

.lp-section-head {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 3rem;
}

.lp-section-head h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--ink) !important;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.lp-section-head p {
    color: var(--muted) !important;
    font-size: 1.05rem;
    margin: 0;
}

/* ── Buttons ── */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease;
}

.lp-btn:hover {
    transform: translateY(-2px);
}

.lp-btn-primary {
    background: var(--brass);
    color: var(--ink) !important;
}

.lp-btn-primary:hover {
    background: var(--brass-soft);
    color: var(--ink) !important;
}

.lp-btn-ghost {
    background: transparent;
    color: #eef5ef !important;
    border: 1px solid rgba(238, 245, 239, 0.35);
}

.lp-btn-ghost:hover {
    background: rgba(238, 245, 239, 0.1);
    color: #fff !important;
}

.lp-btn-disabled {
    background: rgba(10, 22, 18, 0.08);
    color: var(--muted) !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Reveal motion ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.lp-hero-copy .reveal:nth-child(1) { transition-delay: 0.08s; }
.lp-hero-copy .reveal:nth-child(2) { transition-delay: 0.2s; }
.lp-hero-copy .reveal:nth-child(3) { transition-delay: 0.32s; }
.lp-hero-copy .reveal:nth-child(4) { transition-delay: 0.44s; }

.lp-feature-row:nth-child(1) { transition-delay: 0.04s; }
.lp-feature-row:nth-child(2) { transition-delay: 0.08s; }
.lp-feature-row:nth-child(3) { transition-delay: 0.12s; }
.lp-feature-row:nth-child(4) { transition-delay: 0.16s; }
.lp-feature-row:nth-child(5) { transition-delay: 0.2s; }
.lp-feature-row:nth-child(6) { transition-delay: 0.24s; }
.lp-feature-row:nth-child(7) { transition-delay: 0.28s; }
.lp-feature-row:nth-child(8) { transition-delay: 0.32s; }
.lp-feature-row:nth-child(9) { transition-delay: 0.36s; }
.lp-feature-row:nth-child(10) { transition-delay: 0.4s; }
.lp-feature-row:nth-child(11) { transition-delay: 0.44s; }
.lp-feature-row:nth-child(12) { transition-delay: 0.48s; }


/* ═══════════════════════════════════════════
   HERO — clean two-column composition
   ═══════════════════════════════════════════ */
.lp-hero {
    position: relative;
    min-height: min(100vh, 900px);
    min-height: min(100dvh, 900px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #eef5ef;
    isolation: isolate;
    padding: calc(var(--header-height) + 2.5rem) 0 4rem;
}

.lp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 55% at 85% 20%, rgba(176, 137, 61, 0.16), transparent 55%),
        radial-gradient(ellipse 60% 50% at 10% 90%, rgba(31, 122, 85, 0.28), transparent 50%),
        linear-gradient(165deg, #07120e 0%, #0e221a 55%, #123028 100%);
}

.lp-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.045;
    background-image:
        repeating-linear-gradient(
            -14deg,
            transparent,
            transparent 32px,
            rgba(238, 245, 239, 0.55) 32px,
            rgba(238, 245, 239, 0.55) 33px
        );
    pointer-events: none;
}

.lp-hero-grid {
    position: relative;
    z-index: 1;
    width: min(var(--max), calc(100% - 2.5rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.lp-hero-copy {
    max-width: 32rem;
}

.lp-brand {
    font-size: clamp(3rem, 7vw, 4.75rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #fff !important;
    margin: 0 0 1.1rem;
}

.lp-hero-title {
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 600;
    color: rgba(238, 245, 239, 0.94) !important;
    margin: 0 0 0.9rem;
    line-height: 1.5;
}

.lp-hero-lead {
    font-size: 1.02rem;
    color: rgba(238, 245, 239, 0.68) !important;
    line-height: 1.8;
    margin: 0 0 1.75rem;
    max-width: 28rem;
}

.lp-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.lp-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lp-phone {
    position: relative;
    width: min(260px, 72%);
    filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.45));
    animation: lp-float 7s ease-in-out infinite;
}

.lp-phone::before {
    content: '';
    position: absolute;
    inset: -18% -30% auto;
    height: 55%;
    background: radial-gradient(circle, rgba(31, 122, 85, 0.35), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.lp-phone-bezel {
    background: #0b1210;
    border-radius: 28px;
    padding: 10px;
    border: 1px solid rgba(238, 245, 239, 0.12);
}

.lp-phone-screen {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px;
    background: #111;
}

@keyframes lp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.lp-scroll-hint {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 26px;
    height: 40px;
    border: 1.5px solid rgba(238, 245, 239, 0.3);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.lp-scroll-hint span {
    width: 4px;
    height: 8px;
    border-radius: 4px;
    background: var(--brass-soft);
    animation: lp-scroll 1.6s ease-in-out infinite;
}

@keyframes lp-scroll {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

html[dir="ltr"] .lp-hero-copy {
    text-align: left;
}

html[dir="ltr"] .lp-hero-grid {
    direction: ltr;
}

/* ── Features ── */
.lp-features {
    background: var(--paper);
}

.lp-feature-rows {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}

.lp-feature-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    padding: 1.75rem 1.25rem;
    border-bottom: 1px solid var(--line);
    align-items: start;
}

.lp-feature-row:nth-child(odd) {
    border-inline-end: 1px solid var(--line);
}

.lp-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--ink-soft), var(--emerald-deep));
    color: #eef5ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.lp-feature-row h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink) !important;
    margin: 0 0 0.4rem;
}

.lp-feature-row p {
    margin: 0;
    color: var(--muted) !important;
    line-height: 1.75;
    font-size: 0.95rem;
}

/* ── Gallery overrides on landing ── */
.lp-gallery {
    background:
        linear-gradient(180deg, var(--panel) 0%, #e8efe9 100%);
}

.page-landing .screenshots-slider {
    margin-top: 0;
}

.page-landing .slider-slide {
    border-radius: 18px;
    border: none;
    box-shadow: 0 16px 40px rgba(10, 22, 18, 0.12);
}

.page-landing .slider-arrow {
    background: #fff;
    color: var(--emerald);
    border-color: var(--line);
    box-shadow: 0 8px 24px rgba(10, 22, 18, 0.08);
}

.page-landing .slider-arrow:hover:not(:disabled) {
    background: var(--ink);
    color: #fff;
}

.page-landing .slider-dot.active {
    background: var(--emerald);
}

.page-landing .slider-dot {
    background: rgba(31, 122, 85, 0.25);
}

/* ── About + stats ── */
.lp-about {
    background: var(--ink);
    color: #eef5ef;
}

.lp-about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.lp-about-copy h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 800;
    color: #fff !important;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.lp-about-copy p {
    color: rgba(238, 245, 239, 0.7) !important;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.lp-stats {
    display: grid;
    gap: 1rem;
}

.lp-stat {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(238, 245, 239, 0.12);
}

.lp-stat:first-child {
    border-top: 1px solid rgba(238, 245, 239, 0.12);
}

.lp-stat-num {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--brass-soft);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.lp-stat-label {
    color: rgba(238, 245, 239, 0.55);
    font-size: 0.9rem;
}

/* ── Download ── */
.lp-download {
    background: var(--paper);
}

.lp-download-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
    align-items: center;
}

.lp-download-copy h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 800;
    color: var(--ink) !important;
    margin-bottom: 0.75rem;
}

.lp-download-copy > p {
    color: var(--muted) !important;
    margin-bottom: 1.5rem;
    max-width: 32rem;
}

.lp-download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.lp-download .lp-btn-primary {
    color: var(--ink) !important;
}

.lp-download .lp-btn-disabled {
    border-radius: 999px;
    padding: 0.9rem 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
}

.lp-req-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.lp-req-list li {
    position: relative;
    padding-right: 1.1rem;
    margin-bottom: 0.35rem;
    color: var(--muted) !important;
}

.lp-req-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald);
}

.lp-qr {
    text-align: center;
    justify-self: center;
}

.lp-qr img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    background: #fff;
    padding: 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(10, 22, 18, 0.08);
}

.lp-qr p {
    margin: 1rem 0 0;
    color: var(--muted) !important;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ── Contact ── */
.lp-contact {
    background: var(--panel);
}

.lp-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.lp-contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem 1.35rem;
    background: var(--paper);
    text-decoration: none;
    color: inherit;
    transition: background 0.25s ease;
}

.lp-contact-item:hover {
    background: #fff;
}

.lp-contact-item i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(31, 122, 85, 0.1);
    color: var(--emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lp-contact-item strong {
    display: block;
    color: var(--ink);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.lp-contact-item span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.lp-contact-static {
    cursor: default;
}

.lp-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.lp-social a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ink);
    color: #eef5ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s var(--ease), background 0.25s ease;
}

.lp-social a:hover {
    transform: translateY(-3px);
    background: var(--emerald);
    color: #fff;
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
/* ── Settings / personalization ── */
.lp-settings {
    background: var(--panel);
}

.lp-settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2rem;
}

.lp-settings-col h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink) !important;
    margin: 0 0 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid rgba(31, 122, 85, 0.25);
}

.lp-settings-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lp-settings-col li {
    position: relative;
    padding-inline-start: 1rem;
    margin-bottom: 0.55rem;
    color: var(--muted) !important;
    font-size: 0.92rem;
    line-height: 1.65;
}

.lp-settings-col li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--emerald);
}

/* ── Language switcher ── */
.lang-switcher {
    position: relative;
    z-index: 1100;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--line, rgba(10, 22, 18, 0.12));
    background: rgba(255, 255, 255, 0.75);
    color: var(--ink, #0a1612);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lang-toggle:hover {
    background: #fff;
    border-color: rgba(31, 122, 85, 0.35);
}

.lang-caret {
    font-size: 0.65rem;
    opacity: 0.65;
    transition: transform 0.2s ease;
}

.lang-switcher.open .lang-caret {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 148px;
    background: #fff;
    border: 1px solid var(--line, rgba(10, 22, 18, 0.12));
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(10, 22, 18, 0.12);
    padding: 0.4rem;
    display: none;
    flex-direction: column;
    gap: 0.15rem;
}

.lang-switcher.open .lang-menu {
    display: flex;
}

.lang-menu button {
    appearance: none;
    border: none;
    background: transparent;
    text-align: start;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink, #0a1612);
    cursor: pointer;
}

.lang-menu button:hover,
.lang-menu button.active {
    background: rgba(31, 122, 85, 0.1);
    color: var(--emerald, #1f7a55);
}

body.page-landing .lang-toggle {
    border-color: rgba(10, 22, 18, 0.12);
}

@media (max-width: 992px) {
    .lp-hero {
        padding-top: calc(var(--header-height) + 1.5rem);
        padding-bottom: 3.5rem;
        min-height: auto;
    }

    .lp-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .lp-hero-copy {
        max-width: 100%;
        margin: 0 auto;
        order: 1;
    }

    html[dir="ltr"] .lp-hero-copy,
    .lp-hero-copy {
        text-align: center;
    }

    .lp-hero-lead {
        margin-inline: auto;
    }

    .lp-hero-cta {
        justify-content: center;
    }

    .lp-hero-visual {
        order: 2;
    }

    .lp-phone {
        width: min(220px, 58%);
    }

    .lp-feature-rows {
        grid-template-columns: 1fr;
    }

    .lp-feature-row:nth-child(odd) {
        border-inline-end: none;
    }

    .lp-settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-about-grid,
    .lp-download-layout {
        grid-template-columns: 1fr;
    }

    .lp-about-copy {
        text-align: center;
    }

    .lp-download-copy {
        text-align: center;
    }

    .lp-download-actions {
        justify-content: center;
    }

    .lp-req-list {
        display: inline-block;
        text-align: start;
    }

    .btn-nav-cta span {
        display: none;
    }
}

@media (max-width: 640px) {
    .lp-contact-grid {
        grid-template-columns: 1fr;
    }

    .lp-settings-grid {
        grid-template-columns: 1fr;
    }

    .lp-brand {
        font-size: 2.75rem;
    }

    .lang-toggle #lang-current-label {
        display: none;
    }

    .lp-feature-row:nth-child(odd) {
        border-inline-end: none;
    }
}

/* LTR/RTL handled via logical border-inline-end on feature rows */

/* ── Scrollable header nav ── */
body.page-landing .nav-container,
body.page-inner .nav-container {
    gap: 0.75rem;
    max-width: 1400px;
}

body.page-landing .nav-logo,
body.page-inner .nav-logo {
    flex-shrink: 0;
    max-width: min(36vw, 380px);
}

body.page-landing .nav-actions,
body.page-inner .nav-actions {
    flex-shrink: 0;
}

body.page-landing .header,
body.page-inner .header {
    height: auto;
    min-height: var(--header-height);
}

body.page-landing .nav,
body.page-inner .nav {
    min-height: var(--header-height);
    padding: 0.35rem 0;
}

.nav-scroll {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.nav-scroll-viewport {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

.nav-scroll-viewport::-webkit-scrollbar {
    display: none;
}

body.page-landing .nav-menu,
body.page-inner .nav-menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.35rem;
    width: max-content;
    padding: 0.15rem 0.25rem;
    margin: 0;
    list-style: none;
}

body.page-landing .nav-link,
body.page-inner .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.88rem;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.page-landing .nav-link:hover,
body.page-inner .nav-link:hover {
    transform: translateY(-1px);
    border-color: rgba(31, 122, 85, 0.2);
}

body.page-landing .nav-link.active,
body.page-inner .nav-link.active {
    border-color: rgba(31, 122, 85, 0.28);
    box-shadow: 0 4px 14px rgba(31, 122, 85, 0.12);
}

body.page-landing .nav-link i,
body.page-inner .nav-link i {
    font-size: 0.85rem;
}

.nav-scroll-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(31, 122, 85, 0.22);
    background: #fff;
    color: #1f7a55;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(10, 22, 18, 0.08);
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-scroll-btn:hover:not(:disabled) {
    background: #1f7a55;
    color: #fff;
    transform: scale(1.05);
}

.nav-scroll-btn:disabled {
    opacity: 0.28;
    cursor: default;
    box-shadow: none;
}

html[dir="ltr"] .nav-scroll-prev i,
html[dir="ltr"] .nav-scroll-next i {
    transform: scaleX(-1);
}

@media (max-width: 992px) {
    .nav-scroll {
        display: contents;
    }

    .nav-scroll-btn {
        display: none !important;
    }

    .nav-scroll-viewport {
        overflow: visible;
        mask-image: none;
        -webkit-mask-image: none;
        flex: unset;
    }

    body.page-landing .nav-menu,
    body.page-inner .nav-menu {
        width: auto;
        flex-wrap: nowrap;
        flex-direction: column;
    }

    body.page-landing .nav-link,
    body.page-inner .nav-link {
        width: 100%;
        border-radius: 0;
        justify-content: flex-start;
    }
}


.header-ads {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 260px;
    height: 44px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(31, 122, 85, 0.08);
    border: 1px solid rgba(31, 122, 85, 0.14);
}

.header-ad-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 0.65rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

.header-ad-slide.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.header-ad-thumb {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.header-ad-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--ink, #0a1612);
    color: #eef5ef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.header-ad-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-ad-text strong {
    font-size: 0.78rem;
    color: var(--ink, #0a1612);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-ad-text span {
    font-size: 0.68rem;
    color: var(--muted, #5a6b63);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-ad-link {
    position: absolute;
    inset: 0;
}

.header-ads-dots {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 2;
}

.header-ads-dots button {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(10, 22, 18, 0.2);
    cursor: pointer;
}

.header-ads-dots button.active {
    background: var(--emerald, #1f7a55);
    width: 12px;
    border-radius: 4px;
}

/* ── Reports ── */
.lp-reports {
    background: var(--paper);
}

.lp-reports-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.lp-report-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.1rem 1rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lp-report-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(10, 22, 18, 0.08);
}

.lp-report-card i {
    color: var(--emerald);
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
}

.lp-report-card strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink) !important;
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
}

.lp-report-card span {
    font-size: 0.8rem;
    color: var(--muted) !important;
}

.lp-reports-chart {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.25rem 1.35rem 1rem;
}

.lp-reports-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.lp-reports-chart-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink) !important;
}

.lp-btn-sm {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
}

.lp-reports-chart-note {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: var(--muted) !important;
    text-align: center;
}

.lp-reports-chart-note.is-hidden {
    display: none;
}

/* ── Support form ── */
.lp-support {
    background: var(--panel);
}

.lp-support-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
    align-items: start;
}

.lp-support-copy h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 800;
    color: var(--ink) !important;
    margin-bottom: 0.75rem;
}

.lp-support-copy > p {
    color: var(--muted) !important;
    margin-bottom: 1.25rem;
}

.lp-support-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.5rem;
}

.lp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.lp-form-row {
    margin-bottom: 0.9rem;
}

.lp-form-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink) !important;
    margin-bottom: 0.35rem;
}

.lp-form-row input,
.lp-form-row textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--paper);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-form-row input:focus,
.lp-form-row textarea:focus {
    outline: none;
    border-color: rgba(31, 122, 85, 0.45);
    box-shadow: 0 0 0 3px rgba(31, 122, 85, 0.12);
}

.lp-support-form .lp-btn {
    width: 100%;
    margin-top: 0.25rem;
}

.lp-support-status {
    margin: 0.85rem 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.lp-support-status.is-ok {
    color: var(--emerald);
}

.lp-support-status.is-err {
    color: #b42318;
}

@media (max-width: 1100px) {
    .lp-reports-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .header-ads {
        display: none;
    }
}

@media (max-width: 992px) {
    .lp-support-layout {
        grid-template-columns: 1fr;
    }

    .lp-support-copy {
        text-align: center;
    }

    .lp-support-copy .lp-req-list {
        display: inline-block;
        text-align: start;
    }
}

@media (max-width: 640px) {
    .lp-reports-grid,
    .lp-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}
