/* =========================================================
   Soodban landing — Aban Group
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face { font-family: "IRANSans"; font-weight: 300; font-display: swap; src: url("../fonts/IRANSansWeb-FaNum_Light.woff2") format("woff2"); }
@font-face { font-family: "IRANSans"; font-weight: 400; font-display: swap; src: url("../fonts/IRANSansWeb-FaNum.woff2") format("woff2"); }
@font-face { font-family: "IRANSans"; font-weight: 500; font-display: swap; src: url("../fonts/IRANSansWeb-FaNum_Medium.woff2") format("woff2"); }
@font-face { font-family: "IRANSans"; font-weight: 700; font-display: swap; src: url("../fonts/IRANSansWeb-FaNum_Bold.woff2") format("woff2"); }
@font-face { font-family: "IRANSans"; font-weight: 900; font-display: swap; src: url("../fonts/IRANSansWeb-FaNum_Black.woff2") format("woff2"); }

/* ---------- Tokens (from abangroup.ir) ---------- */
:root {
    --red: #aa0304;
    --red-600: #8f0203;
    --maroon: #580805;
    --maroon-900: #3a0503;
    --ink: #1d1616;
    --muted: #6b5f5f;
    --line: #eadfdd;
    --cream: #fbf6f4;
    --blush: #fef7f3;
    --white: #fff;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 20px 50px -20px rgba(88, 8, 5, .25);
    --shadow-sm: 0 8px 24px -12px rgba(88, 8, 5, .2);
    --header-h: 80px;

    /* fluid scale — stepped down per breakpoint */
    --fs-base: 16px;
    --fs-h1: 42px;
    --fs-h2: 30px;
    --fs-h3: 26px;
    --fs-lead: 18px;
    --section-py: 110px;
    --grid-gap: 70px;
    --head-mb: 56px;
    --gutter: 20px;
    --card-p: 32px;
    --fs-big: 80px;
    --fs-eyebrow: 18px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    margin: 0;
    font-family: "IRANSans", Tahoma, sans-serif;
    font-size: var(--fs-base);
    line-height: 1.9;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s; }
h1, h2, h3 { line-height: 1.45; margin: 0 0 .5em; font-weight: 900; }
p { margin: 0 0 1em; }
button, input, select { font: inherit; }
svg { width: 1em; height: 1em; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: var(--section-py) 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: var(--fs-eyebrow); font-weight: 700; color: var(--red);
    margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--red); transform: rotate(45deg); border-radius: 2px; }
.eyebrow--light { color: #f3a6a8; }
.eyebrow--light::before { background: #f3a6a8; }

.section-title { font-size: var(--fs-h2); }
.section-title em { font-style: normal; color: var(--red); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto var(--head-mb); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
    transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: var(--white); box-shadow: 0 10px 24px -10px rgba(170, 3, 4, .7); }
.btn--primary:hover { background: var(--red-600); }
.btn--ghost { background: transparent; color: var(--maroon); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--red); color: var(--red); }
.btn--light { background: var(--white); color: var(--maroon); }
.btn--light:hover { background: var(--blush); }
.btn--sm { padding: 9px 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
    background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 30px -18px rgba(88, 8, 5, .35); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.header__logo img { width: 150px; height: auto; }
.nav { display: flex; gap: 28px; }
.nav__link { font-size: 15px; font-weight: 500; position: relative; padding: 6px 0; }
.nav__link::after { content: ""; position: absolute; bottom: 0; right: 0; width: 0; height: 2px; background: var(--red); transition: width .3s; }
.nav__link:hover, .nav__link.is-active { color: var(--red); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--maroon); direction: ltr; }
.header__phone svg { width: 18px; height: 18px; fill: var(--red); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1.5px solid var(--maroon); border-radius: 9px; background: var(--white); cursor: pointer; padding: 0 10px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; background: var(--maroon); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (client artwork, re-tinted to brand maroon) ---------- */
.hero {
    --hero-bg: #5c0806;
    position: relative; overflow: hidden; color: var(--white); text-align: center;
    padding: calc(var(--header-h) + var(--section-py) * .6) 0 calc(var(--section-py) * .8);
    background-color: var(--hero-bg);
    background-image: url("../img/hero-bg.jpg");
    background-image: image-set(url("../img/hero-bg.webp") type("image/webp"), url("../img/hero-bg.jpg") type("image/jpeg"));
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 60% at 50% 55%, rgba(92, 8, 6, .8), rgba(92, 8, 6, 0) 75%); }
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 1000px; }

