/* ===========================================================================
   pages.css — page-specific sections
     1. Hero + pipeline widget          (index)
     2. Steps / how it works            (index)
     3. Logo-free trust strip + stats   (index)
     4. Bento grid + phone mockup       (features)
     5. Pricing plans + FAQ             (pricing)
     6. Demo simulator                  (demo)
     7. Contact                         (contact)
     8. Shared CTA band + testimonial placeholders
   =========================================================================== */

/* ===========================================================================
   1. HERO
   =========================================================================== */

.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(var(--space-md), 6vw, var(--space-xl))
                 clamp(var(--space-lg), 7vw, var(--space-2xl));
  background: var(--wash-hero);
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(var(--space-sm), 4vw, var(--space-lg));
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

@media (min-width: 1000px) {
  /* Even split: enough width for the headline to break in four lines rather
     than five, while the widget still has room for its table and chart. */
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.hero__copy { display: grid; gap: var(--space-xs); align-content: start; }

.hero h1 { max-width: 20ch; }

.hero__lede { max-width: 54ch; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-2xs); align-items: center; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-xs);
  font-size: var(--step--2);
  color: var(--text-subtle);
}

.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }

.hero__meta svg { width: 14px; height: 14px; color: var(--brand); flex-shrink: 0; }

/* --- Bilingual flourish: the product genuinely ships a Khmer UI ----------- */

.lang-flip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--text-faint);
}

.lang-flip b { color: var(--brand-text); font-weight: var(--weight-semi); }

/* ===========================================================================
   PIPELINE WIDGET — the autoplaying "product doing its job" panel
   Five scenes cycle: Build → Deploy → Collect → Analyse → Report.
   =========================================================================== */

.pipeline { position: relative; }

.pipeline__rail {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-block-end: var(--hairline) solid var(--border-soft);
  overflow-x: auto;
  scrollbar-width: none;
}

.pipeline__rail::-webkit-scrollbar { display: none; }

.pipeline__chip {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--weight-semi);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: var(--hairline) solid transparent;
  white-space: nowrap;
  transition: color var(--dur-mid) var(--ease-out),
              background-color var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out);
}

.pipeline__chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}

.pipeline__chip[data-active="true"] {
  color: var(--brand-text);
  background: var(--brand-soft);
  border-color: var(--brand-soft-border);
}

.pipeline__chip[data-active="true"] i { opacity: 1; }

.pipeline__stage {
  position: relative;
  /* Fixed height keeps the surrounding layout from jumping between scenes. */
  height: 366px;
  padding: var(--space-xs);
  overflow: hidden;
}

@media (max-width: 560px) {
  .pipeline__stage { height: 408px; padding: var(--space-2xs); }
}

.scene {
  position: absolute;
  inset: var(--space-xs);
  display: grid;
  gap: 10px;
  align-content: start;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out),
              visibility var(--dur-mid) linear;
}

@media (max-width: 560px) {
  .scene { inset: var(--space-2xs); }
}

.scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* With no JS, show the first scene as a static screenshot-equivalent. */
html:not(.js) .scene:first-of-type { opacity: 1; visibility: visible; transform: none; }

.scene__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xs);
  padding-block-end: 9px;
  border-block-end: var(--hairline) solid var(--border-soft);
}

.scene__head > b {
  font-size: var(--step--1);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
}

.scene__head p { font-size: var(--step--2); color: var(--text-faint); margin: 0; }

/* --- Scene: form fields being assembled --- */

.fieldlist { display: grid; gap: 6px; }

.fieldrow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: var(--hairline) solid var(--border-soft);
  background: var(--surface);
  font-size: var(--step--2);
  color: var(--text-muted);
}

.fieldrow__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fieldrow--pop { animation: field-pop var(--dur-slow) var(--ease-spring) both; }

