/* ThemeLook COD, Upsell & Bank – public website. Plain CSS, no build step. Logical properties keep Arabic (RTL) right. */

:root {
    --green: #2f9e44;
    --green-dark: #237a35;
    --green-soft: #eaf6ec;
    --lime: #7bc74d;
    --ink: #1c2230;
    --ink-soft: #2b3344;
    --muted: #5d6678;
    --line: #e2e7e0;
    --bg: #ffffff;
    --bg-soft: #f5f8f3;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 1px 2px rgba(28, 34, 48, .06), 0 8px 24px rgba(28, 34, 48, .07);
    --shadow-lg: 0 24px 60px rgba(28, 34, 48, .16);
    --container: 1160px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", "Noto Sans Arabic", "Segoe UI Arabic", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
a:hover { color: var(--green); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: 780px; }

.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 650; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 15px; }
.btn-lg { padding: 14px 26px; font-size: 17px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--green); color: var(--green-dark); }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, .7); border-color: var(--line); }
.btn-ghost:hover { color: var(--green-dark); border-color: var(--green); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--green-soft); color: var(--ink); }

.link-arrow { font-weight: 650; text-decoration: none; color: var(--green-dark); }
.link-arrow::after { content: " →"; }
[dir="rtl"] .link-arrow::after { content: " ←"; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand img { border-radius: 10px; }
.brand-name { font-size: 19px; font-weight: 500; white-space: nowrap; }
.brand-name strong { color: var(--green); font-weight: 800; }

.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-soft); text-decoration: none; font-weight: 550; font-size: 15.5px; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--green-dark); background: var(--green-soft); }

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

