/*
 * The landing page — hero, the live demo, and the proof sections.
 *
 * ## Why this is a separate file from `landing.css`
 *
 * `landing.css` carries the brand tokens and the previous page's components. This file carries the
 * redsign: the shell, the animated demo, and the proof sections. Keeping them apart means the new page
 * cannot silently inherit a rule written for the old one, and the tokens are still declared once.
 *
 * ## The palette is the brand's, and only the brand's
 *
 * Lime `#b7ff1d` on forest-tinted near-black, taken from the logo. The APPLICATION moved to a cool neutral
 * grade with a blue accent; the landing page deliberately did not, because it is the surface that carries
 * the mark, and lime on near-black is the pairing the identity was drawn for. The two are allowed to differ
 * — they are different jobs.
 *
 * ## Lime is never small text
 *
 * `#b7ff1d` on `#0a1410` is about 15:1 and perfectly legible, but it is an intense colour and a paragraph of
 * it vibrates. Lime is used for: the brand mark, the accent inside a headline, buttons, the chart, the
 * active rail marker, and figures. Everything else is `--ink` or softer.
 *
 * ## Motion
 *
 * Everything animated here is decoration over content that is already in the HTML. The one rule that matters
 * is at the end of this file: under `prefers-reduced-motion` the transitions stop and the demo script draws
 * its end state immediately, so the page reads the same with the movement removed.
 */

/* ==========================================================================
   THE SHELL — tokens are inherited from landing.css; these are layout only
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Arabic needs a face with real Arabic coverage and a little more line height to breathe. */
html[lang="ar"] body {
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Geeza Pro", system-ui, sans-serif;
  line-height: 1.85;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 100;
  background: var(--lime);
  color: #0d1114;
  padding: 10px 16px;
  font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { inset-inline-start: 0; }

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

/* ==========================================================================
   HEADER — one header for every page
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 20, 16, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  block-size: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-inline-end: auto;
}

.brand-mark { inline-size: 30px; block-size: 27px; }

.brand-text {
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.12em;
  color: #fff;
  white-space: nowrap;
}
.brand-os { color: var(--lime); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.site-nav a:hover { color: var(--lime); }

/* The language menu: a native <details>, so it works with no JavaScript at all. */
.lang-menu { position: relative; }
.lang-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color .15s ease, color .15s ease;
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover { border-color: var(--lime-dim); color: var(--ink); }
.lang-menu[open] > summary { border-color: var(--lime); color: var(--ink); }

.lang-list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  min-inline-size: 92px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.lang-list a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.lang-list a:hover { background: var(--forest-700); color: var(--ink); }
.lang-list a[aria-current="true"] { color: var(--lime); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--lime);
  color: #0d1114;
  font: inherit;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.btn:hover { background: var(--lime-hot); box-shadow: var(--glow); }
.btn:active { transform: translateY(1px); }
.btn.lg { padding: 14px 26px; font-size: 1rem; }
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn.ghost:hover { border-color: var(--lime); color: var(--lime); background: transparent; box-shadow: none; }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  padding-block: 56px 20px;
  text-align: center;
}
/* A single soft wash behind the headline, so the top of the page has a light source. */
.hero::before {
  content: "";
  position: absolute;
  inset: -120px 0 auto;
  block-size: 560px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(183, 255, 29, .13), transparent 70%);
  pointer-events: none;
}

.hero-wrap { position: relative; }

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--lime);
  background: rgba(183, 255, 29, .05);
}

