/* Shared public app pages: landing, download, subscription plans */

:root {
    --bg-deep: #022c22;
    --bg-mid: #064e3b;
    --accent: #14b8a6;
    --accent-light: #5eead4;
    --gold: #fbbf24;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --text-muted: #a7f3d0;
    --card-bg: #ffffff;
    --card-text: #0f172a;
    --card-muted: #64748b;
    --radius: 1.25rem;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    --max: 72rem;
    --touch: 44px;
    --dl-bg: #f0fdfa;
    --dl-bg2: #ecfeff;
    --dl-brand: #0f766e;
    --dl-brand2: #14b8a6;
    --dl-border: #e2e8f0;
    --dl-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-tap-highlight-color: rgba(20, 184, 166, 0.2);
    line-height: 1.65;
}

body.page-landing {
    font-family: 'Cairo', 'Tajawal', system-ui, sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

[dir="rtl"].page-landing {
    font-family: 'Tajawal', 'Cairo', system-ui, sans-serif;
}

body.page-download {
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100dvh;
    background: linear-gradient(180deg, var(--dl-bg) 0%, var(--dl-bg2) 45%, #f8fafc 100%);
    color: var(--card-text);
    padding:
        max(0.75rem, env(safe-area-inset-top))
        max(1rem, env(safe-area-inset-right))
        calc(5.5rem + env(safe-area-inset-bottom, 0px))
        max(1rem, env(safe-area-inset-left));
}

[dir="rtl"].page-download {
    font-family: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif;
}

body.page-plans {
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100dvh;
    background: linear-gradient(180deg, var(--dl-bg) 0%, var(--dl-bg2) 45%, #f8fafc 100%);
    background-attachment: fixed;
    color: var(--card-text);
    line-height: 1.5;
    overflow-x: hidden;
    padding:
        max(0.5rem, env(safe-area-inset-top))
        max(1rem, env(safe-area-inset-right))
        calc(5rem + env(safe-area-inset-bottom, 0px))
        max(1rem, env(safe-area-inset-left));
}

[dir="rtl"].page-plans {
    font-family: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif;
}

.page-plans .wrap {
    max-width: 70rem;
}

.bg-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(20, 184, 166, 0.35), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(251, 191, 36, 0.12), transparent),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(94, 234, 212, 0.15), transparent);
    z-index: 0;
}

.wrap {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right));
}

.page-download .wrap {
    max-width: 32rem;
}

/* —— Landing header —— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(2, 44, 34, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: env(safe-area-inset-top, 0px);
}

.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.75rem max(1rem, env(safe-area-inset-right)) 0.75rem max(1rem, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    font-size: clamp(0.92rem, 3.5vw, 1.05rem);
    text-decoration: none;
    color: var(--text);
    min-width: 0;
}

.brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-icon {
    width: 2.35rem;
    height: 2.35rem;
    flex-shrink: 0;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--bg-deep);
}

.nav {
    display: none;
    gap: 0.25rem;
}

.nav a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.45rem 0.75rem;
    border-radius: 0.5rem;
    transition: color 0.2s, background 0.2s;
}

.nav a:hover {
    color: var(--text);
    background: var(--surface-soft);
}

.mobile-nav {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 max(1rem, env(safe-area-inset-right)) 0.65rem max(1rem, env(safe-area-inset-left));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav::-webkit-scrollbar {
    display: none;
}

.mobile-nav a {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    min-height: var(--touch);
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s, color 0.2s;
}

.mobile-nav a:active,
.mobile-nav a:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.14);
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.pill {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 0.8rem;
    min-height: var(--touch);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    background: var(--surface-soft);
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.pill:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-light);
}

.pill--cta {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: var(--bg-deep);
    border-color: transparent;
    font-weight: 700;
}

.pill--cta:hover {
    opacity: 0.92;
    color: var(--bg-deep);
}

/* —— Landing hero —— */
.hero {
    padding: 1.75rem 0 2.5rem;
    display: grid;
    gap: 2rem;
    align-items: center;
}

.hero-copy {
    text-align: center;
}

.hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.2);
    color: var(--gold);
    border: 1px solid rgba(251, 191, 36, 0.35);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(1.65rem, 6vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #fff 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: clamp(0.98rem, 2.5vw, 1.08rem);
    color: var(--text-muted);
    max-width: 32rem;
    margin: 0 auto 1.25rem;
}

