/* Xamalytics — shared styles */

:root {
  --purple: #57499E;
  --purple-dark: #3E3375;
  --purple-deep: #2A2153;
  --purple-tint: #EFEDF8;
  --teal: #35A8DB;
  --green: #7FC9AB;
  --ink: #1E1B2E;
  --muted: #5D5A6E;
  --line: #E5E2F0;
  --bg: #FFFFFF;
  --bg-soft: #F7F6FB;
  --radius: 8px;
  --shadow: none;
  --font-head: "Sora", "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); }

img { max-width: 100%; display: block; }

a { color: var(--purple); text-decoration: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }

.nav a {
  color: var(--ink); font-weight: 500; font-size: 15px;
  transition: color 0.15s;
}

.nav a:hover { color: var(--purple); }

.nav a.nav-cta {
  background: var(--purple); color: #fff;
  padding: 9px 20px; border-radius: 6px;
  transition: background 0.15s;
}

.nav a.nav-cta:hover { background: var(--purple-dark); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: #fff;
  background-color: var(--purple-deep);
  background-image:
    radial-gradient(circle at 78% 40%, rgba(53, 168, 219, 0.28), transparent 38%),
    radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1.2px);
  background-size: auto, 14px 14px;
  padding: 112px 0 120px;
  overflow: hidden;
}

.hero-kicker {
  display: block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(42px, 5.6vw, 72px);
  font-weight: 700;
  line-height: 1.06;
  max-width: 820px;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero p.lead {
  margin: 26px 0 38px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 660px;
}

.hero .btn-primary { background: #fff; color: var(--purple-deep); }
.hero .btn-primary:hover { background: #EDEBF8; }
.hero .btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; font-weight: 600; font-size: 15.5px;
  padding: 13px 24px; border-radius: 6px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary { background: var(--purple-deep); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); }
.btn-primary::after { content: "\2192"; display: inline-block; margin-left: 10px; transition: transform 0.2s; }
.btn-primary:hover::after { transform: translateX(3px); }
.cookie-banner .btn-primary::after, .contact-form .btn-primary::after { content: none; }

.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); }

.btn-light { background: var(--purple-deep); color: #fff; }
.btn-light:hover { background: var(--purple-dark); }

.btn-outline-light { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline-light:hover { background: rgba(30, 27, 46, 0.06); }

/* ---------- Sections ---------- */

section { padding: 88px 0; }

section.alt { background: var(--bg-soft); }

.section-head { max-width: 720px; margin-bottom: 48px; }

/* kickers become a short rule, Numerix-style; the label text stays for screen readers */
.kicker {
  display: block; width: 48px; height: 3px; border-radius: 2px;
  background: var(--teal); margin-bottom: 24px;
  font-size: 0; color: transparent; overflow: hidden;
}

.section-head h2, .product-banner h2, .trust-panel h2, .cta-band h2, .offer-head h2, .stats-band h2 {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; line-height: 1.12;
}

.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); }

.section-head p { margin-top: 14px; color: var(--muted); font-size: 17.5px; }

/* ---------- Cards & grids ---------- */

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

.grid .span-full { grid-column: 1 / -1; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.card h3 { font-size: 19px; margin-bottom: 10px; }

.card p { color: var(--muted); font-size: 15.5px; }

.icon-dot {
  width: 40px; height: 40px;
  display: flex; align-items: flex-start; justify-content: flex-start;
  margin-bottom: 18px;
}

.icon-dot svg { width: 32px; height: 32px; stroke: var(--purple); stroke-width: 1.5; }

.card.feature-teal .icon-dot svg { stroke: var(--teal); }

/* ---------- Mission / vision ---------- */

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }

.mv-card {
  border-radius: var(--radius);
  padding: 34px 32px;
  background: var(--purple-tint);
  border-top: 3px solid var(--purple);
}

.mv-card.teal { background: #EAF5FB; border-top-color: var(--teal); }

.mv-card h3 { color: var(--ink); font-size: 20px; margin-bottom: 10px; }

.mv-card p { color: var(--muted); font-size: 16px; }

/* ---------- Product banner (index) ---------- */

.product-banner {
  background: var(--purple-tint);
  border-radius: 12px;
  color: var(--ink);
  padding: 64px 56px;
}

.product-banner h2 { font-size: clamp(28px, 3.2vw, 40px); max-width: 640px; }

.product-banner p { color: var(--muted); margin: 18px 0 28px; max-width: 640px; font-size: 17px; }

.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }

.chip {
  border: 1px solid #CFC9E8;
  color: var(--purple-dark); font-size: 13.5px; font-weight: 500;
  padding: 6px 14px; border-radius: 6px;
  background: #fff;
}

