/* =========================================================
   QLands / FormShare — Saffron Charge + Coral
   Pure CSS, no framework. Mobile-first, single breakpoint @768px.
   ========================================================= */

:root {
  /* Brand palette */
  --pitch:   #0B0904;  /* background      */
  --ash:     #1C1608;  /* surface         */
  --saffron: #F0B429;  /* primary brand   */
  --coral:   #E8263C;  /* action / CTA    */
  --solar:   #FFE066;  /* highlight       */
  --linen:   #F5F0E8;  /* body text       */

  --linen-dim: rgba(245, 240, 232, 1);
  --hairline:  rgba(245, 240, 232, 0.10);
  --surface-2: #241c0c;

  --grad: linear-gradient(90deg, var(--saffron), var(--coral));

  --maxw: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ---------- Scrollbar (saffron → coral gradient) ---------- */
/* Firefox */
html { scrollbar-width: thin; scrollbar-color: var(--saffron) var(--ash); }
/* WebKit / Chromium / Safari */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--ash); }
::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 1px solid var(--ash);           /* slim inset so the thumb reads as a pill */
  background: linear-gradient(180deg, var(--saffron), var(--coral)) border-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--solar), var(--coral)) border-box;
}
::-webkit-scrollbar-corner { background: var(--ash); }
body {
  font-family: var(--font);
  background: var(--pitch);
  color: var(--linen);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.brandline { height: 4px; background: var(--grad); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--linen-dim); max-width: 46ch; margin-top: 18px; }
