/**
 * Homepage sections. Ported from the Dart landing widgets; every colour,
 * radius, and shadow comes from tokens.css.
 *
 * Flutter section padding was `vertical: isMobile ? 80 : 120` almost
 * everywhere, so that becomes one --sec-pad variable.
 */

:root {
  --sec-pad: 80px;
}
@media (min-width: 768px) {
  :root {
    --sec-pad: 120px;
  }
}

.sec {
  padding-block: var(--sec-pad);
  background: var(--surface-base);
  /* The reveal--left/right entrance parks elements 60px outside their box,
     which would otherwise add horizontal page scroll on narrow viewports.
     `clip` (not `hidden`) contains it without creating a scroll container. */
  overflow-x: clip;
}

.wrap--wide {
  max-width: 1280px;
}
.wrap--narrow {
  max-width: 760px;
}
.wrap--prose {
  max-width: 780px;
}

.sec__title {
  margin-top: 16px;
}
.sec__title--center {
  text-align: center;
}
.sec__title--sm {
  font-size: clamp(28px, 3vw, 36px);
}
.sec__head {
  text-align: center;
}
.sec__head .t-label {
  display: block;
  text-align: center;
}
.sec__sub {
  max-width: 640px;
  margin: 16px auto 0;
  text-align: center;
}

/* Small gold rule used before eyebrow labels (Flutter: 2x14 Container). */
.rule {
  display: inline-block;
  width: 2px;
  height: 14px;
  margin-right: 12px;
  vertical-align: -2px;
  background: var(--gold);
}

.rule-h {
  height: 1px;
  margin-block: 48px 28px;
  background: var(--border-subtle);
  border: 0;
}

/* ── Scroll reveal (port of scroll_fade_in.dart) ─────────────────────────────
   Flutter drove an AnimationController from a VisibilityDetector. Here an
   IntersectionObserver adds .is-visible and CSS does the rest.

   Content is only ever hidden when scripting is actually available to reveal it
   again — `@media (scripting: enabled)` rather than a JS class flag, so there
   is no blocking head script and no flash of visible-then-hidden content.
   site.js also force-reveals everything after 3s as a backstop, so nothing can
   be left invisible to a crawler if the observer never fires. */
.reveal {
  transition:
    opacity 700ms var(--ease-out-quart),
    transform 700ms var(--ease-out-quart);
  transition-delay: var(--d, 0ms);
}

@media (scripting: enabled) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal--left {
    transform: translateX(-60px);
  }
  .reveal--right {
    transform: translateX(60px);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ── Buttons (extends base.css) ──────────────────────────────────────────── */
.btn--lg {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
}

.btn--light {
  background: var(--chalk);
  color: var(--obsidian);
}
.btn--light:hover {
  background: var(--chalk-deep);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--text-inverse-primary);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 100px;
  background: var(--surface-base);
  overflow-x: clip;
}
@media (min-width: 768px) {
  .hero {
    padding-block: 120px;
  }
}

.hero__inner {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
}

.hero__headline {
  max-width: 820px;
  margin-top: 32px;
}

/* Word-by-word entrance: Flutter staggered 60ms per word with easeOutQuart
   and a 50px rise. The delay is set inline per span. */
/* inline-block so each word can carry its own transform, but the gap is the
   real space character in the markup — no margin, or words double-space. */
.hero__word {
  display: inline-block;
}
@media (scripting: enabled) {
  .hero__word {
    opacity: 0;
    transform: translateY(50px);
    animation: word-in 900ms var(--ease-out-quart) forwards;
  }
}

@keyframes word-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__subhead {
  max-width: 560px;
  margin-top: 24px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.hero__link {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}
.hero__link:hover {
  color: var(--text-primary);
}

/* Subhead + CTAs fade in after the words (Flutter: 1700ms / +200ms interval). */
@media (scripting: enabled) {
  .hero__subhead,
  .hero__ctas,
  .frame {
    opacity: 0;
    animation: rise-in 800ms var(--ease-out) forwards;
  }
  .hero__subhead {
    animation-delay: 900ms;
  }
  .hero__ctas {
    animation-delay: 1050ms;
  }
  .frame {
    animation-delay: 1300ms;
  }
}

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

/* ── Hero product frame ──────────────────────────────────────────────────── */
.frame {
  width: 100%;
  max-width: 1000px;
  margin: 56px 0 0;
  text-align: left;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glass-float);
  overflow: hidden;
}