.platform-tabs {
    display: flex;
    width: 100%;
    max-width: 20rem;
    margin: 0 auto 1.25rem;
    gap: 0.35rem;
    padding: 0.3rem;
    background: var(--surface-soft);
    border-radius: 999px;
}

.platform-tabs a {
    flex: 1;
    text-align: center;
    padding: 0.55rem 1rem;
    min-height: var(--touch);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s;
}

.platform-tabs a.active {
    background: var(--surface);
    color: var(--bg-deep);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    max-width: 20rem;
    padding: 1rem 1.5rem;
    min-height: var(--touch);
    font-size: 1.05rem;
    font-weight: 800;
    font-family: inherit;
    color: var(--bg-deep);
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    border: none;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.45);
    transition: transform 0.15s, box-shadow 0.2s;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(20, 184, 166, 0.55);
    color: var(--bg-deep);
}

.hero-cta:active {
    transform: scale(0.98);
}

.hero-cta.disabled {
    opacity: 0.55;
    pointer-events: none;
    box-shadow: none;
}

.version-chip {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.phone {
    width: min(100%, 16rem);
    aspect-ratio: 9 / 18;
    border-radius: 2rem;
    background: linear-gradient(160deg, #0f172a 0%, #134e4a 100%);
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
}

.phone-notch {
    width: 5rem;
    height: 0.45rem;
    background: #0f172a;
    border-radius: 999px;
    margin: 0 auto 0.65rem;
}

.phone-screen {
    height: calc(100% - 1.1rem);
    border-radius: 1.4rem;
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 40%, #ecfdf5 100%);
    padding: 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    overflow: hidden;
}

.mock-bar {
    height: 0.55rem;
    border-radius: 999px;
    background: #ccfbf1;
}

.mock-bar--short {
    width: 55%;
}

.mock-chart {
    flex: 1;
    min-height: 5rem;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #ecfdf5, #fff);
    border: 1px solid #99f6e4;
    position: relative;
    overflow: hidden;
}

.mock-chart::before {
    content: '';
    position: absolute;
    inset: 20% 10% 25%;
    background: linear-gradient(
        135deg,
        transparent 40%,
        #14b8a6 40%,
        #14b8a6 42%,
        transparent 42%,
        transparent 58%,
        #ef4444 58%,
        #ef4444 60%,
        transparent 60%
    );
    opacity: 0.7;
}

.mock-row {
    display: flex;
    gap: 0.4rem;
}

.mock-pill {
    flex: 1;
    height: 1.6rem;
    border-radius: 0.5rem;
    background: #ccfbf1;
}

.mock-pill--gold {
    background: linear-gradient(135deg, #fde68a, #fbbf24);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.stat {
    text-align: center;
    padding: 1rem 0.5rem;
    border-radius: 1rem;
    background: var(--surface-soft);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-weight: 600;
}

/* Light sections */
.section-light {
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 20%, #f8fafc 100%);
    color: var(--card-text);
    border-radius: var(--radius);
    padding: 1.75rem 1.1rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}

.section-head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-head h2 {
    font-size: clamp(1.25rem, 4vw, 1.65rem);
    font-weight: 800;
    color: var(--bg-mid);
    margin-bottom: 0.35rem;
}

.section-head p {
    color: var(--card-muted);
    font-size: 0.95rem;
    max-width: 36rem;
    margin: 0 auto;
}

.steps {
    display: grid;
    gap: 1rem;
}

.step {
    background: #fff;
    border: 1px solid var(--dl-border);
    border-radius: 1rem;
    padding: 1.25rem;
}

.step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: var(--bg-deep);
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.step-icon {
    font-size: 1.5rem;
    color: var(--bg-mid);
    margin-bottom: 0.5rem;
}

.step h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.step p {
    font-size: 0.88rem;
    color: var(--card-muted);
    line-height: 1.55;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
    gap: 0.85rem;
}

.feature {
    background: #fff;
    border: 1px solid var(--dl-border);
    border-radius: 1rem;
    padding: 1.1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feature:active {
    border-color: var(--accent);
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #ccfbf1, #99f6e4);
    color: var(--bg-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
}

.feature h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.feature p {
    font-size: 0.84rem;
    color: var(--card-muted);
    line-height: 1.5;
}

.plans {
    display: grid;
    gap: 1rem;
}

.plan {
    background: #fff;
    border: 1px solid var(--dl-border);
    border-radius: 1rem;
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
}

.plan--pro {
    border-color: var(--accent);
    box-shadow: 0 8px 28px rgba(20, 184, 166, 0.15);
}

.plan-name {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--card-muted);
}

.plan-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--bg-mid);
    margin: 0.25rem 0 0.5rem;
}

.plan-desc {
    font-size: 0.88rem;
    color: var(--card-muted);
    margin-bottom: 1rem;
    flex: 1;
}

.plan-list {
    list-style: none;
}

.plan-list li {
    font-size: 0.84rem;
    color: var(--card-text);
    padding: 0.3rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.plan-list li i {
    color: var(--accent);
    font-size: 0.9rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.plans-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    max-width: 18rem;
    padding: 0.85rem 1.5rem;
    min-height: var(--touch);
    font-weight: 700;
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--bg-mid);
    background: transparent;
    border: 2px solid var(--bg-mid);
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
    background: var(--bg-mid);
    color: #fff;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 42rem;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--dl-border);
    border-radius: 0.85rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.15rem;
    min-height: var(--touch);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--accent);
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 1.15rem 1rem;
    font-size: 0.9rem;
    color: var(--card-muted);
    line-height: 1.6;
}

.notes-box {
    margin-top: 1.5rem;
    padding: 1.15rem;
    background: #f0fdfa;
    border-radius: 0.85rem;
    border: 1px solid #99f6e4;
}

.notes-box strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--bg-mid);
}