@keyframes field-pop {
  from { opacity: 0; transform: translateX(-10px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.fieldrow--ghost {
  border-style: dashed;
  background: transparent;
  color: var(--text-faint);
  justify-content: center;
}

/* --- Scene: deploy (QR + link) --- */

.deploy-grid {
  display: grid;
  gap: var(--space-2xs);
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
}

@media (max-width: 460px) {
  .deploy-grid { grid-template-columns: 92px minmax(0, 1fr); }
}

.qr-tile {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: var(--hairline) solid var(--border);
  background: var(--surface);
  padding: 8px;
  box-shadow: var(--elev-1);
}

.qr-tile svg { width: 100%; height: 100%; }

.deploy-lines { display: grid; gap: 7px; }

.deploy-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--step--2);
  color: var(--text-muted);
}

.deploy-line svg { width: 13px; height: 13px; color: var(--ok); flex-shrink: 0; }

.url-chip {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 7px 9px;
  border-radius: var(--radius-xs);
  background: var(--surface-inset);
  border: var(--hairline) solid var(--border-soft);
  color: var(--text-subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Scene: collect (streaming rows) --- */

.mini-table-wrap {
  border-radius: var(--radius-sm);
  border: var(--hairline) solid var(--border-soft);
  overflow: hidden;
}

.mini-table { width: 100%; font-size: 11px; border-collapse: collapse; }

.mini-table th {
  text-align: start;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: var(--weight-semi);
  padding: 7px 9px;
  background: var(--surface-2);
  border-block-end: var(--hairline) solid var(--border-soft);
}

.mini-table td {
  padding: 7px 9px;
  color: var(--text-muted);
  border-block-end: var(--hairline) solid var(--border-soft);
  white-space: nowrap;
}

.mini-table tbody tr:last-child td { border-block-end: none; }

.mini-table .num { font-family: var(--font-mono); color: var(--text-strong); }

.counter-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--text-faint);
}

.counter-line b {
  font-size: var(--step-1);
  color: var(--brand-text);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
}

/* --- Scene: analyse (growing bars) --- */

.chart-mini { display: grid; gap: 9px; }

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 150px;
  padding-block-end: 22px;
  border-block-end: var(--hairline) solid var(--border);
  position: relative;
}

.chart-bars__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  height: 100%;
  position: relative;
}

.chart-bars__bar {
  width: 100%;
  max-width: 34px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--bar-color, var(--brand)) 92%, white 8%),
    var(--bar-color, var(--brand)));
  /* JS sets --h; the transition makes the growth read as animation. */
  height: var(--h, 0%);
  transition: height var(--dur-xslow) var(--ease-out);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.2) inset;
}

.chart-bars__val {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
}

.chart-bars__label {
  position: absolute;
  inset-block-end: -20px;
  font-size: 9px;
  color: var(--text-faint);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.kpi {
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: var(--hairline) solid var(--border-soft);
}

.kpi b {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  line-height: 1.15;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.kpi span { font-size: 9.5px; color: var(--text-faint); letter-spacing: 0.02em; }

/* --- Scene: report --- */

.report-sheet {
  border-radius: var(--radius-sm);
  border: var(--hairline) solid var(--border);
  background: var(--surface);
  padding: var(--space-2xs);
  box-shadow: var(--elev-2);
  display: grid;
  gap: 8px;
}

.report-sheet__brand {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-block-end: 8px;
  border-block-end: 2px solid var(--brand);
}

.report-sheet__brand i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(140deg, var(--verdant-400), var(--signal-600));
  flex-shrink: 0;
}

.report-sheet__brand b { font-size: var(--step--2); letter-spacing: var(--tracking-snug); }

.report-sheet__brand span { margin-inline-start: auto; font-family: var(--font-mono); font-size: 9px; color: var(--text-faint); }

.report-sheet > strong { font-size: var(--step--1); }

.skel-line {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-inset);
}

.skel-line--short { width: 62%; }
.skel-line--mid { width: 84%; }

.report-sheet__figure {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
  padding: 7px;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  border: var(--hairline) solid var(--border-soft);
}

.report-sheet__figure i {
  flex: 1;
  border-radius: 2px;
  background: var(--brand);
  opacity: 0.85;
}

.report-sheet__foot {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ===========================================================================
   2. STEPS — numbered "how it works"
   =========================================================================== */

.steps {
  display: grid;
  gap: var(--space-xs);
  counter-reset: step;
}

@media (min-width: 780px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps--five > :last-child { grid-column: 1 / -1; }
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--space-2xs);
  padding: var(--space-xs);
  border-radius: var(--radius-lg);
  border: var(--hairline) solid var(--border);
  background: var(--surface);
  box-shadow: var(--elev-1);
  transition: border-color var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out);
}