.frame__bar {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.frame__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-subtle);
}

.frame__body {
  padding: 24px;
}
@media (min-width: 768px) {
  .frame__body {
    padding: 32px;
  }
}

.frame__kpis {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .frame__kpis {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kpi {
  display: grid;
  grid-template-areas: 'icon label' 'icon value';
  grid-template-columns: auto 1fr;
  gap: 0 12px;
  align-items: center;
  padding: 18px 20px;
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}
.kpi__icon {
  grid-area: icon;
  color: var(--gold);
  display: flex;
}
.kpi__label {
  grid-area: label;
  font-size: 12px;
  color: var(--text-secondary);
}
.kpi__value {
  grid-area: value;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}

.frame__cols {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .frame__cols {
    grid-template-columns: 1.7fr 1fr;
  }
}

.frame__activity,
.frame__occupancy {
  padding: 20px 24px;
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
}

.frame__activity ul {
  margin-top: 14px;
}

.act {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding-block: 11px;
  font-size: 14px;
}
.act + .act {
  border-top: 1px solid var(--border-subtle);
}
.act__icon {
  color: var(--gold);
  display: flex;
}
.act__text {
  color: var(--text-primary);
  min-width: 0;
}
.act__detail {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.act__time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
}

.occ__value {
  margin-top: 14px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.48px;
  color: var(--text-primary);
}
.occ__caption {
  font-size: 12px;
  color: var(--text-secondary);
}
.occ__bar {
  height: 6px;
  margin-top: 14px;
  border-radius: 3px;
  background: var(--border-subtle);
  overflow: hidden;
}
.occ__bar span {
  display: block;
  height: 100%;
  background: var(--gold);
}

/* ── Pain grid ───────────────────────────────────────────────────────────── */
.pain__grid {
  display: grid;
  gap: 24px;
  margin-top: 64px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .pain__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .pain__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pain-card {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
}
.pain-card__num {
  color: var(--text-accent);
}
.pain-card__title {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.pain-card .t-body {
  margin-top: 8px;
}

.tag {
  align-self: flex-end;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--gold-subtle);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-accent);
}

/* ── Mirrors ─────────────────────────────────────────────────────────────── */
.mirrors {
  display: grid;
  gap: 16px;
  max-width: 1200px;
  margin: 64px auto 0;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .mirrors {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    align-items: start;
  }
}

.mirror {
  padding: 40px 28px;
  border-radius: var(--radius-card);
}
@media (min-width: 768px) {
  .mirror {
    padding: 56px 48px;
  }
}

.mirror--manager {
  background: var(--surface-inverse);
}
.mirror--tenant {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
}

.metrics {
  margin-top: 24px;
}
.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.metric + .metric {
  margin-top: 12px;
}
.metric__label {
  font-size: 14px;
  color: var(--text-inverse-muted);
}
.metric__value {
  font-size: 16px;
  font-weight: 600;
}
.metric__value--positive {
  color: var(--emerald);
}
.metric__value--default {
  color: var(--text-inverse-primary);
}
.metric__value--accent {
  color: var(--gold);
}
.metric__value--muted {
  color: var(--text-inverse-muted);
}

.tenant__pay {
  margin-top: 24px;
  padding-block: 20px;
  border-radius: var(--radius-pill);
  background: var(--surface-inverse);
  color: var(--text-inverse-primary);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.tenant__card {
  margin-top: 16px;
  padding: 20px 24px;
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
}
.tenant__card--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}
.tenant__req {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.tenant__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}
.tenant__lease-label {
  font-size: 14px;
  color: var(--text-secondary);
}
.tenant__lease-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Bento ───────────────────────────────────────────────────────────────── */
.bento {
  display: grid;
  gap: 16px;
  margin-top: 64px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .bento {
    /* Flutter used Expanded flex 6+6, 8+4, 4+4+4 — a 12-column grid. */
    grid-template-columns: repeat(12, 1fr);
  }
  .bento-card {
    grid-column: span var(--span, 12);
  }
  .bento-card--dark {
    grid-column: span 12;
  }
}

.bento-card {
  padding: 32px 28px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glass-float);
  transition:
    transform var(--dur-slow) var(--ease-out-quart),
    box-shadow var(--dur-slow) var(--ease-out-quart);
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 64px rgba(10, 10, 11, 0.12);
}

.bento-card__icon {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
}
.bento-card__name {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.48px;
  line-height: 1.15;
  color: var(--text-primary);
}
.bento-card .t-body {
  margin-top: 8px;
}

.bento-card--dark {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--surface-inverse);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  color: var(--text-inverse-primary);
}
@media (min-width: 768px) {
  .bento-card--dark {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }
  .bento-card__dark-body {
    flex: 1;
  }
}
.bento-card--dark .bento-card__name {
  color: var(--text-inverse-primary);
}
.bento-card--dark .t-body {
  color: var(--text-inverse-muted);
}