.saffron { color: var(--saffron); }
.coral   { color: var(--coral); }
.white   { color: #fff; }
.muted   { color: var(--linen-dim); }
.eyebrow { color: var(--saffron); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.kicker  {
  display: inline-block; color: var(--saffron); font-weight: 600; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px;
  padding-bottom: 6px; border-bottom: 2px solid var(--coral);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 600; font-size: .95rem;
  padding: 11px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-primary { background: var(--saffron); color: var(--pitch); }
.btn-primary:hover { background: var(--solar); box-shadow: 0 10px 30px rgba(240,180,41,.28); }
.btn-outline { border-color: var(--saffron); color: var(--saffron); }
.btn-outline:hover { background: var(--saffron); color: var(--pitch); }
.btn-ghost { color: var(--linen); }
.btn-ghost:hover { color: var(--saffron); transform: none; }
.btn-dark { background: var(--pitch); color: var(--linen); border-color: rgba(11,9,4,.2); }
.btn-dark:hover { background: #000; box-shadow: 0 10px 30px rgba(0,0,0,.3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 9, 4, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 70px; }
.logo img { height: 53.125px; width: auto; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav > a:not(.btn) { padding: 8px 12px; font-size: .95rem; color: var(--linen-dim); transition: color .2s; }
.nav > a:not(.btn):hover { color: var(--saffron); }
.nav .btn { margin-left: 6px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--linen); transition: .3s var(--ease); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0; position: relative; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(240,180,41,.12), transparent 70%),
    radial-gradient(50% 50% at 10% 30%, rgba(232,38,60,.10), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 22px; color: var(--linen-dim); font-size: .98rem; }
.hero-note strong { color: var(--linen); font-weight: 600; }
.hero-note strong.coral   { color: var(--coral); }     /* colour span wins over the linen strong */
.hero-note strong.saffron { color: var(--saffron); }

/* product mockup */
.hero-visual { position: relative; }
/* Product collage: three real screenshots overlapping & "coming together" */
.hero-collage { position: relative; width: 100%; aspect-ratio: 1.35 / 1; }
/* Android + iOS store badges under the hero collage — coral-rimmed light circles */
.store-badges { display: flex; justify-content: center; gap: 22px; margin-top: 26px; }
.store-badge {
  width: 72px; height: 72px; border-radius: 50%;
  background: #fff; border: 2px solid var(--coral);
  display: grid; place-items: center; flex: none;
}
.store-badge img { width: 44px; height: 44px; display: block; }
/* soft brand glow behind the collage */
.hero-collage::before {
  content: ""; position: absolute; inset: 6% 4%; z-index: 0;
  background: radial-gradient(60% 60% at 50% 45%, rgba(240,180,41,.18), transparent 70%);
  filter: blur(28px);
}
.hero-collage .shot {
  position: absolute; border-radius: 12px;
  /* saffron → coral gradient border (padding-box keeps the image, border-box paints the frame) */
  border: 3px solid transparent;
  background: linear-gradient(var(--ash), var(--ash)) padding-box,
              var(--grad) border-box;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  /* appear effect: each shot fades in (transparent -> opaque) on load */
  opacity: 0; transition: opacity .8s var(--ease);
}
.hero-collage .shot-analytics { top: 0;    left: 0;  width: 66%; z-index: 1; }
.hero-collage .shot-form     { bottom: 0; left: 8%; width: 66%; z-index: 2; }
.hero-collage .shot-phone    {
  top: 50%; right: 0; height: 96%; width: auto; z-index: 3; border-radius: 18px;
  transform: translateY(-50%);
}
/* fade the three shots in (staggered) once the hero visual reveals */
.reveal.in .hero-collage .shot { opacity: 1; }
.hero-collage .shot-analytics { transition-delay: .05s; }
.hero-collage .shot-form      { transition-delay: .25s; }
.hero-collage .shot-phone     { transition-delay: .45s; }

/* ---------- Bands & sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
/* home page: tighter — half the vertical section spacing (scoped to body.home) */
.home .section { padding: clamp(28px, 4vw, 48px) 0; }
/* half the gap below the hero too (hero bottom padding) */
.home .hero { padding-bottom: clamp(24px, 4vw, 48px); }
.section.alt { background: var(--ash); border-block: 1px solid var(--hairline); }
.band { padding: clamp(48px, 7vw, 84px) 0; background: var(--ash); border-block: 1px solid var(--hairline); }
.band-lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--linen-dim); max-width: 60ch; margin-top: 16px; }
.section h2, .band h2 { max-width: 22ch; }

.checklist { list-style: none; margin: 26px 0; display: grid; gap: 12px; max-width: 60ch; }
.checklist li { position: relative; padding-left: 32px; color: var(--linen-dim); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--grad);
  color: var(--pitch); font-size: .72rem; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- Impact story (home) ---------- */
.impact { position: relative; }
.impact-card {
  display: grid; grid-template-columns: 340px 1fr; margin-top: 26px;
  border-radius: var(--radius); overflow: hidden; border: 1px solid transparent;
  /* signature saffron→coral frame (padding-box keeps the fill, border-box paints the edge) */
  background: linear-gradient(var(--ash), var(--ash)) padding-box, var(--grad) border-box;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.impact-aside {
  padding: 36px 30px; display: flex; flex-direction: column; gap: 14px;
  border-right: 1px solid var(--hairline);
  /* Ukraine backdrop at 70% transparency — a 0.7 pitch overlay over the cover image
     leaves the photo showing at ~30% so it stays subtle and text remains readable. */
  background:
    linear-gradient(rgba(11, 9, 4, 0.7), rgba(11, 9, 4, 0.7)),
    url('assets/index/ukraine.png') center / cover no-repeat;
}
.impact-org { color: var(--saffron); font-weight: 600; font-size: 1.02rem; }
.impact-context { color: var(--linen-dim); font-size: .9rem; line-height: 1.7; }
.impact-body { padding: clamp(30px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.impact-body p { color: var(--linen-dim); line-height: 1.78; max-width: 68ch; text-align: justify; }
.impact-body p + p { margin-top: 16px; }

/* ---------- 404 page ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.nf-inner { max-width: 620px; }
.nf-code {
  font-size: clamp(6rem, 22vw, 12rem); font-weight: 800; line-height: .85; margin-bottom: 6px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.notfound h1 { font-size: clamp(1.5rem, 4vw, 2.3rem); max-width: 20ch; margin: 0 auto 14px; }
.nf-lead { margin: 0 auto 30px; }
.nf-cta { justify-content: center; margin-top: 0; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; margin-top: 40px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--ash); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.section.alt .card { background: var(--pitch); }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-6px); border-color: rgba(240,180,41,.4); box-shadow: 0 20px 44px rgba(0,0,0,.4); }
.card:hover::before { transform: scaleX(1); }
.card-icon { font-size: 1.8rem; margin-bottom: 14px; }
.card h3 { color: var(--linen); margin-bottom: 10px; }
.card p { color: var(--linen-dim); font-size: .94rem; }
.card.sector h3 { color: var(--saffron); }
#features .card h3 { color: var(--saffron); }   /* home Key Features titles — match Sectors */
/* Sector + Key-Feature icons: pre-recoloured saffron SVGs (assets/index/*-saffron.svg),
   used as plain <img>. No CSS mask — masking rendered blank on the target browser. */
.sector-icon, .feat-icon {
  display: block;
  width: auto; height: 42px; margin-bottom: 14px;
}

.section-cta { margin-top: 36px; }

/* ---------- Split (custom) ---------- */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.split-left { position: sticky; top: 100px; }
.split-left .btn { margin-top: 22px; }
.split-right p { color: var(--linen-dim); margin-bottom: 16px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad); color: var(--pitch); padding: clamp(50px, 7vw, 80px) 0; text-align: center; }
.cta-band h2 { color: var(--pitch); margin-inline: auto; max-width: 20ch; }
.cta-band .hero-cta { justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pitch); border-top: 1px solid var(--hairline); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand img { height: 56.25px; margin-bottom: 14px; }
.footer-brand .muted { max-width: 30ch; font-size: .92rem; }
.footer-col h4 { color: var(--saffron); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--linen-dim); padding: 5px 0; font-size: .94rem; transition: color .2s; }
.footer-col a:hover { color: var(--saffron); }
.footer-bottom { border-top: 1px solid var(--hairline); padding: 22px 0; color: var(--linen-dim); font-size: .85rem; }

/* ---------- Active nav link ---------- */
.nav > a.active { color: var(--saffron); }

/* =========================================================
   ABOUT PAGE
   ========================================================= */
/* page hero / intro */
.about-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); position: relative; }
.about-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, rgba(240,180,41,.12), transparent 70%);
}
.about-hero-inner { max-width: 820px; text-align: center; margin-inline: auto; }
.about-hero-inner .eyebrow { display: block; }
.about-hero h1 { margin-top: 12px; }
.about-subhead { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--saffron); font-weight: 600; margin-top: 14px; }
.about-intro-prose { margin-top: 26px; text-align: left; }
.about-intro-prose p { color: var(--linen-dim); margin-bottom: 16px; text-align: justify; }
.about-intro-prose strong { color: var(--linen); font-weight: 600; }
/* justify the "Today and ahead" body paragraph (not the origin timeline paragraphs) */
[data-cid="today.paragraphs"] p { text-align: justify; }