.notes-box p {
    font-size: 0.9rem;
    color: var(--card-muted);
    white-space: pre-wrap;
}

.cta-band {
    text-align: center;
    padding: 2rem 1.1rem;
    margin: 1.25rem 0 1.75rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.25), rgba(251, 191, 36, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-band h2 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.cta-band p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 0.98rem;
}

.cta-band .hero-cta {
    margin: 0 auto;
}

.site-footer {
    text-align: center;
    padding: 1.25rem 0 2rem;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.site-footer a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}

/* Sticky download bars */
.sticky-bar,
.sticky-dl {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.65rem max(1rem, env(safe-area-inset-right)) max(0.65rem, env(safe-area-inset-bottom))
        max(1rem, env(safe-area-inset-left));
    backdrop-filter: blur(12px);
}

.sticky-bar {
    background: rgba(2, 44, 34, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sticky-dl {
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--dl-border);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.sticky-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.sticky-dl .sticky-inner {
    max-width: 32rem;
}

.sticky-inner span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.sticky-dl .sticky-inner span {
    color: var(--card-muted);
}

.sticky-btn,
.sticky-dl-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    min-height: var(--touch);
    font-weight: 800;
    font-size: 0.9rem;
    font-family: inherit;
    border-radius: 999px;
    text-decoration: none;
}

.sticky-btn {
    color: var(--bg-deep);
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.4);
}

.sticky-dl-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--dl-brand), var(--dl-brand2));
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.35);
}

.sticky-btn.disabled,
.sticky-dl-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* —— Download page —— */
.dl-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.dl-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--dl-brand);
    text-decoration: none;
    min-height: var(--touch);
    padding: 0.25rem 0;
}

.dl-back:hover {
    color: var(--dl-brand2);
}

.dl-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.dl-pill {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dl-brand);
    text-decoration: none;
    padding: 0.45rem 0.75rem;
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--dl-border);
    border-radius: 999px;
    background: var(--surface);
    white-space: nowrap;
}

.dl-pill:hover {
    border-color: var(--dl-brand2);
    background: var(--dl-bg);
}

.page-download .platform-tabs {
    max-width: none;
    margin-bottom: 1.25rem;
    background: rgba(15, 118, 110, 0.08);
}

.page-download .platform-tabs a {
    color: var(--card-muted);
}

.page-download .platform-tabs a.active {
    background: var(--dl-brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.dl-hero {
    text-align: center;
    margin-bottom: 1.25rem;
}

.dl-app-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, var(--dl-brand), var(--dl-brand2));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--dl-shadow);
    margin-bottom: 1rem;
}

.dl-hero h1 {
    font-size: clamp(1.35rem, 5vw, 1.5rem);
    font-weight: 800;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
    background: none;
    -webkit-text-fill-color: inherit;
    color: var(--card-text);
}

