/*
 * FlowMation public site stylesheet.
 * Design tokens and component styles are derived from frontend/styles.css
 * (the dashboard design system). When the dashboard tokens change, mirror
 * them here so both surfaces stay visually identical.
 */

:root {
  --ink: #1f2933;
  --muted: #4e5d6a;
  --soft: #596a77;
  --paper: #f7f8f5;
  --card: #ffffff;
  --line: #e5eae4;
  --line-strong: #d2dbd3;
  --navy: #2b2140;
  --navy-2: #3b2e55;
  --sage: #b9d7c3;
  --sage-2: #dceee1;
  --sage-ink: #2f6341;
  --lavender: #f2d8e6;
  --lavender-ink: #8f4773;
  --sand: #f2e8d8;
  --sand-ink: #946d31;
  --coral: #efaa91;
  --coral-2: #f9d9d0;
  --coral-ink: #a2553f;
  --shadow: 0 18px 50px rgba(35, 48, 55, 0.07);
  --shadow-sm: 0 8px 22px rgba(35, 48, 55, 0.045);
  --radius: 28px 14px 28px 14px;
  --radius-alt: 14px 28px 14px 28px;
}

:root[data-theme="dark"] {
  --ink: #f1edf6;
  --muted: #b7aec6;
  --soft: #a198b2;
  --paper: #120e19;
  --card: #1b1625;
  --line: #2c2439;
  --line-strong: #3f3452;
  --navy: #3b2e55;
  --navy-2: #4cc38a;
  --sage: #1e3c2f;
  --sage-2: #162f25;
  --sage-ink: #6ad19c;
  --lavender: #2a2038;
  --lavender-ink: #d8a2c4;
  --sand: #2f2a1b;
  --sand-ink: #deb56a;
  --coral: #3a221a;
  --coral-2: #2b1812;
  --coral-ink: #f09a82;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f1edf6;
    --muted: #b7aec6;
    --soft: #a198b2;
    --paper: #120e19;
    --card: #1b1625;
    --line: #2c2439;
    --line-strong: #3f3452;
    --navy: #3b2e55;
    --navy-2: #4cc38a;
    --sage: #1e3c2f;
    --sage-2: #162f25;
    --sage-ink: #6ad19c;
    --lavender: #2a2038;
    --lavender-ink: #d8a2c4;
    --sand: #2f2a1b;
    --sand-ink: #deb56a;
    --coral: #3a221a;
    --coral-2: #2b1812;
    --coral-ink: #f09a82;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: var(--navy-2);
  text-decoration-color: var(--sage);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

code,
pre,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

:focus-visible {
  outline: 2px solid var(--navy-2);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--navy);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 13px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ===== Type scale (dashboard h1 scale, extended for marketing) ===== */

h1,
h2,
h3,
h4 {
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.055em;
  line-height: 1.04;
}

h2 {
  font-size: clamp(25px, 3.2vw, 36px);
}

h3 {
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.03em;
}

h4 {
  font-size: 15px;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 14px;
}

.lede {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--muted);
  line-height: 1.6;
  max-width: 620px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.13em;
  color: var(--muted);
  font-weight: 750;
  margin: 0 0 12px;
}

/* ===== Buttons (dashboard components) ===== */

.create,
.primary-btn {
  background: var(--navy);
  color: #ffffff;
  border-radius: 9px;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 8px 16px rgba(20, 35, 45, 0.11);
  transition: background 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.create:hover,
.primary-btn:hover {
  background: var(--navy-2);
  color: #ffffff;
  transform: translateY(-1px);
}

.secondary-btn {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  border-radius: 9px;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: all 0.15s ease;
  text-decoration: none;
}

.secondary-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 13px 22px;
  font-size: 13.5px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ===== Panels, stats, badges (dashboard components) ===== */

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  position: relative;
}

.panel.alt-radius {
  border-radius: var(--radius-alt);
}

.panel-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.panel-subtitle {
  font-size: 11.5px;
  color: var(--soft);
  margin-top: 2px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.status-badge.active,
.status-badge.succeeded,
.status-badge.connected {
  background: var(--sage-2);
  color: var(--sage-ink);
}

.status-badge.paused,
.status-badge.queued,
.status-badge.running {
  background: var(--sand);
  color: var(--sand-ink);
}

.status-badge.draft,
.status-badge.skipped {
  background: var(--paper);
  color: var(--muted);
}

.status-badge.failed {
  background: var(--coral-2);
  color: var(--coral-ink);
}

.muted {
  color: var(--muted);
}

.soft {
  color: var(--soft);
}

/* ===== Site shell ===== */

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 0;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 16.5px;
}

.brand-left img {
  width: auto;
  height: 34px;
  display: block;
}

.site-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 14px;
}

.site-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.site-links a[aria-current="page"] {
  color: var(--navy);
  background: rgba(59, 46, 85, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-signin {
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 9px;
}

.nav-signin:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--navy);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 8px 11px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.mobile-menu {
  display: none;
  padding: 8px 0 18px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 11px 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
}

.mobile-menu a[aria-current="page"] {
  background: rgba(59, 46, 85, 0.08);
  color: var(--navy);
}

.mobile-menu .btn-row {
  padding: 12px;
}

@media (max-width: 900px) {
  .site-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
}

/* ===== Sections ===== */

.section {
  padding: 84px 0;
}

.section.tight {
  padding: 56px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 38px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .lede {
  margin-left: auto;
  margin-right: auto;
}

.band-sage {
  background: linear-gradient(180deg, rgba(220, 238, 225, 0.5), rgba(220, 238, 225, 0.16));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-card {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ===== Hero ===== */

.hero {
  padding: 72px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 52px;
  align-items: center;
}

.hero .btn-row {
  margin-top: 26px;
}

.hero-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--soft);
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Run receipt mock (built from real run and step shapes) */

.run-receipt {
  position: relative;
}

.receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.receipt-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--navy-2);
  font-weight: 700;
}

.receipt-stamp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--sage-ink);
  border: 2px solid var(--sage-ink);
  border-radius: 10px 5px 12px 5px;
  padding: 5px 11px;
  transform: rotate(-4deg);
  background: rgba(220, 238, 225, 0.55);
}

.receipt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 11px;
  color: var(--soft);
  margin: 6px 0 14px;
}

.step-rows {
  display: grid;
  gap: 8px;
}

.step-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1.35fr) minmax(0, 1fr) 48px 20px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 11.5px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-ink);
}

.step-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-type {
  color: var(--soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-time {
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.step-check {
  color: var(--sage-ink);
  font-weight: 800;
  text-align: right;
}

.receipt-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--soft);
}

@media (max-width: 560px) {
  .step-row {
    grid-template-columns: 12px minmax(0, 1fr) 44px 18px;
  }

  .step-type {
    display: none;
  }
}

/* ===== Integration strip ===== */

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 26px;
  padding: 26px 0 6px;
}

.logo-strip span {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--soft);
}

.logo-strip span strong {
  color: var(--muted);
  font-weight: 700;
}

