/* Home page layout: centered Midnight hero with payment-rail contours, real data-flow architecture, and sections */

.hero-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-rails {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero-rails-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-rails-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 56% 52% at 50% 40%, var(--bg) 0%, transparent 78%);
  opacity: 0.72;
}

.hero {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(68px, 9.5vw, 120px) var(--gutter) clamp(44px, 5.5vw, 68px);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.35rem, 5.2vw, 4.125rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0;
}

.brand-clover {
  color: var(--accent-green);
}

.brand-woo {
  color: var(--accent-violet);
}

.hero-lead {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  margin: 24px auto 0;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.hero-meta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  line-height: 1.35;
  padding: 7px 14px;
  border-radius: 999px;
  margin: 0;
  background: var(--chip-bg);
  border: 1px solid var(--chip-line);
  color: var(--muted);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-fill);
  flex: none;
}

.hero-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Three value tiles under hero */
.tiles {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--tile);
  border: 1px solid var(--tile-line);
  box-shadow: var(--rim);
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}

.tile b {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}

/* Below-the-fold sections */
.band {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px var(--gutter);
  border-top: 1px solid var(--line);
}

.band-header {
  max-width: 60ch;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.band h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0;
}

.band-lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.step-item {
  padding-top: 20px;
  border-top: 1px solid var(--panel-line);
}

.step-num {
  color: var(--green-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-right: 0.35em;
}

.step-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

.step-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Real payment & data-flow architecture */
.flow-diagram {
  margin: 0 0 40px;
  display: grid;
  gap: 14px;
}

.flow-nodes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.flow-node {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  box-shadow: var(--rim);
}

.flow-node strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}

.flow-node span {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

.flow-node.node-clover {
  border-color: color-mix(in oklab, var(--accent-green) 32%, var(--panel-line));
}

.flow-node.node-woo {
  border-color: color-mix(in oklab, var(--accent-violet) 32%, var(--panel-line));
}

.flow-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 96px;
}

.flow-link span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.flow-wire {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--wire-a), var(--wire-b));
}

.broker-lane {
  border-radius: var(--radius-md);
  border: 1px dashed var(--ghost-line);
  background: var(--tile);
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  font-size: 0.875rem;
  color: var(--muted);
}

.broker-lane strong {
  color: var(--fg);
  font-weight: 600;
}

.stored-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--ghost-line);
  color: var(--fg);
  white-space: nowrap;
}

/* Your data — structured ledger rows */
.data-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.data-row {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 16px 40px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.data-row h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.data-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96875rem;
  line-height: 1.65;
  max-width: 62ch;
}

.data-foot {
  margin: 24px 0 0;
  font-size: 0.9375rem;
}

.data-foot a {
  color: var(--green-ink);
  font-weight: 500;
}

/* Features — two-column list */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 48px;
  margin: 0;
}

.feature-item {
  display: grid;
  gap: 6px;
}

.feature-item h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Requirements & Free */
.req-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.req-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.req-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--fg);
}

.req-list svg {
  flex: none;
  margin-top: 4px;
  color: var(--green-ink);
}

.req-list span {
  color: var(--muted);
}

.req-list strong {
  color: var(--fg);
  font-weight: 600;
}

.price-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  box-shadow: var(--rim);
}

.price-figure {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 10px;
}

.price-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Final install call */
.install-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}

.install-copy {
  max-width: 52ch;
}

.install-copy h2 {
  margin: 0 0 10px;
}

.install-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.install-copy .install-note {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */
@media (max-width: 960px) {
  .tiles,
  .steps,
  .feature-grid,
  .req-layout {
    grid-template-columns: 1fr;
  }

  .flow-nodes {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .flow-link {
    flex-direction: row;
    justify-content: center;
    padding: 4px 0;
  }

  .flow-wire {
    width: 28px;
  }

  .data-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .band {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero-actions,
  .install-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (forced-colors: active) {
  .tile,
  .flow-node,
  .broker-lane,
  .price-panel {
    border: 1px solid CanvasText;
  }
}