.hero h1 {
  margin: 0 auto 20px;
  max-inline-size: 15ch;
  font-size: clamp(2.15rem, 5.6vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.hero h1 .accent { color: var(--lime); }

.lede {
  margin: 0 auto;
  max-inline-size: 60ch;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: var(--ink-soft);
}

.cta { margin: 30px 0 14px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin: 0; font-size: 0.87rem; color: var(--ink-faint); }

/* ==========================================================================
   THE LIVE DEMO
   ========================================================================== */

.demo { padding-block: 24px 48px; }

.demo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-block-end: 14px;
}

.shape-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.shape-switch-label {
  padding-inline: 12px 8px;
  font-size: 0.82rem;
  color: var(--ink-faint);
  white-space: nowrap;
}
.shape-btn {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.shape-btn:hover { color: var(--ink); }
.shape-btn.on { background: var(--lime); color: #0d1114; }

.demo-actions { display: inline-flex; gap: 10px; flex-wrap: wrap; }

/*
 * ## The `demo-hint` margin, and why it was removed
 *
 * Measuring the LAST CONTENT of each section against the FIRST CONTENT of the next found a **175px** gap
 * between the hero and the demo — far more than the 56px rhythm, and it came from here: the hint carried an
 * 18px bottom margin, which stacked on top of the hero's own bottom padding and the demo's top padding.
 *
 * The spacing between the hint and the panel is the panel's job now, because the panel is what it belongs to.
 */
.demo-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-faint);
}
.demo-hint-extra { color: var(--ink-soft); }

/* ---- the panel ---- */

.demo-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  /* The hint's spacing lives here now, so the two cannot stack. */
  margin-block-start: 14px;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-block-end: 1px solid var(--line);
  background: linear-gradient(180deg, var(--forest-900), #091310);
}
.demo-dot {
  inline-size: 9px;
  block-size: 9px;
  border-radius: 50%;
  background: var(--forest-500);
}
.demo-dot:nth-child(2) { background: var(--lime-dim); }
.demo-dot:nth-child(3) { background: var(--lime); }

.demo-url {
  margin-inline-start: 8px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, .3);
  font-size: 0.74rem;
  color: var(--ink-faint);
  direction: ltr;
}

.demo-live {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.demo-live-dot {
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(183, 255, 29, .6);
  animation: live-pulse 2.4s ease-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(183, 255, 29, .55); }
  70% { box-shadow: 0 0 0 9px rgba(183, 255, 29, 0); }
  100% { box-shadow: 0 0 0 0 rgba(183, 255, 29, 0); }
}

.demo-body { display: flex; min-block-size: 340px; }