/* image + text rows */
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.about-row.reverse .about-media { order: 2; }
.about-media img {
  width: 100%; border-radius: var(--radius);
  border: 3px solid transparent;
  background: linear-gradient(var(--ash), var(--ash)) padding-box, var(--grad) border-box;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.about-text h2 { max-width: 18ch; margin-bottom: 20px; }
.about-text p { color: var(--linen-dim); margin-bottom: 16px; }
.about-text strong { color: var(--linen); font-weight: 600; }

/* footer bottom bar: © on the left, trademark note on the right (About page) */
.footer-bottom-row { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; }
.footer-trademark { color: var(--linen-dim); opacity: .8; text-align: right; }
.footer-disclaimer { display: block; font-size: .62rem; margin-top: 3px; }

/* origin row: timeline can be tall, so top-align and let the image follow along */
.origin-row { align-items: start; }
.origin-row .about-media { position: sticky; top: 96px; }

/* ---------- Expandable timeline (About → origin) ---------- */
.timeline { position: relative; margin-top: 8px; }
/* the saffron→coral spine */
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px;
  width: 2px; background: var(--grad); border-radius: 2px;
}
.tl-item { position: relative; padding-left: 34px; }
.tl-item + .tl-item { border-top: 1px solid var(--hairline); }
/* node dot on the spine */
.tl-item::before {
  content: ""; position: absolute; left: 2px; top: 20px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--saffron); box-shadow: 0 0 0 3px var(--pitch);
  transition: background .2s, transform .2s;
}
.tl-item[open]::before { background: var(--coral); transform: scale(1.15); }
.tl-item > summary {
  list-style: none; cursor: pointer; display: flex; flex-wrap: wrap;
  align-items: baseline; gap: 4px 14px; padding: 14px 0;
}
.tl-item > summary::-webkit-details-marker { display: none; }
.tl-year { color: var(--saffron); font-weight: 700; font-size: 1.02rem; min-width: 86px; }
.tl-head { color: var(--linen); font-weight: 500; flex: 1; min-width: 0; }
.tl-item[open] .tl-head { color: var(--saffron); }
/* + / – toggle indicator */
.tl-item > summary::after {
  content: "+"; margin-left: auto; color: var(--saffron);
  font-size: 1.3rem; line-height: 1; font-weight: 400; padding-left: 10px;
}
.tl-item[open] > summary::after { content: "\2013"; }
.tl-item > p {
  color: var(--linen-dim); line-height: 1.75; margin: 0 0 16px;
  padding-left: 0; max-width: 60ch; animation: tl-fade .25s var(--ease);
}
@keyframes tl-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.tl-item > summary:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

