/* Zein — Zein Supplier Management · Landing page styles */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-subtle: #f6f8fb;
  --bg-elevated: #ffffff;
  --ink: #0e1726;
  --ink-2: #3a4657;
  --ink-3: #6b7688;
  --line: #e5e9f0;
  --line-strong: #d3dae6;

  --blue-50: #eef5ff;
  --blue-100: #dbe9fe;
  --blue-500: #2f86e8;
  --blue-600: #1b6fd6;
  --blue-700: #155ab0;
  --blue-800: #123f7f;

  --ink-900: #10151d;
  --yellow: #ffec99;
  --yellow-strong: #ffd43b;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --shadow-sm:
    0 1px 2px rgba(16, 21, 29, 0.05), 0 1px 3px rgba(16, 21, 29, 0.06);
  --shadow:
    0 10px 30px -12px rgba(18, 63, 127, 0.22),
    0 4px 10px -4px rgba(16, 21, 29, 0.08);
  --shadow-lg: 0 30px 60px -20px rgba(18, 63, 127, 0.28);

  --maxw: 1140px;
  /* Global visual scale on desktop — 0.9 matches the browser's 90% zoom view. */
  --page-scale: 0.9;
  /* Header height — drives the mobile menu offset and scroll-margin, so the
     three stay in sync when it shrinks on small screens. */
  --header-h: 68px;
  --gutter: 24px;
  --font:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Safety net so a single wide child can never hand the whole page a sideways
     scrollbar. `clip` rather than `hidden` — `hidden` would turn the root into a
     scroll container and break the sticky header. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Desktop only — phones/tablets keep their native sizing. */
@media (min-width: 961px) {
  body {
    zoom: var(--page-scale);
  }
}

a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 6px 12px;
  border-radius: 999px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
}
h3 {
  font-size: 20px;
  font-weight: 650;
}

p {
  margin: 0;
  color: var(--ink-2);
}
.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink-2);
}
.muted {
  color: var(--ink-3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(27, 111, 214, 0.6);
}
.btn-primary:hover {
  background: var(--blue-700);
  box-shadow: 0 12px 26px -8px rgba(27, 111, 214, 0.7);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--bg-subtle);
  border-color: var(--ink-3);
}
.btn-lg {
  padding: 14px 26px;
  font-size: 16px;
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.site-header.scrolled {
  border-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  min-width: 0;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: none;
}
.brand > span {
  min-width: 0;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-top: -2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 8px;
  transition:
    color 0.15s,
    background 0.15s;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-subtle);
}
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

/* Sign-in / Get-started duplicated inside the collapsible panel. Hidden until
   the header drops them (≤680px), so they're never on screen twice. */
.nav-actions-mobile {
  display: none;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle {
  flex: none;
}
.lang-toggle button {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  background: transparent;
  color: var(--ink-3);
  border: 0;
  cursor: pointer;
  transition: 0.15s;
}
.lang-toggle button.active {
  background: var(--blue-600);
  color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  /* 44px minimum so it's a comfortable thumb target. */
  width: 44px;
  height: 44px;
  padding: 0;
  margin-right: -8px;
  color: var(--ink);
  flex: none;
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
  color: var(--ink);
  background: var(--bg-subtle);
}
.nav-caret {
  transition: transform 0.15s ease;
}
.nav-dropdown.open .nav-caret {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s;
  z-index: 40;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 9px 12px;
  border-radius: 8px;
}
.nav-dropdown-menu a:hover {
  color: var(--ink);
  background: var(--bg-subtle);
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 104px) 0 64px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      60% 60% at 78% 8%,
      rgba(47, 134, 232, 0.14),
      transparent 60%
    ),
    radial-gradient(50% 50% at 8% 20%, rgba(255, 212, 59, 0.1), transparent 55%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
/* Grid items default to min-width:auto, which lets long words and nowrap
   children push the column wider than its track. */
.hero-copy,
.hero-visual {
  min-width: 0;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 58px);
  font-weight: 780;
  letter-spacing: -0.03em;
  margin-top: 22px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--blue-600), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  margin-top: 20px;
  max-width: 34ch;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-3);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.hero-note svg {
  color: var(--blue-600);
  flex: none;
  margin-top: 4px;
}