/* ---------- Clients (trust panel) ---------- */

.trust-panel { text-align: center; }

.trust-panel .kicker { margin-left: auto; margin-right: auto; }

.trust-panel h2 { font-size: clamp(28px, 3.2vw, 40px); }

.trust-panel p { color: var(--muted); margin: 14px auto 44px; max-width: 560px; font-size: 16.5px; }

.trust-logos {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

.trust-tile {
  min-height: 120px;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 30px;
  border-right: 1px solid var(--line);
}

.trust-tile:last-child { border-right: 0; }

.trust-tile img {
  max-height: 48px; max-width: 70%; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: 0.65;
  transition: filter 0.25s, opacity 0.25s;
}

.trust-tile:hover img { filter: none; opacity: 1; }

.trust-tile img[alt="Absa"] { max-height: 56px; }
.trust-tile img[alt="Liberty"] { max-height: 40px; }
.trust-tile img[alt="Sanlam"] { max-height: 34px; }

.amidel-note { margin-top: 14px; font-size: 15px; color: var(--muted); }
.amidel-note strong { color: var(--purple-dark); }
.amidel-note a { text-decoration: none; }
.amidel-note a:hover strong { text-decoration: underline; }

/* ---------- Team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.team-card { text-align: left; }

.avatar {
  width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 20px; color: #fff;
  background: var(--teal);
  padding: 3px;
  margin-bottom: 18px;
}

.avatar img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; display: block;
  background: #fff;
}

.team-card .role {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); margin: 2px 0 10px;
}

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }

.contact-list { list-style: none; margin-top: 8px; }

.contact-list li { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }

.contact-list .icon-dot { margin: 0; flex-shrink: 0; width: 42px; height: 42px; }

.contact-list strong { display: block; font-size: 15px; }

.contact-list span { color: var(--muted); font-size: 15px; }

.contact-form {
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); background: #fff; padding: 28px;
}

.contact-form label {
  display: block; font-size: 14px; font-weight: 600; margin-bottom: 16px;
}

.contact-form .optional { font-weight: 400; color: var(--muted); }

.contact-form .form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  font: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-tint); background: #fff;
}

.contact-form textarea { resize: vertical; }

.contact-form button { width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 600; }

.contact-form button[disabled] { opacity: 0.6; cursor: default; }

.contact-form .form-status { margin: 12px 0 0; font-size: 14.5px; display: none; }

.contact-form .form-status.ok { display: block; color: #1E7A55; }

.contact-form .form-status.err { display: block; color: #B4232C; }

/* Honeypot — visually gone, still in the DOM for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 680px) { .contact-form .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { background: #fff; border-top: 1px solid var(--line); color: var(--muted); padding: 56px 0 32px; font-size: 14.5px; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }

.site-footer img { height: 30px; margin-bottom: 16px; }

.site-footer h4 { color: var(--ink); font-size: 14px; font-weight: 600; margin-bottom: 14px; }

.site-footer a { color: var(--muted); display: block; margin-bottom: 8px; }

.site-footer a:hover { color: var(--ink); }

.site-footer p a { display: inline; margin: 0; text-decoration: underline; }

.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; font-size: 13.5px; }

/* ---------- Product page ---------- */

.hero-dark {
  background: var(--purple-deep);
  color: #fff;
  padding: 100px 0 110px;
}

.hero-dark .hero-kicker { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: var(--green); }

.hero-dark h1 { color: #fff; }

.hero-dark p.lead { color: rgba(255,255,255,0.85); }

/* steps */

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }

.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px 22px; box-shadow: var(--shadow); }

.step .num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

.step h3 { font-size: 16px; margin-bottom: 8px; }

.step p { font-size: 13.5px; color: var(--muted); }

/* two-pillar solution */

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.pillar { border-radius: var(--radius); padding: 34px 32px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }

.pillar .tag { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }

