/* Homepage and developers page. Scoped so pricing keeps its own look. */

.home {
  --navy: #102033;
  --navy-soft: #1c3348;
  --ink: #102033;
  --muted: #4d5b6a;
  --paper: #f6f3ee;
  --line: #e4ddd3;
  --accent: #9a3412;
  --accent-hot: #c2410c;
  --wash: #fff4ec;
  background: #fff;
  color: var(--ink);
}

.home .nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.home .nav__cta {
  align-items: center;
}

.home .nav .demo {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
  white-space: nowrap;
}

.home .nav__links a.nav__main[aria-current="page"] {
  color: var(--accent);
}

.home .nav__links a.nav__main[aria-current="page"]::after {
  background: var(--accent);
}

.home .skip-link:focus {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 50;
  background: #fff;
  padding: 8px 12px;
}

.home :focus-visible {
  outline: 3px solid var(--accent-hot);
  outline-offset: 3px;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.home h1,
.home h2,
.home h3,
.home p {
  text-align: left;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-saas {
  padding: 72px 0 40px;
  background:
    radial-gradient(700px 320px at 90% -10%, rgba(194, 65, 12, 0.12), transparent 60%),
    linear-gradient(180deg, var(--paper), #fff 78%);
}

.hero-saas__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-saas h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--navy);
}

.hero-saas .lede {
  margin: 0 0 28px;
  max-width: 36rem;
  font-size: 20px;
  line-height: 1.45;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.demo,
.demo--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
}

.demo {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(154, 52, 18, 0.22);
}

.demo:hover {
  background: #7c2d12;
  color: #fff;
}

.demo--ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.demo--ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.listing {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(16, 32, 51, 0.12);
  overflow: hidden;
}

.listing__bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.listing__bar span:last-child {
  font-weight: 500;
  opacity: 0.82;
}

.listing__stage {
  position: relative;
  aspect-ratio: 640 / 280;
  background:
    linear-gradient(180deg, rgba(16, 32, 51, 0.05), rgba(16, 32, 51, 0.28)),
    linear-gradient(145deg, #f3d7c4 0%, #8ea4b8 42%, #1d3b52 100%);
}

.listing__house {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.listing__cards {
  list-style: none;
  margin: 0;
  padding: 14px;
  display: grid;
  gap: 8px;
  background: #fff;
}

.listing__cards li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--wash);
  animation: card-in 0.65s ease both;
}

.listing__cards li:nth-child(2) { animation-delay: 0.08s; }
.listing__cards li:nth-child(3) { animation-delay: 0.16s; }
.listing__cards li:nth-child(4) { animation-delay: 0.24s; }
.listing__cards li:nth-child(5) { animation-delay: 0.32s; }

.listing__cards strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.listing__cards span {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.35;
}

.listing__meta {
  padding: 16px 16px 0;
}

.listing__addr {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.listing__place {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.listing figcaption {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.sources {
  padding: 18px 0 8px;
}

.sources p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.sources strong {
  color: var(--navy);
}

.band {
  padding: 88px 0;
}

.band--paper {
  background: var(--paper);
}

.band h2 {
  margin: 0 0 28px;
  max-width: 18em;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.band .sub {
  margin: -12px 0 28px;
  max-width: 40rem;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.benefit-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.benefit-card svg {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  color: var(--accent-hot);
}

.benefit-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 22px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.steps b {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.steps strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ask-line {
  margin: 28px 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 16px;
}

.ask-line strong {
  color: var(--navy);
}

.home .data-moat {
  align-items: center;
}

.home .data-moat__copy h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-align: left;
}

.home .data-moat__copy > p {
  margin: 0 0 18px;
  max-width: 36rem;
  color: var(--muted);
  font-size: 18px;
  text-align: left;
}

.home .data-tag {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}

.home .data-stream {
  height: 440px;
}

.home .data-item {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
  box-shadow: none;
}

.home .data-item__icon {
  background: var(--wash);
  color: var(--accent);
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.price-list li {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 12px;
  align-items: baseline;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}

.price-list li:first-child {
  border-top: 0;
}

.price-list li.is-us {
  background: var(--wash);
}

.price-list strong {
  font-size: 18px;
}

.price-list em {
  font-style: normal;
  color: var(--muted);
  font-size: 14px;
}

.more-link {
  margin: 16px 0 0;
  font-size: 15px;
}

.more-link a {
  color: var(--accent);
  font-weight: 700;
}

.faq-list {
  max-width: 720px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 18px 0;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.faq-list details div {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.close-band {
  padding: 72px 0 88px;
  background: var(--navy);
}

.close-band h2 {
  margin: 0 0 18px;
  max-width: 16ch;
  color: #fff;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.home .footer {
  background: #fff;
  border-top: 1px solid var(--line);
}

.dev-hero {
  padding: 64px 0 20px;
  background: var(--paper);
}

.dev-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.dev-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.dev-hero .cta-row {
  margin-top: 22px;
}

.dev-block {
  padding: 36px 0;
}

.dev-block h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.dev-block p,
.dev-block li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.dev-block code,
.home pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.home code {
  overflow-wrap: anywhere;
}

.home pre {
  margin: 12px 0 0;
  padding: 16px;
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  background: var(--navy);
  color: #f6f3ee;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.home pre code {
  overflow-wrap: normal;
  white-space: pre;
}

.vendor {
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.vendor h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.vendor p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero-saas {
    padding-top: 40px;
  }
  .hero-saas__grid,
  .benefits,
  .steps,
  .home .data-moat {
    grid-template-columns: 1fr;
  }
  .band {
    padding: 64px 0;
  }
  .price-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .wrap {
    width: min(1120px, calc(100% - 32px));
  }
}

@media (max-width: 1200px) {
  .home .nav__mobile .nav__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .home .nav__mobile .demo {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .listing__cards li {
    animation: none;
  }
}