/* Hero visual: order board mock */
.mock {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-subtle);
}
.mock-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-strong);
}
.mock-bar i {
  flex: none;
}
.mock-bar span {
  margin-left: 8px;
  font-size: 12px;
  color: var(--ink-3);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  /* The URL is the only thing here that can outgrow a phone — truncate it
     rather than let it stretch the card. */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-body {
  padding: 18px;
}
.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.mock-head strong {
  font-size: 15px;
}
.pill {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.pill.green {
  background: #e7f7ee;
  color: #12864a;
}
.pill.amber {
  background: #fdf3d9;
  color: #9a6b0d;
}
.pill.blue {
  background: var(--blue-50);
  color: var(--blue-700);
}
.order-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 4px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.order-row:first-of-type {
  border-top: 0;
}
.order-row .oname {
  font-weight: 600;
}
.order-row .osub {
  font-size: 12px;
  color: var(--ink-3);
}
.order-row > div {
  min-width: 0;
}
.order-row .pill {
  white-space: nowrap;
}
.order-row .oamt {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mock-float {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.mock-float .ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  flex: none;
}
.mock-float .t {
  font-size: 12px;
  color: var(--ink-3);
}
.mock-float .v {
  font-size: 14px;
  font-weight: 650;
}
.hero-visual {
  position: relative;
  display: grid;
  gap: 6px;
}
.after-wrap {
  position: relative;
}
.float-passkey {
  right: -14px;
  bottom: 40px;
}
.float-vat {
  left: -18px;
  top: 24px;
}

/* Before / after staging */
.stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.stage-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.t-before {
  background: #fdeaea;
  color: #b4232a;
}
.t-before::before {
  background: #e0555b;
}
.t-after {
  background: #e7f6ec;
  color: #1a7a3e;
}
.t-after::before {
  background: #22a153;
}

/* Before — messy WhatsApp-style group chat */
.chat-mock {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(-1.1deg);
  opacity: 0.97;
}
.chat-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #075e54;
  color: #fff;
}
.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #128c7e;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex: none;
}
.chat-meta {
  min-width: 0;
}
.chat-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.chat-sub {
  font-size: 11px;
  opacity: 0.82;
  margin-top: 1px;
}
.chat-bar > svg {
  margin-left: auto;
  opacity: 0.85;
  flex: none;
}
.chat-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ece5dd;
}
.bubble {
  max-width: 80%;
  padding: 8px 11px 5px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.35;
  color: #111b21;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}
.bubble time {
  display: block;
  text-align: right;
  font-size: 10px;
  color: #667781;
  margin-top: 2px;
}
.bubble.in {
  align-self: flex-start;
  background: #fff;
  border-top-left-radius: 3px;
}
.bubble.out {
  align-self: flex-end;
  background: #dcf8c6;
  border-top-right-radius: 3px;
}
.chat-warn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fdeaea;
  color: #b4232a;
  font-size: 12.5px;
  font-weight: 600;
  border-top: 1px solid var(--line);
}
.chat-warn svg {
  flex: none;
}

/* Transition arrow between the two stages */
.compare-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #1a7a3e;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  margin: 8px 0 12px;
}
.compare-arrow svg {
  color: #22a153;
}

/* ── Feature list (all panels shown at once, stacked vertically) ── */
.feature-panels {
  display: flex;
  flex-direction: column;
}
.feature-panel {
  padding-top: clamp(56px, 9vw, 96px);
  border-top: 1px solid var(--line);
}
.feature-panel:first-child {
  padding-top: 0;
  border-top: none;
}
.feature-explain {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.fe-copy,
.fe-visual {
  min-width: 0;
}
/* Zigzag: put the mock card on the left for these panels instead of always
   keeping it on the right. */
#fp-partnerships .feature-explain,
#fp-boards .feature-explain,
#fp-reports .feature-explain {
  grid-template-columns: 1.05fr 0.95fr;
}
#fp-partnerships .feature-explain .fe-visual,
#fp-boards .feature-explain .fe-visual,
#fp-reports .feature-explain .fe-visual {
  order: -1;
}
.fe-copy h3 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
}