.demo-nav {
  flex: 0 0 176px;
  padding: 14px 0;
  background: linear-gradient(180deg, #0d1a11, #0a1410);
}
.demo-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.demo-nav-item i {
  inline-size: 15px;
  block-size: 15px;
  border-radius: 4px;
  background: currentColor;
  opacity: .55;
  flex-shrink: 0;
}
.demo-nav-item.on {
  color: #fff;
  background: linear-gradient(90deg, rgba(183, 255, 29, .16), transparent 80%);
  box-shadow: inset 3px 0 0 var(--lime);
}
.demo-nav-item.on i { background: var(--lime); opacity: 1; }

.demo-main {
  flex: 1;
  min-inline-size: 0;
  padding: 18px;
  background:
    radial-gradient(26rem 15rem at 76% -12%, rgba(183, 255, 29, .13), transparent 66%),
    linear-gradient(180deg, #14211a, #111c17);
}

.demo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 14px;
}
.demo-head h3 { margin: 0; font-size: 1.02rem; color: #fff; }
.demo-head span { font-size: 0.76rem; color: var(--ink-faint); }

.demo-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.demo-kpi {
  padding: 11px 13px;
  border: 1px solid rgba(183, 255, 29, .2);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(183, 255, 29, .14), rgba(183, 255, 29, .03) 65%, rgba(0, 0, 0, .18)),
    linear-gradient(180deg, #1e2f1c, #16231a);
  box-shadow: inset 0 1px 0 rgba(210, 255, 92, .2), 0 8px 20px -14px rgba(0, 0, 0, .9);
}
.demo-kpi > span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-kpi b {
  display: block;
  margin-block: 3px 1px;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.demo-kpi .up { font-size: 0.7rem; font-weight: 700; color: var(--lime); }

.demo-lower { margin-block-start: 14px; }

.demo-chart-wrap { block-size: 150px; }
.demo-chart { inline-size: 100%; block-size: 150px; display: block; }

.demo-rows {
  margin-block-start: 12px;
  border: 1px solid rgba(183, 255, 29, .13);
  border-radius: 11px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(183, 255, 29, .04), rgba(0, 0, 0, .22));
}

/* Rows arrive from the left as the flow runs; the state chip lands a beat later. */
.demo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.79rem;
  border-block-end: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .32s ease, transform .32s ease, background .32s ease;
}
.demo-row:last-child { border-block-end: 0; }
.demo-row.in { opacity: 1; transform: none; }
.demo-row.done { background: rgba(183, 255, 29, .05); }
.demo-row .who { display: flex; align-items: baseline; gap: 8px; flex: 1; min-inline-size: 0; }
.demo-row .who b { color: #fff; font-weight: 700; }
.demo-row .who .sub {
  color: var(--ink-faint);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-row .amt { font-variant-numeric: tabular-nums; color: var(--ink-soft); }

.tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag.paid { background: rgba(74, 222, 128, .15); color: var(--green); }
.tag.due { background: rgba(251, 191, 36, .15); color: var(--amber); }
.tag.over { background: rgba(248, 113, 113, .15); color: var(--red); }

/* The payoff of the flow: the invoice that appears on its own. */
.demo-invoice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-start: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(183, 255, 29, .42);
  border-radius: 11px;
  /*
   * The label sits ON the lime wash, so it needs to be lighter than the page's body text, not darker.
   * The first version used `--ink-soft`, which is tuned for the page ground and read as near-black here —
   * the strip was legible only as a shape, which defeats it. `--ink` on this ground is roughly 10:1.
   */
  background: linear-gradient(90deg, rgba(183, 255, 29, .17), rgba(183, 255, 29, .04));
  font-size: 0.79rem;
  animation: invoice-in .4s ease both;
}
@keyframes invoice-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.demo-invoice-label { color: var(--ink-soft); }
.demo-invoice-no { color: var(--lime); font-weight: 700; }
.demo-invoice-amt { margin-inline-start: auto; color: #fff; font-variant-numeric: tabular-nums; font-weight: 700; }

.demo-rate {
  margin-block-start: 12px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(180deg, #101a15, #0d1512);
}
.demo-rate-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.demo-lock { font-size: 0.8rem; }
.demo-rate-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: 4px;
}
.demo-rate-body b { color: #fff; font-variant-numeric: tabular-nums; }
.demo-rate-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--lime);
  border: 1px solid rgba(183, 255, 29, .3);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

section:not(.legal-body):not(.legal-section) { padding-block: 56px; }
section.alt { background: var(--bg-soft); border-block: 1px solid var(--line-soft); }

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.16;
  letter-spacing: -0.018em;
  font-weight: 800;
}
.section-lede {
  margin: 0 0 34px;
  max-inline-size: 62ch;
  color: var(--ink-soft);
}

/* ---- pain ---- */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.pain-card {
  position: relative;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.pain-mark {
  display: block;
  inline-size: 26px;
  block-size: 4px;
  margin-block-end: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.pain-card h3 { margin: 0 0 8px; font-size: 1.02rem; color: #fff; }
.pain-card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.pain-close {
  margin: 26px 0 0;
  padding-inline-start: 16px;
  border-inline-start: 3px solid var(--lime);
  font-size: 1.02rem;
  color: var(--ink);
}

/* ---- who it is for: the same system, five trades ---- */

.verticals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
/*
 * Six cards across, three to a row on a normal screen.
 *
 * `auto-fit` alone packed four to a row and left two orphans under it, which reads as a layout accident.
 * Three columns makes it 3 + 3, which reads as intended.
 */
@media (min-width: 940px) {
  .verticals-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.vertical-card {
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  /* A lime edge on the inline-start, so the row of cards reads as a list of the same thing. */
  box-shadow: inset 3px 0 0 -1px rgba(183, 255, 29, .5);
  transition: border-color .2s ease, transform .2s ease;
}
.vertical-card:hover { border-color: rgba(183, 255, 29, .35); transform: translateY(-2px); }
.vertical-card h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  color: #fff;
}
.vertical-card p { margin: 0; font-size: 0.89rem; color: var(--ink-soft); }

/*
 * The catch-all card is deliberately marked out.
 *
 * It is the one that answers the visitor whose trade is not in the list, so it should not look like a sixth
 * named trade — a filled edge and a brighter heading say "this one is about you".
 */
.vertical-card.any {
  background:
    linear-gradient(180deg, rgba(183, 255, 29, .07), rgba(183, 255, 29, .01)),
    var(--panel);
  border-color: rgba(183, 255, 29, .32);
  box-shadow: inset 3px 0 0 0 var(--lime);
}
.vertical-card.any h3 { color: var(--lime); }

/* ---- the flow ---- */

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}
.flow-step {
  position: relative;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color .3s ease, transform .3s ease;
}
/* A hairline connector, so the four cards read as one sequence rather than four facts. */
.flow-step::after {
  content: "";
  position: absolute;
  inset-inline-start: 100%;
  top: 50%;
  inline-size: 16px;
  block-size: 1px;
  background: linear-gradient(90deg, var(--lime-dim), transparent);
}
.flow-step:last-child::after { display: none; }

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 26px;
  block-size: 26px;
  margin-block-end: 12px;
  border-radius: 50%;
  background: rgba(183, 255, 29, .12);
  border: 1px solid rgba(183, 255, 29, .3);
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 700;
}
.flow-step h3 { margin: 0 0 6px; font-size: 1rem; color: #fff; }
.flow-step p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* ---- the locked rate ---- */

.rate-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.rate-wrap .section-lede { margin-block-end: 0; }

.rate-panel {
  padding: 22px;
  border: 1px solid rgba(183, 255, 29, .28);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(183, 255, 29, .09), rgba(183, 255, 29, .01)),
    var(--panel);
  box-shadow: var(--shadow);
}
.rate-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.rate-panel-line {
  margin-block: 10px 12px;
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.rate-panel-tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid rgba(183, 255, 29, .35);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--lime);
}

/* ---- the price ---- */

/*
 * ## Why this section needed its own repair
 *
 * Measured on the live page, the pricing band was lopsided and the numbers said why:
 *
 *   * the card rendered **370px wide** in a column that allowed ~500px;
 *   * the copy beside it was **105px of text against a 465px card — 360px of dead space**, 180px above the
 *     heading and 180px below it;
 *   * and the heading sat **180px below the top of the card it belongs to**.
 *
 * Two causes, both of them the same mistake in different clothes: **`landing.css` styles `.price-card` too.**
 * It carries a legacy centred card — `max-width: 470px; margin-inline: auto; text-align: center` — and a
 * legacy `.price-card ul`/`.price-card li` treatment. A class name shared between two designs means whichever
 * sheet loads last wins the rules it happens to declare, and the two interleave: the new sheet set the padding
 * and the background, the old one kept the width and the centring.
 *
 * So this block deliberately OVERRIDES rather than co-exists: the card fills its column, the text aligns to
 * the start of that column, and the section's two columns are given an explicit split instead of relying on
 * `auto-fit`, which had collapsed to a single track.
 */
.pricing-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}
.pricing-wrap .section-lede { margin-block-end: 26px; }

/*
 * The three points beside the card.
 *
 * They exist to give the left column a height worth its column, and they are the questions the card does not
 * answer: can I leave, will the price change, can I take my data. A marker per point rather than a card, so
 * the column reads as a list of reassurances and not as a second, competing offer.
 */
.price-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}
.price-points li {
  position: relative;
  padding-inline-start: 30px;
}
.price-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.5em;
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(183, 255, 29, .14);
}
.price-points b {
  display: block;
  font-size: 0.98rem;
  color: #fff;
  margin-block-end: 3px;
}
.price-points span { font-size: 0.91rem; color: var(--ink-soft); line-height: 1.55; }