.step:hover {
  border-color: var(--brand-soft-border);
  box-shadow: var(--elev-2);
  transform: translateY(-2px);
}

.step__num {
  counter-increment: step;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: var(--step-2);
  font-weight: var(--weight-bold);
  color: var(--brand-text);
  background: var(--brand-soft);
  border: var(--hairline) solid var(--brand-soft-border);
  font-variant-numeric: tabular-nums;
}

.step__num::before { content: counter(step, decimal-leading-zero); }

.step__body { display: grid; gap: 6px; align-content: start; }

.step__body h3 { font-size: var(--step-1); }

.step__body p {
  font-size: var(--step--1);
  color: var(--text-muted);
  line-height: var(--leading-loose);
}

.step__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-block-start: 3px; }

/* ===========================================================================
   3. STAT BAND
   =========================================================================== */

.stat-band {
  display: grid;
  gap: var(--space-2xs);
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}

.capability-note {
  font-size: var(--step--2);
  color: var(--text-faint);
  text-align: center;
  margin-block-start: var(--space-2xs);
}

/* ===========================================================================
   4. BENTO + PHONE (features page)
   =========================================================================== */

.bento {
  display: grid;
  gap: var(--space-2xs);
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* Each tile declares how many of the 6 columns it spans. */
.bento__tile { grid-column: span 6; }
.bento__tile--2 { grid-column: span 2; }
.bento__tile--3 { grid-column: span 3; }
.bento__tile--4 { grid-column: span 4; }

@media (max-width: 940px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__tile,
  .bento__tile--2,
  .bento__tile--3,
  .bento__tile--4 { grid-column: span 2; }
  .bento__tile--half { grid-column: span 1; }
}

@media (max-width: 600px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento__tile,
  .bento__tile--2,
  .bento__tile--3,
  .bento__tile--4,
  .bento__tile--half { grid-column: span 1; }
}

.bento__tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-xs);
  border-radius: var(--radius-lg);
  border: var(--hairline) solid var(--border);
  background: var(--surface);
  box-shadow: var(--elev-1);
}

.bento__tile h3 { font-size: var(--step-1); }

.bento__tile p {
  font-size: var(--step--1);
  color: var(--text-muted);
  line-height: var(--leading-loose);
}

.bento__tile--feature {
  background:
    radial-gradient(120% 100% at 100% 0%, var(--brand-soft), transparent 62%),
    var(--surface);
}

.bento__spacer { flex: 1; min-height: var(--space-3xs); }

/* Little inline visual used inside bento tiles. */
.bento__viz {
  border-radius: var(--radius-sm);
  border: var(--hairline) solid var(--border-soft);
  background: var(--surface-2);
  padding: var(--space-2xs);
}

.sector-chips { display: flex; flex-wrap: wrap; gap: 5px; }

.sector-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  border: var(--hairline) solid var(--border-soft);
  background: var(--surface);
  font-size: var(--step--2);
  color: var(--text-muted);
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.sector-chip:hover {
  border-color: var(--brand-soft-border);
  color: var(--brand-text);
  transform: translateY(-1px);
}

.sector-chip b {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  padding: 2px 4px;
  border-radius: 4px;
  background: var(--surface-inset);
  color: var(--text-subtle);
}

/* --- Role matrix --- */

.role-grid { display: grid; gap: 6px; }

.role-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2xs);
  align-items: center;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: var(--hairline) solid var(--border-soft);
  font-size: var(--step--2);
}

.role-row b { color: var(--text-strong); font-weight: var(--weight-semi); }
.role-row span { color: var(--text-faint); font-family: var(--font-mono); font-size: 10px; }

/* --- Phone mockup --- */

.device {
  display: grid;
  place-items: center;
  padding-block: var(--space-2xs);
}

.phone {
  position: relative;
  width: min(310px, 84vw);
  aspect-ratio: 310 / 630;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, var(--slate-700), var(--slate-900) 46%, var(--slate-850));
  box-shadow: var(--elev-4),
              inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  flex-shrink: 0;
}

