/* =========================================================
   Citamática — Design System
   Theme: "Tropical Trust" — deep ocean blue + tropical green + warm coral.
   (Variable names kept as --emerald-* for code reuse; values are the
    Costa Rica palette — primary is ocean blue, accent is coral.)
   ========================================================= */

:root {
  /* Brand palette — ocean blue primary */
  --emerald-900: #06314A;
  --emerald-800: #084469;
  --emerald-700: #0A5C8A;   /* primary (ocean blue) */
  --emerald-600: #0E7CB0;
  --emerald-500: #13A4C9;   /* bright accent (turquoise) */
  --emerald-100: #D2EEF6;
  --emerald-050: #E9F7FB;

  /* coral accent (replaces gold) */
  --gold-600: #E2603B;
  --gold-500: #FF7A59;      /* warm coral accent */
  --gold-300: #FFC2B0;

  --ink-900: #0A2230;       /* near-black navy */
  --ink-700: #163445;
  --ink-500: #3C5666;
  --ink-300: #6E8493;

  --bg: #F4FAFC;
  --surface: #FFFFFF;
  --surface-2: #EAF4F8;
  --line: #DEEAF0;
  --white: #FFFFFF;

  /* Typography */
  --font-ar: 'Plus Jakarta Sans', system-ui, sans-serif; /* body */
  --font-en: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font: var(--font-en);
  --font-display: 'Sora', system-ui, sans-serif;          /* headings */

  /* Shape & depth */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(10, 34, 48, .06);
  --shadow: 0 12px 36px rgba(10, 34, 48, .10);
  --shadow-lg: 0 28px 70px rgba(10, 34, 48, .16);
  --shadow-emerald: 0 18px 44px rgba(10, 92, 138, .30);

  --container: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--ink-700);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.container--narrow { max-width: 820px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--surface-2); }
.section--dark { background: linear-gradient(160deg, var(--emerald-900), var(--ink-900)); color: #DCEDE8; }
.section--dark .eyebrow { color: var(--gold-300); }
.section--dark h2 { color: #fff; }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Typography ---------- */
h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 5.2vw, 3.7rem); font-weight: 800; line-height: 1.12; color: var(--ink-900); letter-spacing: -.02em; }
h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 800; line-height: 1.18; color: var(--ink-900); letter-spacing: -.02em; }
h3 { font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; color: var(--ink-900); }
.eyebrow { display: inline-block; font-weight: 700; font-size: .9rem; letter-spacing: .04em; color: var(--emerald-700); text-transform: uppercase; margin-bottom: 14px; }
.muted { color: var(--ink-300); }

.section__head { max-width: 760px; margin: 0 auto clamp(38px, 6vw, 64px); text-align: center; }
.section__head p { margin-top: 16px; font-size: 1.08rem; color: var(--ink-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), background .22s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); transition-duration: .1s; }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--full { width: 100%; }
.btn--primary { background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700)); color: #fff; box-shadow: var(--shadow-emerald); }
.btn--ghost { background: var(--surface); color: var(--emerald-700); border: 1.5px solid var(--line); }
.btn--whatsapp { background: #25D366; color: #fff; box-shadow: 0 14px 34px rgba(37,211,102,.34); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { transform: translateY(-3px); box-shadow: 0 24px 54px rgba(11,122,107,.40); }
  .btn--ghost:hover { border-color: var(--emerald-500); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
  .btn--whatsapp:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(37,211,102,.45); }
}
.btn--whatsapp::before { content: "💬"; }

/* ---------- Scroll progress bar ---------- */
.scrollbar { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--emerald-500), var(--gold-500)); z-index: 200; }
html[dir="rtl"] .scrollbar { transform-origin: 100% 50%; }