/* vision & mission */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vm-card {
  background: var(--ash); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 36px 32px; text-align: center; position: relative; overflow: hidden;
}
.vm-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--grad); }
.vm-card h2 { color: var(--saffron); margin-bottom: 14px; }
.vm-card p { color: var(--linen-dim); max-width: 38ch; margin-inline: auto; }

/* leadership team */
.team-title { text-align: center; margin-bottom: 12px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 760px; margin: 40px auto 0; }
.team-member { text-align: center; }
.team-photo {
  width: 150px; height: 150px; margin: 0 auto 18px; border-radius: 50%;
  padding: 4px; background: var(--grad);
}
.team-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--pitch); }
.team-name { display: block; font-weight: 600; font-size: 1.1rem; color: var(--linen); }
.team-role { display: block; color: var(--linen-dim); font-size: .9rem; margin-top: 2px; }

/* =========================================================
   NAV DROPDOWN  (FormShare ▾ → Core features)
   ========================================================= */
.nav-group { position: relative; display: flex; align-items: center; }
.nav-parent {
  font-family: var(--font); font-size: .95rem; font-weight: 400;
  background: none; border: 0; cursor: pointer; color: var(--linen-dim);
  padding: 8px 12px; display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.nav-parent .caret { font-size: .65rem; transition: transform .25s var(--ease); }
.nav-group:hover .nav-parent, .nav-group:focus-within .nav-parent,
.nav-parent.active, .nav-parent:hover { color: var(--saffron); }
.nav-group:hover .nav-parent .caret, .nav-group:focus-within .nav-parent .caret { transform: rotate(180deg); }

.nav-menu {
  position: absolute; top: 100%; left: 0; min-width: 190px;
  background: var(--ash); border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  padding: 8px; box-shadow: 0 20px 44px rgba(0,0,0,.5); z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu {
  opacity: 1; visibility: visible; transform: none;
}
.nav-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .92rem; color: var(--linen-dim); }
.nav-menu a:hover, .nav-menu a.active { background: var(--surface-2); color: var(--saffron); }

/* =========================================================
   CORE FEATURES PAGE  (flip cards)
   ========================================================= */
.cf-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(8px, 2vw, 20px); text-align: center; position: relative; }
.cf-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, rgba(240,180,41,.12), transparent 70%);
}
.cf-hero-inner { max-width: 720px; margin-inline: auto; }
.cf-subhead { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--saffron); font-weight: 600; margin-top: 14px; }
.cf-note { color: var(--linen-dim); margin-top: 14px; font-size: .95rem; }
.cf-note a { color: var(--saffron); text-decoration: underline; text-underline-offset: 2px; }
.cf-note a:hover { color: var(--solar); }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }

