/* ------------------------------------------------------------------
   Design tokens — palette MP004
   ------------------------------------------------------------------ */
:root {
  /* Palette from the new logo: neon green to deep teal to cyan (2026-10-31).
     The old MP004 names stay, so every page picks up the new colours. */
  --cream: #FFFFFF;      /* page + light cards */
  --midnight: #021714;   /* deepest: footer, dark sections */
  --evergreen: #05463F;  /* dark buttons, accents on light */
  --coach: #04231F;      /* headings, dark bands */
  --asparagus: #E4EEEB;  /* soft panels */
  --lettuce: #1AF08A;    /* neon green: primary buttons, badges */
  --neon: #03FD7C;
  --cyan: #01DCD9;
  --teal: #027F7B;
  --deep: #033532;
  --teal-ink: #016A66;   /* teal that passes contrast on white */
  --grad: linear-gradient(135deg, #03FD7C 0%, #02A35D 24%, #033532 52%, #025D5B 76%, #01DCD9 100%);

  --panel: color-mix(in srgb, var(--asparagus) 45%, var(--cream));
  --panel-deep: color-mix(in srgb, var(--asparagus) 75%, var(--cream));
  --soft: #F2F5F4;
  --heading: var(--coach);
  --body: color-mix(in srgb, var(--midnight) 80%, transparent);
  --muted: color-mix(in srgb, var(--midnight) 58%, transparent);
  --line: color-mix(in srgb, var(--coach) 12%, transparent);
  --on-dark: #FFFFFF;
  --on-dark-soft: color-mix(in srgb, #FFFFFF 74%, transparent);

  --r-xl: 24px;
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 9px;
  --container: 1240px;
  --gutter: 30px;
  --font: "Figtree", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --serif: "Sentient", "IBM Plex Sans Arabic", Georgia, serif;
  --ex: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  color: var(--body);
  background: var(--cream);
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--font); }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.inset { margin-inline: 10px; border-radius: var(--r-xl); }
.section { padding-block: 110px; }
.section--tight { padding-block: 70px; }

/* Type */
.h1 { font-family: var(--serif); font-size: 58px; line-height: 1.04; font-weight: 400; letter-spacing: -0.02em; color: var(--on-dark); }
.h2 { font-family: var(--serif); font-size: 48px; line-height: 1.12; font-weight: 400; letter-spacing: -0.02em; color: var(--heading); }
.h3 { font-family: var(--serif); font-size: 30px; line-height: 1.2; font-weight: 400; letter-spacing: -0.01em; color: var(--heading); }
.h4 { font-size: 20px; line-height: 1.3; font-weight: 500; color: var(--heading); letter-spacing: -0.2px; }
.h5 { font-size: 18px; line-height: 1.3; font-weight: 500; color: var(--heading); }
.lead { font-size: 16px; line-height: 1.5; color: var(--body); }
.small { font-size: 14px; }
.on-dark .h2, .on-dark .h3, .on-dark .h4, .on-dark .h5 { color: var(--on-dark); }
.on-dark .lead, .on-dark p { color: var(--on-dark-soft); }
.center { text-align: center; }
.center .chip { margin-inline: auto; }

/* Heading with trailing hairline (Finovate signature) */
.tail-line { display: inline-flex; align-items: center; gap: 18px; }
.tail-line::after { content: ""; width: 140px; height: 1px; background: color-mix(in srgb, var(--lettuce) 70%, transparent); }

/* Chip label */
.chip {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  padding: 6px 12px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--cream);
  font-size: 10px; font-weight: 500; letter-spacing: .4px; text-transform: uppercase;
  color: var(--heading);
}
.on-dark .chip { background: transparent; border-color: color-mix(in srgb, var(--cream) 28%, transparent); color: var(--on-dark); }
.chip--on-lettuce { background: transparent; border-color: color-mix(in srgb, var(--coach) 25%, transparent); }
.chip--glass { background: color-mix(in srgb, var(--cream) 16%, transparent); border-color: color-mix(in srgb, var(--cream) 30%, transparent); color: var(--on-dark); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lettuce); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 47px; padding: 0 24px; border-radius: 100px; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 500; letter-spacing: -0.2px; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn--lettuce { background: var(--lettuce); color: var(--coach); }
.btn--lettuce:hover { background: color-mix(in srgb, var(--lettuce) 82%, var(--coach)); }
.btn--dark { background: var(--evergreen); color: var(--cream); }
.btn--dark:hover { background: var(--coach); }
.btn-pair { display: inline-flex; align-items: center; gap: 2px; }
.circle {
  display: inline-grid; place-items: center; flex: none;
  width: 47px; height: 47px; border-radius: 50%; border: 0; cursor: pointer;
  transition: transform .25s ease, background-color .2s ease;
}
.circle svg { width: 16px; height: 16px; }
.circle--lettuce { background: var(--lettuce); color: var(--coach); }
.circle--dark { background: var(--evergreen); color: var(--lettuce); }
.circle--cream { background: var(--cream); color: var(--coach); }
.circle--panel { background: var(--panel); color: var(--coach); }
.circle--sm { width: 38px; height: 38px; }
.circle--sm svg { width: 14px; height: 14px; }
.btn-pair:hover .circle, a:hover > .circle, .card-link:hover .circle { transform: rotate(45deg); }
[dir="rtl"] .arrow { transform: scaleX(-1); }