.sparkline {
  color: var(--gold);
  flex: none;
}

/* ── Audiences ───────────────────────────────────────────────────────────── */
.audiences {
  display: grid;
  gap: 16px;
  margin-top: 56px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .audiences {
    grid-template-columns: repeat(3, 1fr);
  }
}

.aud-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glass-float);
  transition: transform var(--dur-slow) var(--ease-out-quart);
}
.aud-card:hover {
  transform: translateY(-4px);
}
.aud-card__icon {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
}
.aud-card__promise {
  margin-top: 10px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.42px;
  line-height: 1.2;
  color: var(--text-primary);
}

.ticks {
  margin-top: 16px;
}
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--t-body);
  line-height: 1.75;
  color: var(--text-secondary);
}
.ticks li + li {
  margin-top: 10px;
}
.tick {
  flex: none;
  margin-top: 5px;
  color: var(--gold);
  display: flex;
}

.aud-card__link {
  margin-top: auto;
  padding-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}
/* Whole card clickable, matching the Flutter GestureDetector. */
.aud-card__link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
}
.aud-card:hover .aud-card__link {
  color: var(--text-primary);
}

.audiences__footnote {
  margin-top: 32px;
  text-align: center;
}

/* ── Pricing teaser ──────────────────────────────────────────────────────── */
.sec--teaser {
  background: var(--surface-inverse);
  text-align: center;
}
.sec--teaser .t-label {
  display: block;
}
.teaser__headline {
  margin-top: 20px;
  font-size: clamp(32px, 4.5vw, 46px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-inverse-primary);
}
.teaser__sub {
  margin-top: 20px;
  color: var(--text-inverse-muted);
}
.sec--teaser .btn {
  margin-top: 36px;
}

/* ── Trust ───────────────────────────────────────────────────────────────── */
.sec--trust {
  padding-block: 56px;
}
@media (min-width: 768px) {
  .sec--trust {
    padding-block: 80px;
  }
}

.signals {
  display: grid;
  gap: 28px 20px;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}
@media (min-width: 768px) {
  .signals {
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    text-align: left;
  }
}
.signal__icon {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold);
}
.signal__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.signal__sub {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.migrate {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: center;
}
.migrate__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.migrate__logos li {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-secondary);
}

/* ── Founder ─────────────────────────────────────────────────────────────── */
.sec--founder {
  background: var(--surface-inverse);
}
.t-label--muted {
  color: var(--text-inverse-muted);
}
.founder__title {
  margin-top: 24px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-inverse-primary);
}
.founder__para {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-inverse-muted);
}
.founder__link {
  display: inline-block;
  margin-top: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gold);
}
.founder__link:hover {
  text-decoration: underline;
}

/* ── Migration ───────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  gap: 16px;
  margin-top: 56px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step {
  padding: 32px 28px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glass-float);
}
.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-accent-subtle);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.step__title {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}
.step .t-body {
  margin-top: 8px;
}

.migration__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 48px;
}
.migration__footnote {
  margin-top: 20px;
  font-size: 13px;
  text-align: center;
  color: var(--text-tertiary);
}

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.tiers {
  display: grid;
  gap: 20px;
  margin-top: 64px;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 900px) {
  .tiers {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glass-float);
}
.tier--dark {
  background: var(--surface-inverse);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text-inverse-primary);
}
@media (min-width: 900px) {
  /* Flutter scaled the featured card 1.04. */
  .tier--featured {
    transform: scale(1.04);
    z-index: 1;
  }
}

.tier__badge {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--obsidian);
}
.tier__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}
.tier--dark .tier__name {
  color: var(--text-inverse-muted);
}