.phone__notch {
  position: absolute;
  inset-block-start: 21px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  /* Narrow enough that the status row's right-hand text clears it. */
  width: 72px;
  height: 21px;
  border-radius: var(--radius-full);
  background: #05080c;
  z-index: 3;
}

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-faint);
  background: var(--surface-2);
}

.phone__appbar {
  padding: 8px 15px 11px;
  background: var(--surface-2);
  border-block-end: var(--hairline) solid var(--border-soft);
}

.phone__appbar b { display: block; font-size: var(--step--1); letter-spacing: var(--tracking-snug); color: var(--text-strong); }
.phone__appbar span { font-size: 9.5px; color: var(--text-faint); font-family: var(--font-mono); }

.phone__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-2xs) 15px var(--space-sm);
  display: grid;
  gap: 11px;
  align-content: start;
}

.phone__progress {
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--surface-inset);
  overflow: hidden;
}

.phone__progress i {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.pf { display: grid; gap: 6px; }

.pf__label { font-size: 10.5px; font-weight: var(--weight-semi); color: var(--text-strong); }
.pf__label i { color: var(--bad); font-style: normal; }

.pf__control {
  border-radius: 9px;
  border: var(--hairline) solid var(--border);
  background: var(--surface-2);
  padding: 9px 11px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pf__control--filled { color: var(--text-strong); border-color: var(--brand-soft-border); background: var(--brand-soft); }

.pf__chips { display: flex; flex-wrap: wrap; gap: 5px; }

.pf__chip {
  padding: 6px 10px;
  border-radius: var(--radius-full);
  border: var(--hairline) solid var(--border);
  background: var(--surface-2);
  font-size: 10.5px;
  color: var(--text-muted);
}

.pf__chip[data-on="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-on-brand);
  font-weight: var(--weight-semi);
}

.pf__likert { display: flex; gap: 4px; }

.pf__likert i {
  flex: 1;
  height: 30px;
  border-radius: 7px;
  border: var(--hairline) solid var(--border);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  color: var(--text-faint);
}

.pf__likert i[data-on="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-on-brand);
  font-weight: var(--weight-bold);
}

.pf__gps {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: var(--hairline) solid color-mix(in srgb, var(--accent) 26%, transparent);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-text);
}

.pf__submit {
  margin-block-start: 3px;
  padding: 11px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--text-on-brand);
  font-size: 11.5px;
  font-weight: var(--weight-bold);
  text-align: center;
  box-shadow: var(--elev-2);
}

/* ===========================================================================
   5. PRICING
   =========================================================================== */

.billing-switch {
  display: grid;
  gap: var(--space-3xs);
  justify-items: center;
}

.billing-switch__note {
  font-size: var(--step--2);
  color: var(--text-faint);
  min-height: 1.4em;
}

.save-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--ok-soft);
  color: var(--ok-text);
  border: var(--hairline) solid color-mix(in srgb, var(--ok) 30%, transparent);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.03em;
  margin-inline-start: 6px;
  vertical-align: 2px;
}

.plans {
  display: grid;
  gap: var(--space-2xs);
  grid-template-columns: repeat(auto-fit, minmax(min(268px, 100%), 1fr));
  align-items: start;
}

@media (min-width: 1080px) {
  .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-sm) var(--space-xs);
  border-radius: var(--radius-lg);
  border: var(--hairline) solid var(--border);
  background: var(--surface);
  box-shadow: var(--elev-1);
  height: 100%;
  transition: box-shadow var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out);
}

.plan:hover { box-shadow: var(--elev-3); transform: translateY(-3px); }

.plan__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  color: var(--text-strong);
}

/* Reserve three lines so the price row lines up across all four cards, which
   is the row people scan horizontally. */
.plan__for { font-size: var(--step--2); color: var(--text-faint); min-height: 4.4em; line-height: 1.45; }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-mono);
  padding-block: var(--space-3xs);
}

.plan__amount {
  font-size: var(--step-5);
  font-weight: var(--weight-bold);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  /* Softens the swap when the billing toggle rewrites the number. */
  transition: opacity var(--dur-fast) var(--ease-out);
}