/* WhatsApp + Meta marks: black or white only (brand rule) */
.wa-icon, .meta-icon { width: 17px; height: 17px; flex: none; color: #000; }
.on-photo .wa-icon, .btn--dark .wa-icon, .footer .wa-icon { color: #fff; }
.btn--lettuce .wa-icon { color: #000; }

/* Photos */
.photo { position: relative; overflow: hidden; background: var(--panel-deep); }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------
   Header (sits on the hero)
   ------------------------------------------------------------------ */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 5; padding-top: 18px; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 60px; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; gap: 34px; }
.nav a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; letter-spacing: -0.3px; color: var(--on-dark); }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--lettuce); }
.nav svg { width: 10px; height: 10px; opacity: .8; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
.circle--sm.menu-btn { width: 44px; height: 44px; }

/* ------------------------------------------------------------------
   01 Hero
   ------------------------------------------------------------------ */
.hero { position: relative; margin: 10px; border-radius: var(--r-xl); overflow: hidden; height: min(880px, calc(100svh - 20px)); min-height: 680px; background: var(--coach); }
.hero__media { position: absolute; inset: 0; background: url("../img/hero.jpg") 0% 32% / 136% auto no-repeat; }
.hero__copy .h1 { font-size: 54px; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--midnight) 78%, transparent) 0%, color-mix(in srgb, var(--midnight) 45%, transparent) 42%, transparent 66%), linear-gradient(0deg, color-mix(in srgb, var(--midnight) 45%, transparent), transparent 35%); }
.hero__inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; }
.hero__copy { margin-block: auto; padding-top: 90px; max-width: 760px; }
.hero__copy .chip { margin-bottom: 26px; }
.hero__copy .h1 span { display: block; }
.hero__copy .h1 .tail-line { display: flex; }
.hero__lead { margin-top: 22px; max-width: 520px; font-size: 17px; line-height: 1.5; color: var(--on-dark-soft); }
.hero__copy .btn-pair { margin-top: 32px; }
.hero__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 40px; }
.hero__tab {
  height: 59px; display: flex; align-items: center; gap: 10px; padding: 0 26px; border-radius: var(--r-lg); border: 0; cursor: pointer;
  font-size: 11px; font-weight: 500; letter-spacing: .2px; text-transform: uppercase; color: var(--coach); text-align: start;
  background: color-mix(in srgb, var(--cream) 42%, transparent);
  backdrop-filter: saturate(1.8) blur(40px); -webkit-backdrop-filter: saturate(1.8) blur(40px);
  transition: background-color .25s ease;
}
.hero__tab svg { width: 14px; height: 14px; color: var(--evergreen); flex: none; }
.hero__tab.is-active, .hero__tab:hover { background: var(--cream); }
.hero__rail { position: absolute; inset-inline-end: 34px; top: 50%; transform: translateY(-50%); display: grid; justify-items: center; gap: 10px; color: var(--on-dark); font-size: 10px; z-index: 3; }
.hero__rail i { width: 1px; height: 120px; background: color-mix(in srgb, var(--cream) 35%, transparent); position: relative; }
.hero__rail i::after { content: ""; position: absolute; left: -1px; top: 0; width: 3px; height: 40px; border-radius: 3px; background: var(--lettuce); top: calc(var(--i, 0) * 40px); transition: top .4s ease; }
.hero__rail span { writing-mode: vertical-rl; transform: rotate(180deg); }

/* ------------------------------------------------------------------
   02 Three highlight cards
   ------------------------------------------------------------------ */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trio__card { position: relative; border-radius: var(--r-xl); background: var(--panel); border: 1px solid var(--line); padding: 30px 30px 0; min-height: 560px; display: flex; flex-direction: column; overflow: hidden; }
