/* ==========================================================================
   Fit and More Pro — storefront styles
   Logical properties throughout so Arabic (RTL) mirrors automatically.
   ========================================================================== */

:root {
    --ink: #14151a;
    --ink-2: #24262d;
    --ink-soft: #4a4d55;
    --muted: #6f727b;
    --paper: #f6f5f0;
    --card: #ffffff;
    --tint: #ecebe3;
    --line: #e2e0d6;
    --volt: #c6f432;
    --volt-strong: #b4e21c;
    --ember: #ff6a3d;
    --sky: #9fd8ff;
    --danger: #b42318;
    --danger-bg: #fdecea;
    --success: #1d6b3d;
    --success-bg: #e6f4ea;
    --info-bg: #eef1f6;

    --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 1px 2px rgba(20, 21, 26, .06), 0 8px 24px rgba(20, 21, 26, .06);
    --shadow-lg: 0 24px 60px rgba(20, 21, 26, .28);

    --wrap: 1160px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(56px, 8vw, 104px);
}

[dir="rtl"] {
    --font-display: "Cairo", Tahoma, Arial, sans-serif;
    --font-body: "Cairo", Tahoma, Arial, sans-serif;
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink-2);
    font: 400 16px/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

[dir="rtl"] body { line-height: 1.75; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
}
[dir="rtl"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.35; }

p { margin: 0 0 1em; }

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--volt);
    border-radius: 4px;
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

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

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 760px; }

.center { text-align: center; }
.muted { color: var(--muted); }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 46px;
    padding: 0 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    font: 700 15px/1 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--accent { background: var(--volt); color: var(--ink); }
.btn--accent:hover { background: var(--volt-strong); color: var(--ink); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); color: #fff; }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; color: #fff; }

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--volt);
    padding-bottom: 2px;
}
.arrow-link::after { content: "→"; transition: transform .15s ease; }
[dir="rtl"] .arrow-link::after { content: "←"; }
.arrow-link:hover::after { transform: translateX(3px); }
[dir="rtl"] .arrow-link:hover::after { transform: translateX(-3px); }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 245, 240, .92);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font: 900 19px/1 var(--font-display);
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
}
.brand__mark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--volt);
    box-shadow: inset 0 0 0 5px var(--ink);
}
.brand--light { color: #fff; }
.brand--light .brand__mark { box-shadow: inset 0 0 0 5px #fff; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}
.site-nav__links {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-nav__links a {
    display: block;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}
.site-nav__links a:hover { color: var(--ink); background: var(--tint); }
.site-nav__links a[aria-current="page"] { color: var(--ink); background: var(--tint); }

.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-inline-start: auto;
}
.lang-switch {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}
.lang-switch:hover { color: var(--ink); text-decoration: underline; }
.lang-switch:lang(ar) { font-family: "Cairo", Tahoma, sans-serif; }

.nav-toggle {
    display: none;
    margin-inline-start: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    margin-inline: auto;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        inset-inline: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px var(--gutter) 20px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 30px rgba(20, 21, 26, .08);
    }
    .site-nav.is-open { display: flex; }
    .site-nav__links { flex-direction: column; }
    .site-nav__links a { padding: 12px; font-size: 17px; }
    .site-nav__actions { margin-inline-start: 0; justify-content: space-between; padding-inline: 12px; }
}

/* ---------- Alerts ---------- */

.alert {
    margin: 20px 0 0;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.alert--success { background: var(--success-bg); color: var(--success); }
.alert--error { background: var(--danger-bg); color: var(--danger); }
.alert--info { background: var(--info-bg); color: var(--ink-2); }

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

.hero {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: rgba(255, 255, 255, .78);
}
.hero::before {
    /* faint track lines */
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-55deg, transparent 0 46px, rgba(255, 255, 255, .025) 46px 48px);
    pointer-events: none;
}
.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: 48px;
    padding-block: clamp(64px, 10vw, 128px);
}
.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--volt);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.eyebrow--dark { color: var(--ink); }

.hero__title {
    max-width: 14ch;
    color: #fff;
    font-size: clamp(40px, 6.2vw, 76px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.035em;
}
[dir="rtl"] .hero__title { max-width: 16ch; line-height: 1.25; letter-spacing: 0; }
.hero__lead {
    max-width: 52ch;
    font-size: clamp(17px, 1.6vw, 19px);
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}
.hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
}
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--volt);
}