.price-card {
  /* The legacy rule's 470px cap and auto margins, both overridden. */
  max-inline-size: none;
  margin-inline: 0;
  padding: 30px 28px;
  border: 1px solid rgba(183, 255, 29, .34);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(22rem 12rem at 80% -10%, rgba(183, 255, 29, .13), transparent 68%),
    linear-gradient(180deg, #16241c, #111c17);
  box-shadow: var(--shadow-lg);
  text-align: start;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.price-amount b {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}
.price-amount span { font-size: 1rem; color: var(--ink-soft); }

.price-who {
  margin: 10px 0 18px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--lime);
}

.price-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.price-list li {
  position: relative;
  padding-inline-start: 26px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
/* A drawn tick rather than a character, so it aligns whatever the font does. */
.price-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.42em;
  inline-size: 13px;
  block-size: 7px;
  border-inline-start: 2px solid var(--lime);
  border-block-end: 2px solid var(--lime);
  transform: rotate(-45deg);
}
.price-card .btn { inline-size: 100%; }
.price-note {
  margin: 12px 0 0;
  font-size: 0.84rem;
  color: var(--ink-faint);
  text-align: center;
}

/* ---- your own fields ---- */

.fields-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.fields-pane { display: grid; gap: 10px; }
.fields-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 0.93rem;
  color: var(--ink-faint);
  transition: color .3s ease, border-color .3s ease;
}
/* Steps light in sequence when the section is scrolled into view. */
.fields-demo.on .fields-step { color: var(--ink); border-color: rgba(183, 255, 29, .3); }
.fields-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 22px;
  block-size: 22px;
  border-radius: 50%;
  background: rgba(183, 255, 29, .14);
  color: var(--lime);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.fields-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.fields-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-block-end: 1px solid var(--line-soft);
  font-size: 0.9rem;
}
.fields-row:last-child { border-block-end: 0; }
.fields-row label { color: var(--ink-faint); }
.fields-value { color: var(--ink); font-variant-numeric: tabular-nums; }
.fields-new {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .45s ease, transform .45s ease;
  color: var(--lime);
}
.fields-demo.on .fields-new { opacity: 1; transform: none; }