.trio__card .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.trio__step { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); }
.trio__title { margin: 6px 0 0; font-size: 34px; line-height: 1.1; letter-spacing: -.6px; color: var(--heading); }
.trio__text { margin: 14px 0 26px; max-width: 340px; font-size: 15.5px; line-height: 1.55; color: var(--body); }
.trio__card > .photo { margin-top: auto; height: 290px; border-radius: var(--r-md) var(--r-md) 0 0; }
.trio__card--lettuce { background: var(--lettuce); border-color: var(--lettuce); }
.trio__card--lettuce .trio__step { color: color-mix(in srgb, var(--coach) 60%, transparent); }
.trio__card--lettuce .trio__title, .trio__card--lettuce .trio__text { color: var(--coach); }

/* What we stand by: the live site's four promises on a lime ribbon laid across the hero's
   bottom edge. It scrolls while on screen (JS adds .is-off when it is not), pauses on hover,
   and holds still for reduced motion. The second set is a copy so the loop has no seam. */
.principles { position: relative; z-index: 3; margin: -64px 0 30px; padding-block: 34px; overflow: hidden; overflow: clip visible; pointer-events: none; }
.ribbon { width: calc(100% + 160px); margin-inline: -80px; transform: rotate(-2deg); background: var(--lettuce); color: var(--coach); box-shadow: 0 14px 30px rgb(5 25 20 / .16); pointer-events: auto; }
.ribbon__track { display: flex; width: max-content; animation: ribbon 46s linear infinite; }
.principles.is-off .ribbon__track, .ribbon:hover .ribbon__track { animation-play-state: paused; }
.ribbon__set { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.ribbon__set li { display: inline-flex; align-items: center; gap: 18px; padding: 22px 34px; font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -.6px; white-space: nowrap; }
.ribbon__set li i { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--coach); color: var(--lettuce); }
.ribbon__set li i svg { width: 22px; height: 22px; }
@keyframes ribbon { to { transform: translateX(-50%); } }
[dir="rtl"] .ribbon__track { animation-name: ribbon-rtl; }
@keyframes ribbon-rtl { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
  .ribbon__track { width: auto; flex-wrap: wrap; justify-content: center; animation: none; }
  .ribbon__set[aria-hidden] { display: none; }
  .ribbon__set { flex-wrap: wrap; justify-content: center; }
}

/* ------------------------------------------------------------------
   03 Services (soft panel)
   ------------------------------------------------------------------ */
.soft { background: var(--panel); }
.section-head { display: grid; gap: 22px; margin-bottom: 56px; }
.section-head .h2 { max-width: 780px; }
.section-head .lead { max-width: 640px; }
.center.section-head .h2, .center.section-head .lead { margin-inline: auto; }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc { background: var(--cream); border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column; }
.svc .photo { height: 300px; border-radius: var(--r-xl); }
.svc .badge { position: absolute; z-index: 1; top: 16px; inset-inline-start: 16px; width: 42px; height: 42px; border-radius: 50%; background: var(--lettuce); color: var(--coach); display: grid; place-items: center; }
.svc .badge svg { width: 18px; height: 18px; }
.svc .body { padding: 22px 20px 24px; display: grid; gap: 10px; }
.svc .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.svc p { font-size: 14px; line-height: 1.45; color: var(--muted); }
.after-cards { display: flex; justify-content: center; margin-top: 44px; }

/* ------------------------------------------------------------------
   04 Dark band with glass cards
   ------------------------------------------------------------------ */
.band { position: relative; background: var(--coach); }
.band::after { content: ""; position: absolute; inset-inline-start: 70px; bottom: -22px; width: 110px; height: 24px; background: var(--coach); clip-path: polygon(0 0, 100% 0, 0 100%); }
[dir="rtl"] .band::after { clip-path: polygon(0 0, 100% 0, 100% 100%); }
.glass {
  border-radius: var(--r-xl); padding: 30px; min-height: 266px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cream) 9%, transparent), color-mix(in srgb, var(--cream) 2%, transparent));
  border: 1px solid color-mix(in srgb, var(--cream) 20%, transparent);
  display: flex; flex-direction: column; gap: 14px;
}
.glass .ico { color: var(--lettuce); width: 22px; height: 22px; margin-bottom: 10px; }
.glass p { font-size: 16px; line-height: 1.45; }
.band__note { margin-top: 40px; font-size: 17px; color: var(--on-dark); display: flex; align-items: center; gap: 14px; }
.band__note::before { content: ""; width: 34px; height: 1px; background: var(--lettuce); flex: none; }