.plan__amount.is-swapping { opacity: 0.25; }

.plan__period { font-size: var(--step--2); color: var(--text-faint); }

.plan__billed { font-size: var(--step--2); color: var(--text-subtle); min-height: 1.4em; }

.plan__list {
  display: grid;
  gap: 9px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.plan__list li {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  line-height: 1.5;
}

.plan__list svg { width: 15px; height: 15px; margin-block-start: 3px; color: var(--brand); }

.plan__list li[data-off="true"] { color: var(--text-faint); }
.plan__list li[data-off="true"] svg { color: var(--text-faint); opacity: 0.7; }

.plan__cta { margin-block-start: auto; padding-block-start: var(--space-2xs); }

/* --- Featured plan: animated conic gradient border ----------------------- */

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

.plan--featured {
  background: transparent;
  border-color: transparent;
  box-shadow: var(--elev-3);
  z-index: 1;
}

/* Rotating gradient sits just outside the card edge … */
.plan--featured::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--plan-angle),
    var(--brand), var(--accent) 30%, var(--warm) 55%, var(--accent) 78%, var(--brand));
  animation: plan-spin 7s linear infinite;
  z-index: 0;
}

/* … and this covers all but the 1.5px rim, leaving a lit border. */
.plan--featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(130% 90% at 50% 0%, var(--brand-soft), transparent 58%),
    var(--surface);
  z-index: 0;
}

.plan--featured > * { position: relative; z-index: 1; }

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

/* Browsers without @property can't animate the angle; a static sweep still
   reads as a highlighted plan. */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
  .plan--featured::before {
    background: linear-gradient(135deg, var(--brand), var(--accent), var(--warm));
    animation: none;
  }
}

.plan__flag {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: var(--text-on-brand);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--elev-2);
}

/* --- Comparison table --- */

.compare {
  width: 100%;
  min-width: 660px;
  font-size: var(--step--1);
}

.compare th,
.compare td {
  padding: 12px 14px;
  text-align: start;
  border-block-end: var(--hairline) solid var(--border-soft);
}

.compare thead th {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: var(--weight-semi);
  border-block-end: var(--hairline) solid var(--border);
}

.compare tbody th { font-weight: var(--weight-medium); color: var(--text); }
.compare td { color: var(--text-muted); text-align: center; }
.compare td:first-of-type { text-align: center; }
.compare tbody tr:hover { background: var(--surface-2); }
.compare .yes { color: var(--ok); font-weight: var(--weight-bold); }
.compare .no  { color: var(--text-faint); }

/* ===========================================================================
   6. DEMO SIMULATOR
   =========================================================================== */

.sim {
  border-radius: var(--radius-xl);
  border: var(--hairline) solid var(--border);
  background: var(--surface);
  box-shadow: var(--elev-3);
  overflow: hidden;
}

/* --- Progress rail --- */

.sim__rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: var(--space-2xs);
  background: var(--surface-2);
  border-block-end: var(--hairline) solid var(--border);
}

.sim__step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: var(--hairline) solid transparent;
  text-align: start;
  cursor: pointer;
  color: var(--text-faint);
  transition: color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.sim__step:disabled { cursor: not-allowed; opacity: 0.55; }

.sim__step:not(:disabled):hover { background: var(--surface-3); color: var(--text-muted); }

.sim__step[aria-current="step"] {
  background: var(--surface);
  border-color: var(--brand-soft-border);
  color: var(--text-strong);
  box-shadow: var(--elev-1);
}

.sim__step-num {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-inset);
  border: var(--hairline) solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: var(--weight-bold);
  color: var(--text-subtle);
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.sim__step[aria-current="step"] .sim__step-num {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-on-brand);
}

.sim__step[data-done="true"] .sim__step-num {
  background: var(--ok-soft);
  border-color: color-mix(in srgb, var(--ok) 40%, transparent);
  color: var(--ok-text);
}

.sim__step-text { display: grid; gap: 1px; min-width: 0; }
.sim__step-text b { font-size: var(--step--1); font-weight: var(--weight-semi); letter-spacing: var(--tracking-snug); }
.sim__step-text span { font-size: 10px; color: var(--text-faint); font-family: var(--font-mono); letter-spacing: 0.02em; }

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