.strip-caption {
  text-align: center;
  font-size: 12px;
  color: var(--soft);
  margin: 8px 0 0;
}

/* ===== Tabs ===== */

.tablist {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}

.tablist [role="tab"] {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tablist [role="tab"]:hover {
  color: var(--ink);
}

.tablist [role="tab"][aria-selected="true"] {
  background: var(--navy);
  color: #ffffff;
}

[role="tabpanel"][hidden] {
  display: none;
}

/* ===== Values + capability grid ===== */

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

.value-card {
  padding: 22px 22px 18px;
}

.value-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  font-size: 16px;
  font-weight: 800;
}

.icon-sage {
  background: var(--sage-2);
  color: var(--sage-ink);
}

.icon-lavender {
  background: var(--lavender);
  color: var(--lavender-ink);
}

.icon-sand {
  background: var(--sand);
  color: var(--sand-ink);
}

.icon-coral {
  background: var(--coral-2);
  color: var(--coral-ink);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }
}

/* Four payment rails read as a balanced 2x2 wall instead of a 3 + 1 orphan row. */
#pan-african-connectors {
  scroll-margin-top: 88px;
}

#pan-african-connectors .cap-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 560px) {
  #pan-african-connectors .cap-grid {
    grid-template-columns: 1fr;
  }
}

.cap-card {
  padding: 18px 20px;
  border-radius: var(--radius-alt);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.cap-card h4 {
  margin-bottom: 5px;
}

.cap-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ===== Alternating feature rows ===== */

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: center;
  padding: 46px 0;
}

.feature-row.flip .feature-copy {
  order: 2;
}

.feature-row.flip .feature-mock {
  order: 1;
}

@media (max-width: 940px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 0;
  }

  .feature-row.flip .feature-copy,
  .feature-row.flip .feature-mock {
    order: initial;
  }
}

.feature-copy .lede {
  font-size: 15.5px;
}

.tick-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.tick-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
}

.tick-list .tick {
  color: var(--sage-ink);
  font-weight: 800;
  flex: 0 0 auto;
  margin-top: 1px;
}

/* Keep copy and exact schema identifiers inside their grid columns on small screens. */
.feature-row > .feature-copy,
.feature-row > .feature-mock,
.tick-list li > span:not(.tick) {
  min-width: 0;
}

.feature-copy code,
.cap-card code,
.value-card code,
.feature-mock .code-note code {
  overflow-wrap: anywhere;
}

.cap-card p + p {
  margin-top: 12px;
}

/* Mock: webhook inspector */

.inspector-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--sage-2);
  color: var(--sage-ink);
  border: 1px solid var(--sage);
  cursor: default;
}

.code-block {
  background: var(--navy);
  color: #dfe8e2;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.7;
  overflow-x: auto;
  margin: 0;
  white-space: pre;
}

.code-block .c-key {
  color: var(--sage);
}

.code-block .c-str {
  color: var(--lavender);
}

.code-block .c-num {
  color: var(--coral);
}

/* Mock: run history */

.run-list {
  display: grid;
  gap: 8px;
}

.run-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
}

.run-item .run-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.run-item .run-err {
  font-size: 11px;
  color: var(--coral-ink);
  margin-top: 2px;
}

.run-item .run-when {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--soft);
  white-space: nowrap;
}

/* Mock: metering bars */

.meter {
  margin: 14px 0;
}

.meter-top {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.meter-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 99px;
}

.fill-sage {
  background: var(--sage-ink);
}

.fill-lavender {
  background: var(--lavender-ink);
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--lavender);
  color: var(--lavender-ink);
  font-size: 11px;
  font-weight: 800;
  border-radius: 99px;
  padding: 5px 12px;
}

/* ===== Code tabs (developers) ===== */

.code-tabs .tablist {
  box-shadow: none;
}

.code-note {
  font-size: 12px;
  color: var(--soft);
  margin-top: 10px;
}

/* ===== Accordion (FAQ) ===== */

.accordion {
  display: grid;
  gap: 10px;
  max-width: 780px;
}

.accordion details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 500;
  color: var(--soft);
  flex: 0 0 auto;
}

.accordion details[open] summary::after {
  content: "−";
}

.accordion details p {
  padding: 0 20px 16px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* ===== Pricing ===== */

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}

.segmented button {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
}

.segmented button[aria-pressed="true"] {
  background: var(--navy);
  color: #ffffff;
}

/* Six currency buttons fit a 320px screen without pushing the page sideways. */
@media (max-width: 380px) {
  .segmented button {
    padding: 8px;
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.plan-card.featured {
  border-color: var(--navy);
  box-shadow: var(--shadow);
}

.plan-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}

.plan-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 6px 0 2px;
}

.plan-desc {
  font-size: 12.5px;
  color: var(--muted);
  min-height: 42px;
}

/* The currency code sits on its own line above an amount that never wraps, and the period sits
   below, so every card keeps the same three lines whatever the currency, plan or interval. */
.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 2px;
  margin: 12px 0 2px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
}

.plan-currency {
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--soft);
}

.plan-amount {
  font-size: clamp(24px, 2.3vw, 30px);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .plan-amount {
    font-size: 28px;
  }
}

.plan-price small {
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 600;
  color: var(--soft);
  letter-spacing: -0.01em;
}

.plan-billed {
  font-size: 11px;
  line-height: 1.3;
  color: var(--soft);
  min-height: 2.6em; /* two lines: the yearly note wraps in four columns */
  margin-bottom: 12px;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
}

.plan-list li {
  display: flex;
  gap: 8px;
}

.plan-list .tick {
  color: var(--sage-ink);
  font-weight: 800;
}

.plan-card .btn-row {
  margin-top: auto;
}

.pricing-note {
  max-width: 820px;
  margin: 0 auto 22px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* Credit top-ups: their own spaced block, three equal cards, buttons on one line. */
.topups-head {
  max-width: 760px;
  margin: 72px 0 20px;
}

.topups-head h2 {
  margin: 0 0 8px;
}

.topups-head p {
  margin: 0;
  color: var(--muted);
}

.pricing-grid.packs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .pricing-grid.packs {
    grid-template-columns: 1fr;
  }
}

.pricing-grid.packs .plan-card h3 {
  margin: 0;
}

.pricing-grid.packs .plan-card p {
  margin: 8px 0 18px;
  color: var(--muted);
}

.pricing-grid.packs .plan-card > a {
  margin-top: auto;
  align-self: flex-start;
}

.topups-note {
  max-width: 860px;
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.compare-wrap > .table-note {
  margin: 0;
  padding: 18px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare-table thead th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(220, 238, 225, 0.28);
}

.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table td.plan-col {
  font-weight: 700;
  color: var(--ink);
}

.compare-table td {
  color: var(--muted);
}

/* ===== Resource cards ===== */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
}

.resource-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-alt);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.15s ease;
  height: 100%;
}

.resource-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.resource-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.resource-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}

.resource-card .go {
  font-size: 12px;
  font-weight: 700;
  color: var(--sage-ink);
}