/* Light mock card shared by product / partnership / order / refund panels */
.fe-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.fe-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 18px;
}
.fe-card-head > div {
  min-width: 0;
}
.fe-card-head .pill {
  white-space: nowrap;
}
.fe-card-head strong {
  font-size: 16px;
  font-weight: 700;
}
.fe-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
}
.fe-row-lg {
  align-items: center;
}
.fe-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.fe-sub {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 2px;
}
.fe-amt {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.fe-total {
  border-top: 1.5px solid var(--line-strong);
  margin-top: 2px;
  font-weight: 700;
}
.fe-total span,
.fe-total .fe-amt {
  color: var(--ink);
  font-weight: 700;
}
.fe-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.fe-foot svg {
  color: var(--blue-600);
  flex-shrink: 0;
}

/* ── Reports & reconciliation card ──
   Mirrors the app's Reports page: partner/period filters, the two KPI tiles,
   the turnover/refunds series toggles and the line chart. The side switch above
   it flips between the seller's console and the buyer's order board — the
   figures deliberately stay identical, which is the whole point of the panel. */
.fe-side-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 14px;
}
.fe-side-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-3);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}
.fe-side-btn:hover {
  color: var(--ink-2);
}
.fe-side-btn.is-on {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}
.fe-side-btn:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.rp-card {
  /* The reports chart's series colours, copied from the app's retail theme
     (--chart-1 / --chart-2 in bsm-ui globals.css). */
  --rp-turnover: #2a78d6;
  --rp-refunds: #eb6834;
  padding: 22px;
}
.rp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.rp-head > div {
  min-width: 0;
}
.rp-head .pill {
  white-space: nowrap;
}
.rp-head strong {
  font-size: 17px;
  font-weight: 700;
}
.rp-sub {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-3);
  margin-top: 2px;
}

.rp-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.rp-select,
.rp-scope {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 5px 10px;
}
.rp-select::after {
  content: "▾";
  margin-left: 10px;
  color: var(--ink-3);
}
.rp-seg {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
}
.rp-seg span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 5px 11px;
  border-right: 1px solid var(--line-strong);
}
.rp-seg span:last-child {
  border-right: 0;
}
.rp-seg span.is-on {
  background: var(--bg);
  color: var(--ink);
}

.rp-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.rp-kpi {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.rp-kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.rp-kpi-value {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rp-kpi-net {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}
/* Flash the totals when the side switch flips, so it reads as "the numbers
   didn't move" rather than "nothing happened". */
.rp-card.is-flash .rp-kpi-value {
  animation: rp-flash 0.85s ease;
}
@keyframes rp-flash {
  0%,
  100% {
    color: var(--ink);
  }
  35% {
    color: var(--blue-600);
  }
}

.rp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.rp-tog {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 4px 11px;
  border: 2px solid;
  border-radius: 8px;
}
.rp-tog i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rp-tog-turnover {
  border-color: var(--rp-turnover);
  background: color-mix(in srgb, var(--rp-turnover) 12%, transparent);
}
.rp-tog-turnover i {
  background: var(--rp-turnover);
}
.rp-tog-refunds {
  border-color: var(--rp-refunds);
  background: color-mix(in srgb, var(--rp-refunds) 14%, transparent);
}
.rp-tog-refunds i {
  background: var(--rp-refunds);
}

.rp-chart {
  width: 100%;
  height: auto;
  margin-top: 10px;
}
.rp-grid line {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.rp-ylabel text,
.rp-xlabel text {
  font-family: var(--font);
  font-size: 11px;
  fill: var(--ink-3);
}
.rp-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rp-line-turnover {
  stroke: var(--rp-turnover);
}
.rp-line-refunds {
  stroke: var(--rp-refunds);
}
/* Draw the two series in once the panel scrolls into view. */
#fp-reports .rp-line {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
}
#fp-reports.in .rp-line {
  animation: rp-draw 1.5s ease forwards;
}
#fp-reports.in .rp-line-refunds {
  animation-delay: 0.25s;
}
@keyframes rp-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #fp-reports .rp-line {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none;
  }
  .rp-card.is-flash .rp-kpi-value {
    animation: none;
  }
}

/* Order change-proposal card */
.fe-propose {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.fe-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}
.fe-line .fe-op {
  font-weight: 700;
  font-size: 16px;
  width: 16px;
  text-align: center;
}
.fe-line-add {
  background: #e7f7ee;
  color: #12864a;
}
.fe-line-remove {
  background: #fdecec;
  color: #b4402f;
}
.fe-propose-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin-bottom: 12px;
}
.fe-propose-row .fe-propose {
  margin-bottom: 0;
}
.fe-time {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}
.fe-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
}
.fe-confirm svg {
  color: #9a6b0d;
  flex-shrink: 0;
}
.fe-confirm.is-ok svg {
  color: #12864a;
}
.fe-confirm.is-muted svg {
  color: var(--ink-3);
}

