/* ==========================================================================
   AfriMedlink public site: design system + components
   Shared by /, /features, /plans, /about, /faq, /legal.
   Radius rule: pills for small controls (buttons, chips, tabs), 16px for
   cards and panels, 24px for large media frames. Elevation is declared once
   per element: a tinted shadow OR a hairline border, never both.
   ========================================================================== */

:root {
  /* Palette (brand brief) */
  --forest: #123C26;
  --green: #168A45;
  --green-ink: #127A3C;         /* AA on white for small text + button fills */
  --green-bright: #22B65B;
  --mint: #E8F7EE;
  --mint-2: #F3FAF5;
  --ivory: #FAFCF8;
  --white: #FFFFFF;
  --ink: #102019;
  --ink-2: #53665B;
  --ink-3: #5F7067;
  --teal: #159A91;

  /* Status (product vocabulary: OK / bientôt / expiré / rupture) */
  --ok: #127A3C;      --ok-bg: #E3F4EA;
  --warn: #9A5B00;    --warn-bg: #FDF1DC;
  --danger: #B42318;  --danger-bg: #FDE8E6;

  --line: rgba(18, 60, 38, 0.10);
  --line-2: rgba(18, 60, 38, 0.16);

  --sh-1: 0 1px 2px rgba(16, 32, 25, 0.05), 0 4px 14px -6px rgba(16, 32, 25, 0.10);
  --sh-2: 0 2px 6px rgba(16, 32, 25, 0.05), 0 18px 40px -18px rgba(18, 60, 38, 0.28);
  --sh-3: 0 4px 10px rgba(16, 32, 25, 0.06), 0 40px 80px -30px rgba(18, 60, 38, 0.38);

  --r-card: 16px;
  --r-media: 24px;
  --r-pill: 999px;

  --font-display: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Figtree', ui-sans-serif, system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
::selection { background: #BFE8CF; color: var(--forest); }
:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: #C9D6CE; border-radius: 99px; border: 2px solid var(--ivory); }
::-webkit-scrollbar-thumb:hover { background: #A9BDB1; }
.num { font-variant-numeric: tabular-nums; }

.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 {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
/* Home page. The hero photo runs edge to edge, and a 1240px centred column
   left an empty ivory band (the photo's legibility veil) between the screen
   edge and the copy on wide screens. Only the first screen (header + hero)
   goes full width: its gutter matches the default up to 1000px, then grows
   to the footer's 96px. The sections below stay contained, a little wider
   than on the other pages, which keep 1240px. */
body[data-page="home"] { --container: 1360px; }
body[data-page="home"] :is(.site-header, .hero) { --container: 2200px; --gutter: clamp(20px, 4vw, 96px); }
.section { padding-block: var(--section-y); }

/* Cross-document page transitions (Chromium); other browsers navigate normally */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--ease-out); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Type scale ---------- */
.h1 {
  font-size: clamp(2.5rem, 1.35rem + 3.6vw, 4.35rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.032em;
}
.h1 em, .h2 em { font-style: normal; color: var(--green); }
.h2 {
  font-size: clamp(2rem, 1.35rem + 2.1vw, 3.1rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -0.028em;
}
.h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.012em; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem); color: var(--ink-2); line-height: 1.6; max-width: 58ch; }
.body-2 { color: var(--ink-2); }
.micro { font-size: 0.875rem; color: var(--ink-3); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lead { margin-top: 18px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Icons ---------- */
.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); padding: 0 22px; border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1;
  white-space: nowrap; text-decoration: none; border: 1px solid transparent;
  transition: transform .25s var(--ease-out), background-color .2s, box-shadow .25s var(--ease-out), border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .i { transition: transform .3s var(--ease-out); }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn-primary { background: var(--green-ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 20px -10px rgba(18, 122, 60, .7); }
.btn-primary:hover { background: var(--forest); box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 14px 28px -12px rgba(18, 60, 38, .65); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--green); color: var(--forest); }
.btn-ghost { background: transparent; color: var(--ink); padding: 0 14px; }
.btn-ghost:hover { background: var(--mint); }
.btn-on-dark { background: #fff; color: var(--forest); }
.btn-on-dark:hover { background: var(--mint); }
.btn-outline-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { --btn-h: 40px; padding: 0 16px; font-size: .9375rem; }
.btn-lg { --btn-h: 54px; padding: 0 26px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green-ink); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link .i { transition: transform .3s var(--ease-out); }
.text-link:hover .i { transform: translateX(3px); }

/* ---------- Chips (status vocabulary) ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-danger { background: var(--danger-bg); color: var(--danger); }
.chip-neutral { background: #EEF2EF; color: var(--ink-2); }
.chip-info { background: #E2F4F2; color: #0E6E68; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 252, 248, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { background: rgba(250, 252, 248, 0.9); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.site-header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(18, 60, 38, .35); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 34px; height: 35px; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -0.03em; }
.brand-word span { color: var(--green); }

.nav { margin-inline: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; }
.nav a {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
  font-size: .96875rem; font-weight: 500; color: var(--ink-2); text-decoration: none; border-radius: var(--r-pill);
  transition: color .2s;
}
.nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* Language switch: FR / EN / RW segmented control */
.lang-switch { display: inline-flex; align-items: center; padding: 3px; border-radius: var(--r-pill); background: #EEF3EF; }
.lang-switch button {
  height: 30px; min-width: 38px; padding: 0 10px; border: 0; border-radius: var(--r-pill);
  background: transparent; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-2);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--forest); box-shadow: 0 1px 3px rgba(16,32,25,.12); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); align-items: center; justify-content: center; margin-left: auto; }
.menu-toggle:hover { background: var(--mint); }
.menu-toggle .bars { position: relative; width: 20px; height: 14px; }
.menu-toggle .bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease-out), opacity .2s; }
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 6px; }
.menu-toggle .bars span:nth-child(3) { top: 12px; }
.menu-open .menu-toggle .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle .bars span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--ivory); padding: 24px var(--gutter) 32px;
  display: none; flex-direction: column; overflow-y: auto;
}
.menu-open .mobile-menu { display: flex; }
.mobile-menu ul { list-style: none; display: grid; }
.mobile-menu li a {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 2px;
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
}
.mobile-menu li a[aria-current="page"] { color: var(--green); }
.mobile-menu .mobile-actions { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; }
.mobile-menu .lang-switch { justify-self: start; margin-bottom: 8px; }
.mobile-menu .btn { --btn-h: 52px; }