/* ===== Tables (signature verification, quick start) ===== */

.plain-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.plain-table th,
.plain-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.plain-table th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.plain-table td {
  color: var(--muted);
}

.plain-table code {
  font-size: 11.5px;
  color: var(--navy-2);
  background: rgba(220, 238, 225, 0.4);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ===== Steps (quick start / demo) ===== */

.step-cards {
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.step-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  background: var(--sage-2);
  color: var(--sage-ink);
}

.step-card h3 {
  font-size: 15.5px;
  margin-bottom: 4px;
}

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

/* ===== CTA band ===== */

.cta-band {
  background: var(--navy);
  color: #eef3ee;
  border-radius: var(--radius);
  padding: 52px 46px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  color: #ffffff;
  margin-bottom: 8px;
}

.cta-band p {
  color: #b9c4c9;
  margin: 0;
  max-width: 480px;
}

.cta-band .secondary-btn {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-band .secondary-btn:hover {
  border-color: #ffffff;
  color: #ffffff;
}

/* ===== Footer ===== */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 52px 0 30px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  max-width: 280px;
  margin-top: 12px;
}

.footer-col h4 {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.13em;
  color: var(--soft);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 0;
}

.footer-col a:hover {
  color: var(--navy);
}

.footer-note {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--soft);
}

.footer-note a {
  color: var(--muted);
}

/* ===== Hero motion (one deliberate moment) ===== */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy .lede,
  .hero-copy .btn-row,
  .hero-copy .hero-note {
    animation: rise-in 0.7s ease both;
  }

  .hero-copy h1 {
    animation-delay: 0.06s;
  }

  .hero-copy .lede {
    animation-delay: 0.14s;
  }

  .hero-copy .btn-row {
    animation-delay: 0.22s;
  }

  .hero-copy .hero-note {
    animation-delay: 0.3s;
  }

  .run-receipt {
    animation: rise-in 0.8s 0.12s ease both;
  }

  .run-receipt .step-row {
    animation: rise-in 0.5s ease both;
  }

  .run-receipt .step-row:nth-child(1) {
    animation-delay: 0.34s;
  }

  .run-receipt .step-row:nth-child(2) {
    animation-delay: 0.42s;
  }

  .run-receipt .step-row:nth-child(3) {
    animation-delay: 0.5s;
  }

  .run-receipt .step-row:nth-child(4) {
    animation-delay: 0.58s;
  }

  .run-receipt .step-row:nth-child(5) {
    animation-delay: 0.66s;
  }

  .receipt-stamp {
    animation: stamp-in 0.5s 0.85s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes stamp-in {
    from {
      opacity: 0;
      transform: rotate(-4deg) scale(1.5);
    }
    to {
      opacity: 1;
      transform: rotate(-4deg) scale(1);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Interconnected line motif (brand signature) */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.hero-grid,
.hero .logo-strip,
.hero .strip-caption {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-lines .hl-path {
    stroke-dasharray: 14 22;
    animation: hl-drift 8s linear infinite;
  }

  .hero-lines .hl-2 {
    animation-duration: 11s;
    animation-direction: reverse;
  }

  .hero-lines .hl-3 {
    animation-duration: 13s;
  }
}

@keyframes hl-drift {
  to {
    stroke-dashoffset: -72;
  }
}

/* Custom icon system */

.cap-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--sage-2);
  color: var(--sage-ink);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.row-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sage-2);
  color: var(--sage-ink);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.value-icon svg,
.cap-icon svg,
.row-icon svg {
  display: block;
}

/* Custom icon system */

.cap-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--sage-2);
  color: var(--sage-ink);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.row-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sage-2);
  color: var(--sage-ink);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.value-icon svg,
.cap-icon svg,
.row-icon svg {
  display: block;
}

/* Hero workflow graph (connected canvas) */

.hero-graph {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-personas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.persona-chip {
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.persona-chip:hover {
  color: var(--ink);
  border-color: var(--navy);
}

.persona-chip.active {
  background: var(--sage-2);
  border-color: var(--sage);
  color: var(--sage-ink);
}

.graph-panel {
  background: var(--navy);
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 16px;
  overflow: hidden;
}

.graph-story {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  max-width: 360px;
}

.graph-story strong {
  color: #ffffff;
  font-size: 15.5px;
  letter-spacing: -0.02em;
}

.graph-story span {
  color: #b9c4c9;
  font-size: 11.5px;
  line-height: 1.5;
}

.graph-story a {
  color: var(--sage);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 4px;
  width: fit-content;
}

.graph-story a:hover {
  color: var(--sage-2);
}

.graph-scale {
  width: 100%;
  overflow: hidden;
}

.graph-canvas {
  width: 620px;
  height: 380px;
  position: relative;
  transform-origin: top left;
}

.graph-wires {
  position: absolute;
  inset: 0;
  width: 620px;
  height: 380px;
  pointer-events: none;
}

.g-node {
  position: absolute;
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.g-face {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sage);
}

.g-round .g-face {
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 11px;
}

.g-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  color: #dfe6ea;
  line-height: 1.3;
}

.g-cap {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8.5px;
  color: #8d99a3;
  line-height: 1.35;
}

.g-plus {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--sage);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .graph-wires .gw-line {
    stroke-dasharray: 10 16;
    animation: hl-drift 9s linear infinite;
  }

  .graph-wires .gw-b {
    animation-duration: 12s;
    animation-direction: reverse;
  }

  .graph-wires .gw-c {
    animation-duration: 14s;
  }

  .graph-wires .gw-dash {
    animation: hl-drift 11s linear infinite;
    animation-direction: reverse;
  }
}


/* Real product screenshot in the hero */

.hero-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--paper);
}

.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Brand wall (live integration marks) ===== */
.brand-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 12px;
  max-width: 940px;
}
.brand-tile {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.brand-tile img {
  display: block;
  width: 30px;
  height: 30px;
}
.brand-tile-letter span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand-tile:nth-child(3n + 2) {
  background: var(--lavender);
}
.brand-tile:nth-child(3n + 3) {
  background: var(--sand);
}

/* Live status card (status.html) */
.status-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  max-width: 720px;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 12px;
}
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
}
.status-dot.is-ok {
  background: #2e7d32;
}
.status-dot.is-warn {
  background: var(--sand-ink);
}
.status-detail {
  margin: 8px 0 0;
  opacity: 0.72;
}

/* Ticket canvas sample (features.html) */
/* Canvas sample on features.html: a real node graph of seven ticket nodes on
   the dark canvas theme, shaped by hand the way a user would shape it (branch
   up for the receipt, a dashed failure branch down), wires carrying data
   parcels, and the info tooltip open in developer terms. */