/* ------------------------------------------------------------------
   05 Stats row
   ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 6px 20px; border-inline-start: 1px solid var(--line); display: grid; gap: 12px; justify-items: start; }
.stat b { font-size: 30px; font-weight: 500; color: var(--heading); background: var(--panel); border-radius: 8px; padding: 4px 10px; letter-spacing: -0.5px; }
.stat b em { font-style: normal; color: var(--evergreen); }
.stat span { font-size: 11px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); }

/* ------------------------------------------------------------------
   06 Photo banner
   ------------------------------------------------------------------ */
.banner { position: relative; height: 580px; border-radius: var(--r-xl); overflow: hidden; }
.banner > .photo { position: absolute; inset: 0; }
.banner__shade { position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--midnight) 72%, transparent), transparent 62%); }
.banner__icon { position: absolute; top: 50px; inset-inline-start: 50px; }
.banner__foot { position: absolute; inset-inline: 50px; bottom: 50px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.banner__foot .h3 { color: var(--on-dark); max-width: 640px; }

/* ------------------------------------------------------------------
   Process (5 steps)
   ------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--cream); overflow: hidden; }
.step { padding: 28px; min-height: 250px; display: flex; flex-direction: column; border-inline-start: 1px solid var(--line); }
.step:first-child { border-inline-start: 0; }
.step .n { font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.step .h5 { margin-top: 18px; }
.step p { margin-top: auto; padding-top: 18px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.after-steps { text-align: center; margin-top: 26px; color: var(--heading); }
.after-steps a { color: var(--evergreen); text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------------------------------------------
   Story (one request, start to finish)
   ------------------------------------------------------------------ */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.story__photo { position: relative; min-height: 600px; border-radius: var(--r-xl); overflow: hidden; }
.story__photo > .photo { position: absolute; inset: 0; }
.quote-card {
  position: absolute; inset-inline: 30px; bottom: 30px; padding: 30px; border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--cream) 78%, transparent);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
}
.quote-card svg.q { width: 26px; height: 20px; color: var(--evergreen); margin-bottom: 16px; }
.quote-card p { font-size: 24px; line-height: 1.3; color: var(--heading); font-weight: 500; letter-spacing: -0.3px; }
.person { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.person i { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #000; display: grid; place-items: center; }
.person i svg, .person i .wa-icon { color: #fff; width: 20px; height: 20px; }
.person b { display: block; font-size: 14px; font-weight: 500; color: var(--heading); }
.person span { font-size: 10px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); }
.story__card { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--lettuce); padding: 40px; display: flex; flex-direction: column; min-height: 600px; }
.story__card::before { content: ""; position: absolute; inset: 0 0 52% 0; background: color-mix(in srgb, var(--cream) 22%, transparent); clip-path: polygon(0 0, 100% 0, 100% 64%, 0 100%); }
.story__card > * { position: relative; }
.story__card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.story__card .h3 { margin-top: 18px; max-width: 420px; }
.stages { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: s; }
.stages li { display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--coach) 16%, transparent); }
.stages li::before { counter-increment: s; content: "0" counter(s); font-size: 11px; font-weight: 600; color: var(--evergreen); padding-top: 3px; }
.stages b { font-size: 15px; font-weight: 600; color: var(--coach); }
.stages span { grid-column: 2; font-size: 14px; line-height: 1.4; color: color-mix(in srgb, var(--coach) 82%, transparent); }
.story__card .bottom { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.story__card .bottom p { font-size: 12px; color: color-mix(in srgb, var(--coach) 75%, transparent); max-width: 260px; }

/* ------------------------------------------------------------------
   Industries (photo with chat + list)
   ------------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ind-photo { position: relative; height: 520px; border-radius: var(--r-xl); overflow: hidden; }
.ind-photo > .photo { position: absolute; inset: 0; }
.chat-card {
  position: absolute; inset-inline-start: 24px; bottom: 24px; width: min(330px, calc(100% - 48px)); padding: 16px; border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--cream) 86%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: grid; gap: 10px;
}
.chat-card header { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.chat-card header i { width: 30px; height: 30px; border-radius: 50%; background: #000; display: grid; place-items: center; }
.chat-card header i .wa-icon { color: #fff; width: 16px; height: 16px; }
.chat-card header b { display: block; font-size: 13px; color: var(--heading); font-weight: 500; }
.bubble { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.5; font-family: "IBM Plex Sans Arabic", var(--font); }
/* Seen from the customer's phone: their message on the right, the business reply on the left */
.bubble.in { background: var(--lettuce); color: var(--coach); justify-self: end; border-start-end-radius: 4px; }
.bubble.out { background: #fff; color: var(--midnight); justify-self: start; border-start-start-radius: 4px; }
.chat-card small { font-size: 10px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); }
.list-rows { display: grid; gap: 4px; }
.list-rows a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0; font-size: 18px; font-weight: 500; color: var(--heading); }
.list-rows a small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.list-rows a:hover { color: var(--evergreen); }
.list-rows + .btn { margin-top: 24px; }