@media (max-width: 1080px) {
  .nav, .header-actions .btn-ghost, .header-actions .lang-switch { display: none; }
  .menu-toggle { display: inline-flex; margin-left: 4px; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .header-actions { display: none; }
  .menu-toggle { margin-left: auto; }
}

/* ==========================================================================
   Hero carousel
   ========================================================================== */
.hero { position: relative; isolation: isolate; background: var(--ivory); }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; touch-action: pan-y; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; will-change: transform, opacity; }
/* Legibility scrim over the photos' already-light left side */
.hero-media::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ivory) 0%, rgba(250,252,248,.96) 26%, rgba(250,252,248,.82) 40%, rgba(250,252,248,.25) 56%, rgba(250,252,248,0) 66%),
    linear-gradient(270deg, rgba(250,252,248,.42) 0%, rgba(250,252,248,.12) 9%, rgba(250,252,248,0) 18%),
    linear-gradient(0deg, rgba(250,252,248,.9) 0%, rgba(250,252,248,0) 22%);
}
.hero-inner {
  position: relative; min-height: clamp(640px, calc(100dvh - var(--header-h)), 880px);
  display: grid; grid-template-columns: minmax(0, 720px) 1fr; align-items: center;
  padding-block: clamp(40px, 6vh, 72px) clamp(112px, 14vh, 150px);
}
.hero-copy { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 34px; padding: 5px 14px 5px 6px; line-height: 1.3;
  border-radius: 18px; background: #fff; box-shadow: var(--sh-1);
  font-size: .875rem; font-weight: 600; color: var(--forest); margin-bottom: 26px;
}
.hero-badge .badge-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: var(--green); }
.hero-badge .badge-mark .i { width: 14px; height: 14px; }
.hero-copy .h1 { font-size: clamp(2.5rem, 1.3rem + 3.3vw, 4.1rem); }
@media (min-width: 961px) { .hero-copy .h1 em { display: block; } }
.nw { white-space: nowrap; }
.hero-copy .lead { margin-top: 22px; max-width: 34em; color: #3F5247; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .9rem; color: var(--ink-2); }
.hero-note .i { color: var(--green); width: 16px; height: 16px; }
.hero-stats { display: flex; gap: clamp(24px, 4vw, 48px); margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line-2); max-width: 540px; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); letter-spacing: -0.03em; line-height: 1; color: var(--forest); font-variant-numeric: tabular-nums; }
.stat-value small { font-size: .55em; font-weight: 600; margin-left: 2px; color: var(--green); letter-spacing: 0; }
.stat-label { margin-top: 8px; font-size: .875rem; line-height: 1.35; color: var(--ink-2); max-width: 16ch; }

.live-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; color: var(--ok); }
.live-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 3px rgba(34,182,91,.2); }

/* Mid widths: the copy column covers more of the photo, so the veil reaches further. */
@media (min-width: 961px) and (max-width: 1359px) {
  .hero-media::after {
    background:
      linear-gradient(90deg, var(--ivory) 0%, rgba(250,252,248,.97) 38%, rgba(250,252,248,.86) 52%, rgba(250,252,248,.3) 66%, rgba(250,252,248,0) 76%),
      linear-gradient(270deg, rgba(250,252,248,.42) 0%, rgba(250,252,248,.12) 9%, rgba(250,252,248,0) 18%),
      linear-gradient(0deg, rgba(250,252,248,.9) 0%, rgba(250,252,248,0) 22%);
  }
  .hero-slide img { object-position: 80% 40%; }
}
@media (min-width: 961px) and (max-width: 1199px) {
  .hero-inner { grid-template-columns: minmax(0, 600px) 1fr; }
}