.tier__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
}
.tier__amount {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
}
.tier--dark .tier__amount {
  color: var(--text-inverse-primary);
}
.tier__suffix {
  font-size: 16px;
  color: var(--text-secondary);
}
.tier--dark .tier__suffix {
  color: var(--text-inverse-muted);
}
.tier__subline {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}
.tier--dark .tier__subline {
  color: var(--text-inverse-muted);
}
.tier .ticks {
  margin-top: 28px;
  /* Grow so the CTA sits flush at the bottom of every card regardless of how
     many features a tier lists (Flutter used IntrinsicHeight + stretch). */
  flex: 1;
}
.tier--dark .ticks li {
  color: var(--text-inverse-muted);
}
.tier__cta {
  margin-top: 24px;
  width: 100%;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: center;
  margin-top: 48px;
}
.pricing__details {
  margin-top: 32px;
  text-align: center;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.sec--faq {
  padding-block: 64px;
}
@media (min-width: 768px) {
  .sec--faq {
    padding-block: 96px;
  }
}

.faq {
  margin-top: 40px;
}
.faq__item {
  margin-bottom: 12px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker {
  display: none;
}
.faq__item[open] .faq__q {
  font-weight: 600;
}
.faq__chevron {
  flex: none;
  color: var(--text-secondary);
  transition: transform var(--dur-base) var(--ease-out);
}
.faq__item[open] .faq__chevron {
  transform: rotate(180deg);
  color: var(--text-primary);
}
.faq__a {
  padding: 0 24px 20px;
}

/* ── Closing CTA ─────────────────────────────────────────────────────────── */
.sec--cta {
  background: var(--surface-inverse);
  text-align: center;
}
.cta__title {
  max-width: 800px;
  margin-inline: auto;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--text-inverse-primary);
}

.cta__cards {
  display: grid;
  gap: 20px;
  max-width: 880px;
  margin: 56px auto 0;
  grid-template-columns: 1fr;
  text-align: left;
}
@media (min-width: 768px) {
  .cta__cards {
    grid-template-columns: 1fr 1fr;
  }
}

.cta-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
}
.cta-card__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.44px;
  color: var(--text-inverse-primary);
}
.cta-card .t-body {
  margin-top: 10px;
  color: var(--text-inverse-muted);
}
.cta-card__btn {
  align-self: flex-start;
  margin-top: 24px;
}

.cta__footnote {
  margin-top: 24px;
  color: var(--text-inverse-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   /pricing and /compare (S4)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Sub-page hero. Nav is fixed and main already has 96px top padding; these
   pages open straight into a section, so give it a little more room. */
.sec--page-hero {
  padding-block: 64px 0;
}
@media (min-width: 768px) {
  .sec--page-hero {
    padding-block: 104px 0;
  }
}

.sec--closing {
  text-align: center;
}
.closing__cta {
  margin-top: 28px;
}

/* ── Per-unit tier table (pricing_tiers_table.dart) ──────────────────────── */
.tier-table {
  width: 100%;
  margin-top: 40px;
  border-collapse: collapse;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.tier-table tr + tr {
  border-top: 1px solid var(--border-subtle);
}
.tier-table__range {
  padding: 20px 28px;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}
.tier-table__price {
  padding: 20px 28px;
  text-align: right;
  white-space: nowrap;
}
.tier-table__amount {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.tier-table__suffix {
  margin-left: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}
.tiers__example {
  margin-top: 24px;
  text-align: center;
}

/* ── Savings calculator (savings_calculator.dart) ────────────────────────── */
.calc {
  margin-top: 40px;
  padding: 32px 28px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glass-float);
}

.calc__label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.calc__units {
  display: block;
  margin-top: 4px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-accent);
}

.calc__slider {
  width: 100%;
  margin-top: 16px;
  /* ≥44px hit area even though the track reads as 6px (DESIGN_SYSTEM §9). */
  height: 44px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.calc__slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: var(--border-subtle);
}
.calc__slider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--border-subtle);
}
.calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
}
.calc__slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
}

.calc__rows {
  margin-top: 24px;
}
.calc-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-block: 12px;
  font-size: 15px;
}
.calc-row + .calc-row {
  border-top: 1px solid var(--border-subtle);
}
.calc-row__name {
  flex: 1;
  color: var(--text-secondary);
}
.calc-row--us .calc-row__name {
  font-weight: 600;
  color: var(--text-primary);
}
.calc-row__value {
  font-weight: 600;
  color: var(--text-primary);
}
.calc-row--us .calc-row__value {
  font-size: 20px;
  color: var(--text-accent);
}
.calc-row__suffix {
  font-size: 13px;
  color: var(--text-secondary);
}

