/* Kayan Factory Feasibility – main styles (RTL). Identity per the brief: navy #22386B, green #9CCC55, IBM Plex Sans Arabic. */

:root {
  --navy: #22386B;
  --green: #9CCC55;
  --navy-deep: #18284F;
  --ink: #17243F;
  --muted: #5B6680;
  --paper: #F5F7FB;
  --line: #E2E7F0;
  --white: #FFFFFF;
  --error: #C0392B;
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 56px;
  --topbar-h: 78px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 30px 60px -32px rgba(23, 36, 63, .35);
  --shadow-sm: 0 14px 30px -20px rgba(23, 36, 63, .35);
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  :root {
    --navy-deep: color-mix(in srgb, var(--navy) 78%, #000);
    --green-soft: color-mix(in srgb, var(--green) 16%, #fff);
    --green-ink: color-mix(in srgb, var(--green) 55%, var(--navy));
  }
}
:root { --green-soft: #EEF6E2; --green-ink: #5C8343; }
@supports (color: color-mix(in srgb, red 50%, blue)) {
  :root { --green-soft: color-mix(in srgb, var(--green) 16%, #fff); --green-ink: color-mix(in srgb, var(--green) 55%, var(--navy)); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.85; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
body > main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
svg { display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 12px; right: 12px; z-index: 100; width: auto; height: auto; clip: auto; margin: 0; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.wrap { width: min(var(--wrap), calc(100% - var(--gutter))); margin-inline: auto; }
img.is-broken { visibility: hidden; }

/* ---------- Type ---------- */
.h2 { font-weight: 700; font-size: clamp(27px, 2.7vw, 40px); line-height: 1.45; color: var(--navy); margin: 0 0 16px; letter-spacing: -.2px; }
.h2--light { color: #fff; }
.hl { padding: 0 .1em; background: linear-gradient(transparent 60%, color-mix(in srgb, var(--green) 70%, transparent) 60%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.h2--light .hl, .final .hl { color: var(--green); background: none; padding: 0; }
.lead { font-size: 18px; color: var(--muted); max-width: 760px; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; padding: 4px 18px; margin-bottom: 16px; border-radius: 999px; background: var(--green); color: var(--navy); font-size: 14px; font-weight: 700; }
.section { padding-block: clamp(70px, 8vw, 112px); }
.sec-head { margin-bottom: 44px; }
.sec-head--center { text-align: center; }
.sec-head--center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 2px solid transparent; border-radius: 999px; font-family: var(--font); font-size: 16.5px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--green { background: var(--green); color: var(--navy); box-shadow: 0 16px 30px -16px color-mix(in srgb, var(--green) 90%, transparent); }
.btn--green:hover { background: color-mix(in srgb, var(--green) 85%, #fff); }
.btn--glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); color: #fff; backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-deep); }
.btn--outline { background: #fff; border-color: var(--line); color: var(--navy); }
.btn--outline:hover { border-color: var(--green); }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 17px; }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .topbar { top: 32px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--topbar-h); }
.topbar__brand img, .topbar__brand .custom-logo { display: block; height: 54px; width: auto; max-width: 200px; object-fit: contain; }
.topbar__actions { display: flex; align-items: center; gap: 14px; }
.topbar__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 15.5px; }
.topbar__phone svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--green-soft); color: var(--navy); }
.topbar__cta-short { display: none; }

/* ---------- 1. Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center; min-height: min(780px, calc(100vh - var(--topbar-h))); display: flex; align-items: center; padding: 96px 0 72px; background: var(--navy); }
.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--hero-img) center / cover no-repeat; transform: scale(1.06); animation: hero-zoom 18s ease-out both; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--navy) 82%, transparent) 0%, color-mix(in srgb, var(--navy) 88%, transparent) 55%, color-mix(in srgb, var(--navy-deep) 96%, transparent) 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 720px; aspect-ratio: 1; border-radius: 50%; left: 50%; top: -420px; transform: translateX(-50%); background: radial-gradient(circle, color-mix(in srgb, var(--green) 28%, transparent), transparent 62%); pointer-events: none; }
@keyframes hero-zoom { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__title { font-weight: 700; font-size: clamp(30px, 4vw, 54px); line-height: 1.4; max-width: 960px; margin: 0 0 22px; letter-spacing: -.3px; animation: rise .9s var(--ease) both; }
.hero__text { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.95; color: rgba(255, 255, 255, .88); max-width: 820px; margin: 0 0 34px; animation: rise .9s var(--ease) .12s both; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; animation: rise .9s var(--ease) .24s both; }
.hero__features { list-style: none; margin: 46px 0 0; padding: 14px 10px; display: grid; grid-template-columns: repeat(4, auto); gap: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(10px); animation: rise .9s var(--ease) .36s both; }
.hero__features li { display: flex; align-items: center; gap: 10px; padding: 2px 22px; font-size: 15.5px; font-weight: 600; white-space: nowrap; }
.hero__features li + li { border-inline-start: 1px solid rgba(255, 255, 255, .22); }
.hero__features svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--green); color: var(--navy); flex: none; }
@keyframes rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }

/* ---------- 2. About + numbers ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: center; }
.about__text p { color: var(--muted); font-size: 17.5px; line-height: 1.95; }
.about__text p:last-child { margin-bottom: 0; }
.about__media { margin: 0; position: relative; }
.about__frame { position: relative; z-index: 1; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--paper); aspect-ratio: 438 / 500; }
.about__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__media::before { content: ""; position: absolute; inset: 28px -22px -22px 28px; border-radius: var(--r-lg); border: 2px solid var(--green); }
.about__media::after { content: ""; position: absolute; width: 140px; height: 140px; top: -26px; right: -26px; z-index: 0; background-image: radial-gradient(color-mix(in srgb, var(--navy) 35%, transparent) 2px, transparent 2.5px); background-size: 16px 16px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.stat { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 30px 18px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--green); }
.stat__icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: var(--green-soft); color: var(--green-ink); margin-bottom: 6px; }
.stat__icon svg { width: 30px; height: 30px; }
.stat__value { font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; color: var(--navy); line-height: 1.3; }
.stat__label { font-size: 15px; color: var(--muted); line-height: 1.6; }
.stat:not(:has(.stat__value)) { background: linear-gradient(150deg, var(--navy), var(--navy-deep)); border-color: transparent; }
.stat:not(:has(.stat__value)) .stat__icon { width: 104px; height: 104px; border-radius: 28px; background: rgba(255, 255, 255, .08); color: var(--green); margin: 0; }
.stat:not(:has(.stat__value)) .stat__icon svg { width: 60px; height: 60px; }

/* ---------- 3. Why: one vertical list on a green spine, heading held at the side ---------- */
.why { background: var(--paper); }
.why__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.why__head { position: sticky; top: calc(var(--topbar-h) + 40px); }
.why__head .lead { font-size: 17.5px; line-height: 1.95; }
.why__head::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 26px; border-radius: 4px; background: var(--green); }
.why__list { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 14px; }
.why__list::before { content: ""; position: absolute; top: 28px; bottom: 28px; right: 27px; width: 2px; background: linear-gradient(180deg, var(--green), color-mix(in srgb, var(--green) 25%, transparent)); }
.why-item { position: relative; display: flex; gap: 20px; align-items: flex-start; }
.why-item__icon { position: relative; z-index: 1; flex: none; width: 56px; height: 56px; margin-top: 10px; display: grid; place-items: center; border-radius: 16px; background: var(--green); color: var(--navy); box-shadow: 0 0 0 6px var(--paper); transition: transform .4s var(--ease); }
.why-item__icon svg { width: 27px; height: 27px; }
.why-item__body { flex: 1; min-width: 0; padding: 18px 24px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.why-item:hover .why-item__body { transform: translateX(-6px); box-shadow: var(--shadow); border-color: var(--green); }
.why-item:hover .why-item__icon { transform: scale(1.06); }
.why-item__title { margin: 0 0 4px; font-size: 18.5px; font-weight: 700; color: var(--navy); line-height: 1.55; }
.why-item__text { margin: 0; font-size: 15.5px; color: var(--muted); line-height: 1.85; }

/* ---------- 4. Sectors ---------- */
.sectors__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sector-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.sector-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.sector-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.sector-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sector-card:hover .sector-card__media img { transform: scale(1.07); }
.sector-card__media::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.sector-card:hover .sector-card__media::after { transform: scaleX(1); }
.sector-card__body { padding: 20px 22px 24px; }
.sector-card__title { margin: 0 0 6px; font-size: 19px; font-weight: 700; color: var(--navy); }
.sector-card__text { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.85; }

/* ---------- 5. Study contents + sticky form ---------- */
.contents { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(70px, 8vw, 110px); background: var(--navy); color: #fff; }
.contents::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.contents::after { content: ""; position: absolute; z-index: -1; width: 620px; aspect-ratio: 1; border-radius: 50%; right: -200px; bottom: -260px; background: radial-gradient(circle, color-mix(in srgb, var(--green) 26%, transparent), transparent 62%); }
.contents__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; counter-reset: c; }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 15px 18px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-size: 15.5px; line-height: 1.8; color: rgba(255, 255, 255, .92); transition: background-color .3s, border-color .3s; }
.checks li:hover { background: rgba(255, 255, 255, .09); border-color: color-mix(in srgb, var(--green) 55%, transparent); }
.checks__icon { flex: none; width: 26px; height: 26px; display: grid; place-items: center; margin-top: 2px; border-radius: 50%; background: var(--green); color: var(--navy); }
.checks__icon svg { width: 15px; height: 15px; }
.contents__form { position: sticky; top: calc(var(--topbar-h) + 20px); }
.admin-bar .contents__form { top: calc(var(--topbar-h) + 52px); }
.formcard { position: relative; overflow: hidden; background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 30px 26px 22px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.formcard::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--green), color-mix(in srgb, var(--green) 50%, var(--navy))); }
.formcard__title { margin: 0 0 4px; font-size: 23px; font-weight: 700; color: var(--navy); line-height: 1.5; }
.formcard__text { margin: 0 0 18px; font-size: 15px; color: var(--muted); line-height: 1.7; }
.contents__form.is-flash .formcard { animation: flash 1.1s ease; }
@keyframes flash { 30% { box-shadow: 0 0 0 5px var(--green), 0 40px 80px -40px rgba(0, 0, 0, .6); } }

/* overflow:hidden would stop the form from sticking; clip trims the decorations without that side effect */
@supports (overflow: clip) { .contents { overflow: clip; } }

/* ---------- Forms ---------- */
.lead-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.lead-form--full { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
.lead-form--full .field--wide, .lead-form--full .hp, .lead-form--full .lead-form__submit, .lead-form--full .form__status, .lead-form--full .form__note { grid-column: 1 / -1; }
.field { display: grid; gap: 4px; min-width: 0; }
.control { position: relative; }
.control__icon { position: absolute; top: 50%; right: 13px; transform: translateY(-50%); width: 18px; height: 18px; color: var(--navy); opacity: .6; pointer-events: none; }
.control__icon svg { width: 18px; height: 18px; }
.control--area .control__icon { top: 14px; transform: none; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 40px 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #FAFBFD; color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { min-height: 74px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7A849A; opacity: 1; }
.field input[dir="ltr"]:placeholder-shown { text-align: right; }
.field select { appearance: none; padding-left: 30px; cursor: pointer; text-overflow: ellipsis; 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 d='M1 1l5 5 5-5' fill='none' stroke='%2322386B' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; }
.field select:invalid, .field select option[value=""] { color: #7A849A; }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 40%, transparent); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field__error { margin: 0; font-size: 12.5px; color: var(--error); line-height: 1.5; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__submit { margin-top: 4px; min-height: 54px; font-size: 17px; }
.form__status { margin: 0; font-size: 14px; line-height: 1.6; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); }
.form__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.6; }
.form__note svg { width: 15px; height: 15px; color: var(--green-ink); flex: none; }
.form__done { text-align: center; padding: 18px 0 8px; }
.form__done svg { width: 50px; height: 50px; margin: 0 auto; color: var(--green-ink); }
.form__done p { margin: 10px 0 0; font-weight: 700; color: var(--navy); }
.form__done .btn { margin-top: 14px; }

/* ---------- 6. Logos ---------- */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.logo-tile { display: grid; place-items: center; height: 140px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.logo-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.logo-tile img { max-width: 100%; max-height: 92px; width: auto; height: auto; object-fit: contain; }

/* ---------- 7. Stories ---------- */
.stories { background: var(--paper); }
.stories__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.story { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.story:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.story__media { aspect-ratio: 900 / 525; overflow: hidden; background: var(--navy); }
.story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.story:hover .story__media img { transform: scale(1.05); }
.story__body { padding: 20px 22px 22px; }
.story__type { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--green-ink); margin-bottom: 6px; }
.story__type::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--green); }
.story__title { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--navy); }
.story__text { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.story__text.is-open { display: block; -webkit-line-clamp: unset; }
.story__more { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--navy); font-family: var(--font); font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--green); }

/* ---------- 8. Testimonials: navy band, carousel ---------- */
.testi { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }
.testi::before { content: ""; position: absolute; z-index: -1; width: 640px; aspect-ratio: 1; border-radius: 50%; top: -330px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, color-mix(in srgb, var(--green) 24%, transparent), transparent 62%); }
.carousel { position: relative; }
.carousel__track { --per: 3; --gap: 22px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 2px 22px; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 10px; }
.carousel.is-static .carousel__nav { display: none; }
.carousel__btn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.carousel__btn:hover { background: var(--green); border-color: var(--green); color: var(--navy); }
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__dots { display: flex; gap: 8px; }
.carousel__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .3s var(--ease), background-color .3s; }
.carousel__dots button.is-active { width: 30px; background: var(--green); }
.testi-card { position: relative; overflow: hidden; margin: 0; display: flex; flex-direction: column; gap: 16px; padding: 26px 26px 24px; background: #fff; border-radius: var(--r-md); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .6); transition: transform .35s var(--ease); }
.testi-card:hover { transform: translateY(-5px); }
.testi-card__head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.testi-card__avatar { flex: none; width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; border: 2px solid var(--green); background: var(--green-soft); color: var(--navy); }
.testi-card__avatar svg { width: 26px; height: 26px; }
.testi-card__avatar img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.testi-card__avatar img + svg { display: none; }
.testi-card__name { font-size: 16.5px; color: var(--navy); line-height: 1.5; }
.testi-card__text { position: relative; z-index: 1; margin: 0; flex: 1; font-size: 16px; line-height: 1.95; color: var(--ink); }
.testi-card__mark { position: absolute; left: 18px; bottom: 14px; width: 62px; height: 62px; color: var(--green); opacity: .2; pointer-events: none; }
.testi-card__mark svg { width: 100%; height: 100%; }
.testi-card__letter { position: relative; z-index: 1; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--navy); font-family: var(--font); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.testi-card__letter svg { width: 16px; height: 16px; }
.testi-card__letter:hover { border-color: var(--green); }

/* ---------- 9. Steps ---------- */
.steps-sec { background: var(--paper); }
.steps-sec__pin { position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 31px; right: 10%; left: 10%; height: 3px; border-radius: 3px; background: linear-gradient(270deg, var(--green), color-mix(in srgb, var(--green) 30%, var(--line))); }
.step { position: relative; text-align: center; padding: 0 6px; }
.step__num { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 22px; font-weight: 700; box-shadow: 0 0 0 8px var(--paper), 0 0 0 10px color-mix(in srgb, var(--green) 60%, transparent); transition: background-color .3s, color .3s; }
.step:hover .step__num { background: var(--green); color: var(--navy); }
.step__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--navy); }
.step__text { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.8; }