/* ---------- Topbar ---------- */
.topbar { background: var(--emerald-900); color: var(--emerald-100); text-align: center; font-size: .9rem; font-weight: 500; padding: 9px 16px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(245,250,248,.82); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s; }
.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(255,255,255,.9); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.brand__mark { display: grid; place-items: center; filter: drop-shadow(0 6px 14px rgba(11,122,107,.35)); }
.brand__text { font-family: var(--font-display); font-weight: 800; font-size: 1.42rem; color: var(--ink-900); letter-spacing: -.02em; }
.brand__accent { color: var(--emerald-700); }
.nav__links { display: flex; gap: 28px; }
.nav__links a { font-weight: 600; color: var(--ink-500); transition: color .2s; position: relative; }
.nav__links a:hover { color: var(--emerald-700); }
.nav__links a::after { content: ""; position: absolute; bottom: -6px; inset-inline-start: 0; width: 0; height: 2px; background: var(--emerald-500); transition: width .25s var(--ease); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.langbtn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; color: var(--ink-700); background: var(--surface); transition: border-color .18s var(--ease-out), color .18s var(--ease-out), transform .12s var(--ease-out); }
.langbtn:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .langbtn:hover { border-color: var(--emerald-500); color: var(--emerald-700); } }
.burger { display: none; flex-direction: column; gap: 5px; padding: 9px; border-radius: 10px; transition: background .2s; }
.burger:hover { background: var(--surface-2); }
.burger span { width: 24px; height: 2.5px; background: var(--ink-700); border-radius: 2px; transition: transform .3s var(--ease), opacity .25s; transform-origin: center; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav__scrim { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(60px, 9vw, 110px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 8%, rgba(18,165,148,.18), transparent 60%),
    radial-gradient(50% 50% at 8% 30%, rgba(201,162,75,.14), transparent 60%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--emerald-050); color: var(--emerald-700); border: 1px solid var(--emerald-100); border-radius: 999px; font-weight: 700; font-size: .9rem; margin-bottom: 22px; }
.hero__sub { margin: 22px 0 30px; font-size: 1.14rem; color: var(--ink-500); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { display: flex; gap: 30px; margin-top: 38px; flex-wrap: wrap; }
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong { font-size: 1.6rem; font-weight: 900; color: var(--emerald-700); }
.hero__trust span { font-size: .9rem; color: var(--ink-300); }

/* Phone mockup */
.hero__phone { position: relative; display: grid; place-items: center; }
.phone { position: relative; width: 300px; height: 600px; background: #0b1a16; border-radius: 44px; padding: 12px; box-shadow: var(--shadow-lg); border: 1px solid #14342c; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }
.phone__notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 130px; height: 24px; background: #0b1a16; border-radius: 0 0 16px 16px; z-index: 3; }
.phone__screen { height: 100%; border-radius: 34px; overflow: hidden; background: #ECE5DD; display: flex; flex-direction: column; }
.wa__head { display: flex; align-items: center; gap: 10px; background: var(--emerald-700); color: #fff; padding: 34px 14px 12px; }
.wa__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-500); color: #fff; display: grid; place-items: center; font-weight: 900; }
.wa__meta { display: flex; flex-direction: column; line-height: 1.3; }
.wa__meta strong { font-size: .95rem; }
.wa__online { font-size: .72rem; opacity: .85; }
.wa__body { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  background:
    linear-gradient(rgba(236,229,221,.92), rgba(236,229,221,.92)),
    repeating-linear-gradient(45deg, #d9d0c5 0 2px, transparent 2px 22px); }
.bubble { max-width: 80%; padding: 9px 13px; border-radius: 14px; font-size: .86rem; line-height: 1.5; box-shadow: 0 1px 1px rgba(0,0,0,.08); opacity: 0; transform: translateY(10px) scale(.96); animation: pop .45s var(--ease) forwards; }
.bubble--in { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.bubble--out { align-self: flex-end; background: #DCF8C6; border-top-right-radius: 4px; }
html[dir="rtl"] .bubble--in { border-top-left-radius: 14px; border-top-right-radius: 4px; }
html[dir="rtl"] .bubble--out { border-top-right-radius: 14px; border-top-left-radius: 4px; }
.bubble small { display: block; text-align: end; font-size: .62rem; color: #8a8a8a; margin-top: 2px; }
.bubble--typing { display: inline-flex; gap: 4px; align-self: flex-start; background: #fff; padding: 12px 14px; }
.bubble--typing i { width: 7px; height: 7px; border-radius: 50%; background: #aab; animation: blink 1.2s infinite; }
.bubble--typing i:nth-child(2){ animation-delay: .2s; } .bubble--typing i:nth-child(3){ animation-delay: .4s; }
@keyframes pop { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes blink { 0%,60%,100%{ opacity:.3; transform: translateY(0);} 30%{ opacity:1; transform: translateY(-3px);} }

.hero__badge { position: absolute; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px; padding: 10px 16px; font-weight: 800; font-size: .9rem; color: var(--emerald-700); }
.hero__badge--1 { top: 14%; inset-inline-start: -6%; animation: float 5s ease-in-out infinite .5s; }
.hero__badge--2 { bottom: 16%; inset-inline-end: -4%; color: var(--gold-600); animation: float 5.5s ease-in-out infinite .2s; }

/* ---------- Strip ---------- */
.strip { background: var(--emerald-900); color: var(--emerald-100); padding: 22px 0; }
.strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.strip__label { font-weight: 600; opacity: .85; }
.strip__items { display: flex; gap: 26px; flex-wrap: wrap; font-weight: 700; }

/* ---------- Cards / features ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-6px); box-shadow: var(--shadow); } }
.feature__icon { width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.7rem; background: var(--emerald-050); border-radius: var(--r); margin-bottom: 18px; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--ink-500); }
.feature { position: relative; }
.feature--hero { background: linear-gradient(165deg, var(--emerald-900), var(--ink-900)); border-color: transparent; }
.feature--hero h3 { color: #fff; }
.feature--hero p { color: #C2DCD5; }
.feature--hero .feature__icon { background: rgba(255,255,255,.10); }
.feature__badge { position: absolute; top: 16px; inset-inline-end: 16px; background: var(--gold-500); color: #fff; font-size: .72rem; font-weight: 800; padding: 4px 11px; border-radius: 999px; letter-spacing: .03em; }

/* Stats */
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; text-align: center; box-shadow: var(--shadow-sm); }
.stat__num { font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 900; color: var(--emerald-700); line-height: 1; margin-bottom: 12px; }
.stat p { color: var(--ink-500); font-size: .98rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 24px; box-shadow: var(--shadow-sm); }
.step__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700)); color: #fff; font-weight: 900; font-size: 1.1rem; margin-bottom: 16px; box-shadow: var(--shadow-emerald); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-500); font-size: .96rem; }

/* Why (dark) */
.why { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: var(--r-lg); padding: 28px; transition: transform .3s var(--ease-out), background .3s; }
@media (hover: hover) and (pointer: fine) { .why:hover { transform: translateY(-6px); background: rgba(255,255,255,.07); } }
.why h3 { color: #fff; margin-bottom: 10px; }
.why p { color: #B9D4CD; font-size: .98rem; }

/* Results */
.results { background: var(--surface); }
.result { text-align: center; padding: 20px; }
.result__num { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 900; color: var(--gold-600); line-height: 1; margin-bottom: 12px; }
.result p { color: var(--ink-500); max-width: 280px; margin-inline: auto; }

/* Guarantee banner */
.guarantee { display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 26px auto 0; padding: 18px 24px; background: var(--emerald-050); border: 1.5px solid var(--emerald-100); border-radius: var(--r-lg); text-align: start; }
.guarantee__icon { font-size: 1.8rem; flex-shrink: 0; }
.guarantee span:last-child { color: var(--emerald-800); font-weight: 600; font-size: 1rem; line-height: 1.6; }

/* Pricing */
.pricing { align-items: stretch; }
.price { display: flex; flex-direction: column; position: relative; }
.price h3 { font-size: 1.1rem; color: var(--ink-300); text-transform: uppercase; letter-spacing: .04em; }
.price__amt { font-size: 2.6rem; font-weight: 900; color: var(--ink-900); margin: 12px 0 4px; }
.price__cur { font-size: 1rem; font-weight: 700; color: var(--ink-300); vertical-align: super; }
.price__per { font-size: 1rem; font-weight: 600; color: var(--ink-300); }
.price__setup { color: var(--emerald-700); font-weight: 700; font-size: .92rem; margin-bottom: 20px; }
.price ul { display: grid; gap: 12px; margin-bottom: 26px; flex: 1; }
.price ul li { position: relative; padding-inline-start: 28px; color: var(--ink-500); }
.price ul li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--emerald-500); font-weight: 900; }
.price--featured { border-color: var(--emerald-500); box-shadow: var(--shadow); transform: translateY(-10px); background: linear-gradient(180deg, #fff, var(--emerald-050)); }
@media (hover: hover) and (pointer: fine) { .price--featured:hover { transform: translateY(-16px); } }
.price__tag { position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--gold-500); color: #fff; padding: 5px 16px; border-radius: 999px; font-size: .8rem; font-weight: 800; white-space: nowrap; }
html[dir="rtl"] .price__tag { transform: translateX(50%); }

/* Quotes */
.quote p { font-size: 1.04rem; color: var(--ink-700); margin-bottom: 18px; }
.quote footer { display: flex; flex-direction: column; }
.quote footer strong { color: var(--ink-900); }
.quote footer span { color: var(--ink-300); font-size: .9rem; }

/* FAQ */
.faq { display: grid; gap: 14px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 22px; box-shadow: var(--shadow-sm); }
.faq__item summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--ink-900); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; color: var(--emerald-700); transition: transform .22s var(--ease-out); line-height: 1; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--ink-500); padding-bottom: 20px; }

/* CTA / form */
.cta { background: linear-gradient(160deg, var(--emerald-050), var(--surface-2)); }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta__copy p { color: var(--ink-500); font-size: 1.06rem; margin: 16px 0 24px; }
.cta__assure { display: flex; gap: 22px; margin-top: 18px; flex-wrap: wrap; color: var(--emerald-700); font-weight: 700; font-size: .95rem; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9rem; color: var(--ink-700); }
.field input, .field textarea { padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink-900); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--emerald-500); box-shadow: 0 0 0 4px var(--emerald-050); }
.field input.invalid, .field textarea.invalid { border-color: #e05656; box-shadow: 0 0 0 4px #fdeaea; }
.form .btn--full { grid-column: 1 / -1; margin-top: 4px; }
.form__note { grid-column: 1 / -1; font-size: .82rem; color: var(--ink-300); text-align: center; }
.form__success { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; background: var(--emerald-050); border: 1px solid var(--emerald-100); border-radius: var(--r); padding: 18px; text-align: center; color: var(--emerald-800); }
.form__success strong { font-size: 1.05rem; }

/* Footer */
.footer { background: var(--ink-900); color: #B9D4CD; padding: 56px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand { max-width: 360px; }
.brand--footer .brand__text { color: #fff; }
.footer__brand p { margin-top: 12px; font-size: .96rem; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer__links a:hover { color: var(--gold-300); }
.footer__bottom { padding-top: 22px; font-size: .88rem; opacity: .7; }

/* Floating WhatsApp */
.fab { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 14px 32px rgba(37,211,102,.45); animation: pulse 2.4s infinite; transition: transform .2s var(--ease-out); }
.fab:active { transform: scale(0.94); transition-duration: .1s; }
@media (hover: hover) and (pointer: fine) { .fab:hover { transform: scale(1.08); } }
@keyframes pulse { 0%{ box-shadow: 0 14px 32px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5);} 70%{ box-shadow: 0 14px 32px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0);} 100%{ box-shadow: 0 14px 32px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0);} }

/* ---------- Live Demo ---------- */
.demo { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
.demo__phone { display: grid; place-items: center; }
.phone--demo { animation: none; }
.phone--demo .phone__screen { height: 100%; }
.wa__body--demo { gap: 9px; }
.demo__hint { font-weight: 700; color: var(--ink-700); margin-bottom: 14px; }
.demo__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.chip { padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-700); font-weight: 600; font-size: .92rem; cursor: pointer; transition: border-color .18s var(--ease-out), color .18s var(--ease-out), transform .18s var(--ease-out), box-shadow .18s var(--ease-out); }
.chip:active { transform: scale(0.96); transition-duration: .1s; }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--emerald-500); color: var(--emerald-700); transform: translateY(-2px); box-shadow: var(--shadow-sm); } }
.chip:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.demo__foot { color: var(--ink-300); font-size: .95rem; margin-bottom: 20px; max-width: 460px; }

/* ---------- Case studies ---------- */
.case { display: flex; flex-direction: column; }
.case__tag { display: inline-block; align-self: flex-start; background: var(--emerald-050); color: var(--emerald-700); border: 1px solid var(--emerald-100); padding: 5px 13px; border-radius: 999px; font-size: .82rem; font-weight: 700; margin-bottom: 16px; }
.case h3 { font-size: 1.12rem; line-height: 1.45; margin-bottom: 16px; }
.case__list { display: grid; gap: 10px; margin-bottom: 22px; flex: 1; }
.case__list li { font-size: .95rem; color: var(--ink-500); line-height: 1.6; }
.case__list strong { color: var(--ink-900); }
.case__result { display: flex; align-items: baseline; gap: 12px; padding-top: 18px; border-top: 1px dashed var(--line); }
.case__result strong { font-size: 2.1rem; font-weight: 900; color: var(--gold-600); line-height: 1; }
.case__result span { color: var(--ink-500); font-size: .9rem; }

/* ---------- Testimonials (rich) ---------- */
.tgrid { align-items: start; }
.quote { display: flex; flex-direction: column; }
.quote__stars { color: var(--gold-500); letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 14px; }
.quote p { font-size: 1.02rem; line-height: 1.85; color: var(--ink-700); margin-bottom: 22px; flex: 1; }
.quote footer { display: flex; align-items: center; gap: 13px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote__av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700)); flex-shrink: 0; }
.quote__who { display: flex; flex-direction: column; line-height: 1.4; }
.quote__who strong { color: var(--ink-900); }
.quote__who span { color: var(--ink-300); font-size: .85rem; }

/* ---------- About / Team ---------- */
.about { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.about__copy p { color: var(--ink-500); font-size: 1.06rem; margin: 16px 0 26px; }
.about__values { display: grid; gap: 16px; }
.about__value { display: flex; flex-direction: column; gap: 2px; }
.about__value strong { color: var(--ink-900); font-size: 1.02rem; }
.about__value span { color: var(--ink-500); font-size: .96rem; }
.about__card { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: linear-gradient(160deg, var(--emerald-900), var(--ink-900)); border: none; }
.about__stat { text-align: center; padding: 18px 10px; }
.about__stat strong { display: block; font-size: 1.9rem; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 8px; }
.about__stat span { color: #9FC3BB; font-size: .85rem; }

/* ---------- Blog ---------- */
.post { display: flex; flex-direction: column; text-decoration: none; }
.post__img { height: 130px; border-radius: var(--r); display: grid; place-items: center; font-size: 3rem; margin-bottom: 18px; }
.post__img--1 { background: linear-gradient(135deg, #DDF3EE, #BFE9DF); }
.post__img--2 { background: linear-gradient(135deg, #E7F7E1, #C9EFC0); }
.post__img--3 { background: linear-gradient(135deg, #FBF0D8, #F3E0B0); }
.post__cat { display: inline-block; align-self: flex-start; color: var(--emerald-700); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.post h3 { font-size: 1.12rem; line-height: 1.5; margin-bottom: 16px; flex: 1; }
.post__more { color: var(--emerald-700); font-weight: 700; font-size: .95rem; }
.post:hover .post__more { text-decoration: underline; }

/* ---------- Article (blog post pages) ---------- */
.article { max-width: 760px; margin-inline: auto; padding: clamp(40px, 7vw, 80px) 0; }
.article__cat { color: var(--emerald-700); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .82rem; }
.article h1 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); margin: 14px 0 18px; }
.article__meta { color: var(--ink-300); font-size: .92rem; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.article p { color: var(--ink-700); font-size: 1.08rem; line-height: 1.9; margin-bottom: 20px; }
.article h2 { font-size: 1.5rem; margin: 36px 0 14px; }
.article ul { display: grid; gap: 12px; margin: 0 0 22px; padding-inline-start: 4px; }
.article ul li { position: relative; padding-inline-start: 28px; color: var(--ink-700); line-height: 1.8; }
.article ul li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--emerald-500); font-weight: 900; }
.article__cta { background: var(--emerald-050); border: 1px solid var(--emerald-100); border-radius: var(--r-lg); padding: 30px; text-align: center; margin-top: 40px; }
.article__cta h3 { margin-bottom: 14px; }
.article__back { display: inline-flex; gap: 6px; color: var(--ink-300); font-weight: 600; margin-bottom: 24px; }
.article__back:hover { color: var(--emerald-700); }

/* ---------- Before / After (scroll-scrubbed comparison) ---------- */
.ba { position: relative; background: linear-gradient(180deg, var(--surface-2), var(--bg)); }
/* tall scroll track on desktop so the sticky stage has room to scrub */
@media (min-width: 761px) { .ba { height: 200vh; } }
.ba__sticky { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 60px 0; }
.ba__inner { width: 100%; }
.ba__head { text-align: center; margin-bottom: clamp(28px, 5vw, 52px); }
.ba__title { font-size: clamp(1.7rem, 4.2vw, 2.8rem); line-height: 1.2; }
.ba__word { display: inline-block; transition: color .3s, opacity .3s; }
.ba__word--before { color: var(--ink-300); }
.ba__word--after { color: var(--emerald-700); }
.ba__stage { display: flex; align-items: stretch; justify-content: center; gap: clamp(16px, 4vw, 48px); }
.ba__phone { flex: 0 0 auto; will-change: transform, opacity, filter; display: flex; }
.phone--ba { width: min(270px, 78vw); height: auto; aspect-ratio: 1 / 2; animation: none; }
.ba__arrow { color: var(--emerald-500); flex-shrink: 0; align-self: center; }
html[dir="rtl"] .ba__arrow svg { transform: scaleX(-1); }
.wa__head--muted { background: #8aa39c; }
.wa__avatar--muted { background: #6f8a83; }
.wa__online--off { opacity: .8; }
.ba__body { gap: 9px; }
.ba__nowreply { margin-top: auto; align-self: center; background: #fde2e2; color: #b3261e; font-weight: 700; font-size: .78rem; padding: 8px 12px; border-radius: 10px; text-align: center; }
.ba__booked { margin-top: auto; align-self: center; background: var(--emerald-050); color: var(--emerald-800); font-weight: 800; font-size: .8rem; padding: 8px 12px; border-radius: 10px; text-align: center; }
.ba__phone--after { opacity: 1; } /* JS adds emphasis; both always visible */

@media (max-width: 760px) {
  .ba { height: auto; }
  .ba__sticky { position: static; min-height: 0; height: auto; padding: 56px 0; }
  .ba__stage { flex-direction: column; align-items: center; gap: 16px; }
  .ba__arrow svg { transform: rotate(90deg) !important; }
  .phone--ba { width: min(280px, 80vw); }
}

/* ---------- Scroll-pinned solution intro ---------- */
.feature--hero { will-change: transform; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
/* When Motion is active it animates section-heading children directly, so the
   heading container itself must not stay hidden by the [data-reveal] base rule. */
html.has-motion .section__head[data-reveal] { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__phone { order: -1; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta__grid { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; gap: 36px; }
  .about { grid-template-columns: 1fr; gap: 36px; }
}

/* ===== Mobile navigation (≤ 900px) ===== */
@media (max-width: 900px) {
  .burger { display: flex; }
  .brand { flex-shrink: 0; }
  .brand__text { white-space: nowrap; }
  .brand__text { font-size: 1.3rem; }

  /* Anchored dropdown panel — sits exactly below the header bar */
  .nav__links {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    padding: 8px 20px 16px;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }
  .nav__links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__links a {
    padding: 16px 4px;
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--ink-700);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), color .2s;
  }
  .nav__links a:last-child { border-bottom: none; }
  .nav__links a::after { display: none; }
  /* staggered reveal of each link when the menu opens */
  .nav__links.open a { opacity: 1; transform: translateY(0); }
  .nav__links.open a:nth-child(1) { transition-delay: .05s; }
  .nav__links.open a:nth-child(2) { transition-delay: .10s; }
  .nav__links.open a:nth-child(3) { transition-delay: .15s; }
  .nav__links.open a:nth-child(4) { transition-delay: .20s; }
  .nav__links.open a:nth-child(5) { transition-delay: .25s; }
  .nav__links.open a:nth-child(6) { transition-delay: .30s; }

  /* full-screen dim behind the menu */
  .nav__scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7, 20, 15, .42);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s var(--ease), visibility .28s;
    z-index: 80;
  }
  .nav__scrim.open { opacity: 1; visibility: visible; }

  body.menu-open { overflow: hidden; }
}

@media (max-width: 760px) {
  .grid--3 { grid-template-columns: 1fr; }
  .price--featured { transform: none; }
  .form { grid-template-columns: 1fr; }
  .hero__trust { gap: 22px; }
  .hero__badge--1 { inset-inline-start: 0; }
  .hero__badge--2 { inset-inline-end: 0; }
}

@media (max-width: 540px) {
  /* keep the header from crowding on small phones */
  .topbar { font-size: .8rem; padding: 8px 12px; }
  .nav__inner { height: 62px; gap: 10px; }
  .nav__actions { gap: 8px; }
  .langbtn { padding: 7px 11px; font-size: .85rem; }
  .nav__actions .btn--sm { padding: 9px 14px; font-size: .85rem; }
  .brand__text { font-size: 1.18rem; }
  .phone { width: 270px; height: 540px; }
  .hero__badge { font-size: .8rem; padding: 8px 12px; }
  .section__head h2 { font-size: 1.55rem; }
  .fab { width: 52px; height: 52px; inset-inline-end: 16px; bottom: 16px; }
}

@media (max-width: 460px) {
  .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .strip__inner { justify-content: center; text-align: center; }
  .strip__items { justify-content: center; gap: 16px; }
  .hero__cta .btn { width: 100%; }
}

/* ===== Mobile hardening: never let anything overflow or crowd ===== */
@media (max-width: 900px) {
  /* The phone mockup scales fluidly and is never wider than the screen */
  .phone { width: min(300px, 78vw); height: auto; aspect-ratio: 1 / 2; }
  .phone--demo { width: min(300px, 78vw); }
  .hero__phone, .demo__phone { width: 100%; max-width: 100%; }
  /* Keep floating badges inside the viewport */
  .hero__badge { max-width: 46vw; }
}
@media (max-width: 540px) {
  .phone { width: min(270px, 82vw); }
  .phone--demo { width: min(270px, 82vw); }
  /* Comfortable section padding + headline sizing on phones */
  .section { padding: 56px 0; }
  h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .guarantee { flex-direction: column; text-align: center; gap: 10px; padding: 18px; }
  .cta__assure { gap: 14px; }
  /* Larger, easier tap targets for FAQ + form controls */
  .field input, .field textarea { font-size: 16px; } /* prevents iOS zoom-on-focus */
  .feature__badge { position: static; display: inline-block; margin-bottom: 10px; }
}

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