.feature-flip { perspective: 1400px; min-height: 380px; cursor: pointer; outline: none; }
/* a card with more back content (e.g. Extensibility examples) needs extra height */
.feature-flip.flip-tall, .feature-flip.flip-tall .flip-inner { min-height: 500px; }
/* core-features: a few backs overflow at desktop 4-col — raise all cards uniformly
   (scoped to this page so enterprise cards, which fit at 380, are unaffected) */
.cf-grid .feature-flip, .cf-grid .feature-flip .flip-inner { min-height: 440px; }
.feature-flip:focus-visible { outline: 2px solid var(--saffron); outline-offset: 4px; border-radius: var(--radius); }
.flip-inner {
  position: relative; width: 100%; height: 100%; min-height: 380px;
  transition: transform .6s var(--ease); transform-style: preserve-3d;
}
.feature-flip:hover .flip-inner,
.feature-flip:focus-within .flip-inner,
.feature-flip.flipped .flip-inner { transform: rotateY(180deg); }

.flip-front, .flip-back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius); border: 1px solid var(--hairline); background: var(--ash);
  padding: 28px 24px; display: flex; flex-direction: column; overflow: auto;
}
.flip-front .card-icon { font-size: 1.9rem; margin-bottom: 14px; }
.flip-front h3 { color: var(--linen); margin-bottom: 10px; }
.flip-front p { color: var(--linen-dim); font-size: .92rem; }
.flip-hint { margin-top: auto; padding-top: 14px; color: var(--saffron); font-weight: 600; font-size: .85rem; }

.flip-back {
  transform: rotateY(180deg);
  border: 2px solid transparent;
  background: linear-gradient(var(--ash), var(--ash)) padding-box, var(--grad) border-box;
}
.flip-back h3 { color: var(--saffron); margin-bottom: 14px; }
/* intro line above a flip-back list (no bullet) — e.g. Extensibility examples */
.flip-back .flip-lead { color: var(--linen-dim); font-size: .88rem; margin-bottom: 12px; }
.flip-back ul { list-style: none; display: grid; gap: 9px; }
.flip-back li { position: relative; padding-left: 24px; color: var(--linen-dim); font-size: .88rem; }
.flip-back li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 17px; height: 17px; border-radius: 50%; background: var(--grad);
  color: var(--pitch); font-size: .6rem; font-weight: 700; display: grid; place-items: center;
}

/* ---------- Sector flip cards (home) — 3 per row, flip on TAP only ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.sector-flip { perspective: 1400px; min-height: 380px; cursor: pointer; outline: none; }
.sector-flip:focus-visible { outline: 2px solid var(--saffron); outline-offset: 4px; border-radius: var(--radius); }
.sector-flip .flip-inner { min-height: 380px; }
/* tap/click only (via .flipped from main.js) — no hover/focus-within flip */
.sector-flip.flipped .flip-inner { transform: rotateY(180deg); }
/* on the darker .section.alt, give the cards a pitch fill so they stand out */
.sector-flip .flip-front { background: var(--pitch); }
.sector-flip .flip-back { background: linear-gradient(var(--pitch), var(--pitch)) padding-box, var(--grad) border-box; }
.sector-flip .flip-front h3 { color: var(--saffron); margin-bottom: 10px; }
.sector-flip .flip-back p { color: var(--linen-dim); font-size: .9rem; line-height: 1.65; }
.sector-flip .flip-hint { margin-top: auto; padding-top: 14px; color: var(--saffron); font-weight: 600; font-size: .82rem; }
/* "Start a 30 day trial" pinned to the bottom, centered, on the card back */
.sector-cta { margin-top: auto; align-self: center; }

.cf-footnotes { margin-top: 28px; max-width: 95ch; }
.cf-footnotes p { color: var(--linen-dim); font-size: .82rem; margin-bottom: 6px; }
.cf-trademark { color: var(--linen-dim); font-size: .76rem; margin-top: 18px; max-width: 95ch; opacity: .8; }
.cf-trademark a { color: var(--saffron); text-decoration: underline; text-underline-offset: 2px; }
.cf-trademark a:hover { color: var(--solar); }