/* Interactive order-change demo — the seller confirms or deletes the buyer's
   proposal. JS flips [data-state] on the card and hides the variants that
   don't belong to the current state. */
.fe-when-off {
  display: none !important;
}
.fe-order-demo .fe-line {
  transition:
    opacity 0.18s ease,
    filter 0.18s ease;
}
.fe-order-demo[data-state="deleted"] .fe-line {
  opacity: 0.45;
  text-decoration: line-through;
}
.fe-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.fe-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--ink-2);
}
.fe-chip.is-ok {
  background: #e7f7ee;
  color: #12864a;
}
.fe-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.fe-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.12s ease;
}
.fe-btn:active {
  transform: translateY(1px);
}
.fe-btn:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}
.fe-btn-primary {
  background: var(--blue-700);
  color: #fff;
}
.fe-btn-primary:hover {
  background: var(--blue-800);
}
.fe-btn-danger {
  background: #fdecec;
  color: #c0392b;
}
.fe-btn-danger:hover {
  background: #fadada;
}
.fe-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 12px;
}
.fe-replay {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
  padding: 4px 8px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--blue-700);
  cursor: pointer;
  white-space: nowrap;
}
.fe-replay:hover {
  background: var(--blue-50);
}
.fe-replay:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

/* ── Console switch ─────────────────────────────────── */
.console-switch-wrap {
  padding-block: 28px 4px;
}
.console-switch-wrap .container {
  display: flex;
  justify-content: center;
}
.console-switch {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-subtle);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}
.console-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}
.console-tab svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.console-tab:hover {
  color: var(--ink-2);
}
.console-tab.is-active {
  color: var(--blue-700);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.console-tab:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

/* ── Buyer Console — coming soon ────────────────────── */
.coming-soon {
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
}
.coming-soon-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.coming-soon-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 6px 14px;
  border-radius: 999px;
}
.coming-soon-icon {
  width: 72px;
  height: 72px;
  margin: 26px auto 22px;
  display: grid;
  place-items: center;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 20px;
}
.coming-soon-icon svg {
  width: 34px;
  height: 34px;
}
.coming-soon-card h2 {
  margin: 0 0 14px;
}
.coming-soon-card p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 460px;
}

/* ── Sections ───────────────────────────────────────── */
section,
.feature-panel {
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.section {
  padding: clamp(64px, 9vw, 100px) 0;
}
.section-head {
  max-width: 620px;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head p {
  margin-top: 14px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition:
    transform 0.16s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.feature .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue-600);
  margin-bottom: 16px;
}
.feature h3 {
  margin-bottom: 8px;
}
.feature p {
  font-size: 15px;
}

/* Spotlight (order boards) */
.spotlight {
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spotlight-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-2);
}
.checklist .tick {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.checklist strong {
  color: var(--ink);
  font-weight: 650;
}

/* Order board mock — light, sharing the .fe-card shell with the other panels */
.fe-visual-stack {
  position: relative;
}
.board-card {
  position: relative;
  padding: 24px 26px;
}
.board-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-3);
}
.venue-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.venue-ic {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue-700);
}
.venue-body {
  min-width: 0;
}
.venue-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}
.venue-scope {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-3);
}
/* The board's single shareable URL — one per partnership, not per venue. */
.board-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  background: var(--blue-50);
}
.board-link {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--blue-700);
  overflow-wrap: anywhere;
}
.badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.badge-default {
  background: var(--blue-700);
  color: #fff;
}
.badge-branch {
  background: var(--bg-subtle);
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
}
.badge-on {
  background: #e7f7ee;
  color: #12864a;
}
.badge-off {
  background: var(--bg-subtle);
  color: var(--ink-3);
}
/* Deactivated venue: same row, drained of colour. */
.venue-row.is-off .venue-ic {
  background: var(--bg-subtle);
  color: var(--ink-3);
}
.venue-row.is-off .venue-name,
.venue-row.is-off .venue-scope {
  color: var(--ink-3);
}

/* Passkey card the seller gets from clicking that link. Static mock — the cursor
   glyph is what tells the reader a click happened. It sits in flow rather than
   floating so it never covers the venue badges below it. */