.hero__stack {
    position: relative;
    min-height: 460px;
}
.hero__stack-item {
    position: absolute;
    width: min(260px, 62%);
    transition: transform .4s ease;
}
.hero__stack-item .cover { box-shadow: var(--shadow-lg); }
.hero__stack-item--1 { inset-inline-start: 6%; top: 8%; transform: rotate(-8deg); z-index: 1; }
.hero__stack-item--2 { inset-inline-start: 36%; top: 0; transform: rotate(5deg); z-index: 2; }
.hero__stack-item--3 { inset-inline-start: 20%; top: 30%; transform: rotate(-1deg); z-index: 3; }
[dir="rtl"] .hero__stack-item--1 { transform: rotate(8deg); }
[dir="rtl"] .hero__stack-item--2 { transform: rotate(-5deg); }
.hero__stack:hover .hero__stack-item--1 { transform: rotate(-11deg) translateY(-6px); }
.hero__stack:hover .hero__stack-item--2 { transform: rotate(8deg) translateY(-6px); }

@media (max-width: 880px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__stack { min-height: 340px; max-width: 420px; }
    .hero__stack-item { width: 52%; }
}

/* ---------- Product covers ---------- */

.cover {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--ink);
    color: #fff;
    isolation: isolate;
}
.cover--image { padding: 0; object-fit: cover; background: var(--tint); }

.cover::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset-inline-end: -30%;
    bottom: -18%;
    width: 110%;
    height: 55%;
    background: repeating-linear-gradient(-55deg, currentColor 0 10px, transparent 10px 26px);
    opacity: .14;
    transform: rotate(-4deg);
}
.cover__brand {
    font: 800 11px/1 var(--font-display);
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .75;
}
[dir="rtl"] .cover__brand { letter-spacing: 0; font-size: 12px; }
.cover__title {
    font: 900 clamp(20px, 2.4vw, 28px)/1.05 var(--font-display);
    letter-spacing: -0.02em;
    text-wrap: balance;
}
[dir="rtl"] .cover__title { line-height: 1.35; letter-spacing: 0; }
.cover__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}
.cover__meta span {
    padding: 5px 9px;
    border: 1.5px solid currentColor;
    border-radius: 999px;
}