/* ------------------------------------------------------------------
   Guides
   ------------------------------------------------------------------ */
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: var(--cream); border-radius: var(--r-xl); padding: 20px; }
.post .photo { min-height: 320px; border-radius: var(--r-md); }
.post__body { position: relative; display: flex; flex-direction: column; padding-top: 10px; }
.post__tag { font-size: 10px; text-transform: uppercase; letter-spacing: .4px; color: var(--heading); }
.post .h4 { margin-top: 26px; font-size: 22px; }
.post p { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.post .circle { margin-top: auto; align-self: flex-end; }

/* ------------------------------------------------------------------
   Channels strip
   ------------------------------------------------------------------ */
.rule-label { position: relative; display: flex; justify-content: center; }
.rule-label::before { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 1px; background: var(--line); }
.rule-label .chip { position: relative; }
.channels { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 36px; margin-top: 44px; }
.channel { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 500; letter-spacing: -0.3px; color: var(--heading); }
.channel svg.gen { width: 20px; height: 20px; color: var(--heading); }
.channel--meta { font-size: 15px; padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line); }

/* ------------------------------------------------------------------
   Extra: examples
   ------------------------------------------------------------------ */
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.example { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; }
.example .tags { display: flex; gap: 8px; }
.example .h5 { margin: 18px 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.example dl { display: grid; grid-template-columns: 70px 1fr; gap: 10px 14px; margin: 0; font-size: 13px; }
.example dt { font-size: 10px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding-top: 2px; }
.example dd { margin: 0; color: var(--body); }
.example dd.result { color: var(--evergreen); font-weight: 500; }

/* ------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.faq__aside { display: flex; flex-direction: column; gap: 20px; }
.faq__aside .help { margin-top: auto; max-width: 360px; background: var(--panel); border-radius: var(--r-xl); padding: 28px; display: grid; gap: 14px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 17px; font-weight: 500; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .circle { transition: transform .25s ease; }
.faq details[open] summary .circle { transform: rotate(45deg); }
.faq details p { padding-block-end: 22px; padding-inline-end: 60px; color: var(--body); line-height: 1.55; }
.faq .more { display: inline-flex; margin-top: 22px; color: var(--evergreen); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

/* Extra: closing CTA */
.cta-band { position: relative; overflow: hidden; background: var(--coach); padding: 110px 30px; text-align: center; }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--lettuce) 35%, transparent), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band .h2 { color: var(--on-dark); font-size: 56px; line-height: 1.08; max-width: 820px; margin: 0 auto; }
.cta-band p { color: var(--on-dark-soft); margin: 18px auto 30px; max-width: 560px; }

/* ------------------------------------------------------------------
   Contact (form + photo)
   ------------------------------------------------------------------ */