.cs-canvas {
  margin: 10px 0 34px;
  border: 1px solid #243941;
  border-radius: 22px;
  background-color: #0c161a;
  background-image: radial-gradient(#22323a 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  overflow-x: auto;
}
.cs-world {
  position: relative;
  width: 1100px;
  height: 430px;
}
.cs-wires {
  position: absolute;
  left: 0;
  top: 0;
  width: 1100px;
  height: 430px;
}
.cs-wire {
  fill: none;
  stroke: #4e6b73;
  stroke-width: 3.4;
  stroke-linecap: round;
}
.cs-wire-dashed {
  stroke-dasharray: 3 7;
  opacity: 0.75;
}
.cs-exit {
  fill: #9db3ac;
  font-size: 9px;
  font-weight: 700;
}
.cs-parcel-pill {
  fill: #17262d;
  stroke: #243941;
  stroke-width: 1;
}
.cs-parcel-text {
  fill: #9db3ac;
  font-size: 9px;
  font-weight: 600;
}
.cs-ticket {
  position: absolute;
  width: 150px;
  height: 66px;
  background: #17262d;
  border: 1px solid #243941;
  border-radius: 11px;
  display: flex;
}
.cs-ticket-dashed {
  border-style: dashed;
}
.cs-stub {
  width: 26px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
  position: relative;
  border-radius: 10px 0 0 10px;
}
.cs-stub::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 6px;
  bottom: 6px;
  border-right: 2px dashed rgba(255, 255, 255, 0.55);
}
.cs-body {
  flex: 1;
  min-width: 0;
  padding: 4px 6px 4px 7px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
}
.cs-tag {
  font-size: 9px;
  font-weight: 700;
  color: #9db3ac;
  line-height: 1.1;
}
.cs-sentence {
  font-size: 11px;
  color: #e6efeb;
  line-height: 1.35;
}
.cs-chip {
  display: inline-block;
  background: #1d3a30;
  color: #4cc38a;
  border-radius: 4px;
  padding: 0 3px;
  font-weight: 600;
}
.cs-info {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #243941;
  background: #17262d;
  color: #9db3ac;
  font-size: 9px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-port {
  position: absolute;
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #17262d;
  border: 2px solid #4e6b73;
}
.cs-port-in {
  left: -6px;
  top: 27px;
}
.cs-port-out {
  right: -6px;
  top: 27px;
}
.cs-port-pass {
  right: -6px;
  top: 14px;
}
.cs-port-fail {
  right: -6px;
  top: 40px;
}
.cs-tip {
  position: absolute;
  left: 560px;
  top: 124px;
  width: 240px;
  background: #2b2140;
  color: #f2f5f2;
  border-radius: 10px;
  padding: 9px 12px;
  font: 10px/1.6 ui-monospace, "SF Mono", Consolas, monospace;
}
.cs-tip b {
  color: #ffffff;
  font-weight: 600;
}

/* Hero variant of the canvas sample (index.html): fits the half-width hero
   column and drops the outer frame since .hero-shot already draws one. */
.hero-shot .cs-canvas {
  margin: 0;
  border: 0;
  border-radius: 0;
}
.hero-shot .cs-world {
  width: 500px;
  height: 420px;
}
.hero-shot .cs-wires {
  width: 500px;
  height: 420px;
}
.hero-shot .cs-tip {
  left: 25px;
  top: 258px;
}

/* Keep vendor marks in their native aspect ratio, including wide Yoco and Woo art. */
.brand-tile img { object-fit: contain; }

/* ===== Dark mode brand and UI components ===== */
.brand-left img.logo-dark,
.logo-dark {
  display: none;
}
[data-theme="dark"] .brand-left img.logo-light,
[data-theme="dark"] .logo-light {
  display: none;
}
[data-theme="dark"] .brand-left img.logo-dark,
[data-theme="dark"] .logo-dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-left img.logo-light,
  :root:not([data-theme="light"]) .logo-light {
    display: none;
  }
  :root:not([data-theme="light"]) .brand-left img.logo-dark,
  :root:not([data-theme="light"]) .logo-dark {
    display: block;
  }
}

[data-theme="dark"] .site-nav-wrap {
  border-bottom-color: var(--line);
}
[data-theme="dark"] .site-links a[aria-current="page"],
:root:not([data-theme="light"]) .site-links a[aria-current="page"],
[data-theme="dark"] .mobile-menu a[aria-current="page"],
:root:not([data-theme="light"]) .mobile-menu a[aria-current="page"] {
  color: var(--ink);
  background: rgba(185, 163, 224, 0.14);
}
[data-theme="dark"] .plan-price,
:root:not([data-theme="light"]) .plan-price {
  color: var(--ink);
}
[data-theme="dark"] .plan-card.featured,
:root:not([data-theme="light"]) .plan-card.featured {
  border-color: var(--navy-2);
}
[data-theme="dark"] .code-block .c-key,
:root:not([data-theme="light"]) .code-block .c-key {
  color: var(--sage-ink);
}
[data-theme="dark"] .code-block .c-str,
:root:not([data-theme="light"]) .code-block .c-str {
  color: var(--lavender-ink);
}
[data-theme="dark"] .code-block .c-num,
:root:not([data-theme="light"]) .code-block .c-num {
  color: var(--coral-ink);
}
[data-theme="dark"] .step-row,
[data-theme="dark"] .run-item,
:root:not([data-theme="light"]) .step-row,
:root:not([data-theme="light"]) .run-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}
[data-theme="dark"] .compare-table thead th,
:root:not([data-theme="light"]) .compare-table thead th {
  background: rgba(255, 255, 255, 0.04);
}
[data-theme="dark"] .plain-table code,
:root:not([data-theme="light"]) .plain-table code {
  background: rgba(255, 255, 255, 0.06);
}
.hero-demo-wrap .fmc-dark .fmc-btn.is-on,
[data-theme="dark"] .hero-demo-wrap .fmc-btn.is-on,
:root:not([data-theme="light"]) .hero-demo-wrap .fmc-btn.is-on {
  background: var(--fmc-accent);
  color: #0c161a;
}
[data-theme="dark"] .mobile-menu {
  background: var(--card);
  border-color: var(--line);
}
[data-theme="dark"] .primary-btn {
  background: #3b2e55;
  color: #f1edf6;
  border: 1px solid #5a4785;
}
[data-theme="dark"] .primary-btn:hover {
  background: #4a3a6e;
  color: #ffffff;
  border-color: #8f7bc0;
}
[data-theme="dark"] a:hover,
[data-theme="dark"] .nav-signin:hover,
[data-theme="dark"] .footer-col a:hover {
  color: var(--sage-ink);
}
[data-theme="dark"] .secondary-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-color: var(--line-strong);
}
[data-theme="dark"] .secondary-btn:hover {
  border-color: var(--navy-2);
  color: var(--navy-2);
}
[data-theme="dark"] .brand-tile {
  background: var(--card);
  border-color: var(--line);
}
[data-theme="dark"] .hero-lines .hl-path {
  stroke: #224234;
}
[data-theme="dark"] .hero-lines .hl-2 {
  stroke: #2c2136;
}
[data-theme="dark"] .hero-lines .hl-3 {
  stroke: #1e382b;
}
[data-theme="dark"] .hero-lines circle {
  fill: #0c161a;
  stroke: #224234;
}