@media (max-width: 480px) {
  .sim__step { padding: 9px; gap: 7px; }
  .sim__step-text span { display: none; }
}

/* --- Panels --- */

.sim__panels { padding: clamp(var(--space-xs), 3vw, var(--space-sm)); }

.sim__panel { display: none; }
.sim__panel.is-active { display: grid; gap: var(--space-xs); animation: panel-in var(--dur-mid) var(--ease-out) both; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.sim__head { display: grid; gap: 5px; }
.sim__head h3 { font-size: var(--step-2); }
.sim__head p { font-size: var(--step--1); color: var(--text-muted); max-width: 66ch; }

.sim__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xs);
  padding-block-start: var(--space-2xs);
  border-block-start: var(--hairline) solid var(--border-soft);
}

.sim__hint { font-size: var(--step--2); color: var(--text-faint); max-width: 46ch; }

/* --- Step 1: template picker --- */

.tpl-grid {
  display: grid;
  gap: var(--space-2xs);
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.tpl-card {
  position: relative;
  display: grid;
  gap: 7px;
  padding: var(--space-2xs);
  border-radius: var(--radius-md);
  border: var(--hairline) solid var(--border);
  background: var(--surface-2);
  text-align: start;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}

.tpl-card:hover {
  border-color: var(--brand-soft-border);
  box-shadow: var(--elev-2);
  transform: translateY(-2px);
}

.tpl-card[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: var(--elev-2), 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}

.tpl-card__top { display: flex; align-items: center; gap: 8px; }

.tpl-card__icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: var(--surface);
  border: var(--hairline) solid var(--border-soft);
}

.tpl-card__sector {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.tpl-card b { font-size: var(--step--1); color: var(--text-strong); letter-spacing: var(--tracking-snug); }
.tpl-card p { font-size: var(--step--2); color: var(--text-muted); line-height: 1.5; margin: 0; }
.tpl-card__meta { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-faint); }

/* --- Step 2: form + deploy --- */

.sim__two-col {
  display: grid;
  gap: var(--space-xs);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
}

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

.sim-panel-box {
  border-radius: var(--radius-md);
  border: var(--hairline) solid var(--border);
  background: var(--surface-2);
  overflow: hidden;
}

.sim-panel-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xs);
  padding: 11px 14px;
  background: var(--surface-3);
  border-block-end: var(--hairline) solid var(--border-soft);
}

.sim-panel-box__head b { font-size: var(--step--1); letter-spacing: var(--tracking-snug); }
.sim-panel-box__head span { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); }

.sim-panel-box__body { padding: var(--space-2xs); display: grid; gap: 11px; }

.sim-panel-box__body--scroll { max-height: 430px; overflow-y: auto; }

.sim-section-head {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-text);
  padding-block: 7px 5px;
  border-block-end: var(--hairline) solid var(--brand-soft-border);
}

.sim-section-head:not(:first-child) { margin-block-start: 6px; }

.rating-row { display: flex; gap: 5px; }

.rating-row button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: var(--hairline) solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.rating-row button:hover { border-color: var(--brand); color: var(--brand-text); }
.rating-row button:active { transform: scale(0.93); }

.rating-row button[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-on-brand);
  font-weight: var(--weight-bold);
}

.choice-row { display: flex; flex-wrap: wrap; gap: 5px; }

.choice-row button {
  padding: 7px 12px;
  border-radius: var(--radius-full);
  border: var(--hairline) solid var(--border);
  background: var(--surface);
  font-size: var(--step--2);
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.choice-row button:hover { border-color: var(--brand-soft-border); color: var(--brand-text); }

.choice-row button[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-on-brand);
  font-weight: var(--weight-semi);
}

/* Deploy card */

.deploy-card { display: grid; gap: var(--space-2xs); }

.deploy-status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-size: var(--step--2);
  border: var(--hairline) solid var(--border-soft);
  background: var(--surface);
  color: var(--text-muted);
}