.contact { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-xl); overflow: hidden; }
.contact__form { background: var(--panel); padding: 50px; }
.contact__form .h2 { margin-top: 18px; }
.contact__form .lead { margin-top: 18px; max-width: 480px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 34px; }
.field { display: grid; gap: 8px; font-size: 14px; color: var(--heading); }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 20px; font-size: 14px; color: var(--body); outline: none; transition: border-color .2s ease;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--coach) 50%), linear-gradient(135deg, var(--coach) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 17px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { min-height: 90px; resize: vertical; }
.form-note { grid-column: 1 / -1; margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--evergreen); }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--muted); }
.consent input { margin-top: 2px; accent-color: var(--evergreen); }
.form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.contact__photo { position: relative; min-height: 560px; }
.contact__photo > .photo { position: absolute; inset: 0; }
.call-pill {
  position: absolute; inset-inline: 30px; bottom: 30px; display: flex; align-items: center; gap: 16px;
  padding: 12px 20px 12px 12px; border-radius: 100px; font-size: 14px; color: var(--heading);
  background: color-mix(in srgb, var(--cream) 80%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.call-pill i { width: 38px; height: 38px; border-radius: 50%; background: #000; display: grid; place-items: center; flex: none; }
.call-pill i .wa-icon { color: #fff; }
.call-pill a { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
/* Footer (Parallel-style): a big serif invitation, then the link columns. */
.footer { position: relative; overflow: hidden; margin: 0; background: var(--midnight); color: var(--on-dark-soft); }
.footer__news { position: relative; z-index: 2; padding: 110px 0 10px; }
.footer__news .container { display: grid; gap: 18px; justify-items: start; }
.footer__big { display: inline-flex; align-items: flex-start; gap: 28px; font: 400 64px/1.2 var(--serif); letter-spacing: -0.03em; color: var(--on-dark); text-decoration: underline 2px; text-underline-offset: 12px; text-decoration-color: color-mix(in srgb, #fff 40%, transparent); transition: text-decoration-color .4s ease; }
.footer__big:hover { text-decoration-color: var(--lettuce); }
.footer__big svg { width: 34px; height: 34px; margin-top: 14px; flex: none; transition: transform .5s var(--ex); }
.footer__big:hover svg { transform: translate(4px, -4px); }
.footer__news p { font-size: 18px; color: var(--on-dark-soft); max-width: 520px; }
.footer__main { position: relative; z-index: 2; padding: 60px 0 10px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 40px; }
.footer__brand { display: grid; gap: 20px; align-content: start; }
.footer__brand img, .footer__brand .logo-svg { height: 28px; width: auto; color: #fff; }
.footer__brand p { font-size: 14px; line-height: 1.6; color: var(--on-dark-soft); max-width: 380px; }
.footer__brand p strong { color: var(--on-dark); font-weight: 500; }
.footer h6 { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--on-dark); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li a { font-size: 15px; color: var(--on-dark-soft); transition: color .3s ease; }
.footer li a:hover { color: var(--on-dark); }
body[data-page] .footer { margin-top: 20px; }
body[data-page] .footer__news { padding-top: 90px; }
.footer__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding: 26px 0; border-top: 1px solid color-mix(in srgb, #fff 12%, transparent); font-size: 13px; color: var(--on-dark-soft); }
.footer__bar nav { display: flex; gap: 30px; color: var(--on-dark); }
.meta-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); }
.meta-badge .meta-icon { color: #fff; }

/* ------------------------------------------------------------------
   Research-led blocks: lost-patient timeline, weekly numbers,
   leak map and causes
   ------------------------------------------------------------------ */
.stages--time li { grid-template-columns: 112px 1fr; }
.stages--time li::before { content: attr(data-k); counter-increment: none; font-size: 11px; letter-spacing: .3px; text-transform: uppercase; }
.stages--time li.lost b { text-decoration: line-through; text-decoration-thickness: 2px; }

.funnel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 34px; }
.funnel-head .h3 { max-width: 560px; margin-top: 16px; }
.funnel-head p { max-width: 430px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.funnel .stat b { font-size: 22px; }
.funnel .stat:last-child b { background: var(--lettuce); }
.funnel .stat .n { font-size: 11px; font-weight: 600; letter-spacing: .4px; color: var(--evergreen); }
.funnel .stat span:not(.n) { text-transform: none; letter-spacing: 0; font-size: 13px; line-height: 1.45; }

.leakmap { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--cream); overflow: hidden; }
.leak-row { display: grid; grid-template-columns: 1.15fr 1.4fr 1.2fr .8fr; gap: 24px; padding: 20px 28px; border-top: 1px solid var(--line); align-items: start; }
.leak-row:first-child { border-top: 0; }
.leak-row--head { background: var(--panel); padding-block: 14px; font-size: 10px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.leak-stage { display: flex; gap: 14px; align-items: flex-start; }
.leak-stage > i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--panel); color: var(--coach); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600; }
.leak-row.core .leak-stage > i { background: var(--lettuce); }
.leak-stage b { display: block; font-size: 16px; font-weight: 500; color: var(--heading); }
.leak-stage em { display: inline-block; margin-top: 6px; font-style: normal; font-size: 10px; letter-spacing: .3px; text-transform: uppercase; color: var(--evergreen); }
.leak-row p { font-size: 14px; line-height: 1.45; color: var(--body); }
.leak-row p.fix { color: var(--heading); font-weight: 500; }
.leak-row p.metric { color: var(--muted); }
.leak-label { display: none; margin-bottom: 2px; font-size: 10px; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); }

.causes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cause { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; display: grid; gap: 12px; align-content: start; }
.cause .h5 { display: flex; align-items: center; gap: 10px; }
.cause .h5::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lettuce); flex: none; }
.cause p { font-size: 14px; line-height: 1.45; color: var(--muted); }
.cause p.resp { padding-top: 12px; border-top: 1px solid var(--line); color: var(--heading); font-weight: 500; }

.list-rows .chip { margin-inline-start: 8px; vertical-align: 2px; }

/* ------------------------------------------------------------------
   Section manager (preview tool only — not part of the design)
   ------------------------------------------------------------------ */
.sm-toggle { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 50; height: 44px; padding: 0 18px; border-radius: 100px; border: 0; background: var(--midnight); color: var(--cream); font-size: 13px; font-weight: 500; cursor: pointer; box-shadow: 0 8px 30px rgb(0 0 0 / .25); }
.sm-panel { position: fixed; inset-inline-end: 18px; bottom: 72px; z-index: 50; width: 320px; max-height: min(70vh, 640px); overflow: auto; background: #fff; color: #1d2421; border-radius: 16px; box-shadow: 0 20px 60px rgb(0 0 0 / .25); padding: 16px; font-size: 13px; display: none; }
.sm-panel.open { display: block; }
.sm-panel h4 { margin: 0 0 4px; font-size: 14px; }
.sm-panel .hint { color: #6b7570; margin: 0 0 12px; font-size: 12px; }
.sm-row { display: flex; align-items: center; gap: 8px; padding: 7px 6px; border-radius: 8px; }
.sm-row:hover { background: #f3f4f0; }
.sm-row label { flex: 1; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.sm-row .tag { font-size: 10px; text-transform: uppercase; letter-spacing: .3px; color: #8a6d00; background: #fff4c2; border-radius: 4px; padding: 1px 5px; font-style: normal; }
.sm-row button { width: 26px; height: 26px; border-radius: 6px; border: 1px solid #e3e6e0; background: #fff; cursor: pointer; font-size: 12px; }
.sm-reset { margin-top: 10px; width: 100%; height: 34px; border-radius: 8px; border: 1px solid #e3e6e0; background: #fff; cursor: pointer; }
[data-block][hidden] { display: none !important; }

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .cards4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { row-gap: 30px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(4) { border-inline-start: 0; }
  .step:nth-child(n+4) { border-top: 1px solid var(--line); }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio__card:last-child { grid-column: 1 / -1; min-height: 460px; }
  .examples { grid-template-columns: 1fr 1fr; }
  .post { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__media { background-size: cover; background-position: 58% 30%; }
  .causes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav, .header-actions .btn { display: none; }
  .menu-btn { display: inline-grid; }
  .h1, .hero__copy .h1 { font-size: 42px; }
  .h2 { font-size: 34px; }
  .cta-band .h2 { font-size: 38px; }
  .h3 { font-size: 24px; }
  .section { padding-block: 80px; }
  .split, .story, .cards2, .contact, .faq { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .hero__rail { display: none; }
  .hero__shade { background: linear-gradient(0deg, color-mix(in srgb, var(--midnight) 85%, transparent) 10%, color-mix(in srgb, var(--midnight) 35%, transparent) 70%, color-mix(in srgb, var(--midnight) 50%, transparent)); }
  .glass { min-height: 0; }
  .contact__form { padding: 34px 24px; }
  .contact__photo { min-height: 420px; }
  .ind-photo { height: 440px; }
  .leak-row { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .leak-row--head { display: none; }
  .leak-label { display: block; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .inset, .hero, .footer { margin-inline: 6px; }
  .h1 { font-size: 36px; }
  .h2 { font-size: 29px; }
  .tail-line::after { width: 50px; }
  .hero { min-height: 720px; height: auto; }
  .hero__copy { padding-top: 110px; padding-bottom: 30px; }
  .hero__lead { font-size: 16px; }
  .hero__copy .h1 { font-size: 36px; }
  .story__card .bottom { flex-direction: column; align-items: flex-start; }
  .hero__copy .h1 span, .hero__copy .h1 .tail-line { display: inline; }
  .hero__copy .h1 .tail-line::after { display: none; }
  .stat b { font-size: 24px; }
  .hero__copy .btn { white-space: normal; height: auto; min-height: 47px; padding-block: 10px; text-align: start; }
  .hero__tabs { grid-template-columns: 1fr; gap: 6px; padding-bottom: 20px; }
  .hero__tab { height: 46px; padding: 0 20px; }
  .hero__tab:not(.is-active) { display: none; }
  .trio, .cards4, .examples, .steps, .causes { grid-template-columns: 1fr; }
  .stages--time li { grid-template-columns: 1fr; gap: 2px; }
  .stages--time li span { grid-column: 1; }
  .trio__card:last-child { grid-column: auto; }
  .trio__card { min-height: 480px; }
  .trio__title { font-size: 28px; }
  .principles { margin: -44px 0 18px; padding-block: 22px; }
  .ribbon__set li { gap: 12px; padding: 14px 20px; font-size: 21px; letter-spacing: -.3px; }
  .ribbon__set li i { width: 36px; height: 36px; }
  .ribbon__set li i svg { width: 17px; height: 17px; }
  .step { border-inline-start: 0 !important; border-top: 1px solid var(--line); min-height: 0; }
  .step:first-child { border-top: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner { height: 480px; }
  .banner__icon { top: 24px; inset-inline-start: 24px; }
  .banner__foot { inset-inline: 24px; bottom: 24px; flex-direction: column; align-items: flex-start; }
  .story__card { padding: 28px; min-height: 0; }
  .story__photo { min-height: 520px; }
  .quote-card { inset-inline: 16px; bottom: 16px; padding: 22px; }
  .quote-card p { font-size: 20px; }
  .form { grid-template-columns: 1fr; }
  .call-pill { inset-inline: 16px; bottom: 16px; border-radius: var(--r-lg); }
  .footer__news .container { flex-direction: column; align-items: flex-start; }
  .footer__news { padding-bottom: 36px; }
  .footer__news .container { gap: 18px; }
  .footer__news p { font-size: 16px; }
  .footer__main { padding-top: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .footer__brand { grid-column: 1 / -1; gap: 14px; }
  .footer h6 { margin-bottom: 12px; }
  .footer ul { gap: 10px; }
  .footer li a { font-size: 14px; }
  .footer__bar { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 36px; }
  .faq details p { padding-inline-end: 0; }
  .channels { justify-content: flex-start; }
  .sm-panel { inset-inline: 12px; width: auto; }
}

@media (max-width: 640px) {
  .footer__big { font-size: 40px; gap: 16px; text-underline-offset: 8px; }
  .footer__big svg { width: 24px; height: 24px; margin-top: 10px; }
  .footer__news { padding-top: 80px; }
}

/* ------------------------------------------------------------------
   Leak Audit block (homepage final call to action and /leak-audit/):
   a soft panel, the invitation on the left, the form in a white card.
   ------------------------------------------------------------------ */
.contact { grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; padding: 64px; border-radius: 28px; background: var(--soft); overflow: visible; }
.contact__intro .chip { padding: 0; border: 0; background: none; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--teal-ink); }
.contact__intro .h2 { margin-top: 16px; font-size: 64px; line-height: 1.08; letter-spacing: -0.03em; }
.contact__intro .lead { margin-top: 20px; max-width: 430px; font-size: 19px; line-height: 1.5; }
.contact__wa { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 15px; color: var(--body); }
.contact__wa .wa-icon { color: var(--evergreen); }
.contact__wa a { color: var(--coach); text-decoration: underline; text-underline-offset: 3px; }
.contact > .form { margin-top: 0; padding: 32px; border-radius: 22px; background: #fff; box-shadow: 0 24px 60px rgb(2 23 20 / .07), inset 0 0 0 1px var(--line); }
.contact .form .btn { height: 52px; padding-inline: 26px; }
.field input, .field textarea, .field select { border-radius: 12px; }
@media (max-width: 960px) {
  .contact { grid-template-columns: 1fr; gap: 32px; padding: 40px 28px; }
}
@media (max-width: 640px) {
  .contact { padding: 30px 18px 18px; border-radius: 22px; }
  .contact__intro .h2 { font-size: 44px; }
  .contact > .form { padding: 20px 16px; }
}

/* Underlined text link with an arrow (used on every page) */
.u-link { position: relative; display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px; font-size: 16px; font-weight: 500; color: var(--coach); }
.u-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }
.u-link:hover::after, .u-link:focus-visible::after { animation: link-wipe .8s var(--ex); }
.u-link svg { width: 14px; height: 14px; transition: transform .5s var(--ex); }
.u-link:hover svg { transform: translate(2px, -2px); }
@keyframes link-wipe {
  0% { transform-origin: 100% 50%; transform: scaleX(1); }
  45% { transform-origin: 100% 50%; transform: scaleX(0); }
  55% { transform-origin: 0 50%; transform: scaleX(0); }
  100% { transform-origin: 0 50%; transform: scaleX(1); }
}