.venue-cursor {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--blue-700);
  filter: drop-shadow(0 1px 2px rgba(16, 21, 29, 0.3));
}
.venue-pop {
  position: relative;
  margin: 10px 0 4px auto;
  width: 268px;
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}
.venue-pop::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 24px;
  width: 11px;
  height: 11px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
  transform: rotate(45deg);
}
.vp-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.vp-code {
  margin-top: 7px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 16px;
  font-weight: 600;
  /* Wider tracking now that the code runs unbroken — keeps it scannable. */
  letter-spacing: 0.16em;
  color: var(--ink);
}
.vp-scope {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
}
.vp-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.vp-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--ink-2);
}
.vp-btn.is-primary {
  background: var(--blue-700);
  color: #fff;
}

/* Second card: rough wireframe of the board the buyer opens. It overlaps the
   bottom-right of the card above and breaks past its right edge, so the two read
   as layered rather than stacked. Stays in flow — the negative top margin sets
   how deep the overlap goes, so the panel still reserves height for it. */
.board-mini {
  position: relative;
  z-index: 2;
  width: 86%;
  margin: -52px -28px 0 auto;
  padding: 16px;
  box-shadow: var(--shadow-lg);
}
.bm-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.bm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}
.bm-url {
  flex: 1;
  margin-left: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-subtle);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Horizontal tab strip standing in for the board's own navigation. */
.bm-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
}
.bm-nav {
  height: 9px;
  border-radius: 5px;
  background: var(--line);
  flex-shrink: 0;
}
.bm-nav:nth-of-type(1) {
  width: 54px;
}
.bm-nav:nth-of-type(2) {
  width: 40px;
}
.bm-nav:nth-of-type(3) {
  width: 46px;
}
.bm-nav.is-on {
  background: var(--blue-100);
}
.bm-main {
  padding-top: 14px;
}
.bm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 10px;
}
.bm-title {
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-2);
  min-width: 0;
}
.bm-cta {
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--blue-700);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.bm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.bm-bar-line {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
}
.bm-row .pill {
  font-size: 10px;
  padding: 2px 8px;
  white-space: nowrap;
}
.bm-cap {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 8px;
}
.step .num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-600);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px -8px rgba(27, 111, 214, 0.7);
}
.step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.step p {
  font-size: 14px;
}

/* Personas */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.persona {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--bg-elevated);
}
.persona .tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-600);
}
.persona h3 {
  margin: 10px 0 8px;
}
.persona p {
  font-size: 15px;
}
.persona ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 14px;
}
.persona li {
  margin-bottom: 6px;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  padding: 22px 40px 22px 0;
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--blue-600);
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after {
  content: "\2013";
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.faq-a p {
  padding-bottom: 22px;
  font-size: 15px;
  max-width: 66ch;
}

/* CTA band */
.cta-band {
  padding: clamp(56px, 8vw, 88px) 0;
}
.cta-inner {
  background: linear-gradient(
    120deg,
    var(--blue-700),
    var(--blue-600) 55%,
    var(--blue-500)
  );
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 64px) clamp(22px, 6vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-inner::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(
    circle,
    rgba(255, 236, 153, 0.28),
    transparent 68%
  );
}
.cta-inner h2 {
  color: #fff;
}
.cta-inner p {
  color: rgba(255, 255, 255, 0.86);
  margin: 14px auto 0;
  max-width: 52ch;
}
.cta-inner .hero-cta {
  justify-content: center;
  margin-top: 30px;
  position: relative;
}
.cta-inner .btn-primary {
  background: #fff;
  color: var(--blue-700);
}
.cta-inner .btn-primary:hover {
  background: var(--yellow);
  color: var(--ink-900);
}
.cta-inner .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.cta-inner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  background: var(--bg-subtle);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
}
.footer-brand p {
  font-size: 14px;
  margin-top: 14px;
  max-width: 30ch;
}
.footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer a {
  font-size: 14px;
  color: var(--ink-2);
}
.footer a:hover {
  color: var(--blue-600);
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
}
.phase-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 4px 12px;
  border-radius: 999px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────── */

/* ≤960px — two-column layouts fold to one.
   Reading order on a phone is copy first, visual second: the headline has to
   arrive before the mock that illustrates it. On desktop the zigzag still
   reorders columns; here source order wins. */