/* Theme toggle button in nav */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.theme-toggle:hover {
  border-color: var(--navy-2);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--sage-ink);
  outline-offset: 2px;
}
.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}
.theme-sun {
  display: none;
}
.theme-moon {
  display: block;
}
[data-theme="dark"] .theme-sun {
  display: block;
}
[data-theme="dark"] .theme-moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-moon {
    display: none;
  }
}

/* ===== Storage Notice ===== */
.storage-notice {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  max-width: 360px;
  width: calc(100vw - 48px);
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.storage-notice[hidden] {
  display: none;
}
.storage-notice-title {
  margin: 0 0 6px;
  font-size: 14.5px;
}
.storage-notice-text {
  margin: 0 0 14px;
  color: var(--muted);
}
.storage-notice-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-privacy-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-privacy-btn:hover {
  color: var(--ink);
}

/* ===== Playable Hero Demo ===== */
.hero-demo-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 420px;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.hero-demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  gap: 12px;
}

.hero-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--sage-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10.5px;
}

.hero-demo-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage-ink);
}

.hero-demo-cta {
  color: var(--navy-2);
  font-weight: 600;
  text-decoration: none;
}

.hero-demo-cta:hover {
  text-decoration: underline;
}

.hero-demo-mount {
  flex: 1;
  min-height: 0;
  position: relative;
}

.hero-demo-mount .fmc {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  --fmc-muted: var(--muted);
}

.hero-demo-wrap .fmc-mini,
.hero-demo-wrap .fmc-find {
  display: none !important;
}

.hero-demo-controls {
  padding: 8px 12px;
  background: var(--card);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-demo-btn-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
}

.hero-demo-run-label {
  font-weight: 600;
  color: var(--muted);
  margin-right: 4px;
}

.hero-demo-toast {
  position: absolute;
  top: 46px;
  left: 12px;
  right: 12px;
  background: var(--navy);
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.hero-demo-toast.is-active {
  opacity: 1;
  transform: translateY(0);
}

@media (pointer: coarse) {
  .hero-demo-wrap .fmc-toolbar .fmc-group:nth-child(3) {
    display: none !important;
  }
}

.hero-demo-coarse .fmc-toolbar .fmc-group:nth-child(3) {
  display: none !important;
}

.hero-demo-coarse .fmc-port,
.hero-demo-coarse .fmc-notch,
.hero-demo-coarse .fmc-wire-hit {
  pointer-events: none !important;
}

#pricingRoot {
  min-height: 520px;
}

#creditPackPricingRoot {
  min-height: 180px;
}

/* ===== Motion, Scroll Reveal & Cursor Effects ===== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.logo-strip:hover {
  animation-play-state: paused;
}

@media (pointer: fine) and (hover: hover) {
  .card-glow {
    position: relative;
    overflow: hidden;
  }
  .card-glow::before {
    content: '';
    position: absolute;
    top: calc(var(--mouse-y, -1000px) - 150px);
    left: calc(var(--mouse-x, -1000px) - 150px);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(185, 215, 195, 0.18) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    z-index: 0;
    transition: opacity 0.25s ease;
    opacity: 0;
  }
  [data-theme="dark"] .card-glow::before {
    background: radial-gradient(circle, rgba(76, 195, 138, 0.12) 0%, transparent 70%);
  }
  .card-glow:hover::before {
    opacity: 1;
  }

  .card-tilt {
    will-change: transform;
    transform: perspective(800px) rotateX(calc(var(--tilt-x, 0) * 1deg)) rotateY(calc(var(--tilt-y, 0) * 1deg));
    transition: transform 0.1s ease-out;
  }

  .btn-lean {
    will-change: transform;
    transform: translate(calc(var(--lean-x, 0) * 1px), calc(var(--lean-y, 0) * 1px));
    transition: transform 0.12s ease-out;
  }

  .hero-lines.is-active .hl-path {
    filter: drop-shadow(0 0 4px var(--sage));
    transition: filter 0.3s ease;
  }
}

/* Scroll story */
.scroll-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.scroll-story-card {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.scroll-story-card.is-active {
  border-color: var(--sage-ink);
  box-shadow: 0 12px 32px rgba(61, 117, 80, 0.12);
}

@media (max-width: 840px) {
  .scroll-story-grid {
    grid-template-columns: 1fr;
  }
}

/* prefers-reduced-motion turns every effect off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
  .card-glow::before {
    display: none !important;
  }
  .card-tilt {
    transform: none !important;
  }
  .btn-lean {
    transform: none !important;
  }
  .hero-lines .hl-path {
    animation: none !important;
    filter: none !important;
  }
  .logo-strip {
    animation: none !important;
  }
}

/* ===== Landing page (index.html), overhaul 2026-11-18 =====
   Few words, product first: short sections, each a title, one line and a small piece of the real
   product. Colours, corners and type come from the brand tokens above; classes start with lp-. */

/* Light and glow colours for the moving background art: tints of the brand aubergine lead, the
   brand green is the accent (as in the logo and the app). */
:root {
  --fx-glow: rgba(74, 58, 110, 0.6);
  --fx-halo: rgba(91, 71, 133, 0.13);
  --fx-grid: rgba(43, 33, 64, 0.06);
  --fx-line: rgba(59, 46, 85, 0.16);
  --fx-pulse: #5a4785;
  --fx-accent: #2f6341;
  --fx-ring: #3b2e55;
  --fx-orb: rgba(91, 71, 133, 0.2);
}

[data-theme="dark"] {
  --fx-glow: rgba(185, 163, 224, 0.85);
  --fx-halo: rgba(110, 84, 170, 0.3);
  --fx-grid: rgba(241, 237, 246, 0.05);
  --fx-line: rgba(185, 163, 224, 0.15);
  --fx-pulse: #c4b0ef;
  --fx-accent: #6ad19c;
  --fx-ring: #a58fd6;
  --fx-orb: rgba(110, 84, 170, 0.36);
}

@property --lp-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* Header: a floating pill over each page's opening stage. */
.site-nav-wrap {
  top: 10px;
  margin-bottom: -72px;
  background: transparent;
  border-bottom: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
}

.site-nav,
.mobile-menu {
  pointer-events: auto;
}

.site-nav-wrap .site-nav {
  margin-top: 10px;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 248, 245, 0.84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(20, 35, 45, 0.08);
}

[data-theme="dark"] .site-nav-wrap .site-nav {
  background: rgba(18, 14, 25, 0.74);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.primary-btn,
.secondary-btn {
  border-radius: 999px;
}

.mobile-menu.open {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

/* Hero: centred promise, then the live studio canvas in a browser frame. A faint grid, a slow
   glow and two beams of light move behind it; the frame's edge carries a travelling light. */
.fx-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.lp-hero {
  padding: calc(clamp(48px, 7vw, 92px) + 72px) 0 clamp(40px, 6vw, 72px);
}

.fx-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(var(--fx-grid) 1px, transparent 1px), linear-gradient(90deg, var(--fx-grid) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 25%, transparent 78%);
  pointer-events: none;
}

.fx-stage::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -200px;
  z-index: -1;
  width: min(1100px, 130vw);
  height: 640px;
  background: radial-gradient(closest-side, var(--fx-halo), transparent);
  transform: translateX(-50%);
  animation: lp-breathe 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes lp-breathe {
  0%, 100% { opacity: 0.65; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

.lp-hero-fx {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.lp-beam {
  position: absolute;
  top: clamp(250px, 24vw, 318px);
  width: 30%;
  height: 1px;
  background:
    linear-gradient(90deg, transparent, var(--fx-glow), transparent) 0 0 / 45% 100% no-repeat,
    linear-gradient(90deg, transparent, var(--line-strong), transparent);
  animation: lp-beam 6s ease-in-out infinite;
}

.lp-beam-l {
  left: 2%;
}

.lp-beam-r {
  right: 2%;
  animation-delay: -3s;
}

@keyframes lp-beam {
  from { background-position: -90% 0, 0 0; }
  to { background-position: 190% 0, 0 0; }
}

@media (max-width: 760px) {
  .lp-beam {
    display: none;
  }
}

.lp-hero > .container {
  position: relative;
}

.lp-hero-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.lp-badge {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 12.5px;
  color: var(--muted);
}

.lp-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fx-glow), transparent);
  transform: translateX(-100%);
  animation: lp-sweep 4.5s ease-in-out infinite;
}

@keyframes lp-sweep {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(260%); }
}

.lp-badge b {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--sage-ink);
  font-size: 11px;
}