.dl-subtitle {
    color: var(--card-muted);
    font-size: 0.9375rem;
}

.dl-card {
    background: var(--surface);
    border: 1px solid var(--dl-border);
    border-radius: var(--radius);
    box-shadow: var(--dl-shadow);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.dl-meta {
    display: grid;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.dl-meta div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--dl-border);
}

.dl-meta div:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.dl-meta dt {
    color: var(--card-muted);
    font-weight: 500;
    margin: 0;
}

.dl-meta dd {
    margin: 0;
    font-weight: 700;
    text-align: end;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.25rem;
    min-height: var(--touch);
    border: none;
    border-radius: 999px;
    font-size: 1.0625rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--dl-brand), var(--dl-brand2));
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.35);
    margin-top: 0.75rem;
}

.btn-download:active {
    transform: scale(0.98);
}

.dl-hint {
    font-size: 0.8125rem;
    color: var(--card-muted);
    line-height: 1.55;
    margin: 0.85rem 0 0;
    text-align: center;
}

.dl-sha {
    font-size: 0.6875rem;
    color: var(--card-muted);
    word-break: break-all;
    margin-top: 0.85rem;
    padding: 0.75rem;
    background: var(--dl-bg);
    border-radius: 0.65rem;
    border: 1px solid var(--dl-border);
}

.dl-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--card-muted);
}

.dl-empty i {
    font-size: 2.5rem;
    opacity: 0.5;
    display: block;
    margin-bottom: 0.75rem;
}

.dl-notes-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--card-muted);
    margin-bottom: 0.5rem;
}

.dl-notes {
    white-space: pre-wrap;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--card-text);
}

.dl-alert {
    margin-top: 0.75rem;
    padding: 1rem;
    border-radius: 0.85rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.9rem;
    line-height: 1.5;
}

.dl-alert strong {
    display: block;
    margin-bottom: 0.35rem;
}

.install-steps {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.install-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: var(--card-muted);
    line-height: 1.45;
}

.install-steps li span {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: var(--dl-bg);
    color: var(--dl-brand);
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dl-border);
}

/* Desktop */
@media (min-width: 640px) {
    .stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.85rem;
    }

    .section-light {
        padding: 2.25rem 1.35rem;
    }

    .hero-cta,
    .platform-tabs {
        width: auto;
        max-width: none;
    }

    .hero-cta {
        width: auto;
    }

    .btn-outline {
        width: auto;
    }
}

@media (min-width: 768px) {
    body.page-landing {
        padding-bottom: 0;
    }

    .sticky-bar,
    .sticky-dl {
        display: none;
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .plans {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .mobile-nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr 1fr;
        padding: 4rem 0 4.5rem;
        gap: 3rem;
    }

    .hero-copy {
        text-align: start;
    }

    .hero-lead {
        margin: 0 0 1.5rem;
    }

    .platform-tabs {
        margin: 0 0 1.25rem;
    }

    .nav {
        display: flex;
    }

    .feature:hover {
        border-color: var(--accent);
        box-shadow: 0 8px 24px rgba(15, 118, 110, 0.12);
        transform: translateY(-2px);
    }
}

@media (max-width: 479.98px) {
    .header-actions .pill--cta {
        display: none;
    }
}

/* —— Subscription plans page —— */
.plans-site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    margin: 0 calc(-1 * max(1rem, env(safe-area-inset-left))) 1rem;
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(240, 253, 250, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--dl-border);
}

.plans-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem max(1rem, env(safe-area-inset-right)) 0.65rem max(1rem, env(safe-area-inset-left));
    flex-wrap: wrap;
}

.plans-topbar .brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    font-size: clamp(0.92rem, 3.5vw, 1.05rem);
    color: var(--card-text);
    text-decoration: none;
    min-width: 0;
}

.plans-topbar .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plans-topbar .brand-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--dl-brand), var(--dl-brand2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.plans-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.plans-app-link {
    display: none;
}

@media (min-width: 576px) {
    .plans-app-link {
        display: inline-flex;
        align-items: center;
    }
}

.plans-nav-scroll {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 max(1rem, env(safe-area-inset-right)) 0.65rem max(1rem, env(safe-area-inset-left));
}

.plans-nav-scroll::-webkit-scrollbar {
    display: none;
}

.plans-nav-scroll a {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--card-muted);
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    min-height: var(--touch);
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--dl-border);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.plans-nav-scroll a:active,
.plans-nav-scroll a:focus-visible {
    color: var(--dl-brand);
    border-color: var(--dl-brand2);
    outline: 2px solid var(--dl-brand2);
    outline-offset: 2px;
}