.element-tile {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    width: 128px; height: 116px; padding: 0 18px; margin-bottom: 28px; text-align: left; direction: ltr;
    border: 3px solid var(--white); border-radius: 14px; line-height: 1;
    background: rgba(255, 255, 255, .04); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
    animation: float 7s ease-in-out infinite;
}
.element-tile b { font-size: 46px; font-weight: 900; letter-spacing: -.5px; }
.element-tile i { position: absolute; top: 12px; right: 14px; font-style: normal; font-size: 16px; }
.element-tile span { align-self: center; margin-top: 10px; font-size: 14px; font-weight: 500; direction: rtl; }

.hero__title { font-size: var(--fs-h1); color: var(--white); margin-bottom: .35em; text-shadow: 0 2px 20px rgba(0, 0, 0, .15); }
.hero__question { font-size: calc(var(--fs-h1) * .55); font-weight: 700; margin-bottom: 16px; line-height: 1.6; }
.hero__lead { font-size: var(--fs-lead); color: rgba(255, 255, 255, .85); max-width: 720px; margin-bottom: 30px; }
.hero__announce {
    display: inline-flex; align-items: center; gap: 12px; margin: 0;
    padding: 10px 22px; border-radius: 99px; font-size: calc(var(--fs-lead) + 1px); font-weight: 900;
    background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .25);
}
.hero__pulse { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #f3a6a8; }
.hero__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 1.8s ease-out infinite; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .5); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

/* countdown to subscription start */
.countdown { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 22px; }
.countdown__units { display: flex; gap: 12px; direction: ltr; }
.countdown__unit {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 92px; height: 96px; border-radius: 18px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(6px); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .6);
}
.countdown__unit b { font-size: 40px; font-weight: 900; line-height: 1.15; font-variant-numeric: tabular-nums; }
.countdown__unit span { font-size: 13px; opacity: .8; }
.countdown__unit:last-child b { color: #f3a6a8; }
.countdown__unit span { direction: rtl; }
.countdown__date { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .85); }
.countdown__date svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.countdown.is-live .countdown__units { display: none; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { to { transform: scale(2.8); opacity: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--grid-gap); align-items: center; }
.about__content p { color: var(--muted); text-align: justify; }
.about__content p strong { color: var(--maroon); }
.facts {
    position: relative; overflow: hidden; border-radius: 28px; padding: 44px 40px;
    background: linear-gradient(145deg, var(--maroon), var(--maroon-900)); color: var(--white);
    box-shadow: var(--shadow);
}
.facts::after {
    content: ""; position: absolute; bottom: -150px; left: -100px; width: 260px; height: 260px;
    border: 2px solid rgba(170, 3, 4, .6); border-radius: 36px; transform: rotate(45deg);
}
.facts__label { display: inline-block; font-size: 13px; background: var(--red); padding: 4px 14px; border-radius: 99px; margin-bottom: 16px; }
.facts__list { position: relative; margin: 0; }
.facts__list div { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.facts__list div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts__list dt { font-size: 14px; opacity: .7; }
.facts__list dd { margin: 0; font-size: 20px; font-weight: 900; }

/* ---------- Track record (showcase) ---------- */
.track {
    position: relative; overflow: hidden; color: var(--white);
    background:
        radial-gradient(circle at 85% 15%, rgba(170, 3, 4, .55), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(170, 3, 4, .35), transparent 40%),
        linear-gradient(160deg, var(--maroon-900), var(--maroon));
}
.track::before {
    content: ""; position: absolute; inset: 0; opacity: .35;
    background: url("../img/hero-pattern.svg") repeat; filter: brightness(3);
}
.track .container { position: relative; }
.track .section-title { color: var(--white); }
.track .section-head p { color: rgba(255, 255, 255, .8); margin-top: 8px; }
.track__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1000px; margin: 0 auto; }

.fund-card {
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    background: var(--white); color: var(--ink); border-radius: 24px;
    padding: var(--card-p); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
    transition: transform .3s, box-shadow .3s;
}
.fund-card:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7); }
.fund-card__head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 20px; }
.fund-card__head h3 { font-size: 21px; margin: 0; }
.fund-card__tag { flex: none; font-size: 12px; font-weight: 700; color: var(--red); background: var(--blush); padding: 3px 12px; border-radius: 99px; }