.lp-title {
  margin: 0 0 18px;
  font-size: clamp(40px, 6.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.lp-title em {
  font-style: italic;
  color: var(--sage-ink);
}

.lp-lede {
  max-width: 46ch;
  margin: 0 auto 28px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}

.lp-hero-copy .btn-row {
  justify-content: center;
}

.lp-hero-copy .primary-btn::after,
.fx-stage .section-head .primary-btn::after,
.fx-final .primary-btn::after {
  content: '';
  width: 24px;
  height: 24px;
  margin: -4px -10px -4px 2px;
  border-radius: 50%;
  background: #4cc38a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c161a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.lp-hero-note {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--soft);
}

.lp-frame-glow {
  position: relative;
  isolation: isolate;
  max-width: 1040px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: 1px;
  border-radius: 19px;
  background: conic-gradient(from var(--lp-angle), var(--line) 0deg 220deg, var(--fx-glow) 290deg, var(--line) 345deg 360deg);
  animation: lp-spin 10s linear infinite;
}

.lp-frame-glow::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 8% 3% -6%;
  border-radius: 48px;
  background: radial-gradient(closest-side, var(--fx-halo), transparent);
  filter: blur(26px);
}

@keyframes lp-spin {
  to { --lp-angle: 360deg; }
}

.lp-frame {
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 30px 80px rgba(35, 48, 55, 0.12);
  overflow: hidden;
}

.lp-frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.lp-frame-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.lp-frame-bar em {
  margin: 0 auto;
  padding: 3px 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  font-style: normal;
  font-size: 12px;
  color: var(--soft);
}

.lp-frame .hero-shot {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* The fallback and the live demo share one height, so mounting never shifts the page. */
.lp-hero .hero-shot .cs-world,
.lp-hero .hero-shot .cs-wires {
  height: 480px;
}

.lp-hero .hero-shot .cs-world {
  margin: 0 auto;
}

.lp-hero .hero-demo-wrap {
  height: 480px;
  border-radius: 0;
}

/* A slow web of workflow lines behind each opening stage: faint links, small nodes, and pulses of
   light travelling along some links. The middle stays calm so the words read first. */
.fx-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
  mask-image: linear-gradient(180deg, #000 72%, transparent);
}

.fx-web-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 48% 44% at 50% 36%, transparent 0 34%, #000 82%);
  mask-image: radial-gradient(ellipse 48% 44% at 50% 36%, transparent 0 34%, #000 82%);
}

.fx-web-lines path {
  fill: none;
  stroke: var(--fx-line);
  stroke-width: 1;
}

.fx-web-pulses path {
  fill: none;
  stroke: var(--fx-pulse);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 7 93;
  stroke-dashoffset: 100;
  animation: fx-flow 7s linear infinite;
}

.fx-web-pulses path.is-accent {
  stroke: var(--fx-accent);
}

.fx-web-pulses .t1 { animation-duration: 5.5s; animation-delay: -1s; }
.fx-web-pulses .t2 { animation-duration: 7.5s; animation-delay: -4s; }
.fx-web-pulses .t3 { animation-duration: 6.5s; animation-delay: -2.5s; }
.fx-web-pulses .t4 { animation-duration: 9s; animation-delay: -6s; }
.fx-web-pulses .t5 { animation-duration: 8s; animation-delay: -3s; }
.fx-web-pulses .t6 { animation-duration: 10s; animation-delay: -7s; }

@keyframes fx-flow {
  to { stroke-dashoffset: 0; }
}

.fx-web-nodes circle {
  fill: var(--fx-pulse);
  opacity: 0.45;
}

.fx-web-nodes circle.is-hub {
  transform-box: fill-box;
  transform-origin: center;
  animation: fx-node 4.5s ease-in-out infinite;
}

.fx-web-nodes circle.is-hub:nth-child(3n) {
  animation-delay: -1.5s;
}

.fx-web-nodes circle.is-hub:nth-child(3n + 1) {
  animation-delay: -3s;
}

@keyframes fx-node {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.7); }
}

/* Opening stage on every other page: a centred title over the grid, glow and web. The web keeps a
   wider calm middle here, so long introductions stay easy to read. */
.section.fx-stage {
  padding-top: calc(72px + clamp(44px, 6vw, 88px));
}