/* Scroll-driven steps: a grey track, a green fill (--p from 0 to 1) and steps that switch on in turn */
.steps-sec.is-anim .steps::before { background: var(--line); }
.steps-sec.is-anim .steps::after { content: ""; position: absolute; top: 31px; right: 10%; left: 10%; height: 3px; border-radius: 3px; background: var(--green); transform-origin: right; transform: scaleX(var(--p, 0)); transition: transform .12s linear; }
.steps-sec.is-anim .step { opacity: .3; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.steps-sec.is-anim .step.is-on { opacity: 1; transform: none; }
.steps-sec.is-anim .step__num { background: #fff; color: var(--muted); box-shadow: 0 0 0 8px var(--paper), inset 0 0 0 2px var(--line); }
.steps-sec.is-anim .step.is-on .step__num { background: var(--navy); color: #fff; box-shadow: 0 0 0 8px var(--paper), 0 0 0 10px color-mix(in srgb, var(--green) 60%, transparent); }
.steps-sec.is-anim .step.is-current .step__num { background: var(--green); color: var(--navy); animation: step-pulse 1.6s ease-in-out infinite; }
@keyframes step-pulse { 50% { box-shadow: 0 0 0 8px var(--paper), 0 0 0 16px color-mix(in srgb, var(--green) 35%, transparent); } }
.steps-sec.is-pinned { height: 260vh; }
.steps-sec.is-pinned .steps-sec__pin { position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); display: flex; align-items: center; padding-block: 0; }
.steps-sec.is-pinned .steps-sec__pin > .wrap { width: min(var(--wrap), calc(100% - var(--gutter))); }
.admin-bar .steps-sec.is-pinned .steps-sec__pin { top: calc(var(--topbar-h) + 32px); height: calc(100vh - var(--topbar-h) - 32px); }

/* ---------- 10. FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.faq__head { position: sticky; top: calc(var(--topbar-h) + 32px); }
.faq__links { margin-top: 26px; padding: 22px 22px 16px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }
.faq__links-title { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--navy); }
.faq__links ul { list-style: none; margin: 0; padding: 0; }
.faq__links a { display: flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 600; border-bottom: 1px dashed var(--line); }
.faq__links li:last-child a { border-bottom: 0; }
.faq__links a svg { width: 16px; height: 16px; color: var(--green-ink); flex: none; }
.faq__links a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.faq__list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border-color .3s, box-shadow .3s; }
.faq-item[open] { border-color: var(--green); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__q { margin: 0; font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.faq-item__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft); transition: background-color .3s, transform .35s var(--ease); }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--navy); transform: translate(-50%, -50%); }
.faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.faq-item[open] .faq-item__icon { background: var(--green); transform: rotate(180deg); }
.faq-item[open] .faq-item__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item__a { padding: 0 22px 20px; }
.faq-item__a p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.faq-item[open] .faq-item__a { animation: fade-down .35s var(--ease); }
@keyframes fade-down { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }

/* ---------- 11. Final call + contact ---------- */
.final { padding: 20px 0 clamp(70px, 8vw, 104px); }
.final__band { position: relative; isolation: isolate; overflow: hidden; text-align: center; color: #fff; background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%); border-radius: 36px; padding: clamp(48px, 6vw, 80px) clamp(22px, 5vw, 64px); }
.final__band::before { content: ""; position: absolute; z-index: -1; width: 560px; aspect-ratio: 1; border-radius: 50%; top: -300px; right: -120px; background: radial-gradient(circle, color-mix(in srgb, var(--green) 30%, transparent), transparent 62%); }
.final__band::after { content: ""; position: absolute; z-index: -1; width: 420px; aspect-ratio: 1; border-radius: 50%; bottom: -260px; left: -100px; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 50px rgba(255, 255, 255, .025), 0 0 0 100px rgba(255, 255, 255, .02); }
.final__band .h2 { max-width: 880px; margin-inline: auto; }
.final__text { max-width: 720px; margin: 0 auto 30px; font-size: 18px; color: rgba(255, 255, 255, .86); }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.contact-list__icon { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--navy); }
.contact-list__icon svg { width: 22px; height: 22px; }
.contact-list__label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.contact-list a, .contact-list li span:not(.contact-list__label):not(.contact-list__icon) { display: block; color: var(--navy); font-weight: 700; font-size: 16px; text-decoration: none; }
.contact-list a[dir="ltr"] { text-align: right; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--green); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .78); padding: 26px 0; font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__brand img { height: 46px; width: auto; }
.footer p { margin: 0; }
.footer a { color: #fff; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; z-index: 45; left: 20px; bottom: 20px; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Dialogs ---------- */
.modal { border: 0; padding: 0; width: min(470px, calc(100% - 28px)); max-height: calc(100% - 28px); border-radius: var(--r-lg); background: #fff; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.modal::backdrop { background: rgba(16, 26, 52, .7); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .3s var(--ease); }
@keyframes modal-in { from { opacity: 0; translate: 0 16px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
.modal__body { position: relative; padding: 34px 28px 24px; }
.modal__close { position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.modal__close svg { width: 18px; height: 18px; }
.modal__badge { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; margin-bottom: 14px; background: var(--green); color: var(--navy); }
.modal__badge svg { width: 28px; height: 28px; }
.modal__title { font-size: 22px; font-weight: 700; line-height: 1.5; margin: 0 0 6px; padding-inline-end: 36px; color: var(--navy); }
.modal__text { font-size: 15px; color: var(--muted); margin: 0 0 18px; line-height: 1.8; }
.modal--letter { width: min(760px, calc(100% - 28px)); }
.modal--letter .modal__body { padding: 52px 18px 18px; }
.letter__img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); }
.exit-test-badge { position: fixed; z-index: 90; top: 10px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); background: #FFF4CC; color: #5A4300; border: 1px solid #E8C85A; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; text-align: center; }

/* ---------- Simple pages ---------- */
.page { padding: 56px 0 80px; }
.page__inner { max-width: 780px; }
.page__title { font-size: clamp(26px, 3vw, 36px); font-weight: 700; color: var(--navy); line-height: 1.5; margin: 0 0 24px; }
.page__content h2 { font-size: 20px; color: var(--navy); margin: 32px 0 10px; }
.thanks { padding: 80px 0 96px; text-align: center; background: linear-gradient(180deg, #fff, var(--paper)); }
.thanks__inner { max-width: 640px; }
.thanks__icon { display: inline-grid; place-items: center; width: 82px; height: 82px; border-radius: 50%; background: var(--green); color: var(--navy); margin-bottom: 20px; animation: pop .6s var(--ease) both; }
.thanks__icon svg { width: 40px; height: 40px; }
@keyframes pop { from { scale: .5; opacity: 0; } to { scale: 1; opacity: 1; } }
.thanks__title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; color: var(--navy); line-height: 1.5; margin: 0 0 14px; }
.thanks__text { font-size: 18px; color: var(--muted); }
.thanks__file { margin: 26px 0 0; }
.thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.thanks__count { margin: 26px 0 10px; font-size: 15px; color: var(--muted); }
.thanks__count span { font-weight: 700; color: var(--navy); }
.thanks__bar { width: min(320px, 80%); height: 6px; margin: 0 auto; border-radius: 6px; background: var(--line); overflow: hidden; }
.thanks__bar span { display: block; height: 100%; background: var(--green); transform-origin: right; animation: bar-shrink linear forwards; }
@keyframes bar-shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- Scroll reveal ---------- */
.js-reveal [data-reveal] { opacity: 0; }
.js-reveal [data-reveal].is-in { animation: reveal-up .85s var(--ease) both; animation-delay: calc(min(var(--d, 0), 6) * 80ms); }
@keyframes reveal-up { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero__features { grid-template-columns: repeat(2, auto); border-radius: 26px; row-gap: 10px; }
  .hero__features li:nth-child(3) { border-inline-start: 0; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 1024px) {
  .about__grid, .contents__grid, .faq__grid, .why__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .why__head { position: static; }
  .carousel__track { --per: 2; }
  .about__media { max-width: 460px; width: 100%; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sectors__grid, .stories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contents__form, .faq__head { position: static; }
  .contents__form { max-width: 620px; width: 100%; margin-inline: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps::before { top: 32px; bottom: 32px; right: 31px; left: auto; width: 3px; height: auto; background: linear-gradient(180deg, var(--green), color-mix(in srgb, var(--green) 30%, var(--line))); }
  .step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; text-align: start; padding: 0 0 26px; }
  .step__num { grid-row: span 2; margin: 0; }
  .step__title { align-self: end; margin-top: 8px; }
  .steps-sec.is-anim .steps::after { top: 32px; bottom: 32px; right: 31px; left: auto; width: 3px; height: auto; transform-origin: top; transform: scaleY(var(--p, 0)); }
  .steps-sec.is-anim .step { transform: translateX(-14px); }
}
@media (max-width: 782px) { .admin-bar .topbar { top: 46px; } }
@media (max-width: 760px) {
  :root { --gutter: 32px; --topbar-h: 66px; }
  body { font-size: 16px; }
  .topbar__brand img, .topbar__brand .custom-logo { height: 44px; max-width: 140px; }
  .topbar__phone span { display: none; }
  .topbar__cta-long { display: none; }
  .topbar__cta-short { display: inline; }
  .btn--sm { padding: 0 16px; }
  .hero { min-height: 0; padding: 64px 0 54px; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__features { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; padding: 12px 6px; }
  .hero__features li { white-space: normal; padding: 4px 10px; font-size: 14px; }
  .hero__features li + li { border-inline-start: 0; }
  .checks, .sectors__grid, .stories__grid { grid-template-columns: minmax(0, 1fr); }
  .why-item { gap: 14px; }
  .why-item__icon { width: 48px; height: 48px; border-radius: 14px; }
  .why__list::before { right: 23px; }
  .why-item__body { padding: 16px 18px; }
  .carousel__track { --per: 1.12; --gap: 14px; }
  .testi-card { padding: 22px 20px 20px; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .logo-tile { height: 112px; }
  .stats { gap: 12px; margin-top: 44px; }
  .stat { padding: 22px 12px 18px; }
  .lead-form--full { grid-template-columns: minmax(0, 1fr); }
  .formcard { padding: 26px 18px 18px; }
  .final__band { border-radius: 26px; }
  .final__actions { flex-direction: column; align-items: stretch; }
  .footer__inner { flex-direction: column; text-align: center; }
  .wa-float { width: 54px; height: 54px; left: 14px; bottom: 14px; }
}
@media (max-width: 600px) { .admin-bar .topbar { top: 0; } }
/* ---------- Desktop: the request form is a fixed full-height panel beside the whole page ---------- */
@media (min-width: 1100px) and (min-height: 620px) {
  :root { --panel-w: 360px; }
  body.is-landing { padding-left: var(--panel-w); }
  .is-landing .contents__grid { grid-template-columns: minmax(0, 1fr); }
  .is-landing .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
  .is-landing .contents__form { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: var(--panel-w); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); box-shadow: 10px 0 40px -20px rgba(0, 0, 0, .45); }
  .admin-bar.is-landing .contents__form { top: 32px; }
  .is-landing .contents__form .formcard { min-height: 100%; display: flex; flex-direction: column; justify-content: center; background: transparent; color: #fff; border-radius: 0; box-shadow: none; padding: 30px 24px 24px; }
  .is-landing .contents__form .formcard::before { height: 5px; }
  .is-landing .contents__form .formcard__title { color: #fff; font-size: 21px; }
  .is-landing .contents__form .formcard__title::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 10px; border-radius: 4px; background: var(--green); }
  .is-landing .contents__form .formcard__text { color: rgba(255, 255, 255, .75); font-size: 14.5px; }
  .is-landing .contents__form .lead-form--full { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .is-landing .contents__form .field input, .is-landing .contents__form .field select { min-height: 45px; background-color: #fff; border-color: transparent; }
  .is-landing .contents__form .field textarea { min-height: 62px; background: #fff; border-color: transparent; }
  .is-landing .contents__form .field__error, .is-landing .contents__form .form__status.is-error { color: #FFC9C2; }
  .is-landing .contents__form .form__note { color: rgba(255, 255, 255, .65); }
  .is-landing .contents__form .form__note svg { color: var(--green); }
  .is-landing .contents__form .form__done svg { color: var(--green); }
  .is-landing .contents__form .form__done p { color: #fff; }
  .is-landing .contents__form.is-flash { animation: panel-flash 1s ease; }
  .is-landing .contents__form.is-flash .formcard { animation: none; }
  @keyframes panel-flash { 30% { box-shadow: inset 0 0 0 4px var(--green), 10px 0 40px -20px rgba(0, 0, 0, .45); } }
  .is-landing .wa-float { left: calc(var(--panel-w) + 20px); }
}
@media (min-width: 1100px) and (min-height: 620px) and (max-height: 780px) {
  .is-landing .contents__form .formcard { padding: 20px 22px 14px; }
  .is-landing .contents__form .formcard__text { margin-bottom: 12px; }
  .is-landing .contents__form .lead-form--full { gap: 7px; }
  .is-landing .contents__form .field input, .is-landing .contents__form .field select { min-height: 42px; padding-block: 8px; }
  .is-landing .contents__form .field textarea { min-height: 52px; }
  .is-landing .contents__form .lead-form__submit { min-height: 48px; }
}
@media (min-width: 1100px) and (max-width: 1280px) and (min-height: 620px) {
  .is-landing .hero__features { grid-template-columns: repeat(2, auto); border-radius: 26px; row-gap: 10px; }
  .is-landing .hero__features li:nth-child(3) { border-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-reveal [data-reveal] { opacity: 1; }
}