.cover--program { background: var(--volt); color: var(--ink); }
.cover--ebook { background: var(--ink); color: var(--volt); }
.cover--ebook .cover__brand, .cover--ebook .cover__meta { color: #fff; }
.cover--guide { background: var(--ember); color: var(--ink); }
.cover--template { background: var(--sky); color: var(--ink); }
.cover--course { background: #2b2d6e; color: #fff; }
.cover--coaching { background: #f2efe4; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.cover--membership { background: linear-gradient(160deg, var(--ink) 0%, #31343d 100%); color: var(--volt); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.section--flush-top { padding-top: 0; }

.section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: 36px;
}
.section__title {
    margin-bottom: 12px;
    font-size: clamp(28px, 3.6vw, 44px);
}
.section__lead { max-width: 56ch; margin: 0; color: var(--ink-soft); font-size: 18px; }

.page-head { padding-block: clamp(40px, 6vw, 72px) 36px; }
.page-head__title { font-size: clamp(34px, 5vw, 56px); font-weight: 900; }
.page-head__lead { max-width: 60ch; margin: 0; color: var(--ink-soft); font-size: 18px; }
.page-head__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 32px;
}

.crumbs { padding-top: 28px; font-size: 14px; font-weight: 600; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a::before { content: "← "; }
[dir="rtl"] .crumbs a::before { content: "→ "; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Product grid & cards ---------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 28px;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.product-card__media { display: block; border-radius: var(--radius); }
.product-card__media .cover { transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover .product-card__media .cover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card__title { margin: 6px 0 6px; font-size: 21px; }
.product-card__title a { text-decoration: none; }
.product-card__title a:hover { text-decoration: underline; }
.product-card__subtitle { margin-bottom: 10px; color: var(--ink-soft); font-size: 15px; }

.chip {
    display: inline-block;
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--tint);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
[dir="rtl"] .chip { letter-spacing: 0; font-size: 13px; }

.price { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.price__now { color: var(--ink); font: 800 20px/1 var(--font-display); }
.price__was { color: var(--muted); font-size: 15px; }
.price--lg .price__now { font-size: 34px; }

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}
.filters__item {
    padding: 8px 16px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.filters__item:hover { border-color: var(--ink); color: var(--ink); }
.filters__item[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Product page ---------- */

.product { padding-block: 28px var(--section); }
.product__grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}
.product__media { position: sticky; top: 96px; }
.product__media .cover { max-width: 460px; box-shadow: var(--shadow); }
.product__media .cover__title { font-size: clamp(26px, 3.4vw, 40px); }
.product__title { margin-top: 14px; font-size: clamp(32px, 4.4vw, 52px); font-weight: 900; }
.product__subtitle { color: var(--ink-soft); font-size: 19px; }
.product__info .price { margin: 24px 0 14px; }

.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 600;
}
.meta-list li + li::before { content: "·"; margin-inline-end: 20px; color: var(--muted); }

.buy { max-width: 440px; }
.buy__note {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--success-bg);
    color: var(--success);
    font-weight: 600;
    font-size: 14px;
}
.coupon { margin-top: 14px; font-size: 14px; }
.coupon summary { color: var(--ink-soft); font-weight: 600; cursor: pointer; }
.coupon__row { margin-top: 10px; }
.coupon input { text-transform: uppercase; }

.assurances {
    display: grid;
    gap: 8px;
    max-width: 440px;
    margin: 22px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 500;
}
.assurances li { display: flex; gap: 10px; align-items: center; }
.assurances li::before {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--volt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314151a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.soon {
    max-width: 440px;
    padding: 22px;
    border: 2px dashed var(--line);
    border-radius: var(--radius);
}
.soon__label { margin-bottom: 6px; color: var(--ink); font: 800 18px/1.2 var(--font-display); }

.product__details {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

@media (max-width: 960px) {
    .product__grid { grid-template-columns: 1fr; }
    .product__media { position: static; }
    .product__media .cover { max-width: 340px; }
    .product__details { grid-template-columns: 1fr; }
}

.panel {
    padding: 26px;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}
.panel__title { font-size: 19px; margin-bottom: 16px; }

.checks, .toc { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li {
    position: relative;
    padding-inline-start: 30px;
}
.checks li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .28em;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--volt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314151a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks--light li { color: #fff; font-weight: 600; }

.toc { counter-reset: toc; }
.toc li {
    counter-increment: toc;
    display: flex;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.toc li:last-child { border-bottom: 0; padding-bottom: 0; }
.toc li::before {
    content: counter(toc, decimal-leading-zero);
    color: var(--muted);
    font: 800 14px/1.7 var(--font-display);
}

.prose { font-size: 17px; color: var(--ink-2); }
.prose p { margin-bottom: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: 22px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose--legal { font-size: 16px; }

/* ---------- Steps / features ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}
.steps__item {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--card);
}
.steps__item h3 { font-size: 20px; }
.steps__item p { margin: 0; color: var(--ink-soft); }
.steps__num {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--ink);
    color: var(--volt);
    font: 900 18px/1 var(--font-display);
}
.steps--compact { grid-template-columns: 1fr; gap: 10px; margin: 24px 0; text-align: start; }
.steps--compact .steps__item { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--paper); }
.steps--compact .steps__num { flex: none; width: 32px; height: 32px; margin: 0; font-size: 15px; }

.features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 36px;
    border-top: 2px solid var(--ink);
}
.features__item {
    padding: 26px 26px 0 0;
}
[dir="rtl"] .features__item { padding: 26px 0 0 26px; }
.features__item h3 { font-size: 19px; }
.features__item p { margin: 0; color: var(--ink-soft); }

@media (max-width: 880px) {
    .steps { grid-template-columns: 1fr; }
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
}
@media (max-width: 520px) {
    .features { grid-template-columns: 1fr; }
}

/* ---------- Bands ---------- */

.band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    padding: clamp(32px, 5vw, 56px);
    border-radius: var(--radius-lg);
    background: var(--volt);
    color: var(--ink);
}
.band__copy { max-width: 620px; }
.band__copy p:last-child { margin: 0; font-size: 18px; }
.band__title { font-size: clamp(26px, 3.2vw, 38px); }

.closing {
    padding-block: var(--section);
    background: var(--ink);
    color: rgba(255, 255, 255, .75);
    text-align: center;
}
.closing__inner { max-width: 720px; }
.closing__title { color: #fff; font-size: clamp(32px, 4.8vw, 56px); font-weight: 900; }
.closing p { font-size: 18px; margin-bottom: 28px; }

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

.faq { margin: 28px 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    color: var(--ink);
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+";
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--tint);
    font: 600 20px/1 var(--font-body);
    transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--volt); }
.faq__item p { margin: 0 0 22px; max-width: 64ch; color: var(--ink-soft); }

/* ---------- Cards & forms ---------- */

.narrow-page { padding-block: clamp(48px, 8vw, 96px); }

.card {
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow);
}
.card--center { text-align: center; }
.card--center .steps--compact { text-align: start; }
.card__title { font-size: clamp(26px, 3.4vw, 34px); }

.form { display: grid; gap: 18px; }
.form .card__title { margin-bottom: 0; }
.form__note { margin: 0; color: var(--muted); font-size: 14px; text-align: center; }

.field { display: grid; gap: 6px; }
.field label { color: var(--ink); font-weight: 600; font-size: 15px; }
.field input[type="text"],
.field input[type="email"],
.coupon input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font: 400 16px/1.2 var(--font-body);
    transition: border-color .15s ease;
}
.field input:hover, .coupon input:hover { border-color: #c9c6b8; }
.field input:focus-visible, .coupon input:focus-visible { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(198, 244, 50, .7); outline: none; }
.field--error input { border-color: var(--danger); }
.field__error { margin: 0; color: var(--danger); font-size: 14px; font-weight: 600; }

.field--check {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 4px 12px;
}
.field--check input {
    width: 20px;
    height: 20px;
    margin: 3px 0 0;
    accent-color: var(--ink);
}
.field--check label { font-weight: 400; font-size: 14px; color: var(--ink-soft); }
.field--check .field__error { grid-column: 2; }

.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

.badge-check, .badge-mail {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    border-radius: 20px;
    background: var(--volt) center / 30px no-repeat;
}
.badge-check { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314151a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.badge-mail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314151a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 6.5l8.5 6.5 8.5-6.5'/%3E%3C/svg%3E"); }

.error-code {
    margin: 0 0 6px;
    color: var(--volt-strong);
    font: 900 72px/1 var(--font-display);
    -webkit-text-stroke: 2px var(--ink);
}

.empty {
    padding: 48px 24px;
    border: 2px dashed var(--line);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--ink-soft);
}

/* ---------- Free guide ---------- */

.guide { background: var(--ink); color: rgba(255, 255, 255, .78); }
.guide__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
    padding-block: clamp(56px, 8vw, 104px);
}
.guide__title { color: #fff; font-size: clamp(36px, 5vw, 60px); font-weight: 900; }
.guide__lead { max-width: 48ch; font-size: 18px; margin-bottom: 28px; }
.guide .card { color: var(--ink-2); }
@media (max-width: 880px) { .guide__grid { grid-template-columns: 1fr; } }

/* ---------- Library ---------- */

.library { display: grid; gap: 20px; }
.library__item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}
.library__cover .cover { padding: 12px; border-radius: 10px; }
.library__cover .cover__title { font-size: 14px; }
.library__cover .cover__meta, .library__cover .cover__brand { display: none; }
.library__title { font-size: 22px; margin-bottom: 4px; }

.files { margin: 16px 0 0; padding: 0; list-style: none; }
.files__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}
.files__name { font-weight: 600; color: var(--ink); }
.files__name small { display: block; color: var(--muted); font-weight: 500; }

@media (max-width: 560px) {
    .library__item { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 16px; }
}

/* ---------- Contact ---------- */

.contact { display: grid; gap: 14px; }
.contact__card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 24px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}
.contact__card:hover { border-color: var(--ink); transform: translateY(-2px); }
.contact__label { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
[dir="rtl"] .contact__label { letter-spacing: 0; }
.contact__value { color: var(--ink); font: 800 20px/1.3 var(--font-display); }

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

.site-footer {
    padding-top: 64px;
    background: var(--ink);
    color: rgba(255, 255, 255, .66);
    font-size: 15px;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 36px;
    padding-bottom: 48px;
}
.site-footer__brand p { max-width: 34ch; margin-top: 16px; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 16px; font-weight: 600; }
.site-footer__social a { color: #fff; text-decoration: none; }
.site-footer__social a:hover { color: var(--volt); }
.site-footer__title {
    margin-bottom: 14px;
    color: #fff;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
[dir="rtl"] .site-footer__title { letter-spacing: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-footer ul a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
}
.site-footer__bottom p { margin: 0; }
.site-footer__disclaimer { flex-basis: 100%; max-width: 90ch; color: rgba(255, 255, 255, .5); }
.inline-form { display: inline; }

@media (max-width: 880px) {
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__brand { grid-column: 1 / -1; }
}

/* ---------- Cookie banner ---------- */

.cookie-banner {
    position: fixed;
    inset-inline: 16px;
    bottom: 16px;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    max-width: 720px;
    margin-inline: auto;
    padding: 16px 20px;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 320px; }
.cookie-banner__actions { display: flex; gap: 8px; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