.fund-card__hero {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 20px 24px; margin-bottom: 18px; border-radius: 18px;
    background: linear-gradient(135deg, var(--blush), #fbe9e6);
}
.fund-card__label { font-size: 14px; font-weight: 700; color: var(--muted); }
.fund-card__big {
    font-size: var(--fs-big); font-weight: 900; line-height: 1.05; color: var(--red);
    display: inline-flex; align-items: baseline; gap: 4px;
}
.fund-card__multi {
    display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 900;
    color: var(--white); background: var(--maroon); padding: 5px 14px; border-radius: 99px;
}
.fund-card__multi::before { content: "▲"; font-size: 10px; color: #f3a6a8; }
.fund-card__hero { position: relative; }
.rank-seal {
    position: absolute; top: 50%; left: 22px; transform: translateY(-50%);
    width: 86px; height: 86px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
    background: radial-gradient(circle at 35% 30%, var(--red), var(--maroon) 75%); color: var(--white);
    box-shadow: 0 0 0 4px var(--white), 0 0 0 6px rgba(170, 3, 4, .3), 0 14px 24px -10px rgba(88, 8, 5, .7);
}
.rank-seal::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .45); }
.rank-seal small { font-size: 11px; font-weight: 700; opacity: .9; }
.rank-seal b { font-size: 32px; font-weight: 900; }
.rank-seal--word b { font-size: 19px; margin-top: 2px; }
.fund-card__rank { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--maroon); margin-bottom: 16px; }
.fund-card__rank svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fund-card__note { margin: auto 0 0; padding-top: 14px; font-size: 13px; color: var(--muted); }

.track__outro {
    max-width: 1000px; margin: 28px auto 0; padding: 24px 30px; border-radius: var(--radius);
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
    border-right: 4px solid #f3a6a8; color: rgba(255, 255, 255, .88); font-size: 17px;
}
.track__outro strong { color: #f3a6a8; }

/* fund vs. free-market dollar bars — one shared scale (max 185) */
.cmp-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin: -16px 0 24px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.cmp-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cmp-legend i { width: 14px; height: 10px; border-radius: 3px; }
.cmp-legend__fund, .cmp__fill--fund { background: var(--red); }
.cmp-legend__usd, .cmp__fill--usd { background: #857674; }
.cmp-legend__fund { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); }
.cmp-legend__usd { background: #b3a6a4; }
.cmp { display: grid; gap: 16px; }
.cmp__group { display: grid; gap: 2px; }
.cmp__period { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.cmp__line { display: flex; align-items: center; gap: 8px; height: 26px; }
.cmp__fill { flex: none; height: 14px; width: 0; border-radius: 4px 0 0 4px; transition: width 1.1s cubic-bezier(.2, .7, .2, 1) .3s; }
.is-visible .cmp__fill { width: calc(var(--v) / 185 * 62%); }
.cmp__line b { font-size: 15px; font-weight: 900; color: var(--ink); white-space: nowrap; }
.cmp__line small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cmp__line:first-of-type b { font-size: 18px; color: var(--red); }

/* ---------- Benefits ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
    position: relative; text-align: center; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: var(--card-p) 20px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feature::before {
    content: ""; position: absolute; top: -1px; right: 30%; left: 30%; height: 3px;
    background: var(--red); border-radius: 0 0 3px 3px; transition: right .3s, left .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature:hover::before { right: 12%; left: 12%; }
.feature__icon { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 20px; background: var(--blush); display: grid; place-items: center; transform: rotate(45deg); }
.feature__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-45deg); }
.feature h3 { font-size: 19px; margin-bottom: 4px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- Audience ---------- */
.audience { background: var(--maroon); color: var(--white); padding: calc(var(--section-py) * .82) 0; position: relative; overflow: hidden; }
.audience::before {
    content: ""; position: absolute; inset: 0; opacity: .5;
    background: url("../img/hero-pattern.svg") repeat; filter: brightness(3);
}
.audience__inner { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--grid-gap); align-items: center; }
.audience__head h2 { font-size: var(--fs-h2); margin: 0; }
.audience__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.audience__list li {
    display: flex; gap: 14px; align-items: flex-start; padding: 22px;
    border-radius: var(--radius-sm); background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12); font-weight: 500; line-height: 1.8;
    transition: background .3s;
}
.audience__list li:hover { background: rgba(255, 255, 255, .12); }
.audience__list span {
    flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--red);
    display: grid; place-items: center; font-weight: 900;
}

