/* Belfry static marketing — tokens mirrored from frontend/app/globals.css */
:root {
  --background: 0 0% 100%;
  --foreground: 224 71% 4%;
  --card: 0 0% 100%;
  --card-foreground: 224 71% 4%;
  --muted: 220 14% 96%;
  --muted-foreground: 220 9% 46%;
  --border: 220 13% 91%;
  --primary: 220 90% 56%;
  --primary-foreground: 0 0% 100%;
  --intent-secondary: 263 70% 50%;
  --intent-info: 199 89% 48%;
  --violet: 263 70% 50%;
  --radius: 0.625rem;
  --font: "Outfit", system-ui, -apple-system, sans-serif;
}

.dark {
  --background: 222 47% 5%;
  --foreground: 210 40% 98%;
  --card: 222 47% 7%;
  --card-foreground: 210 40% 98%;
  --muted: 222 47% 11%;
  --muted-foreground: 215 20% 65%;
  --border: 222 47% 15%;
  --primary: 220 90% 56%;
  --primary-foreground: 0 0% 100%;
  --intent-secondary: 263 70% 60%;
  --intent-info: 192 91% 49%;
  --violet: 263 70% 60%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s, color 0.2s;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.container-narrow {
  width: min(45rem, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header — matches MarketingHeader */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(20px);
  border-bottom-color: hsl(var(--border) / 0.5);
  box-shadow: 0 8px 24px hsl(var(--background) / 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  width: min(80rem, calc(100% - 2rem));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--violet)));
  color: #fff;
}

.nav-links {
  display: none;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--muted) / 0.5);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  border-radius: 0.5rem;
}

.menu-btn:hover {
  color: hsl(var(--foreground));
}

.mobile-nav {
  display: none;
  padding: 1rem 0 1.25rem;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.mobile-nav a:hover {
  background: hsl(var(--muted));
}

.mobile-nav .btn-primary {
  margin-top: 0.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .nav-links,
  .nav-actions {
    display: flex;
  }
  .menu-btn {
    display: none;
  }
  .mobile-nav,
  .mobile-nav.open {
    display: none !important;
  }
}

/* Theme toggle */
.theme-toggle {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.theme-toggle:hover {
  background: hsl(var(--muted) / 0.5);
  color: hsl(var(--foreground));
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 1rem;
  height: 1rem;
  position: absolute;
  transition: transform 0.2s, opacity 0.2s;
}

.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

.dark .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

.dark .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border: 0;
  cursor: pointer;
  transition: opacity 0.15s, filter 0.15s;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--violet)));
  box-shadow: 0 10px 25px -8px hsl(var(--primary) / 0.35);
}

.btn-primary.lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 16px 40px -12px hsl(var(--primary) / 0.35);
}

.btn-ghost {
  background: transparent;
  color: hsl(var(--muted-foreground));
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 82vh;
  display: flex;
  align-items: center;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, hsl(var(--primary) / 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 0%, hsl(var(--intent-secondary) / 0.1), transparent),
    radial-gradient(ellipse 50% 30% at 20% 10%, hsl(var(--intent-info) / 0.08), transparent);
}

.dark .hero-gradient {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, hsl(var(--primary) / 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 80% 0%, hsl(var(--intent-secondary) / 0.15), transparent),
    radial-gradient(ellipse 50% 30% at 20% 10%, hsl(var(--intent-info) / 0.1), transparent);
}

.grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(to right, hsl(var(--border) / 0.3) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(var(--border) / 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.dark .grid-pattern {
  background-image:
    linear-gradient(to right, hsl(var(--border) / 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(var(--border) / 0.15) 1px, transparent 1px);
}

.hero-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(120px);
  pointer-events: none;
}

.hero-blob.a {
  top: 33%;
  left: 33%;
  width: 500px;
  height: 500px;
  background: hsl(var(--primary) / 0.08);
}

.hero-blob.b {
  bottom: 25%;
  right: 25%;
  width: 400px;
  height: 400px;
  background: hsl(var(--violet) / 0.08);
  filter: blur(100px);
}

.hero-content {
  position: relative;
  width: min(64rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 6rem 0 5rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--primary) / 0.2);
  background: hsl(var(--primary) / 0.05);
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.eyebrow svg {
  color: hsl(var(--primary));
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 2rem;
}

.text-gradient {
  display: block;
  margin-top: 0.5rem;
  background-image: linear-gradient(
    135deg,
    hsl(var(--primary)) 0%,
    hsl(var(--intent-secondary)) 50%,
    hsl(var(--intent-info)) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* Providers */
.providers {
  padding: 2rem 0;
  border-top: 1px solid hsl(var(--border) / 0.5);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--muted) / 0.2);
}

.providers .label {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.provider-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
}

.provider-row span {
  color: hsl(var(--muted-foreground) / 0.5);
  font-weight: 600;
  font-size: 0.875rem;
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.section.muted {
  background: linear-gradient(
    to bottom,
    hsl(var(--muted) / 0.3),
    hsl(var(--muted) / 0.5),
    hsl(var(--muted) / 0.3)
  );
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.section-head p {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--card) / 0.4);
  padding: 1.75rem;
  transition: background 0.3s, border-color 0.3s;
}

.card:hover {
  background: hsl(var(--card) / 0.7);
  border-color: hsl(var(--border));
}

.card.featured {
  border-color: hsl(var(--primary) / 0.3);
  background: hsl(var(--card) / 0.7);
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.1);
}

.card .badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: hsl(var(--primary));
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.card > p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0 0 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tags span {
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: hsl(var(--muted) / 0.6);
  color: hsl(var(--muted-foreground));
}

.compare-card h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: hsl(var(--muted-foreground));
  margin: 0 0 1rem;
}

.compare-card.featured h4 {
  color: hsl(var(--primary));
}

.compare-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.compare-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.compare-card.featured li {
  color: hsl(var(--foreground) / 0.9);
}

.check {
  color: hsl(var(--muted-foreground) / 0.6);
  flex-shrink: 0;
}

.compare-card.featured .check {
  color: hsl(var(--primary));
}

/* Incidents */
.incident {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.incident:last-of-type {
  border-bottom: 0;
}

.incident .year {
  width: 3rem;
  text-align: right;
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
}

.incident .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #f59e0b;
  flex-shrink: 0;
}

.incident .body {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
}

.incident .body strong {
  font-weight: 600;
}

.incident .body span {
  color: hsl(var(--muted-foreground));
}

.incident .tag {
  display: none;
  flex-shrink: 0;
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--primary) / 0.2);
  background: hsl(var(--primary) / 0.05);
  color: hsl(var(--primary));
  font-weight: 500;
}

@media (min-width: 640px) {
  .incident .tag {
    display: inline-flex;
  }
}

.reg-card {
  margin-top: 4rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--card) / 0.6);
  backdrop-filter: blur(8px);
  padding: 2rem 2.5rem;
}

.reg-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.reg-card > p {
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
  text-align: center;
}

.stats strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.stats span {
  display: block;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.125rem;
}

/* CTA */
.section.cta {
  overflow: hidden;
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    hsl(var(--primary) / 0.08),
    hsl(var(--violet) / 0.08),
    transparent
  );
  pointer-events: none;
}

.section.cta h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
}

.section.cta p {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

/* Diagram (optional extra section) */
.diagram {
  margin: 0;
}

.diagram img {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border) / 0.5);
}

.diagram figcaption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Footer */
.site-footer {
  border-top: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--card) / 0.3);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

.footer-brand p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  max-width: 18rem;
  line-height: 1.6;
  margin: 1rem 0 0;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.625rem;
}

.footer-col a:hover {
  color: hsl(var(--foreground));
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid hsl(var(--border) / 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Pricing / contact extras */
.price-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  border-radius: 1rem;
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--card) / 0.6);
  padding: 1.75rem;
}

.price-card.popular {
  border-color: hsl(var(--primary) / 0.35);
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.12);
}

.price-card .plan {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.price-card .amount {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.price-card .desc {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin: 0 0 1.25rem;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.625rem;
}

.price-card li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.price-card .check {
  color: hsl(var(--primary));
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.suggestions button {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  border-radius: 9999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
}

.suggestions button:hover {
  border-color: hsl(var(--primary) / 0.4);
  color: hsl(var(--foreground));
}

.contact-box {
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--card) / 0.6);
  border-radius: 1rem;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border-radius: 0.5rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid hsl(var(--primary) / 0.35);
  border-color: hsl(var(--primary) / 0.5);
}

.note {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.note a {
  color: hsl(var(--primary));
}