/* Carousel controls */
.hero-controls {
  position: absolute; z-index: 3; right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); bottom: clamp(104px, 13vh, 132px);
  display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--sh-2);
}
.hc-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; transition: background-color .2s, transform .2s; }
.hc-btn:hover { background: var(--mint); }
.hc-btn:active { transform: scale(.94); }
.hc-dots { display: flex; align-items: center; gap: 4px; padding: 0 4px; }
.hc-dot { position: relative; width: 26px; height: 26px; border: 0; padding: 0; background: transparent; display: grid; place-items: center; }
.hc-dot span { position: relative; display: block; width: 8px; height: 8px; border-radius: var(--r-pill); background: #B8C7BE; overflow: hidden; transition: width .45s var(--ease-out), background-color .3s; }
.hc-dot:hover span { background: #8FA59A; }
.hc-dot[aria-current="true"] span { width: 30px; background: #CFE3D6; }
.hc-dot[aria-current="true"] { width: 44px; }
.hc-dot span i { position: absolute; inset: 0; background: var(--green); transform-origin: left; transform: scaleX(0); }
.hc-dot[aria-current="true"] span i { transform: scaleX(var(--p, 0)); }
.hc-sep { width: 1px; height: 22px; background: var(--line-2); }

/* Mobile hero: image first, then copy */
@media (max-width: 960px) {
  .hero-media { position: relative; inset: auto; height: min(62vw, 460px); z-index: 0; }
  .hero-media::after { background: linear-gradient(0deg, var(--ivory) 0%, rgba(250,252,248,0) 26%); }
  .hero-slide img { object-position: 76% 30%; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-block: 8px 72px; }
  .hero-controls { top: calc(min(62vw, 460px) - 64px); bottom: auto; right: 16px; padding: 4px; }
  .hc-btn { width: 36px; height: 36px; }
  .hero-badge { margin-bottom: 18px; }
}
@media (max-width: 560px) {
  .hero-media { height: 74vw; }
  .hero-controls { top: calc(74vw - 60px); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-stats { gap: 18px; justify-content: space-between; }
  .stat-label { font-size: .8rem; }
}

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust { position: relative; z-index: 4; margin-top: clamp(-88px, -9vh, -64px); }
.trust-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: 20px; box-shadow: var(--sh-2);
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 26px 26px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--mint); color: var(--green-ink); display: grid; place-items: center; flex: none; transition: transform .4s var(--ease-out); }
.trust-item:hover .trust-icon { transform: translateY(-2px) rotate(-4deg); }
.trust-item h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.trust-item p { font-size: .9rem; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }
@media (max-width: 960px) {
  .trust { margin-top: 0; }
  .trust-bar { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .trust-bar { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .trust-item { padding: 20px; }
}

/* ==========================================================================
   Features bento
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-1); padding: clamp(24px, 3vw, 34px); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.tile-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--mint); color: var(--green-ink); margin-bottom: 20px; transition: transform .45s var(--ease-out); }
.tile:hover .tile-icon { transform: translateY(-2px) scale(1.06); }
.tile h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.018em; }
.tile p { color: var(--ink-2); margin-top: 10px; max-width: 46ch; }
.tile-stock { grid-column: span 7; display: grid; grid-template-columns: 1fr; }
.tile-expiry { grid-column: span 5; background: var(--mint-2); box-shadow: none; }
.tile-expiry:hover { box-shadow: var(--sh-1); }
.tile-wa { grid-column: span 5; background: var(--forest); color: #fff; }
.tile-wa h3 { color: #fff; }
.tile-wa p { color: rgba(255,255,255,.78); }
.tile-wa .tile-icon { background: rgba(255,255,255,.1); color: #7CE0A2; }
.tile-list { grid-column: span 7; padding: 10px clamp(24px, 3vw, 34px); }
.tile-list ul { list-style: none; }
.tile-list li { display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start; padding: 22px 0; }
.tile-list li + li { border-top: 1px solid var(--line); }
.tile-list .tile-icon { margin: 0; }
.tile-list h3 { font-size: 1.12rem; }
.tile-list p { margin-top: 4px; font-size: .96rem; }

.mini-table { margin-top: 26px; border-radius: 12px; background: var(--mint-2); padding: 6px 16px; }
.mini-row { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 11px 0; font-size: .92rem; }
.mini-row + .mini-row { border-top: 1px solid var(--line); }
.mini-row .q { color: var(--ink-2); min-width: 4ch; text-align: right; }
.exp-list { margin-top: 24px; display: grid; gap: 10px; list-style: none; }
.exp-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; font-size: .92rem; }
.exp-list .d { font-size: .8rem; color: var(--ink-3); }
.wa-bubbles { margin-top: 26px; display: grid; gap: 8px; }
.wa-b { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.4; }
.wa-in { background: rgba(255,255,255,.1); color: #fff; border-bottom-left-radius: 4px; }
.wa-out { background: #DCF8C6; color: #0B2A18; justify-self: end; border-bottom-right-radius: 4px; }
.bento-foot { margin-top: 28px; display: flex; justify-content: flex-end; }
@media (max-width: 960px) {
  .tile-stock, .tile-expiry, .tile-wa, .tile-list { grid-column: 1 / -1; }
}

/* ==========================================================================
   Product showcase (tabs + app window)
   ========================================================================== */
.showcase { background: linear-gradient(180deg, var(--ivory), var(--mint-2)); }
.showcase-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.tabs { display: grid; gap: 6px; }
.tab {
  position: relative; text-align: left; border: 0; background: transparent; border-radius: var(--r-card);
  padding: 18px 20px 18px 58px; color: var(--ink-2); transition: background-color .25s, color .25s;
}
.tab .i { position: absolute; left: 20px; top: 20px; color: var(--ink-3); transition: color .25s; }
.tab strong { display: block; font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.tab .tab-desc { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s var(--ease-out), opacity .3s; }
.tab .tab-desc > span { overflow: hidden; display: block; font-size: .92rem; line-height: 1.45; }
.tab .tab-desc > span > span { display: block; padding-top: 4px; }
.tab:hover { background: rgba(255,255,255,.6); }
.tab[aria-selected="true"] { background: #fff; box-shadow: var(--sh-1); }
.tab[aria-selected="true"] .i { color: var(--green); }
.tab[aria-selected="true"] .tab-desc { grid-template-rows: 1fr; opacity: 1; }
.tab-progress { position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; background: transparent; }

.app-window { border-radius: var(--r-media); background: #fff; box-shadow: var(--sh-3); overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 16px; background: #F4F7F5; border-bottom: 1px solid var(--line); }
.app-bar .dots { display: flex; gap: 6px; }
.app-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #D5DED8; }
.app-url { flex: 1; max-width: 320px; margin-inline: auto; height: 28px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .78rem; color: var(--ink-3); }
.app-url .i { width: 12px; height: 12px; color: var(--green); }
.demo-tag { font-size: .72rem; font-weight: 600; color: var(--ink-3); background: #fff; border: 1px solid var(--line); padding: 3px 8px; border-radius: var(--r-pill); }
.app-body { display: grid; grid-template-columns: 196px 1fr; min-height: 470px; }
.app-side { background: #FBFCFB; border-right: 1px solid var(--line); padding: 16px 12px; display: grid; align-content: start; gap: 2px; }
.app-side .side-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 16px; font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.app-side .side-brand img { width: 22px; height: 22px; }
.side-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: .85rem; color: var(--ink-2); }
.side-item .i { width: 16px; height: 16px; }
.side-item.on { background: var(--mint); color: var(--forest); font-weight: 600; }
.app-main { position: relative; padding: 22px 24px; min-width: 0; }
.panel { display: none; }
.panel.is-active { display: block; }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-head h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; }
.panel-head p { font-size: .82rem; color: var(--ink-3); margin-top: 2px; }
.fake-input { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); font-size: .85rem; color: var(--ink-3); min-width: 220px; background: #fff; }
.fake-input .i { width: 16px; height: 16px; }
.fake-input b { color: var(--ink); font-weight: 500; }
.fake-input .caret { width: 1.5px; height: 16px; background: var(--green); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.alert-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: .83rem; margin-bottom: 8px; }
.alert-row .i { width: 16px; height: 16px; }
.alert-danger { background: var(--danger-bg); color: var(--danger); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.data-table { width: 100%; border-collapse: collapse; font-size: .86rem; margin-top: 8px; }
.data-table th { text-align: left; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding: 10px 10px; background: #F7F9F8; }
.data-table th:first-child { border-radius: 8px 0 0 8px; }
.data-table th:last-child { border-radius: 0 8px 8px 0; }
.data-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td.name { font-weight: 500; }
.data-table td.name small { display: block; font-weight: 400; color: var(--ink-3); font-size: .75rem; }
.data-table .r { text-align: right; }
.data-table mark { background: #D6F2E1; color: inherit; border-radius: 3px; padding: 0 1px; }
.timeline-exp { list-style: none; display: grid; gap: 10px; }
.timeline-exp li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #FBFCFB; border: 1px solid var(--line); }
.timeline-exp .days { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1; letter-spacing: -0.02em; text-align: center; }
.timeline-exp .days small { display: block; font-size: .68rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-top: 3px; }
.timeline-exp .n { font-weight: 500; font-size: .9rem; }
.timeline-exp .n small { display: block; color: var(--ink-3); font-weight: 400; font-size: .78rem; }
.resa-list { display: grid; gap: 10px; list-style: none; }
.resa-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.resa-list .n b { color: var(--ink-2); margin-right: 2px; }
.resa-total { font-size: .88rem; color: var(--ink); white-space: nowrap; }
.resa-list .n { font-size: .9rem; font-weight: 500; }
.resa-list .n small { display: block; font-size: .78rem; color: var(--ink-3); font-weight: 400; }
.resa-actions { display: flex; align-items: center; gap: 8px; }
.mini-btn { height: 30px; padding: 0 12px; border-radius: var(--r-pill); border: 0; background: var(--green-ink); color: #fff; font-size: .78rem; font-weight: 600; }
.showcase-note { margin-top: 14px; font-size: .82rem; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.showcase-note .i { width: 14px; height: 14px; }
@media (max-width: 1080px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter); scroll-snap-type: x mandatory; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 10px 18px 10px 44px; border-radius: var(--r-pill); scroll-snap-align: start; }
  .tab .i { left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; }
  .tab strong { font-size: .95rem; }
  .tab .tab-desc { display: none; }
}
@media (max-width: 760px) {
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .app-main { padding: 16px; }
  .panel-head { flex-direction: column; align-items: stretch; }
  .fake-input { min-width: 0; }
  .data-table .hide-sm { display: none; }
  .demo-tag { display: none; }
  .timeline-exp li { grid-template-columns: 52px 1fr; }
  .timeline-exp li .chip { grid-column: 2; justify-self: start; }
  .resa-list li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .resa-list .resa-actions { flex-wrap: wrap; }
}

/* ==========================================================================
   Global network (the one dark section, deliberate)
   ========================================================================== */
.network { position: relative; background: #0C2A1B; color: #E7F2EA; overflow: hidden; }
.network .h2 { color: #fff; }
.network .h2 em { color: #6FD89A; }
.network .lead { color: rgba(231,242,234,.78); }
.network-stage { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; padding-block: clamp(72px, 9vw, 110px) 48px; }
.network-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: end; }
.map-wrap { position: relative; margin-top: 36px; display: grid; place-items: center; }
.world-map { width: 100%; height: auto; max-height: 62vh; overflow: hidden; }
:is(.world-map, .footer-map) .land-world { stroke: rgba(210, 234, 219, .26); stroke-width: 3.1; stroke-linecap: round; }
:is(.world-map, .footer-map) .land-africa { stroke: rgba(111, 216, 154, .55); stroke-width: 3.4; stroke-linecap: round; }
:is(.world-map, .footer-map) .land-active { stroke: #7CF0AA; stroke-width: 4.2; stroke-linecap: round; }
.world-map .arc { fill: none; stroke: #6FD89A; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 3 6; opacity: .85; }
.world-map .arc-solid { fill: none; stroke: url(#arcGrad); stroke-width: 2; stroke-linecap: round; }
.node-core { fill: #fff; }
.node-ring { fill: none; stroke: #7CF0AA; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .node-ring { animation: ring 3.6s var(--ease-out) infinite; }
  .node-ring.r2 { animation-delay: 1.8s; }
}
@keyframes ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.node-label { font-family: var(--font-body); font-size: 15px; font-weight: 600; fill: #fff; paint-order: stroke; stroke: #0C2A1B; stroke-width: 5px; }
.node-label.sub { font-size: 12px; font-weight: 500; fill: rgba(231,242,234,.7); }
.network-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 28px; border-top: 1px solid rgba(231,242,234,.14); }
.network-facts li { list-style: none; padding: 22px 24px 0 0; }
.network-facts li + li { padding-left: 24px; border-left: 1px solid rgba(231,242,234,.14); }
.network-facts h3 { color: #fff; font-size: 1.05rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.network-facts h3 .i { color: #6FD89A; }
.network-facts p { margin-top: 6px; font-size: .92rem; color: rgba(231,242,234,.72); line-height: 1.5; }
.map-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: .82rem; color: rgba(231,242,234,.72); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; }
@media (max-width: 960px) {
  .network-stage { min-height: 0; }
  .network-top { grid-template-columns: 1fr; }
  .network-facts { grid-template-columns: 1fr; }
  .network-facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(231,242,234,.14); }
  .network-facts li { padding: 18px 0; }
  .world-map { max-height: none; }
}

/* ==========================================================================
   WhatsApp demo + pilot programme (social proof, honest)
   ========================================================================== */
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.phone {
  position: relative; width: min(380px, 100%); margin-inline: auto; border-radius: 40px; padding: 12px;
  background: #0F1F17; box-shadow: var(--sh-3);
}
.phone-screen { border-radius: 30px; overflow: hidden; background: #EAE3DD; display: flex; flex-direction: column; }
.phone-top { display: flex; align-items: center; gap: 12px; padding: 18px 16px 14px; background: #2B5F40; color: #fff; }
.phone-top img { width: 42px; height: 42px; border-radius: 50%; background: #fff; padding: 4px; }
.phone-top strong { display: block; font-size: .98rem; font-weight: 600; }
.phone-top small { font-size: .76rem; opacity: .8; }
/* Fixed height, scrolls like the real conversation as replies arrive (home.js). */
.chat {
  position: relative;
  display: flex; flex-direction: column; gap: 10px; padding: 14px 10px 16px; height: 520px;
  overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain;
  background: #EAE3DD radial-gradient(rgba(0,0,0,.045) 1px, transparent 1.2px) 0 0 / 16px 16px;
}
.chat::-webkit-scrollbar { display: none; }
.msg { flex: none; max-width: 88%; padding: 8px 10px 5px; border-radius: 10px; font-size: .82rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.1); background: #fff; color: #111B21; }
.msg.me { align-self: flex-end; background: #DCF8D2; border-top-right-radius: 3px; }
.msg.bot { align-self: flex-start; border-top-left-radius: 3px; }
.msg p + p { margin-top: 6px; }
.msg time { display: block; text-align: right; font-size: .66rem; color: #667781; margin-top: 2px; }
.msg-loc { width: 74%; padding: 4px 4px 5px; }
.msg-loc .loc-map { display: block; width: 100%; height: auto; aspect-ratio: 300 / 140; border-radius: 8px; }
.msg-loc > span { display: block; padding: 6px 6px 0; }
.msg-loc time { padding-right: 6px; }
.wa-results { max-width: 92%; }
.wa-ph { display: grid; margin-top: 8px; }
.wa-ph > span { padding-left: 1.4em; }
.wa-ph u { color: #027EB5; }
.wa-dir { margin-top: 10px; padding-top: 8px; border-top: 1px solid #8696A0; }
.chat-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px 12px; background: #F0F2F5; }
.chat-input span { flex: 1; height: 38px; border-radius: 20px; background: #fff; }
.chat-input i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #4CA582; color: #fff; }
.proof-copy .h2 { margin-bottom: 18px; }
.proof-points { list-style: none; display: grid; gap: 16px; margin-top: 28px; }
.proof-points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--ink-2); }
.proof-points .i { color: var(--green); margin-top: 3px; }
.proof-points b { color: var(--ink); font-weight: 600; }
.pilot { margin-top: 36px; padding: 26px 28px; border-radius: var(--r-card); background: var(--mint); }
.pilot h3 { font-size: 1.2rem; font-weight: 600; }
.pilot p { margin-top: 8px; color: var(--ink-2); }
.pilot .btn { margin-top: 18px; }
.testimonials { display: none; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 56px; }
.testimonials.has-items { display: grid; }
.testimonial { background: #fff; border-radius: var(--r-card); box-shadow: var(--sh-1); padding: 28px; }
.testimonial blockquote { margin: 0; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.45; letter-spacing: -0.01em; }
.testimonial figcaption { margin-top: 18px; font-size: .9rem; color: var(--ink-2); }
.testimonial figcaption b { display: block; color: var(--ink); }
@media (max-width: 960px) { .proof-grid { grid-template-columns: 1fr; } .proof-visual { order: 2; } }

/* ==========================================================================
   Closing CTA
   ========================================================================== */
.cta-panel { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-media); min-height: 440px; display: grid; align-items: center; background: var(--forest); }
.cta-panel picture, .cta-panel > img { position: absolute; inset: 0; z-index: -2; }
.cta-panel img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 35%; }
.cta-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,42,27,.94) 0%, rgba(12,42,27,.86) 38%, rgba(12,42,27,.2) 72%, rgba(12,42,27,0) 100%); }
.cta-content { padding: clamp(36px, 6vw, 72px); max-width: 640px; color: #fff; }
.cta-content .h2 { color: #fff; }
.cta-content .h2 em { color: #7CE0A2; }
.cta-content p { margin-top: 16px; color: rgba(255,255,255,.84); max-width: 44ch; }
.cta-content .hero-ctas { margin-top: 30px; }
@media (max-width: 760px) {
  .cta-panel::before { background: linear-gradient(0deg, rgba(12,42,27,.96) 0%, rgba(12,42,27,.86) 55%, rgba(12,42,27,.35) 100%); }
  .cta-panel { align-items: end; min-height: 560px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: #0C2A1B; color: #E7F2EA; padding: 72px 0 32px; margin-top: var(--section-y); }
.site-footer .container { max-width: none; padding-inline: clamp(20px, 5vw, 96px); }
/* Background: the home page's network map, built by site-core.js */
.footer-map { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease-out); }
.footer-map.is-loaded { opacity: .8; }
.footer-map svg { width: 100%; height: 100%; }
/* The world is wider than the footer is tall: let the map bleed past the top
   and bottom (mostly empty polar rows) so it reads at the size of the home one. */
@media (min-width: 961px) { .footer-map svg { position: absolute; left: 0; top: -22%; height: 144%; } }
@media (max-width: 960px) { .footer-map.is-loaded { opacity: .45; } }
.footer-map .arc-solid { fill: none; stroke: url(#ft-arc-grad); stroke-width: 2; stroke-linecap: round; }
.footer-grid { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 40px; }
.footer-brand { max-width: 34ch; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: .95rem; color: rgba(231,242,234,.78); max-width: 32ch; }
.footer-col h2 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: rgba(231,242,234,.78); text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: #6FD89A; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #6FD89A; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(231,242,234,.14); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: .9rem; color: rgba(231,242,234,.66); }
.footer-bottom .lang-switch { background: rgba(231,242,234,.1); }
.footer-bottom .lang-switch button { color: rgba(231,242,234,.78); }
.footer-bottom .lang-switch button:hover { color: #fff; }
.footer-bottom .lang-switch button[aria-pressed="true"] { background: #fff; color: var(--forest); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; justify-content: stretch; } .footer-brand { grid-column: 1 / -1; max-width: none; } }

/* ==========================================================================
   Sub-page hero (features / plans / about / faq / legal)
   ========================================================================== */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px); }
.page-hero .h1 { font-size: clamp(2.4rem, 1.4rem + 3vw, 3.9rem); max-width: 16em; }
.page-hero .lead { margin-top: 20px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--ink-3); margin-bottom: 20px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Features page: alternating detail rows */
.feature-rows { display: grid; gap: clamp(64px, 8vw, 112px); }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature-row:nth-child(even) .feature-visual { order: -1; }
.feature-row > *, .feature-band > * { min-width: 0; }
.feature-visual .card { overflow-x: auto; }
.feature-row .h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem); }
.feature-row .lead { margin-top: 14px; }
.check-list { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; color: var(--ink-2); }
.check-list .i { color: var(--green); width: 20px; height: 20px; margin-top: 3px; }
.feature-visual { border-radius: var(--r-media); background: var(--mint-2); padding: clamp(20px, 3vw, 36px); }
.feature-visual .card { background: #fff; border-radius: var(--r-card); box-shadow: var(--sh-2); padding: 18px 20px; }
.feature-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .feature-band { grid-template-columns: 1fr; } }
#site-header-slot { height: var(--header-h); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; }
.steps li { list-style: none; padding: 28px 28px 0 0; border-top: 2px solid var(--line-2); position: relative; }
.steps li + li { padding-left: 28px; }
.steps li::before { content: ''; position: absolute; top: -2px; left: 0; width: 56px; height: 2px; background: var(--green); }
.steps li + li::before { left: 28px; }
.steps h3 { font-size: 1.2rem; font-weight: 600; margin-top: 18px; }
.steps p { margin-top: 8px; color: var(--ink-2); }
.steps .step-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--mint); color: var(--green-ink); display: grid; place-items: center; }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-visual { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li + li { padding-left: 0; }
  .steps li + li::before { left: 0; }
}

/* Plans page */
.billing-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.seg { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: #EEF3EF; }
.seg button { height: 36px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: transparent; font-size: .9rem; font-weight: 600; color: var(--ink-2); transition: background-color .2s, color .2s; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--forest); box-shadow: 0 1px 3px rgba(16,32,25,.12); }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: var(--sh-1); padding: 32px 28px 28px; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.plan:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.plan.is-featured { background: var(--forest); color: #fff; box-shadow: var(--sh-3); }
.plan.is-featured .plan-desc, .plan.is-featured .plan-period, .plan.is-featured .plan-feats li { color: rgba(255,255,255,.8); }
.plan.is-featured .plan-feats .i { color: #7CE0A2; }
.plan.is-featured .plan-name { color: #fff; }
.plan-flag { position: absolute; top: 20px; right: 20px; font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: var(--r-pill); background: rgba(124,224,162,.16); color: #9CEBBB; }
.plan-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.plan-desc { margin-top: 6px; color: var(--ink-2); font-size: .95rem; min-height: 3em; }
.plan-price { margin-top: 22px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price .amount { font-family: var(--font-display); font-size: 2.7rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }  /* proportional: tabular figures give the thousands comma a digit's width */
.plan-price .cur { font-weight: 600; font-size: 1rem; }
.plan-period { font-size: .9rem; color: var(--ink-3); margin-top: 6px; }
.plan-limit { margin-top: 18px; padding: 10px 12px; border-radius: 10px; background: var(--mint-2); font-size: .88rem; font-weight: 500; color: var(--forest); display: flex; gap: 8px; align-items: center; }
.plan.is-featured .plan-limit { background: rgba(255,255,255,.08); color: #fff; }
.plan-limit .i { width: 16px; height: 16px; }
.plan-feats { list-style: none; display: grid; gap: 11px; margin: 22px 0 28px; flex: 1; align-content: start; }
.plan-feats li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .95rem; color: var(--ink-2); }
.plan-feats .i { width: 18px; height: 18px; color: var(--green); margin-top: 3px; }
.plan .btn { width: 100%; }
.plans-note { margin-top: 22px; font-size: .9rem; color: var(--ink-3); text-align: center; }
.plan-skeleton { min-height: 520px; border-radius: 20px; background: linear-gradient(90deg, #EEF3EF 0%, #F6F9F7 50%, #EEF3EF 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.compare { position: relative; margin-top: 72px; overflow-x: auto; }
.compare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; }
.compare caption { text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 18px; }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-family: var(--font-display); font-size: 1.05rem; }
.compare td .i { margin-inline: auto; color: var(--green); }
.compare td .no { color: #A8B6AE; }
@media (max-width: 960px) { .plans-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* About page */
.about-hero-media { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 48px; }
.about-hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-media); aspect-ratio: 16 / 10; }
.about-hero-media img:last-child { aspect-ratio: auto; object-position: 70% 50%; }
.story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.story blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.25; letter-spacing: -0.02em; color: var(--forest); }
.story .prose p + p { margin-top: 16px; }
.prose { color: var(--ink-2); font-size: 1.075rem; max-width: 65ch; }
.prose strong { color: var(--ink); }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fact { padding: 20px 24px 0 0; border-top: 2px solid var(--line-2); }
.fact + .fact { padding-left: 24px; }
.fact .stat-value { font-size: 2.6rem; }
.fact p { margin-top: 10px; color: var(--ink-2); font-size: .95rem; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mv { padding: clamp(28px, 4vw, 44px); border-radius: var(--r-media); background: var(--mint); }
.mv.dark { background: var(--forest); color: #fff; }
.mv.dark .h3, .mv.dark h2 { color: #fff; }
.mv.dark p { color: rgba(255,255,255,.82); }
.mv h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.mv p { margin-top: 12px; color: var(--ink-2); font-size: 1.05rem; }
.timeline { list-style: none; display: grid; gap: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 26px 0; border-top: 1px solid var(--line); }
.timeline time { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--green-ink); }
.timeline h3 { font-size: 1.15rem; font-weight: 600; }
.timeline p { margin-top: 6px; color: var(--ink-2); max-width: 60ch; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; list-style: none; }
.principles li { padding: 24px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 46px 1fr; gap: 16px; }
.principles h3 { font-size: 1.1rem; font-weight: 600; }
.principles p { margin-top: 6px; color: var(--ink-2); }
@media (max-width: 960px) {
  .about-hero-media, .story, .mv-grid, .principles { grid-template-columns: 1fr; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
}

/* FAQ page */
.faq-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.faq-nav a { display: block; padding: 9px 14px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.faq-nav a:hover { background: var(--mint); color: var(--forest); }
.faq-nav a.is-current { background: #fff; color: var(--forest); box-shadow: var(--sh-1); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group > h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.acc { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border: 0; background: transparent; text-align: left; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.acc-btn:hover { color: var(--forest); }
.acc-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--mint); color: var(--green-ink); display: grid; place-items: center; flex: none; transition: transform .4s var(--ease-out), background-color .2s; }
.acc-btn[aria-expanded="true"] .acc-icon { transform: rotate(180deg); background: var(--green-ink); color: #fff; }
.acc-panel { overflow: hidden; }
.acc-panel[hidden] { display: none; }
.acc-panel > div { padding: 0 48px 22px 0; color: var(--ink-2); max-width: 68ch; }
.acc-panel p + p { margin-top: 10px; }
.faq-contact { margin-top: 64px; padding: 32px; border-radius: var(--r-media); background: var(--mint); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.faq-contact h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.faq-contact p { color: var(--ink-2); margin-top: 6px; }
@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .acc-panel > div { padding-right: 0; }
}

/* Legal page */
.legal-doc { max-width: 760px; }
.legal-doc section + section { margin-top: 56px; }
.legal-doc h2 { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.legal-doc h3 { font-size: 1.08rem; font-weight: 600; margin: 22px 0 6px; }
.legal-doc p, .legal-doc li { color: var(--ink-2); }
.legal-doc ul { padding-left: 20px; display: grid; gap: 6px; margin-top: 8px; }

/* ==========================================================================
   Auth dialog (login / register), preserved behaviour, new skin
   ========================================================================== */
.dialog { border: 0; padding: 0; border-radius: 22px; width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); background: #fff; color: var(--ink); box-shadow: var(--sh-3); }
.dialog::backdrop { background: rgba(12, 42, 27, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog[open] { animation: dlg-in .35s var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .dialog[open] { animation: none; } }
.dialog-inner { padding: 32px; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); display: grid; place-items: center; }
.dialog-close:hover { background: var(--mint); color: var(--ink); }
.dialog-head { text-align: center; margin-bottom: 22px; }
.dialog-head img { width: 44px; height: 45px; margin: 0 auto 12px; }
.dialog-head h2 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.dialog-head p { color: var(--ink-2); font-size: .95rem; margin-top: 4px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--r-pill); background: #EEF3EF; margin-bottom: 22px; }
.auth-tabs button { height: 38px; border: 0; border-radius: var(--r-pill); background: transparent; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.auth-tabs button[aria-selected="true"] { background: #fff; color: var(--forest); box-shadow: 0 1px 3px rgba(16,32,25,.12); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--danger); }
.input { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid #C5D2CA; background: #fff; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: #7A8A80; }
.input:hover { border-color: #A4B6AB; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(34, 182, 91, .16); }
.pw-field { position: relative; }
.pw-field .input { padding-right: 52px; }
.pw-toggle { position: absolute; top: 50%; right: 5px; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); display: grid; place-items: center; transition: background-color .2s, color .2s; }
.pw-toggle:hover { background: var(--mint); color: var(--forest); }
.pw-toggle[aria-pressed="true"] { color: var(--green-ink); }
.pw-field .input::-ms-reveal { display: none; }
.terms-row { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin: 6px 0 18px; font-size: .9rem; color: var(--ink-2); }
.terms-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green-ink); }
.terms-row button { border: 0; background: none; padding: 0; color: var(--green-ink); text-decoration: underline; font-weight: 600; }
.form-error { min-height: 20px; margin-top: 10px; font-size: .88rem; color: var(--danger); }
.terms-dialog { width: min(640px, calc(100vw - 32px)); }
.terms-dialog .dialog-inner { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); padding: 0; }
.terms-dialog .terms-head { padding: 24px 28px 16px; border-bottom: 1px solid var(--line); }
.terms-dialog .terms-head h2 { font-size: 1.3rem; font-weight: 700; }
.terms-body { overflow-y: auto; padding: 20px 28px; font-size: .95rem; color: var(--ink-2); }
.terms-body h4 { font-family: var(--font-display); color: var(--ink); font-size: 1rem; margin: 18px 0 6px; }
.terms-body h4:first-of-type { margin-top: 6px; }
.terms-foot { padding: 16px 28px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.terms-foot .btn { flex: 1; }
.terms-foot .btn-primary { flex: 2; }

/* ==========================================================================
   Motion defaults: content is visible without JS. site.js only animates
   when GSAP loads and the visitor has not asked for reduced motion.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .fake-input .caret { animation: none; }
}

/* Pre-animation state, only when site-core.js confirmed motion is allowed */
.js-motion [data-reveal], .js-motion [data-anim="hero"] { opacity: 0; }

/* Features preview flows straight into the product showcase */
#features { padding-bottom: clamp(24px, 3vw, 40px); }

/* Phones: taller photo, controls under the photo */
@media (max-width: 960px) {
  .hero { display: flex; flex-direction: column; }
  .hero-controls { position: static; order: 2; align-self: flex-end; margin: -22px 16px 0; z-index: 4; }
  .hero-inner { order: 3; }
}
@media (max-width: 560px) {
  .hero-media { height: 66vw; max-height: 340px; }
  .hero-controls { align-self: center; margin-top: 4px; box-shadow: none; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero-inner { padding-top: 0; }
  .hero-badge { margin-bottom: 14px; font-size: .8125rem; }
  .hero-copy .lead { margin-top: 14px; font-size: 1rem; }
  .hero-ctas { margin-top: 22px; }
}
@media (max-width: 400px) {
  .hero-copy .h1 { font-size: 2.3rem; }
  .hero-media { height: 62vw; }
}