@media (max-width: 960px) {
  .hero-grid,
  .spotlight-grid,
  .feature-explain {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  #fp-partnerships .feature-explain,
  #fp-boards .feature-explain,
  #fp-reports .feature-explain {
    grid-template-columns: 1fr;
  }
  .hero-visual,
  .feature-explain .fe-visual,
  #fp-partnerships .feature-explain .fe-visual,
  #fp-boards .feature-explain .fe-visual,
  #fp-reports .feature-explain .fe-visual {
    order: 0;
  }
  /* Single column: the overlap would hang past the container padding, so the
     two board cards go back to a plain stack. */
  .board-mini {
    width: 100%;
    margin: 18px 0 0;
  }
  .features-grid,
  .persona-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ≤900px — the header runs out of room well before the old 680px cut-off:
   brand + nav links + language toggle + two CTAs don't fit a tablet. Collapse
   the links into the panel here, while the CTAs still fit alongside it. */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-header .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px var(--gutter) 20px;
    gap: 4px;
    /* Long menus must scroll inside the panel rather than run off-screen. */
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-header .nav-links.open a {
    padding: 12px;
  }
  .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
  }
  .nav-dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 12px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: flex;
  }
}

/* ≤680px — phones. */
@media (max-width: 680px) {
  :root {
    --header-h: 60px;
    --gutter: 18px;
  }
  body {
    font-size: 16px;
  }

  /* The header keeps only brand + language + menu. Sign in / Get started move
     into the panel, where they get real width instead of being squeezed. */
  .nav-right .btn {
    display: none;
  }
  .nav-actions-mobile {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  /* `.nav-links a` outranks `.btn`, so restate the button look here rather than
     let the panel's link styling flatten these two into plain text. */
  .site-header .nav-links .nav-actions-mobile a.btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
  }
  .site-header .nav-links .nav-actions-mobile a.btn-primary {
    background: var(--blue-600);
    color: #fff;
  }
  .site-header .nav-links .nav-actions-mobile a.btn-ghost {
    color: var(--ink);
    background: transparent;
    border-color: var(--line-strong);
  }
  .brand {
    font-size: 16px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }

  .features-grid,
  .persona-grid,
  .steps,
  .rp-kpis {
    grid-template-columns: 1fr;
  }
  /* Brand block spans the row; the three link columns pair up below it. */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }

  .fe-side-switch {
    justify-content: flex-start;
  }
  .float-passkey,
  .float-vat {
    display: none;
  }
  .hero-cta {
    gap: 10px;
  }
  .hero-cta .btn {
    flex: 1 1 160px;
  }

  /* Card chrome eats a phone's width — 26px of padding on each side of a 342px
     screen leaves the content less than 60% of the viewport. */
  .fe-card {
    padding: 18px;
    border-radius: var(--radius);
  }
  .rp-card,
  .board-card,
  .board-mini {
    padding: 16px;
  }
  .mock-body {
    padding: 14px;
  }
  .mock {
    border-radius: var(--radius);
  }
  .venue-pop {
    width: 100%;
  }

  /* The chart's viewBox is fixed at 480 units wide; squeezed into ~300px of
     screen, 11-unit labels render around 7px. Scale the type with it. */
  .rp-ylabel text,
  .rp-xlabel text {
    font-size: 15px;
  }
  .rp-kpi-value {
    font-size: 19px;
  }

  /* Name and status on the first line, amount right-aligned beneath them. */
  .order-row {
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
  }
  .order-row .oamt {
    grid-column: 2;
    text-align: right;
  }

  .section-head {
    margin-bottom: 28px;
  }
  .checklist {
    margin-top: 20px;
  }
}

/* ≤480px — small phones. */
@media (max-width: 480px) {
  /* Two tabs of Azerbaijani copy overflow a pill that can't wrap; give the
     switch the full width and split it evenly instead. */
  .console-switch {
    display: flex;
    width: 100%;
    border-radius: var(--radius);
  }
  .console-tab {
    flex: 1;
    padding: 10px 8px;
    font-size: 14px;
    border-radius: calc(var(--radius) - 4px);
  }
  .console-tab span {
    min-width: 0;
  }

  .fe-side-switch .fe-side-btn {
    flex: 1 1 auto;
    white-space: normal;
  }
  .fe-actions .fe-btn {
    flex: 1;
  }
  .hero-cta .btn,
  .cta-inner .hero-cta .btn {
    flex: 1 1 100%;
  }
  .faq-q {
    font-size: 16px;
    padding-right: 34px;
  }
  .lang-toggle button {
    padding: 8px 10px;
    font-size: 12px;
  }
  /* Rotating the chat mock costs horizontal room the screen doesn't have. */
  .chat-mock {
    transform: none;
  }
  .bubble {
    max-width: 92%;
  }
}