/* ---- languages and currencies ---- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.chip-row li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.langs-note { margin: 0; color: var(--ink-faint); font-size: 0.9rem; }

/* ---- FAQ ---- */

.faq { display: grid; gap: 10px; max-inline-size: 76ch; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "＋";
  color: var(--lime);
  font-weight: 700;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "－"; }
.faq-body { padding: 0 18px 18px; color: var(--ink-soft); font-size: 0.94rem; }
.faq-body p { margin: 0; }

/* ---- closing ---- */

.closing {
  text-align: center;
  background:
    radial-gradient(50% 80% at 50% 100%, rgba(183, 255, 29, .1), transparent 70%),
    var(--bg-soft);
  border-block-start: 1px solid var(--line-soft);
}
.closing .cta { margin-block: 26px 16px; }
.closing-wa { margin: 0; font-size: 0.92rem; }
.closing-wa a { color: var(--lime); text-decoration: none; border-block-end: 1px solid rgba(183, 255, 29, .35); }
.closing-wa a:hover { border-block-end-color: var(--lime); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  padding-block: 26px;
  border-block-start: 1px solid var(--line-soft);
  font-size: 0.87rem;
  color: var(--ink-faint);
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer a { text-decoration: none; color: var(--ink-soft); }
.site-footer a:hover { color: var(--lime); }
.site-footer .spacer { flex: 1; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .site-nav { display: none; }
  .rate-wrap { grid-template-columns: 1fr; gap: 24px; }
  .pricing-wrap { grid-template-columns: 1fr; gap: 24px; }
  .fields-demo { grid-template-columns: 1fr; }
  /* The demo's own nav is a picture of the app; at this width it costs more than it explains. */
  .demo-nav { display: none; }
}

@media (max-width: 640px) {
  .hero { padding-block: 40px 12px; }
  section:not(.legal-body):not(.legal-section) { padding-block: 38px; }
  .demo { padding-block: 18px 34px; }

  .demo-controls { flex-direction: column; align-items: stretch; }
  .shape-switch { justify-content: space-between; }
  .shape-switch-label { display: none; }
  .shape-btn { flex: 1; padding-inline: 8px; text-align: center; }
  .demo-actions { justify-content: stretch; }
  .demo-actions .btn { flex: 1; }

  .demo-main { padding: 14px; }
  .demo-kpis { gap: 8px; }
  .demo-kpi { padding: 9px 10px; }
  .demo-kpi > span { font-size: 0.6rem; }
  .demo-head span { display: none; }
  .demo-chart-wrap, .demo-chart { block-size: 118px; }

  .flow-step::after { display: none; }
  .cta { flex-direction: column; }
  .cta .btn { inline-size: 100%; }
}

/*
 * Reduced motion: every transition and animation stops, and `hero-demo.js` draws its finished state instead
 * of animating towards it. The page keeps all of its information; it just stops moving.
 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .demo-row { opacity: 1; transform: none; }
  .fields-new { opacity: 1; transform: none; }
}