.lang-menu, .mobile-menu { position: relative; }
.lang-menu summary, .mobile-menu summary { list-style: none; cursor: pointer; }
.lang-menu summary::-webkit-details-marker, .mobile-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; color: var(--ink-soft); font-weight: 600; font-size: 14px; }
.lang-menu summary:hover { background: var(--bg-soft); }
.lang-menu ul, .mobile-menu ul {
    position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 180px; margin: 0; padding: 6px; list-style: none;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.lang-menu a, .mobile-menu a:not(.btn) { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.lang-menu a:hover, .mobile-menu a:not(.btn):hover { background: var(--green-soft); }
.lang-menu a[aria-current] { font-weight: 700; color: var(--green-dark); }

.mobile-menu { display: none; }
.mobile-menu summary { display: grid; gap: 4px; padding: 12px 10px; border-radius: 8px; }
.mobile-menu summary span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-menu ul { min-width: 240px; }
.mobile-menu li .btn { width: 100%; margin-top: 6px; }

@media (max-width: 960px) {
    .main-nav, .header-cta { display: none; }
    .mobile-menu { display: block; }
}

/* Hero */
.hero {
    position: relative; overflow: hidden; padding: 72px 0 80px;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(123, 199, 77, .28), transparent 60%),
        radial-gradient(700px 380px at -10% 110%, rgba(47, 158, 68, .14), transparent 60%),
        linear-gradient(180deg, #fbfdf9, #f2f8ef);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -0.025em; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid rgba(28, 34, 48, .06); }

@media (max-width: 900px) {
    .hero { padding: 48px 0 56px; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Sections */
.section { padding: 80px 0; }
.section-tight { padding: 48px 0 80px; }
.section-soft { background: var(--bg-soft); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; text-align: center; max-width: 22em; margin-inline: auto; margin-bottom: 40px; }
.section-title-spaced { margin-top: 64px; }
.section-intro { text-align: center; color: var(--muted); margin: -24px auto 40px; max-width: 40em; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head .section-title { margin: 0; text-align: start; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

.page-hero { padding: 64px 0 40px; background: linear-gradient(180deg, #f6faf3, #fff); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s, transform .2s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--lime), var(--green)); }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* Slides */
.slide-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 880px); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; overscroll-behavior-x: contain; }
.slide { margin: 0; scroll-snap-align: center; }
.slide img { border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.slide figcaption { padding: 14px 4px 0; display: grid; gap: 2px; }
.slide figcaption span { color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 28px 28px 24px; border-radius: var(--radius); background: var(--bg-soft); counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; }
.steps h3 { font-size: 1.12rem; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.video-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe, .video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { padding: 0; cursor: pointer; background: #000; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.video-icon { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .15s; }
.video-play:hover .video-icon { transform: scale(1.08); }
.video-card figcaption { padding: 16px 18px 18px; }
.video-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.video-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.plan-featured { border: 2px solid var(--green); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.15rem; color: var(--muted); font-weight: 700; }
.plan-price { margin: 0; }
.plan-price strong { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.02em; }
.plan-price span { color: var(--muted); }
.plan-yearly { color: var(--muted); font-size: .93rem; min-height: 1.6em; }
.plan ul { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; gap: 8px; flex: 1; }
.plan li { position: relative; padding-inline-start: 26px; font-size: .97rem; }
.plan li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 14px; height: 8px; border-inline-start: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
[dir="rtl"] .plan li::before { transform: rotate(45deg) scaleX(-1); }
.plan li.is-off { color: #9aa2b1; text-decoration: line-through; }
.plan li.is-off::before { border-color: #c4cad4; }
.plan .plan-limit { font-weight: 700; }
.plan .btn { width: 100%; }
.pricing-note { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 28px; }
@media (max-width: 1000px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.post-card a:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.post-card > a > img, .post-card-placeholder { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.post-card-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--green-soft), #f7fbf4); }
.post-card-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card time { color: var(--muted); font-size: .88rem; }
.post-card h3 { font-size: 1.12rem; margin: 0; }
.post-card p { color: var(--muted); font-size: .96rem; margin: 0; flex: 1; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.article { padding: 56px 0 80px; }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.article-head .meta, .meta { color: var(--muted); font-size: .95rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.breadcrumb { margin-bottom: 18px; font-size: .95rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a::before { content: "← "; }
[dir="rtl"] .breadcrumb a::before { content: "→ "; }
.article-cover { margin-block: 28px 36px; }
.article-cover img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.prose { font-size: 1.06rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-inline-start: 4px solid var(--green); background: var(--green-soft); border-radius: 8px; }
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.prose pre { background: var(--ink); color: #e9edf3; padding: 16px; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .97rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 700; }

/* Guide */
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.guide-toc { position: sticky; top: 92px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.guide-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.guide-toc ol { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; font-size: .95rem; }
.guide-toc a { color: var(--ink-soft); text-decoration: none; }
.guide-toc a:hover { color: var(--green-dark); }
.guide-section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); scroll-margin-top: 92px; }
.guide-section:last-child { border-bottom: 0; }
.guide-section > h2 { font-size: 1.6rem; }
@media (max-width: 900px) {
    .guide-layout { grid-template-columns: 1fr; gap: 24px; }
    .guide-toc { position: static; }
}

/* Changelog */
.changelog-entry { padding: 28px 0; border-bottom: 1px solid var(--line); }
.changelog-entry h2 { font-size: 1.4rem; margin-top: 8px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--bg-soft); color: var(--ink-soft); }
.badge-feature { background: var(--green-soft); color: var(--green-dark); }
.badge-improvement { background: #e8f0ff; color: #1f4fbf; }
.badge-maintenance { background: #fff4e0; color: #8a5300; }

/* Media */
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.media-slide { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.media-slide figcaption { padding: 16px 20px 20px; }
.media-slide h3 { font-size: 1.1rem; margin-bottom: 4px; }
.media-slide p { color: var(--muted); font-size: .96rem; margin-bottom: 10px; }
@media (max-width: 760px) { .media-grid { grid-template-columns: 1fr; } }

.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; }
.pagination a, .pagination span[aria-disabled] { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; }
.pagination span[aria-disabled] { opacity: .4; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--ink) 0%, #23304a 55%, #1f5a32 100%); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; max-width: 24em; }

/* Footer */
.site-footer { background: #121722; color: #c5ccd8; padding: 64px 0 28px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand-name strong { color: var(--lime); }
.footer-brand p { max-width: 26em; color: #9ba5b6; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #c5ccd8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid #263044; color: #8590a3; font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