/* ---------- Steps ---------- */
.steps { background: var(--cream); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; }
.timeline::before {
    content: ""; position: absolute; top: 32px; right: 16%; left: 16%; height: 2px;
    background: repeating-linear-gradient(to left, var(--red) 0 10px, transparent 10px 18px);
}
.timeline__step { position: relative; text-align: center; padding: 0 10px; }
.timeline__dot {
    width: 64px; height: 64px; margin: 0 auto 22px; display: grid; place-items: center;
    background: var(--white); border: 2px solid var(--red); color: var(--red);
    font-size: 24px; font-weight: 900; border-radius: 20px; transform: rotate(45deg);
    box-shadow: 0 0 0 8px var(--cream);
}
.timeline__dot span { transform: rotate(-45deg); }
.timeline__step:last-child .timeline__dot { background: var(--red); color: var(--white); }
.timeline__step h3 { font-size: 15px; color: var(--red); margin-bottom: 2px; }
.timeline__step p { font-size: 17px; font-weight: 700; margin: 0; }
.steps__banner {
    margin-top: var(--head-mb); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    background: linear-gradient(90deg, var(--red), var(--maroon)); color: var(--white);
    border-radius: var(--radius); padding: 26px 34px;
}
.steps__banner p { margin: 0; font-size: 17px; }
.steps__banner a { font-weight: 900; border-bottom: 1.5px solid currentColor; }
.steps__banner a:hover { color: #f3a6a8; }

/* ---------- Aban ---------- */
.aban { padding: var(--section-py) 0; background: linear-gradient(135deg, var(--maroon-900), var(--maroon)); color: var(--white); }
.aban__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); align-items: center; }
.aban h2 { font-size: var(--fs-h2); }
.aban__text p { opacity: .85; text-align: justify; }
.aban__text .aban__lead { opacity: 1; font-weight: 700; color: #f3a6a8; text-align: right; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: #f3a6a8; font-weight: 700; }
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.link-arrow:hover svg { transform: translateX(-4px); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
    padding: 28px 24px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05); display: flex; flex-direction: column; gap: 4px;
}
.stat:nth-child(2), .stat:nth-child(3) { background: rgba(170, 3, 4, .45); border-color: transparent; }
.stat strong { font-size: 30px; font-weight: 900; line-height: 1.4; }
.stat strong small { font-size: .6em; font-weight: 700; opacity: .85; }
.stat > span { font-size: 14px; opacity: .8; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: var(--grid-gap); align-items: start; }
.faq__side { position: sticky; top: calc(var(--header-h) + 30px); }
.faq__contact { display: grid; gap: 12px; margin-top: 24px; }
.faq__contact a {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 16px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); transition: border-color .25s;
}
.faq__contact a:hover { border-color: var(--red); }
.faq__contact span { font-size: 14px; color: var(--muted); }
.faq__contact strong { color: var(--maroon); direction: ltr; }