.calc__savings {
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--surface-accent-subtle);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
}

.calc__disclaimer,
.compare__disclaimer {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: var(--text-tertiary);
}

/* ── Comparison table (compare_table.dart) ───────────────────────────────── */
.compare__scroll {
  /* Wide content scrolls inside its own container; the page body must never
     scroll horizontally. */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-card);
}

.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  /* Fixed layout so all four vendor columns stay equal width (Flutter gave
     each an identical Expanded flex: 2). Without it the longest cell —
     "$1.25 → $0.75, drops as you grow" — stretches the Rentium column. */
  table-layout: fixed;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.compare__corner {
  width: 28%;
  border: 0;
}
.compare__head {
  width: 18%;
}

.compare__head {
  padding: 20px 12px;
  text-align: center;
  vertical-align: bottom;
}
.compare__brand {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.compare__plan {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
}

.compare tbody tr {
  border-top: 1px solid var(--border-subtle);
}

.compare__label {
  padding: 18px 24px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.compare__cell {
  padding: 18px 12px;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* Rentium column highlighted, header through last row. */
.compare__head.is-us,
.compare__cell.is-us {
  background: var(--surface-accent-subtle);
}
.compare__cell.is-us {
  font-weight: 600;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   /features, /solutions, /about, /contact (S5)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Alternating tint on odd blocks (Flutter: tinted on i.isOdd). */
.sec.is-tinted {
  background: var(--chalk-deep);
}

.ticks--emerald .tick {
  color: var(--emerald);
}

/* ── /features ───────────────────────────────────────────────────────────── */
.sec--feature {
  padding-block: 56px;
}
@media (min-width: 768px) {
  .sec--feature {
    padding-block: 88px;
  }
}

.fblock {
  display: grid;
  gap: 32px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .fblock {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  /* Flutter swapped the Row children on odd rows; order does the same without
     duplicating markup — and keeps the DOM in reading order for screen
     readers and crawlers regardless of visual side. */
  .fblock.is-flipped .fblock__text {
    order: 2;
  }
}

.fblock__title {
  margin-top: 14px;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
}
.fblock__text .t-body {
  margin-top: 14px;
}
.fblock__text .ticks {
  margin-top: 20px;
}
.fblock__text .ticks li {
  color: var(--text-primary);
  font-size: 15px;
}

.fblock__visual {
  margin: 0;
  padding: 28px;
  background: var(--surface-inverse);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glass-float);
}
.fblock__icon {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--gold);
}

.fmock__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.fmock__row + .fmock__row {
  margin-top: 12px;
}
.fmock__label {
  font-size: 14px;
  color: var(--text-inverse-muted);
}
.fmock__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-inverse-primary);
}

/* ── /solutions ──────────────────────────────────────────────────────────── */
.sec--audience {
  padding-block: 56px;
}
@media (min-width: 768px) {
  .sec--audience {
    padding-block: 80px;
  }
}

.ablock {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .ablock {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
}

.ablock__icon {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--gold);
}
.ablock__scope {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
}
.ablock__title {
  margin-top: 12px;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
}
.ablock__text .t-body {
  margin-top: 14px;
}
.ablock__list .ticks li {
  color: var(--text-primary);
  font-size: 15px;
}
.ablock__cta {
  margin-top: 24px;
}
.ablock__footnote {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Cross-links to the other two audiences. */
.others {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .others {
    grid-template-columns: 1fr 1fr;
  }
}
.other-card {
  display: block;
  height: 100%;
  padding: 24px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  transition: transform var(--dur-slow) var(--ease-out-quart);
}
.other-card:hover {
  transform: translateY(-4px);
}
.other-card__icon {
  display: inline-flex;
  color: var(--gold);
}
.other-card__label {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-accent);
}
.other-card__title {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ── /about ──────────────────────────────────────────────────────────────── */
.sec--story {
  padding-block: 24px 40px;
}
.story__para {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.story__para + .story__para {
  margin-top: 20px;
}

.principles {
  display: grid;
  gap: 20px;
  margin-top: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .principles {
    grid-template-columns: 1fr 1fr;
  }
}
.principle {
  padding: 28px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
}
.principle__glyph {
  font-size: 20px;
  color: var(--gold);
}
.principle__title {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.principle .t-body {
  margin-top: 8px;
}

.sec--quote {
  background: var(--surface-inverse);
}
.quote {
  margin: 0;
}
.quote__line {
  display: block;
  font-size: clamp(22px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--text-inverse-primary);
}
@media (scripting: enabled) {
  .quote__line {
    opacity: 0;
    animation: rise-in 700ms var(--ease-out-quart) forwards;
    animation-delay: var(--d, 0ms);
  }
  /* Only animate once the section is actually reached. */
  .reveal:not(.is-visible) .quote__line {
    animation-play-state: paused;
  }
}
.quote__cite {
  display: block;
  margin-top: 32px;
  font-size: 14px;
  font-style: normal;
  color: var(--text-inverse-muted);
}

/* ── /contact ────────────────────────────────────────────────────────────── */
.sec--contact {
  padding-block: 64px;
}
@media (min-width: 768px) {
  .sec--contact {
    padding-block: 104px;
  }
}

.contact {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact {
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: start;
  }
}

.contact__title {
  margin-top: 16px;
  font-size: clamp(32px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}
.contact__body {
  margin-top: 16px;
  font-size: 17px;
}
.contact__pitch .ticks {
  margin-top: 28px;
}
.contact__pitch .ticks li {
  color: var(--text-primary);
  font-size: 15px;
}
.contact__email {
  margin-top: 28px;
  font-size: var(--t-body);
  font-weight: 500;
  color: var(--text-primary);
}
.contact__email a {
  color: var(--text-accent);
}
.contact__email a:hover {
  text-decoration: underline;
}

.cform,
.cform__success {
  padding: 32px 28px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glass-float);
}
.cform__heading {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.cform__sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

.field {
  margin-top: 20px;
}
.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.field__req {
  margin-left: 3px;
  color: var(--crimson);
}
.field__input {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field__input:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px var(--gold-subtle);
}
.field__input[aria-invalid='true'] {
  border-color: var(--crimson);
}
textarea.field__input {
  resize: vertical;
  min-height: 110px;
}
.field__error {
  margin-top: 6px;
  font-size: 13px;
  color: var(--crimson);
}

.cform__submit {
  width: 100%;
  margin-top: 28px;
}
.cform__status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--crimson-subtle);
  font-size: 14px;
  color: var(--crimson);
}

.cform__success {
  text-align: center;
}
.cform__success:focus {
  outline: none;
}
.cform__tick {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--emerald);
}

/* ═══════════════════════════════════════════════════════════════════════════
   /trial, /privacy, /terms, 404 (S6)
   ═══════════════════════════════════════════════════════════════════════════ */

.wrap--form {
  max-width: 560px;
}

/* ── /trial ──────────────────────────────────────────────────────────────── */
.sec--trial {
  padding-block: 40px 80px;
}
.trial__back {
  margin-bottom: 24px;
}
.trial__eyebrow {
  display: flex;
  align-items: center;
}
.trial__title {
  margin-top: 20px;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-primary);
}
.trial__sub {
  margin-top: 12px;
}
.trial__form {
  margin-top: 40px;
}
.trial__form .field:first-of-type {
  margin-top: 0;
}
.trial__fine {
  margin-top: 16px;
  font-size: 13px;
  text-align: center;
  color: var(--text-secondary);
}

/* Consent gate — the checkbox must be ticked to submit. */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
}
.consent__box {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}
.consent__label {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  cursor: pointer;
}
.consent__label a {
  color: var(--text-primary);
  text-decoration: underline;
}

.trial__success {
  text-align: center;
}
.trial__tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--surface-accent-subtle);
  color: var(--gold);
}
.trial__note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}
.trial__back--after {
  margin-top: 32px;
  margin-bottom: 0;
}

/* ── /privacy and /terms ─────────────────────────────────────────────────── */
.sec--legal {
  padding-block: 40px 80px;
}
@media (min-width: 768px) {
  .sec--legal {
    padding-block: 64px 96px;
  }
}
.legal__title {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-primary);
}
.legal__updated {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-tertiary);
}
.legal__intro {
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.legal__section {
  margin-top: 40px;
}
.legal__heading {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.legal__para {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.legal__foot {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.sec--404 {
  min-height: 70svh;
  display: flex;
  align-items: center;
  text-align: center;
}
.sec--404 .t-label {
  display: block;
}
.notfound__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: center;
  margin-top: 36px;
}
.notfound__link {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}
.notfound__link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}
.sec--404 .closing__cta {
  margin-top: 36px;
}