.deploy-status[data-state="live"] {
  background: var(--ok-soft);
  border-color: color-mix(in srgb, var(--ok) 35%, transparent);
  color: var(--ok-text);
  font-weight: var(--weight-semi);
}

.deploy-status[data-state="working"] {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent-text);
}

.spinner {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, currentColor 30%, transparent);
  border-block-start-color: currentColor;
  animation: spin 700ms linear infinite;
}

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

.deploy-log {
  display: grid;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-subtle);
}

.deploy-log li {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  opacity: 0.35;
  transition: opacity var(--dur-mid) var(--ease-out), color var(--dur-mid) var(--ease-out);
}

.deploy-log li[data-done="true"] { opacity: 1; color: var(--ok-text); }
.deploy-log li::before { content: "○"; }
.deploy-log li[data-done="true"]::before { content: "●"; }

/* --- Step 3: data + charts --- */

.sim-kpis {
  display: grid;
  gap: var(--space-2xs);
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
}

.charts-grid {
  display: grid;
  gap: var(--space-2xs);
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.chart-card {
  border-radius: var(--radius-md);
  border: var(--hairline) solid var(--border);
  background: var(--surface-2);
  padding: var(--space-2xs);
  display: grid;
  gap: 10px;
  /* Cards in a row stretch to the tallest chart; keep each chart pinned under
     its own heading instead of floating in the middle of the leftover space. */
  align-content: start;
}

.chart-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; }
.chart-card__head b { font-size: var(--step--1); letter-spacing: var(--tracking-snug); }
.chart-card__head span { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-faint); }

.chart-card svg { width: 100%; height: auto; overflow: visible; }

/* Bars/slices are drawn by demo.js; these give them their look. */
.viz-bar { transition: width var(--dur-slow) var(--ease-out); }
.viz-grid-line { stroke: var(--grid-line); stroke-width: 1; }
.viz-axis-text { fill: var(--text-faint); font-size: 9.5px; font-family: var(--font-mono); }
.viz-label-text { fill: var(--text-muted); font-size: 10px; }
.viz-value-text { fill: var(--text-strong); font-size: 10px; font-family: var(--font-mono); font-weight: 600; }

.legend { display: flex; flex-wrap: wrap; gap: 5px 12px; }

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--step--2);
  color: var(--text-muted);
}

.legend__swatch { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }

.table-scroll {
  max-height: 320px;
  overflow: auto;
  border-radius: var(--radius-md);
  border: var(--hairline) solid var(--border);
}

/* --- Step 4: report --- */

.report-out {
  border-radius: var(--radius-md);
  border: var(--hairline) solid var(--border);
  background: var(--surface);
  box-shadow: var(--elev-2);
  overflow: hidden;
}

.report-out__head {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-xs);
  border-block-end: 3px solid var(--brand);
  background: var(--wash-panel);
  flex-wrap: wrap;
}

.report-out__logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--verdant-400), var(--signal-600));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: var(--weight-bold);
  font-size: 13px;
}

.report-out__title { display: grid; gap: 2px; min-width: 0; }
.report-out__title b { font-family: var(--font-display); font-size: var(--step-1); letter-spacing: var(--tracking-snug); }
.report-out__title span { font-size: var(--step--2); color: var(--text-faint); font-family: var(--font-mono); }

.report-out__body { padding: var(--space-xs); display: grid; gap: var(--space-xs); }

.report-block { display: grid; gap: 8px; }

.report-block h4 {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-text);
  padding-block-end: 5px;
  border-block-end: var(--hairline) solid var(--border-soft);
}

.report-block p { font-size: var(--step--1); line-height: var(--leading-loose); color: var(--text-muted); }

.report-block ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 7px; }
.report-block li { font-size: var(--step--1); color: var(--text-muted); line-height: 1.6; }
.report-block li b { color: var(--text-strong); }

.report-meta {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  font-size: var(--step--2);
}

.report-meta div {
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: var(--hairline) solid var(--border-soft);
}

.report-meta b { display: block; color: var(--text-strong); font-family: var(--font-mono); }
.report-meta span { color: var(--text-faint); font-size: 9.5px; letter-spacing: 0.02em; }

/* ===========================================================================
   7. CONTACT
   =========================================================================== */