.pillar.grounded .tag { background: var(--purple-tint); color: var(--purple); }
.pillar.numbers .tag { background: #E3F4FB; color: #1B7FAD; }

.pillar h3 { font-size: 20px; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 15.5px; }
.pillar .rule { margin-top: 16px; font-weight: 600; color: var(--ink); font-size: 15px; }

.callout {
  margin-top: 26px;
  border-left: 4px solid var(--teal);
  background: #F0F9FD;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 26px;
  font-size: 16px;
}

.callout strong { color: var(--purple-dark); }

/* worked example */

.example-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

.code-card {
  background: var(--purple-deep); color: #DCD7F2;
  border-radius: var(--radius); padding: 28px 30px;
  font-family: "SF Mono", "Fira Code", Menlo, monospace;
  font-size: 14.5px; line-height: 1.7;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.code-card .fn { color: #8FD8F5; }
.code-card .str { color: #A8E0C6; }
.code-card .result { color: #fff; font-weight: 700; font-size: 18px; }
.code-card .cmt { color: #8B84B8; }

/* chat mock */

.chat-mock {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 20px 50px rgba(42,33,83,0.14);
  overflow: hidden; max-width: 560px;
}

.chat-mock .bar { background: var(--purple-deep); color: #fff; padding: 12px 20px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }

.chat-mock .bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }

.chat-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }

.msg { max-width: 85%; padding: 12px 18px; border-radius: 16px; font-size: 14.5px; }

.msg.user { align-self: flex-end; background: var(--purple); color: #fff; border-bottom-right-radius: 4px; }

.msg.bot { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; }

.msg .cite { display: inline-block; background: var(--purple-tint); color: var(--purple); font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 1px 7px; }

.tool-chips { display: flex; gap: 8px; padding-left: 4px; }

.tool-chip { font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: #fff; }

/* pricing */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }

.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; }

.price-card.featured { border: 2px solid var(--purple); position: relative; }

.price-card.featured::before {
  content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--purple); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 14px; border-radius: 999px; letter-spacing: 0.04em;
}

.price-card .tier { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }

.price-card h3 { font-size: 21px; margin-bottom: 14px; }

.price-card .price { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--purple-dark); }

.price-card .per { font-size: 14px; color: var(--muted); font-weight: 400; }

.price-card p.desc { color: var(--muted); font-size: 15px; margin: 14px 0 18px; flex-grow: 1; }

.price-card .best { font-size: 13.5px; background: var(--bg-soft); border-radius: 10px; padding: 10px 14px; color: var(--ink); }

.price-card .best strong { color: var(--purple); }

/* inline code in cards */

.card code, .step code, p code {
  font-family: "SF Mono", "Fira Code", Menlo, monospace;
  font-size: 0.86em;
  background: var(--purple-tint);
  color: var(--purple-dark);
  border-radius: 5px;
  padding: 1px 5px;
  white-space: nowrap;
}

/* architecture flow (scaling section) */

.arch-flow { display: flex; align-items: center; gap: 18px; }

.arch-node {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow); flex: 1;
}

.arch-node h3 { font-size: 17px; margin-bottom: 6px; }

.arch-node p { color: var(--muted); font-size: 14px; }

.arch-node.featured { border: 2px solid var(--purple); display: flex; flex-direction: column; justify-content: center; }

.arch-arrow {
  align-self: center; font-size: 26px; font-weight: 700; color: var(--purple);
  flex: 0 0 auto;
}

.arch-stack { display: flex; flex-direction: column; gap: 14px; flex: 1.2; }

@media (max-width: 960px) {
  .arch-flow { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
}

/* provenance badges, freshness, prompt cards */

.prov {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
  border-radius: 6px; padding: 3px 9px; white-space: nowrap;
}
.prov-official { background: #E7F6EE; color: #177245; }
.prov-demo { background: #FFF4E0; color: #9A6200; }
.prov-mock { background: #F3E8FF; color: #7C3AED; }
.prov-user { background: #E3F4FB; color: #1B7FAD; }
.prov-draft { background: #FFF4E0; color: #9A6200; }

.freshness {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--purple-tint); color: var(--purple-dark);
  font-size: 13px; font-weight: 600; border-radius: 999px; padding: 6px 14px;
}
.freshness .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.prompt-card { border-left: 4px solid var(--purple); }

.trial-embed {
  margin-top: 32px;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(42, 33, 83, 0.14);
  background: var(--bg-soft);
}

/* size lives inline on the iframe so a stale cached stylesheet can't
   collapse it to the 300x150 default; only the mobile override is here */
.trial-embed iframe { width: 100%; border: 0; display: block; }

@media (max-width: 680px) { .trial-embed iframe { height: 480px !important; } }
.prompt-card .prompt {
  font-family: var(--font-head); font-weight: 600; font-size: 16.5px;
  color: var(--ink); margin-bottom: 10px; line-height: 1.5;
}
.prompt-card h3 + .prompt { margin-top: 2px; }
.prompt-card p:not(.prompt) { color: var(--muted); font-size: 14.5px; }

/* CTA band */

.cta-band {
  background: var(--purple-tint);
  border-radius: 12px; color: var(--ink); text-align: center; padding: 64px 40px;
}

.cta-band h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 14px; }

.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 30px; }

/* ---------- Motion & wow layer ---------- */

.site-header { transition: box-shadow 0.25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(42, 33, 83, 0.10); }

/* scroll reveals */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* hover physics */
.card, .price-card, .step, .pillar, .arch-node, .mv-card {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s, border-color 0.25s,
              opacity 0.6s ease;
}
.reveal.card, .reveal.price-card, .reveal.step, .reveal.pillar, .reveal.arch-node, .reveal.mv-card {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease, box-shadow 0.25s, border-color 0.25s;
}
.card:hover, .price-card:hover, .step:hover, .pillar:hover, .arch-node:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(42, 33, 83, 0.08);
  border-color: #C9C2E8;
}
.mv-card:hover { transform: translateY(-3px); }
.price-card.featured:hover { box-shadow: 0 22px 48px rgba(87, 73, 158, 0.28); }

.icon-dot { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.card:hover .icon-dot { transform: translateY(-2px); }

.avatar { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s; }
.team-card:hover .avatar { transform: scale(1.08); box-shadow: 0 8px 20px rgba(53, 168, 219, 0.4); }

.hero, .hero-dark { position: relative; overflow: hidden; }
.hero > .container, .hero-dark > .container { position: relative; z-index: 2; }

/* hero entrance */
.hero .container > *, .hero-dark .container > * { animation: heroUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero .container > *:nth-child(2), .hero-dark .container > *:nth-child(2) { animation-delay: 0.1s; }
.hero .container > *:nth-child(3), .hero-dark .container > *:nth-child(3) { animation-delay: 0.2s; }
.hero .container > *:nth-child(4), .hero-dark .container > *:nth-child(4) { animation-delay: 0.3s; }
.hero .container > *:nth-child(5), .hero-dark .container > *:nth-child(5) { animation-delay: 0.4s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* floating rate card in hero */
.hero-viz {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  z-index: 2; width: 340px;
  animation: heroUp 0.9s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-card {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 20px 22px;
  animation: bob 6s ease-in-out infinite;
}
.hero-card-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.hero-card svg { width: 100%; height: auto; display: block; }
.hero-card-value { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--purple-dark); margin-top: 10px; }
.hero-card-value span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.hero-chip {
  position: absolute; right: 260px; bottom: -18px;
  background: var(--teal); color: var(--purple-deep);
  font-size: 12.5px; font-weight: 600;
  border-radius: 6px; padding: 8px 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  animation: bob 6s -3s ease-in-out infinite;
  white-space: nowrap;
}
.hero-chip .s { color: var(--purple-deep); opacity: 0.7; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* sparkline draw */
.spark-line { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 2.2s 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.spark-area { opacity: 0; animation: fadeIn 1s 2.2s forwards; }
.spark-dot { opacity: 0; animation: fadeIn 0.4s 2.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* stats band */
.stats-band {
  background: var(--purple-deep);
  padding: 88px 0;
  text-align: center;
}
.stats-band .kicker { margin: 0 auto 22px; }
.stats-band h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 56px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(48px, 5.6vw, 76px); line-height: 1;
  color: #fff; letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.stat p { color: rgba(255, 255, 255, 0.7); font-size: 14.5px; max-width: 220px; margin: 0 auto; }

/* marquee band */
.marquee {
  background: var(--purple-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden; padding: 16px 0;
}
.marquee-track {
  display: flex; gap: 44px; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee span {
  color: rgba(255, 255, 255, 0.65); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
}
.marquee .sep { color: var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* chat mock life */
.chat-hidden { opacity: 0; transform: translateY(12px); }
.chat-body > * { transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.msg.user.typing::after { content: "▍"; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chat-mock { animation: bob 7s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .spark-line { stroke-dashoffset: 0; }
  .spark-area, .spark-dot { opacity: 1; }
}

@media (max-width: 1180px) { .hero-viz { display: none; } }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid.cols-3, .team-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .example-grid, .contact-grid, .pillars, .mv-grid { grid-template-columns: 1fr; }
  .product-banner { padding: 44px 32px; }
  .trust-panel { padding: 44px 32px 48px; }
  .trust-logos { grid-template-columns: repeat(2, 1fr); }
  .trust-tile:nth-child(2n) { border-right: 0; }
  .trust-tile:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}

@media (max-width: 680px) {
  .grid.cols-2, .grid.cols-3, .team-grid, .pricing-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .trust-tile { min-height: 96px; padding: 18px 14px; }
  .trust-tile img { max-width: 90%; }
  .nav { position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 20px 24px 26px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform 0.25s ease; box-shadow: 0 16px 30px rgba(42,33,83,0.12); }
  .nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  section { padding: 64px 0; }
  .hero { padding: 72px 0 80px; }
  .hero-dark { padding: 72px 0 80px; }
}

/* ---------- Product top (Sierra-style) ---------- */

.hero-product {
  background: #fff;
  padding: 88px 0 96px;
}

.hero-product h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.hero-product .statement {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #A6A2B6;
  max-width: 940px;
  margin-top: 6px;
}

.hero-product .hero-cta { margin-top: 34px; }

.hero-product .container > * { animation: heroUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-product .container > *:nth-child(2) { animation-delay: 0.1s; }
.hero-product .container > *:nth-child(3) { animation-delay: 0.2s; }
.hero-product .container > *:nth-child(4) { animation-delay: 0.3s; }

/* the big rounded media stage with floating conversation bubbles */

.hero-stage {
  position: relative;
  margin-top: 60px;
  border-radius: 28px;
  min-height: clamp(400px, 46vw, 560px);
  overflow: hidden;
  background: var(--purple-tint);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 56px 24px;
}

.stage-bubble {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(42, 33, 83, 0.14);
  padding: 16px 20px;
  max-width: 440px;
  width: 100%;
  font-size: 15px;
  line-height: 1.55;
  animation: bob 7s ease-in-out infinite;
}

.stage-bubble p { margin: 0; color: var(--ink); }

.stage-bubble .who {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  margin-bottom: 6px;
}

.stage-bubble .who-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.stage-bubble.faded {
  opacity: 0.55;
  transform: translateX(-11%) scale(0.96);
  animation-delay: -2.5s;
}

.stage-bubble.user {
  max-width: 360px;
  transform: translateX(14%);
  background: var(--purple);
  border-color: var(--purple);
  animation-delay: -4.5s;
}
.stage-bubble.user p { color: #fff; }
.stage-bubble.user .who { color: rgba(255, 255, 255, 0.75); }

.stage-bubble.answer { transform: translateX(-6%); animation-delay: -1s; }

.stage-bubble .tool-chips { margin-top: 10px; padding-left: 0; flex-wrap: wrap; }

/* ---------- What-it-offers sections (Sierra-style) ---------- */

.offer-head { max-width: 940px; margin-bottom: 54px; }

.offer-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.offer-head .offer-statement {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(21px, 2.6vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #A6A2B6;
  margin-top: 6px;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.offer.flip .offer-media { order: 2; }

.offer-features { display: flex; flex-direction: column; gap: 26px; }

.offer-feature { border-top: 1px solid var(--line); padding-top: 20px; }

.offer-feature h3 { font-size: 17.5px; margin-bottom: 8px; }

.offer-feature p { color: var(--muted); font-size: 15.5px; }

/* analytics chart card */

.chart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(42, 33, 83, 0.14);
  padding: 26px 28px;
  max-width: 520px;
}

.chart-card-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}

.chart-card svg { width: 100%; height: auto; display: block; }

.chart-card-foot {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
  .offer-grid { grid-template-columns: 1fr; }
  .offer.flip .offer-media { order: 0; }
  .stage-bubble.faded { transform: scale(0.96); }
  .stage-bubble.user { transform: none; }
  .stage-bubble.answer { transform: none; }
}

@media (max-width: 680px) {
  .hero-product { padding: 56px 0 64px; }
  .hero-stage { margin-top: 40px; padding: 40px 18px; }
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(42, 33, 83, 0.12);
  /* Deliberately no entrance animation. An animation stalled on its first
     frame (throttled background tab, bfcache restore) would leave the banner
     translated off-screen — hiding the consent choice and silently blocking
     the tag. Appearing instantly fails visible instead. */
}
.cookie-banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.cookie-banner a { color: var(--purple); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn { padding: 10px 22px; font-size: 14.5px; }

@media (max-width: 680px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 20px; }
  .cookie-banner-actions { justify-content: flex-end; }
}

/* ---------- Legal pages ---------- */
.legal { padding-top: 132px; }
.legal-body { max-width: 760px; }
.legal-body h3 {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  margin: 38px 0 12px;
  color: var(--ink);
}
.legal-body p { margin-bottom: 14px; color: var(--muted); line-height: 1.7; }
.legal-body ul { margin: 0 0 14px 20px; color: var(--muted); line-height: 1.7; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--purple); text-decoration: underline; }
.legal-body strong { color: var(--ink); }
.legal-meta { font-size: 14px; color: var(--muted); font-style: italic; }
.legal-contact { list-style: none; margin-left: 0; }