.section.fx-stage .fx-web-svg {
  -webkit-mask-image: radial-gradient(ellipse 64% 74% at 50% 54%, transparent 0 48%, #000 90%);
  mask-image: radial-gradient(ellipse 64% 74% at 50% 54%, transparent 0 48%, #000 90%);
}

.fx-stage .section-head {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.fx-stage .section-head h1 {
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(36px, 5.4vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.fx-stage .section-head .lede {
  margin-left: auto;
  margin-right: auto;
}

.fx-stage .section-head .btn-row,
.fx-stage .section-head + .btn-row {
  justify-content: center;
}

/* Integrations: one slow row of real vendor marks with their names, inside the hero stage. */
.lp-logos {
  margin-top: clamp(44px, 6vw, 72px);
  text-align: center;
}

.lp-kicker {
  margin: 0 0 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}

.lp-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.lp-marquee-track {
  list-style: none;
  margin: 0;
  padding: 2px 0;
  display: flex;
  width: max-content;
  animation: lp-marquee 80s linear infinite;
}

.lp-marquee:hover .lp-marquee-track {
  animation-play-state: paused;
}

.lp-marquee-track li {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--soft);
  white-space: nowrap;
}

/* Vendor marks are drawn for light backgrounds: each sits on a small light tile. */
.lp-logo-tile {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

[data-theme="dark"] .lp-logo-tile {
  border-color: transparent;
  background: #eef3f0;
}

.lp-logo-tile img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

@keyframes lp-marquee {
  to { transform: translateX(-50%); }
}

/* Sections */
.lp-section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.lp-band {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* In dark mode the page reads as one continuous surface, sections parted by hairlines. */
[data-theme="dark"] .lp-band {
  background: transparent;
}

[data-theme="dark"] .lp-who article,
[data-theme="dark"] .lp-faq-card {
  background: var(--card);
}

.lp-head .eyebrow {
  margin-bottom: 14px;
}

.lp-head h2,
.lp-faq h2 {
  max-width: 16ch;
  margin: 0 0 14px;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.lp-head h2.lp-wide {
  max-width: 21ch;
}

.lp-sub {
  max-width: 44ch;
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.lp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}

.lp-link::after {
  content: '\2192';
  transition: transform 0.15s ease;
}

.lp-link:hover::after,
.lp-link:focus-visible::after {
  transform: translateX(3px);
}

.lp-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.lp-head-row h2 {
  margin-bottom: 0;
}

.lp-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.lp-split .lp-head h2 {
  font-size: clamp(30px, 3.8vw, 48px);
}

.lp-split-even {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  margin-top: clamp(16px, 3vw, 32px);
}

@media (max-width: 980px) {
  .lp-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Section titles rise in word by word; site.js splits them only when motion is allowed. */
.lp-words .lp-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 45ms);
}

.lp-words.is-in .lp-word {
  opacity: 1;
  transform: none;
}

/* Small states shared by the product snippets. */
.lp-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.lp-state::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.lp-state.is-ok { color: var(--sage-ink); }
.lp-state.is-ok::before { background: var(--sage-ink); }
.lp-state.is-wait { color: var(--sand-ink); }
.lp-state.is-wait::before { background: var(--sand-ink); }
.lp-state.is-resumed { color: var(--lavender-ink); }
.lp-state.is-resumed::before { background: var(--lavender-ink); }

/* Who it is for: three people, each with one line and a glimpse of what they see. */
.lp-who {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(28px, 4vw, 44px);
}

.lp-who article {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.lp-who article:nth-child(2) {
  border-radius: var(--radius-alt);
}

.lp-who .lp-who-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}

.lp-who h3 {
  margin: 0 0 8px;
  font-size: clamp(19px, 1.8vw, 22px);
}

.lp-who p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

.lp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.lp-chips code {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink);
}

@media (max-width: 900px) {
  .lp-who {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* How it works: three steps on one wire; a dot carries the event along it. */
.lp-flow {
  list-style: none;
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 56px);
  position: relative;
}

.lp-flow::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
  height: 2px;
  background: var(--line-strong);
}

.lp-flow::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 20px;
  background:
    radial-gradient(circle, var(--sage-ink) 0 4px, transparent 4.5px) 0 0 / 20px 20px no-repeat,
    radial-gradient(circle, var(--sage-2) 0 9px, transparent 9.5px) 0 0 / 20px 20px no-repeat;
  animation: lp-travel 6s cubic-bezier(0.6, 0, 0.4, 1) infinite;
  pointer-events: none;
}

@keyframes lp-travel {
  from { background-position: 0 0, 0 0; }
  to { background-position: 100% 0, 100% 0; }
}

.lp-flow-step {
  position: relative;
  padding-top: 44px;
}

.lp-flow-step::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--kind);
  box-shadow: 0 0 0 4px var(--paper);
}

.lp-band .lp-flow-step::before {
  box-shadow: 0 0 0 4px var(--card);
}

.lp-flow-step[data-kind="trigger"] { --kind: #3d7550; }
.lp-flow-step[data-kind="logic"] { --kind: #946d31; }
.lp-flow-step[data-kind="message"] { --kind: #2f6fb0; }

.lp-flow-tag {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}

.lp-flow-step h3 {
  margin: 0 0 6px;
  font-size: clamp(19px, 1.8vw, 23px);
}

.lp-flow-step p {
  max-width: 28ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 760px) {
  .lp-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-flow::before,
  .lp-flow::after {
    display: none;
  }

  .lp-flow-step {
    padding: 0 0 0 32px;
  }

  .lp-flow-step::before {
    top: 3px;
  }
}

/* Platform: an editorial list with hairlines instead of a grid of boxes. */
.lp-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 48px);
}

.lp-rows li {
  padding: 22px 0 24px;
  border-top: 1px solid var(--line-strong);
}

.lp-rows h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.lp-rows p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 640px) {
  .lp-rows {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Africa first: the currencies as type, the rails as a hairline sheet. */
.lp-currencies {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.lp-currencies li {
  padding: 14px 0;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: clamp(14px, 1.5vw, 18px);
  letter-spacing: 0.06em;
  color: var(--ink);
}

.lp-currencies li + li {
  border-left: 1px solid var(--line);
}

@media (max-width: 480px) {
  .lp-currencies {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lp-currencies li:nth-child(4) {
    border-left: 0;
  }

  .lp-currencies li:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
}

.lp-rails {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.lp-rails li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 8px;
  background: var(--card);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.lp-rail-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.lp-rail-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

@media (max-width: 520px) {
  .lp-rails {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-rails li {
    padding: 18px 6px;
  }
}

/* Control: three promises and a run history with the states a team acts on. */
.lp-points {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.lp-points li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.lp-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--sage);
  box-shadow: inset 0 0 0 2px var(--sage-ink);
}

.lp-history {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lp-history figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.lp-history figcaption b {
  font-size: 14px;
  color: var(--ink);
}

.lp-history figcaption span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}

.lp-history ol {
  list-style: none;
  margin: 0;
  padding: 6px 22px;
}

.lp-history li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.lp-history li:last-child {
  border-bottom: 0;
}

.lp-history li b {
  font-size: 14.5px;
  color: var(--ink);
}

.lp-history li i {
  font-style: normal;
  font-size: 12.5px;
  color: var(--soft);
  white-space: nowrap;
}

.lp-history .lp-state {
  justify-self: start;
}

.lp-history li:first-child {
  animation: lp-arrive 7s ease-in-out infinite;
}

@keyframes lp-arrive {
  0%, 8% { opacity: 0.35; }
  16%, 100% { opacity: 1; }
}

@media (max-width: 560px) {
  .lp-history li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .lp-history li b {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Developers: details for evaluators, folded away by default. */
.lp-details {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.lp-details summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.lp-details summary::-webkit-details-marker {
  display: none;
}

.lp-details summary::before {
  content: '+';
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.lp-details[open] summary::before {
  content: '\2212';
}

.lp-details ul {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin: 8px 0 0;
  padding: 0 0 0 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Security: four facts in a row. */
.lp-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.lp-trust li {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 22px 20px 4px 0;
}

.lp-trust li + li {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.lp-trust b {
  font-size: 16px;
  color: var(--ink);
}

.lp-trust span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 860px) {
  .lp-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-trust li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 480px) {
  .lp-trust {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-trust li + li {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* Pricing: four plans in a row from pricing-data.js; the full table stays on pricing.html. */
.lp-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.lp-plan {
  padding: 22px 20px 4px 0;
}

.lp-plan + .lp-plan {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.lp-plan h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.lp-plan.featured h3::after {
  content: 'Most popular';
  margin-left: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-ink);
}

.lp-plan p {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.lp-fine {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--soft);
}

@media (max-width: 860px) {
  .lp-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-plan:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 480px) {
  .lp-plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-plan + .lp-plan {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* FAQ: four numbered answers. */
.lp-faq {
  max-width: 760px;
  counter-reset: lp-q;
}

.lp-faq h2 {
  margin-bottom: 24px;
}

.lp-faq-card {
  padding: 4px 26px 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.lp-faq details + details {
  border-top: 1px solid var(--line);
}

.lp-faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.lp-faq summary::-webkit-details-marker {
  display: none;
}

.lp-faq summary::before {
  counter-increment: lp-q;
  content: counter(lp-q, decimal-leading-zero);
  min-width: 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--soft);
}

.lp-faq summary::after {
  content: '+';
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 18px;
  font-weight: 500;
  color: var(--soft);
}

.lp-faq details[open] summary::after {
  content: '\00d7';
  border-color: var(--sage-ink);
  color: var(--sage-ink);
}

.lp-faq details[open] summary::before {
  color: var(--sage-ink);
}

.lp-faq-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0 -26px;
  padding: 4px 26px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--soft);
}

.lp-faq-foot .lp-link {
  color: var(--sage-ink);
}

.lp-faq details p {
  max-width: 60ch;
  margin: 0 0 20px 40px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Closing stage: rings of light turn slowly around a soft orb; the call to action sits at its centre.
   site.js draws the rings into [data-fx-rings]. */
.fx-final,
.section.fx-final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(120px, 16vw, 210px) 0;
  text-align: center;
}

.fx-rings {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
  color: var(--fx-ring);
  pointer-events: none;
}

.fx-rings svg {
  grid-area: 1 / 1;
  width: min(1000px, 150vw);
  height: auto;
  overflow: visible;
}

.fx-ring {
  fill: none;
  stroke-width: 1.3;
  transform-box: fill-box;
  transform-origin: center;
}

.fx-ring-1 { animation: lp-rotate 18s linear infinite; }
.fx-ring-2 { animation: lp-rotate 28s linear infinite reverse; }
.fx-ring-3 { animation: lp-rotate 38s linear infinite; }
.fx-ring-4 { animation: lp-rotate 52s linear infinite reverse; }

@keyframes lp-rotate {
  to { transform: rotate(360deg); }
}

.fx-orb {
  grid-area: 1 / 1;
  width: min(440px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--fx-orb), transparent);
  animation: lp-orb 7s ease-in-out infinite;
}

@keyframes lp-orb {
  0%, 100% { opacity: 0.75; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.06); }
}

.fx-final .cta-band {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.fx-final .cta-band > div {
  width: 100%;
  text-align: center;
}

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

.fx-final .cta-band .eyebrow {
  margin: 0;
  color: var(--sage-ink);
}

.fx-final .cta-band h2 {
  max-width: 15ch;
  margin: 0 auto;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.fx-final .cta-band .btn-row {
  justify-content: center;
}

.fx-final .cta-band .secondary-btn {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
}

.fx-final .cta-band .secondary-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.fx-final .cta-band .lp-cta-note {
  margin: 0;
  font-size: 13px;
  color: var(--soft);
}

@media (prefers-reduced-motion: reduce) {
  .fx-web-pulses {
    display: none;
  }

  .fx-web-nodes circle.is-hub {
    animation: none;
  }

  .fx-stage::after,
  .lp-beam,
  .lp-badge::after,
  .lp-frame-glow,
  .fx-ring,
  .fx-orb {
    animation: none;
  }

  .lp-badge::after {
    display: none;
  }

  .lp-flow::after {
    animation: none;
    background: none;
  }

  .lp-history li:first-child {
    animation: none;
  }

  .lp-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .lp-marquee-track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    animation: none;
  }

  .lp-marquee-track li[aria-hidden="true"] {
    display: none;
  }

  .lp-link::after,
  .lp-faq summary::after {
    transition: none;
  }
}

/* ===== Shape language: the FlowMation leaf =====
   Two opposite corners round, two nearly square, the same asymmetry as the brand's card radius
   (28px 14px). Buttons, the header bar, badges, chips and tiles use it instead of pills; on hover
   or keyboard focus a button's leaf turns (its corners swap). Dots, nodes and rings stay round. */
:root {
  --leaf-xs: 7px 2px 7px 2px;
  --leaf-sm: 10px 3px 10px 3px;
  --leaf-md: 14px 4px 14px 4px;
  --leaf-lg: 22px 6px 22px 6px;
  --leaf-sm-turn: 3px 10px 3px 10px;
  --leaf-md-turn: 4px 14px 4px 14px;
}

.primary-btn,
.secondary-btn {
  border-radius: var(--leaf-md);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, border-radius 0.28s ease;
}

.primary-btn:hover,
.primary-btn:focus-visible,
.secondary-btn:hover,
.secondary-btn:focus-visible {
  border-radius: var(--leaf-md-turn);
}

.skip-link,
.site-links a,
.nav-signin,
.nav-toggle,
.theme-toggle,
.hero-demo-toast,
.segmented button,
.tablist [role="tab"],
.brand-tile,
.lp-logo-tile,
.lp-rail-mark,
.lp-badge {
  border-radius: var(--leaf-sm);
}

.site-links a,
.nav-signin,
.theme-toggle {
  transition: color 0.15s ease, background 0.15s ease, border-radius 0.28s ease;
}

.site-links a:hover,
.site-links a:focus-visible,
.nav-signin:hover,
.theme-toggle:hover {
  border-radius: var(--leaf-sm-turn);
}

.site-nav-wrap .site-nav,
.mobile-menu.open {
  border-radius: var(--leaf-lg);
}

.segmented,
.tablist,
.code-block {
  border-radius: var(--leaf-md);
}

.chip,
.lp-state,
.lp-badge b,
.lp-chips code,
.lp-frame-bar em,
.lp-faq summary::after,
.lp-details summary::before {
  border-radius: var(--leaf-xs);
}

.lp-hero-copy .primary-btn::after,
.fx-stage .section-head .primary-btn::after,
.fx-final .primary-btn::after {
  border-radius: 8px 2px 8px 2px;
}

/* The demo frame and its travelling light share one leaf, one pixel apart. */
.lp-frame-glow {
  border-radius: 25px 9px 25px 9px;
}

.lp-frame {
  border-radius: 24px 8px 24px 8px;
}

.lp-faq-card {
  border-radius: var(--radius);
}

@media (prefers-reduced-motion: reduce) {
  .primary-btn,
  .secondary-btn,
  .site-links a,
  .nav-signin,
  .theme-toggle {
    transition: none;
  }
}