.accordion { display: grid; gap: 12px; }
.accordion__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); transition: border-color .25s, box-shadow .25s; }
.accordion__item[open] { border-color: rgba(170, 3, 4, .35); box-shadow: var(--shadow-sm); }
.accordion__item summary {
    list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; line-height: 1.7;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after {
    content: "+"; flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
    background: var(--blush); color: var(--red); font-size: 20px; font-weight: 400; transition: transform .3s, background .3s, color .3s;
}
.accordion__item[open] summary::after { transform: rotate(45deg); background: var(--red); color: var(--white); }
.accordion__body { padding: 0 24px 6px; color: var(--muted); text-align: justify; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding-top: calc(var(--section-py) * .65); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 50px; padding-bottom: 50px; }
.footer__logo { width: 170px; height: auto; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer h3 { color: var(--white); font-size: 17px; margin-bottom: 18px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col p { margin: 0; }
.footer__col a:hover { color: #f3a6a8; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; font-size: 13px; text-align: center; }

/* ---------- Modal ---------- */
/* hidden with visibility (not display:none) so the FormAfzar iframe keeps a real width and sizes itself */
.modal {
    position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
    visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .3s, visibility 0s .3s;
}
.modal.is-open { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .3s; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(29, 22, 22, .6); backdrop-filter: blur(4px); }
.modal__dialog {
    position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow-y: auto;
    background: var(--white); border-radius: 24px; padding: 32px 28px 20px;
    transform: translateY(20px) scale(.97); transition: transform .35s ease;
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: absolute; top: 14px; left: 14px; z-index: 1; width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--cream); font-size: 22px; cursor: pointer; color: var(--maroon); }
.modal__head { text-align: center; margin-bottom: 12px; }
.modal__head img { margin: 0 auto 10px; }
.modal__head h2 { font-size: 21px; margin: 0; }
.modal__form { min-height: 200px; }
.modal__form iframe { width: 100%; border: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive — stepped scale: 1199 → 991 → 767 → 575 → 399
   ========================================================= */

/* ---------- ≤1199: small desktop ---------- */
@media (max-width: 1199px) {
    :root {
        --fs-h1: 38px;
        --fs-h2: 28px;
        --fs-h3: 24px;
        --section-py: 96px;
        --grid-gap: 56px;
        --head-mb: 48px;
        --card-p: 30px;
        --fs-big: 76px;
        --fs-eyebrow: 17px;
    }
    .nav { gap: 18px; }
    .header__phone { display: none; }
    .facts { padding: 40px 32px; }
    .features { gap: 16px; }
    .feature h3 { font-size: 18px; }
    .stat strong { font-size: 26px; }
}

/* ---------- ≤991: tablet landscape ---------- */
@media (max-width: 991px) {
    :root {
        --header-h: 70px;
        --fs-h1: 34px;
        --fs-h2: 26px;
        --fs-h3: 22px;
        --fs-lead: 17px;
        --section-py: 84px;
        --grid-gap: 48px;
        --head-mb: 42px;
        --card-p: 28px;
        --fs-big: 60px;
        --fs-eyebrow: 16px;
    }
    .header__logo img { width: 130px; }
    .nav-toggle { display: flex; }
    .nav {
        position: fixed; top: var(--header-h); right: 0; left: 0; flex-direction: column; gap: 0;
        background: var(--white); padding: 6px var(--gutter); border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .2);
        transform: translateY(-10px); opacity: 0; visibility: hidden; transition: .3s;
    }
    .nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .nav__link { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .nav__link:last-child { border-bottom: 0; }
    .nav__link::after { display: none; }

    .about__grid, .aban__inner, .faq__grid, .audience__inner { grid-template-columns: 1fr; }
    .hero__cta { margin-top: 26px; }
    .element-tile { width: 116px; height: 106px; margin-bottom: 24px; }
    .countdown__unit { width: 84px; height: 88px; }
    .countdown__unit b { font-size: 36px; }
    .element-tile b { font-size: 42px; }

    .facts { max-width: 560px; margin-inline: auto; }
    .faq__side { position: static; }

    .features { grid-template-columns: 1fr 1fr; }

    .audience__head h2 { text-align: center; }
    .audience__list li { padding: 18px; }
    .timeline__dot { width: 58px; height: 58px; font-size: 22px; }
    .timeline::before { top: 29px; }

    .stats { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .stat { padding: 22px 16px; }
    .stat strong { font-size: 22px; }

    .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer__about { grid-column: 1 / -1; }
}

/* ---------- ≤767: tablet portrait / large phone ---------- */
@media (max-width: 767px) {
    :root {
        --fs-base: 15px;
        --fs-h1: 26px;
        --fs-h2: 21px;
        --fs-h3: 18px;
        --fs-lead: 15.5px;
        --section-py: 54px;
        --grid-gap: 30px;
        --head-mb: 26px;
        --gutter: 16px;
        --card-p: 20px;
        --radius: 16px;
        --fs-big: 56px;
        --fs-eyebrow: 15px;
    }
    .btn { padding: 11px 22px; font-size: 14px; }
    .header__actions > .btn { display: none; }
    .header__logo img { width: 120px; }

    .hero {
        background-image: url("../img/hero-bg-sm.jpg");
        background-image: image-set(url("../img/hero-bg-sm.webp") type("image/webp"), url("../img/hero-bg-sm.jpg") type("image/jpeg"));
        background-position: 30% center;
    }
    .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(92, 8, 6, .55), rgba(58, 5, 3, .85)); }
    .element-tile { width: 100px; height: 92px; padding: 0 14px; border-width: 2.5px; border-radius: 12px; margin-bottom: 20px; }
    .element-tile b { font-size: 36px; }
    .element-tile i { top: 9px; right: 11px; font-size: 13px; }
    .element-tile span { font-size: 12.5px; margin-top: 8px; }
    .hero__title { font-size: 27px; line-height: 1.75; margin-bottom: 25px; }
    .hero__question { font-size: 19px; }
    .hero__announce { font-size: 15px; padding: 9px 18px; }
    .countdown__units { gap: 10px; }
    .countdown__unit { width: 74px; height: 80px; border-radius: 15px; }
    .countdown__unit b { font-size: 30px; }
    .countdown__unit span { font-size: 12px; }
    .countdown__date { font-size: 14px; }


    .about__content p, .aban__text p, .accordion__body { text-align: right; }
    .facts { padding: 34px 26px; border-radius: 22px; }
    .facts__list dd { font-size: 18px; }

    .track__grid { grid-template-columns: 1fr; gap: 16px; }
    .fund-card__head h3 { font-size: 18px; }
    .cmp-legend { margin-top: -10px; font-size: 13px; }
    .track__outro { padding: 18px 20px; font-size: 15px; }
    .fund-card__hero { padding: 16px 18px; }

    .feature__icon { width: 60px; height: 60px; border-radius: 18px; margin-bottom: 18px; }
    .feature__icon svg { width: 26px; height: 26px; }
    .feature h3 { font-size: 17px; }
    .feature p { font-size: 14px; }

    .audience__list { grid-template-columns: 1fr; gap: 12px; }

    .timeline { grid-template-columns: 1fr; gap: 32px; padding-right: 10px; }
    .timeline::before { top: 0; bottom: 0; right: 38px; left: auto; width: 2px; height: auto; background: repeating-linear-gradient(to bottom, var(--red) 0 10px, transparent 10px 18px); }
    .timeline__step { display: grid; grid-template-columns: 58px 1fr; column-gap: 20px; text-align: right; padding: 0; }
    .timeline__dot { margin: 0; grid-row: span 2; }
    .timeline__step h3 { font-size: 14px; align-self: end; }
    .timeline__step p { font-size: 16px; }
    .steps__banner { padding: 22px; text-align: center; justify-content: center; }
    .steps__banner p { font-size: 15px; }

    .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat { padding: 20px 16px; }

    .accordion__item summary { padding: 18px 20px; }
    .accordion__body { padding: 0 20px 4px; }

    .footer__grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 36px; }
    .footer__logo { width: 150px; }

    .modal__dialog { padding: 28px 18px 16px; border-radius: 20px; }
}

/* ---------- ≤575: phone ---------- */
@media (max-width: 575px) {
    .features { grid-template-columns: 1fr; gap: 12px; }
    .feature { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: center; text-align: right; padding: 20px 22px; }
    .feature::before { top: 22%; bottom: 22%; right: -1px; left: auto; width: 3px; height: auto; border-radius: 3px 0 0 3px; }
    .feature:hover::before { top: 12%; bottom: 12%; right: -1px; left: auto; }
    .feature__icon { grid-row: span 2; width: 52px; height: 52px; border-radius: 15px; margin: 0 4px 0 0; }
    .feature__icon svg { width: 22px; height: 22px; }
    .feature h3 { align-self: end; }
    .feature p { align-self: start; }
}

/* ---------- ≤399: small phone ---------- */
@media (max-width: 399px) {
    :root {
        --header-h: 64px;
        --fs-base: 14.5px;
        --fs-h1: 23px;
        --fs-h2: 19px;
        --fs-h3: 17px;
        --fs-lead: 14.5px;
        --section-py: 44px;
        --grid-gap: 24px;
        --head-mb: 22px;
        --gutter: 14px;
        --card-p: 16px;
        --radius-sm: 10px;
        --fs-big: 48px;
        --fs-eyebrow: 14px;
    }
    .btn { padding: 10px 18px; font-size: 13.5px; }
    .header__logo img { width: 108px; }
    .nav-toggle { width: 38px; height: 38px; padding: 0 9px; }

    .hero__cta { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 24px; width: 100%; }
    .hero__title { font-size: 27px; line-height: 1.75; margin-bottom: 25px; }
    .hero__question { font-size: 17px; }
    .hero__announce { font-size: 14px; padding: 8px 16px; gap: 10px; border-radius: 18px; text-align: right; }
    .element-tile { width: 90px; height: 82px; }
    .countdown__units { gap: 7px; }
    .countdown__unit { width: 64px; height: 70px; border-radius: 13px; }
    .countdown__unit b { font-size: 25px; }
    .countdown__unit span { font-size: 11px; }
    .countdown__date { font-size: 13px; text-align: right; }
    .element-tile b { font-size: 32px; }

    .facts { padding: 28px 20px; }
    .facts__list div { padding: 12px 0; }
    .facts__list dd { font-size: 16px; }

    .fund-card__rank { font-size: 13.5px; }
    .rank-seal { width: 66px; height: 66px; left: 14px; }
    .rank-seal b { font-size: 24px; }
    .rank-seal--word b { font-size: 15px; }
    .fund-card__head h3 { font-size: 17px; }
    .fund-card__multi { font-size: 12.5px; }
    .cmp__line b { font-size: 14px; }
    .cmp__line:first-of-type b { font-size: 17px; }

    .feature { padding: 16px 18px; column-gap: 18px; }
    .feature__icon { width: 46px; height: 46px; border-radius: 13px; }
    .feature__icon svg { width: 20px; height: 20px; }
    .feature h3 { font-size: 15.5px; }
    .feature p { font-size: 13px; }

    .audience__list li { padding: 14px; gap: 10px; }
    .audience__list span { width: 30px; height: 30px; border-radius: 8px; }

    .timeline { padding-right: 8px; }
    .timeline::before { right: 32px; }
    .timeline__step { grid-template-columns: 50px 1fr; column-gap: 16px; }
    .timeline__dot { width: 50px; height: 50px; font-size: 19px; border-radius: 15px; box-shadow: 0 0 0 6px var(--cream); }
    .timeline__step p { font-size: 15px; }
    .steps__banner { padding: 18px 16px; }
    .steps__banner p { font-size: 14px; }

    .stat { padding: 16px 12px; }
    .stat strong { font-size: 18px; }
    .stat > span { font-size: 12px; }

    .faq__contact a { padding: 14px 16px; }
    .accordion__item summary { padding: 15px 16px; font-size: 14px; }
    .accordion__item summary::after { width: 26px; height: 26px; font-size: 18px; }
    .accordion__body { padding: 0 16px 2px; font-size: 13.5px; }

    .footer { font-size: 14px; }
    .footer h3 { font-size: 16px; margin-bottom: 12px; }

    .modal { padding: 12px; }
    .modal__dialog { padding: 26px 12px 12px; }
    .modal__head h2 { font-size: 19px; }

}