.contact-grid {
  display: grid;
  gap: clamp(var(--space-sm), 4vw, var(--space-md));
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
}

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

.form-card {
  padding: clamp(var(--space-xs), 3vw, var(--space-sm));
  border-radius: var(--radius-xl);
  border: var(--hairline) solid var(--border);
  background: var(--surface);
  box-shadow: var(--elev-2);
}

.form-rows { display: grid; gap: var(--space-xs); }

.form-rows--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.form-status {
  font-size: var(--step--1);
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  display: none;
}

.form-status[data-show="true"] { display: block; }
.form-status[data-kind="bad"] { background: var(--bad-soft); color: var(--bad-text); border: var(--hairline) solid color-mix(in srgb, var(--bad) 30%, transparent); }
.form-status[data-kind="ok"]  { background: var(--ok-soft);  color: var(--ok-text);  border: var(--hairline) solid color-mix(in srgb, var(--ok) 30%, transparent); }

/* Success state replaces the form entirely. */
.form-success {
  display: none;
  text-align: center;
  padding-block: var(--space-sm);
  animation: panel-in var(--dur-slow) var(--ease-out) both;
}

.form-success[data-show="true"] { display: grid; gap: var(--space-2xs); justify-items: center; }

.form-success__tick {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--ok-soft);
  border: 2px solid var(--ok);
  color: var(--ok-text);
  display: grid;
  place-items: center;
}

.form-success__tick svg { width: 30px; height: 30px; }

.form-success h3 { font-size: var(--step-3); }
.form-success p { font-size: var(--step--1); color: var(--text-muted); max-width: 44ch; }

.contact-side { display: grid; gap: var(--space-2xs); }

.contact-method {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--space-2xs);
  align-items: center;
  padding: var(--space-2xs);
  border-radius: var(--radius-md);
  border: var(--hairline) solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--elev-1);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.contact-method:hover {
  border-color: var(--brand-soft-border);
  box-shadow: var(--elev-2);
  transform: translateY(-2px);
}

.contact-method__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  border: var(--hairline) solid var(--brand-soft-border);
  color: var(--brand-text);
}

.contact-method__icon svg { width: 18px; height: 18px; }

.contact-method__text { display: grid; gap: 1px; min-width: 0; }
.contact-method__text b { font-size: var(--step--1); letter-spacing: var(--tracking-snug); }
.contact-method__text span {
  font-size: var(--step--2);
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===========================================================================
   8. SHARED — CTA band, testimonial placeholders, FAQ heading
   =========================================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-sm), 5vw, var(--space-lg));
  background:
    radial-gradient(90% 130% at 8% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
    radial-gradient(80% 120% at 96% 100%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%),
    var(--surface-2);
  border: var(--hairline) solid var(--border);
  box-shadow: var(--elev-2);
  text-align: center;
}

.cta-band > * { position: relative; }

.cta-band h2 { max-width: 24ch; margin-inline: auto; }

.cta-band p { max-width: 56ch; margin-inline: auto; color: var(--text-muted); font-size: var(--step-0); }

.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-2xs); justify-content: center; }

/* Placeholder for social proof the owner has not collected yet. Rendered as an
   obvious empty slot rather than an invented quote. */
.proof-slot {
  display: grid;
  gap: 10px;
  padding: var(--space-xs);
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--border-strong);
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 9px,
    color-mix(in srgb, var(--border) 35%, transparent) 9px,
    color-mix(in srgb, var(--border) 35%, transparent) 10px
  );
  min-height: 168px;
  align-content: center;
  justify-items: start;
}

.proof-slot p { font-size: var(--step--1); color: var(--text-subtle); max-width: 40ch; }

.proof-slot__avatar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.proof-slot__avatar i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-inset);
  border: 1.5px dashed var(--border-strong);
  flex-shrink: 0;
}

.proof-slot__avatar div { display: grid; gap: 4px; }
.proof-slot__avatar .skel-line { width: 96px; }
.proof-slot__avatar .skel-line:last-child { width: 64px; }

/* Section header block used across pages. */
.section-head {
  display: grid;
  gap: var(--space-2xs);
  max-width: 68ch;
  margin-block-end: var(--space-sm);
}

.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