.lang-switch {
    display: flex;
    gap: 0.35rem;
}

.lang-switch a {
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    min-height: 2.5rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--card-muted);
    border: 1px solid var(--dl-border);
    background: var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-switch a.active {
    color: #fff;
    background: var(--dl-brand);
    border-color: var(--dl-brand);
}

.plans-hero {
    text-align: center;
    padding: 0.25rem 0 1.5rem;
}

.plans-hero h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.45rem, 5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--card-text);
}

.plans-hero p {
    margin: 0 auto;
    max-width: 40rem;
    color: var(--card-muted);
    font-size: clamp(0.95rem, 2.5vw, 1.02rem);
}

.plans-alert {
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.plans-alert--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.plans-alert--danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
    gap: 1rem;
    align-items: stretch;
}

.plan-card {
    background: var(--surface);
    border: 1px solid var(--dl-border);
    border-radius: var(--radius);
    box-shadow: var(--dl-shadow);
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    scroll-margin-top: 6rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.plan-card--badged {
    padding-top: 2.35rem;
}

.plan-card--pro {
    border-color: #bfdbfe;
}

.plan-card--max {
    border-color: #fde68a;
}

.plan-card--highlight {
    outline: 3px solid var(--dl-brand2);
    outline-offset: 2px;
    box-shadow: 0 12px 36px rgba(20, 184, 166, 0.18);
}

.plan-card--current {
    box-shadow: 0 0 0 2px var(--dl-brand), var(--dl-shadow);
}

.plan-card .plan-badge {
    position: absolute;
    top: 0.85rem;
    inset-inline-end: 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plan-badge--popular {
    background: #dbeafe;
    color: #1d4ed8;
}

.plan-badge--best {
    background: #fef3c7;
    color: #b45309;
}

.plan-badge--current {
    background: #ccfbf1;
    color: var(--dl-brand);
}

.plan-card .plan-name {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
}

.plan-card .plan-price {
    font-size: clamp(1.4rem, 4vw, 1.75rem);
    font-weight: 800;
    margin: 0 0 1rem;
    color: var(--dl-brand);
}

.plan-card--pro .plan-price {
    color: #2563eb;
}

.plan-card--max .plan-price {
    color: #d97706;
}

.limits-box {
    background: #f8fafc;
    border: 1px solid var(--dl-border);
    border-radius: 0.75rem;
    padding: 0.85rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

.limits-box > .features-title {
    margin-bottom: 0.5rem;
}

.limits-box div {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.2rem 0;
}

.limits-box span:last-child {
    font-weight: 700;
    text-align: end;
}

.plan-card .features-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--card-muted);
    margin: 0 0 0.5rem;
}

.plan-card .features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex: 1;
}

.plan-card .features-list li {
    position: relative;
    padding: 0.35rem 0;
    padding-inline-start: 1.35rem;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.45;
}

.plan-card .features-list li::before {
    content: '\F26E';
    font-family: 'bootstrap-icons';
    position: absolute;
    inset-inline-start: 0;
    color: var(--dl-brand2);
    font-size: 0.95rem;
}

.plans-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.85rem 1rem;
    min-height: var(--touch);
    border-radius: 999px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 0.15s, box-shadow 0.2s;
}

.plans-btn:active {
    transform: scale(0.98);
}

.plans-btn--primary {
    background: linear-gradient(135deg, var(--dl-brand), var(--dl-brand2));
    color: #fff;
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.3);
}

.plans-btn--outline {
    background: #fff;
    color: var(--dl-brand);
    border: 1px solid #99f6e4;
}

.plans-btn--secondary {
    background: #f1f5f9;
    color: var(--card-text);
    border: 1px solid var(--dl-border);
    cursor: default;
}

.plans-section {
    margin-top: 2rem;
    scroll-margin-top: 5.5rem;
}

.plans-section > h2 {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    font-weight: 800;
    margin: 0 0 1rem;
    color: var(--card-text);
}

.compare-scroll-hint {
    display: none;
    font-size: 0.8rem;
    color: var(--card-muted);
    margin: 0 0 0.5rem;
    text-align: center;
}