/* tablet: 4 cards get too narrow (text overflows a card you can't scroll while it
   flips) — drop to 2 columns so each card is wide enough for its content */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  /* tablet: 4-up grids are too cramped — go 2-up (home Key Features/Sectors, Enterprise plans).
     Extra-specific selectors so these win over the base .grid-4 / .plan-grid-4 rules that are
     defined later in the file (equal specificity would otherwise lose on source order). */
  .grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid.plan-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   RESOURCES / BLOG
   ========================================================= */
.breadcrumb { font-size: .85rem; color: var(--saffron); margin-bottom: 18px; }
.breadcrumb a { color: var(--saffron); }
.breadcrumb a:hover { color: var(--solar); }
.blog-title { margin-bottom: 8px; }

/* shared author meta (listing + post) */
.post-meta { display: flex; align-items: center; gap: 12px; }
.post-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--grad); color: var(--pitch); font-weight: 700;
  display: grid; place-items: center; font-size: .95rem;
}
.post-author { display: block; color: var(--linen); font-weight: 600; font-size: .9rem; }
.post-subline { display: block; color: var(--linen-dim); font-size: .8rem; }

/* listing */
.post-list { display: grid; gap: 26px; margin-top: 34px; }
.post-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  background: var(--ash); border: 1px solid var(--hairline); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(240,180,41,.4); box-shadow: 0 20px 44px rgba(0,0,0,.4); }
.post-card-media { display: block; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { padding: 24px 26px; }
.post-card-title { font-size: 1.3rem; margin: 14px 0 10px; }
.post-card-title a { color: var(--linen); }
.post-card-title a:hover { color: var(--saffron); }
.post-card-excerpt { color: var(--linen-dim); font-size: .92rem; }
.post-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.post-views { color: var(--linen-dim); font-size: .82rem; }

/* like button (client-side placeholder until backend) */
.like-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: none; border: 1px solid var(--hairline); border-radius: 999px;
  padding: 6px 14px; font-family: var(--font); font-size: .85rem; color: var(--linen-dim);
  transition: color .2s, border-color .2s, background .2s, transform .15s var(--ease);
}
.like-btn:hover { border-color: var(--coral); color: var(--coral); }
.like-btn .like-icon { font-size: 1rem; line-height: 1; transition: transform .2s var(--ease); }
.like-btn.liked { color: var(--coral); border-color: var(--coral); background: rgba(232,38,60,.10); }
.like-btn.liked .like-icon { transform: scale(1.18); }

/* post article */
.post-wrap { max-width: 760px; }
.post .breadcrumb { margin-top: 8px; }
.post-meta { margin-top: 18px; }
.post-h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: 18px; }
.post-updated { color: var(--linen-dim); font-size: .82rem; margin-top: 8px; }
.post-summary { color: var(--linen); font-size: 1.08rem; line-height: 1.7; margin-top: 22px; opacity: .92; }
.post-cover { margin: 30px 0; }
.post-cover img {
  width: 100%; border-radius: var(--radius);
  border: 3px solid transparent;
  background: linear-gradient(var(--ash), var(--ash)) padding-box, var(--grad) border-box;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.post-body h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--saffron); margin: 36px 0 14px; }
.post-body h3 { font-size: clamp(1.02rem, 1.9vw, 1.22rem); color: var(--solar); margin: 24px 0 10px; }
.post-body strong { color: var(--linen); font-weight: 600; }
.post-body em { font-style: italic; }
.post-body p { color: var(--linen-dim); margin-bottom: 16px; line-height: 1.75; }
.post-body ul { margin: 0 0 16px; padding-left: 22px; }
.post-body li { color: var(--linen-dim); margin-bottom: 8px; line-height: 1.7; }
.post-body li::marker { color: var(--saffron); }
.post-body a { color: var(--saffron); }
.post-body a:hover { color: var(--solar); }

/* legal pages: first H2 ("1. …") shouldn't add a big top gap right after the lead */
.legal .post-body h2:first-child { margin-top: 8px; }
.post-foot {
  display: flex; align-items: center; gap: 18px; margin-top: 36px;
  padding-top: 22px; border-top: 1px solid var(--hairline);
}
.post-back { margin-top: 26px; }

/* ---------- Light reading theme for blog posts (body.post-light) ----------
   Header + footer stay dark (brand chrome / logo); the article band goes light
   for comfortable long-form reading. Text = warm near-black; accents = coral,
   with a darker gold for h3 (plain saffron is too low-contrast on the cream). */
.post-light main { background: #F3EDE3; }
.post-light .post-h1 { color: #1f1b16; }
.post-light .post-summary { color: #2b2620; opacity: 1; }
.post-light .post-author { color: #1f1b16; }
.post-light .post-subline,
.post-light .post-updated,
.post-light .post-views { color: #6b6459; }
.post-light .breadcrumb,
.post-light .breadcrumb a { color: var(--coral); }
.post-light .breadcrumb a:hover { color: #b01e2f; }
.post-light .post-body p,
.post-light .post-body li { color: #2b2620; }
.post-light .post-body h2 { color: var(--coral); }
.post-light .post-body h3 { color: #9c5b12; }
.post-light .post-body strong { color: #1f1b16; }
.post-light .post-body a { color: var(--coral); }
.post-light .post-body a:hover { color: #b01e2f; }
.post-light .post-body li::marker { color: var(--coral); }
.post-light .cf-trademark { color: #6b6459; }
.post-light .cf-trademark a { color: var(--coral); }
.post-light .post-foot { border-top-color: rgba(31, 27, 22, .14); }
.post-light .like-btn { border-color: rgba(31, 27, 22, .25); color: #2b2620; }
.post-light .like-btn:hover,
.post-light .like-btn.liked { border-color: var(--coral); color: var(--coral); }
.post-light .post-back .btn-outline { border-color: rgba(31, 27, 22, .35); color: #1f1b16; }
.post-light .post-back .btn-outline:hover { border-color: var(--coral); color: var(--coral); }

/* =========================================================
   PLANS PAGE
   ========================================================= */
.plans-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(20px, 3vw, 32px); text-align: center; position: relative; }
.plans-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, rgba(240,180,41,.12), transparent 70%);
}
.plans-hero-inner { max-width: 760px; margin-inline: auto; }
.plans-subhead { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--saffron); font-weight: 600; margin-top: 14px; }
/* "No credit card…" trial note under the Core intro: intro-size, bold, coral, extra gap */
.trial-note { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--coral); font-weight: 600; margin-top: 30px; }
/* Enterprise "pricing is based on storage capacity" note: saffron, extra gap from the intro */
.includes-note { color: var(--saffron); font-size: .94rem; margin-top: 24px; }
/* inline feature links in the plans intro notes */
.plans-note a, .includes-note a { color: var(--saffron); text-decoration: underline; text-underline-offset: 2px; }
.plans-note a:hover, .includes-note a:hover { color: var(--solar); }
.plans-note { color: var(--linen-dim); margin-top: 16px; }
.plans-note strong { color: var(--linen); font-weight: 600; }
/* enterprise subhead sits under the H2, not centered like the page hero */
.section .plans-subhead { text-align: left; margin-top: 6px; }

/* pricing grids */
.plan-grid { display: grid; gap: 22px; margin-top: 44px; align-items: stretch; }
.plan-grid-3 { grid-template-columns: repeat(3, 1fr); }
.plan-grid-4 { grid-template-columns: repeat(4, 1fr); }

.plan-card {
  background: var(--ash); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 30px 24px; display: flex; flex-direction: column; position: relative;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.section.alt .plan-card { background: var(--pitch); }
.plan-card:hover { transform: translateY(-6px); border-color: rgba(240,180,41,.4); box-shadow: 0 20px 44px rgba(0,0,0,.4); }

/* featured (popular) card */
.plan-card.featured {
  border: 2px solid transparent;
  background: linear-gradient(var(--ash), var(--ash)) padding-box, var(--grad) border-box;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: var(--pitch); font-weight: 700; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
  white-space: nowrap;
}

.plan-name { color: var(--saffron); font-size: 1.3rem; font-weight: 700; }
.plan-capacity { color: var(--linen); font-weight: 600; font-size: .92rem; margin-top: 6px; }
.plan-blurb { color: var(--linen-dim); font-size: .9rem; margin-top: 8px; min-height: 3.2em; }

.plan-price { margin-top: 20px; display: flex; flex-direction: column; }
.plan-amount { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--linen); letter-spacing: -0.02em; }
.plan-amount-sm { font-size: 1.8rem; }
.plan-period { color: var(--linen-dim); font-size: .82rem; margin-top: 8px; }
.plan-monthly { color: var(--linen-dim); font-size: .92rem; margin-top: 10px; }
.plan-monthly span { display: block; font-size: .78rem; opacity: .8; }

.plan-features { list-style: none; margin: 22px 0 26px; display: grid; gap: 10px; }
.plan-features li { position: relative; padding-left: 26px; color: var(--linen-dim); font-size: .9rem; }
.plan-features li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--grad);
  color: var(--pitch); font-size: .62rem; font-weight: 700; display: grid; place-items: center;
}
.plan-cta { margin-top: auto; width: 100%; }

.plan-footnote { color: var(--linen-dim); font-size: .8rem; margin-top: 26px; max-width: 90ch; }
.plan-footnotes { margin-top: 26px; max-width: 90ch; }
.plan-footnotes p { color: var(--linen-dim); font-size: .8rem; margin-bottom: 10px; }

/* mini FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.faq-item h3 { color: var(--saffron); margin-bottom: 8px; }
.faq-item p { color: var(--linen-dim); font-size: .94rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-collage .shot { opacity: 1; transition: none; }
  .flip-inner { transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE — single breakpoint
   ========================================================= */
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: 1fr; }
  /* footer bottom stacks — keep the trademark + disclaimer left-aligned */
  .footer-trademark { text-align: left; }
  .sector-flip, .sector-flip .flip-inner { min-height: 340px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  /* a touch taller on mobile so the three screenshots stay legible */
  .hero-collage { aspect-ratio: 1.2 / 1; max-width: 460px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split-left { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* impact story: stack aside above body */
  .impact-card { grid-template-columns: 1fr; }
  .impact-aside { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 28px 24px; align-items: flex-start; }

  /* about page */
  .about-row { grid-template-columns: 1fr; gap: 28px; }
  .about-row.reverse .about-media { order: -1; }
  .about-media { order: -1; }
  /* origin: Nairobi image sits above the timeline, no sticky on mobile */
  .origin-row .about-media { position: static; }
  .vm-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; gap: 28px; max-width: 280px; }

  /* plans page */
  .plan-grid-3, .plan-grid-4 { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .section .plans-subhead { text-align: left; }

  /* core features page */
  .feature-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  /* taller cards on phones so the back never needs an (unusable) inner scroll */
  .feature-flip, .flip-inner { min-height: 430px; }

  /* blog listing: stack image over text */
  .post-card { grid-template-columns: 1fr; }
  .post-card-media { max-height: 220px; }

  /* mobile nav dropdown: show the submenu inline, indented (no JS needed) */
  .nav-group { display: block; width: 100%; }
  .nav-parent {
    width: 100%; justify-content: space-between; font-size: 1.05rem;
    padding: 12px 6px; border-bottom: 1px solid var(--hairline); color: var(--linen);
  }
  .nav-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent; padding: 4px 0 4px 14px; min-width: 0;
  }
  .nav-menu a { padding: 10px 6px; font-size: 1rem; }

  /* mobile nav */
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--ash); border-bottom: 1px solid var(--hairline);
    padding: 16px 22px 24px;
    transform: translateY(-120%); transition: transform .35s var(--ease);
    box-shadow: 0 20px 40px rgba(0,0,0,.5);
  }
  .nav.open { transform: translateY(0); }
  .nav > a:not(.btn) { padding: 12px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--hairline); }
  .nav .btn { margin: 8px 0 0; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