.compare-scroll-hint i {
    vertical-align: -2px;
}

.compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    margin: 0 -0.25rem;
    padding: 0.25rem;
    border-radius: var(--radius);
}

.compare-table {
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--dl-shadow);
    font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--dl-border);
    text-align: center;
    white-space: nowrap;
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: start;
    font-weight: 600;
    position: sticky;
    inset-inline-start: 0;
    z-index: 2;
    background: var(--surface);
    box-shadow: 4px 0 8px -4px rgba(15, 23, 42, 0.08);
    white-space: normal;
    min-width: 7.5rem;
    max-width: 9rem;
}

[dir="rtl"] .compare-table th:first-child,
[dir="rtl"] .compare-table td:first-child {
    box-shadow: -4px 0 8px -4px rgba(15, 23, 42, 0.08);
}

.compare-table thead th:first-child {
    background: #f8fafc;
    z-index: 3;
}

.compare-table thead th {
    background: #f8fafc;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--card-muted);
}

.compare-cards {
    display: none;
    gap: 0.85rem;
}

.compare-card {
    background: var(--surface);
    border: 1px solid var(--dl-border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--dl-shadow);
}

.compare-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.compare-card-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
    font-size: 0.88rem;
    border-bottom: 1px solid #f1f5f9;
}

.compare-card-row:last-child {
    border-bottom: none;
}

.compare-card-row span:last-child {
    font-weight: 700;
    text-align: end;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--dl-border);
    border-radius: var(--radius);
    box-shadow: var(--dl-shadow);
    padding: 1.35rem;
}

.contact-card > p {
    color: var(--card-muted);
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.plans-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #334155;
}

.plans-form input,
.plans-form select,
.plans-form textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 0.65rem;
    border: 1px solid var(--dl-border);
    font: inherit;
    background: #fff;
    font-size: 16px;
    min-height: 3rem;
    -webkit-appearance: none;
    appearance: none;
    color: var(--card-text);
}

.plans-form input:focus,
.plans-form select:focus,
.plans-form textarea:focus {
    outline: none;
    border-color: var(--dl-brand2);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.plans-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-inline-end: 2.25rem;
}

[dir="rtl"] .plans-form select {
    background-position: left 0.85rem center;
}

.plans-form textarea {
    min-height: 7rem;
    resize: vertical;
}

.plans-form .hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.contact-actions .plans-btn {
    flex: 1 1 11rem;
}

.plans-footer-note {
    text-align: center;
    color: var(--card-muted);
    font-size: 0.85rem;
    margin-top: 2rem;
    line-height: 1.6;
    word-break: break-word;
    padding-bottom: 0.5rem;
}

.plans-footer-note a {
    color: var(--dl-brand);
    font-weight: 600;
    text-decoration: none;
}

.plans-footer-note a:hover {
    text-decoration: underline;
}

.plans-disabled-box {
    max-width: 32rem;
    margin: 3rem auto;
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--dl-shadow);
    border: 1px solid var(--dl-border);
}

.plans-disabled-box h1 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.sticky-plans {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.65rem max(1rem, env(safe-area-inset-right)) max(0.65rem, env(safe-area-inset-bottom))
        max(1rem, env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--dl-border);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.sticky-plans .sticky-inner {
    max-width: 70rem;
}

.sticky-plans .sticky-inner span {
    color: var(--card-muted);
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .compare-scroll-hint {
        display: block;
    }

    body.page-plans {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 720px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .compare-scroll {
        display: none;
    }

    .compare-cards {
        display: grid;
    }

    .contact-actions {
        flex-direction: column;
    }

    .contact-actions .plans-btn {
        width: 100%;
        flex: none;
    }
}

@media (min-width: 768px) {
    body.page-plans {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    .sticky-plans {
        display: none;
    }

    .plans-site-header {
        margin-bottom: 1.25rem;
        border-radius: var(--radius);
        border: 1px solid var(--dl-border);
    }
}

@media (min-width: 900px) {
    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .plan-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
    }
}

@media (max-width: 380px) {
    .plan-card--badged {
        padding-top: 2.15rem;
    }

    .plan-card .plan-badge {
        font-size: 0.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-cta:hover,
    .feature:hover,
    .plan-card:hover {
        transform: none;
    }
}
