@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --brand-navy: #0F172A;
  --brand-cyan: #06B6D4;
  --brand-green: #0FA57A;
  --brand-critical: #D8534A;
  --brand-amber: #B07A22;

  --bg: #F3F6FA;
  --surface: #FFFFFF;
  --surface-2: #EEF2F7;
  --border: #DCE3EC;
  --text: #101827;
  --text-muted: #57677D;
  --shadow: 0 1px 2px rgba(16, 24, 39, 0.04), 0 8px 24px rgba(16, 24, 39, 0.06);

  --on-brand: #fff;
  --brand-navy-hover: #1B2740;
  --accent-ink: #04202A;
  --brand-mark-stroke: #233149;

  --shell-width: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0A0F1A;
    --surface: #111A2B;
    --surface-2: #162135;
    --border: #233149;
    --text: #E7ECF4;
    --text-muted: #8D9BB3;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 28px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme='dark'] {
  --bg: #0A0F1A;
  --surface: #111A2B;
  --surface-2: #162135;
  --border: #233149;
  --text: #E7ECF4;
  --text-muted: #8D9BB3;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 28px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

p { margin: 0 0 1em; color: var(--text-muted); }

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

.mono { font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; }

.shell {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.75em;
}

.accent-text { color: var(--brand-cyan); }

/* Buttons — same component as the app's .btn/.btn-primary/.btn-ghost/.btn-accent */
.btn {
  height: 36px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s ease, filter 0.15s ease;
}
.btn-primary { background: var(--brand-navy); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-navy-hover); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-accent { background: var(--brand-cyan); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.06); }
.btn-lg { height: 48px; padding: 0 26px; font-size: 14.5px; border-radius: 10px; }

/* Cards — same component as the app's .card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 20px;
}

/* Header — mirrors the app shell's header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wordmark {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 19px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark b { font-weight: 800; color: var(--text); }
.wordmark span { font-weight: 300; color: var(--brand-cyan); }

.nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
  margin-left: 32px;
}
.nav a {
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-left: 12px;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
}
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.mobile-nav a {
  padding: 12px 0;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }

/* Hero */
.hero { padding: 96px 0 72px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
}
.hero-lead {
  font-size: 1.05rem;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin: 28px 0 40px;
  flex-wrap: wrap;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  margin: 0;
}
.hero-stats dt {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--brand-navy);
  font-size: 1.05rem;
}
.hero-stats dd {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Hero mock panel — same visual language as the siting screen's canvas + checklist */
.mock-panel { overflow: hidden; }
.mock-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  margin: -20px -20px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.mock-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand-green);
}
.mock-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.mock-map {
  background:
    repeating-linear-gradient(0deg, var(--border) 0, var(--border) 1px, transparent 1px, transparent 18px),
    repeating-linear-gradient(90deg, var(--border) 0, var(--border) 1px, transparent 1px, transparent 18px),
    var(--surface-2);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}
.mock-parcel {
  width: 140px;
  height: 100px;
  border: 2px dashed var(--brand-cyan);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-footprint {
  width: 86px;
  height: 56px;
  background: rgba(15, 165, 122, 0.18);
  border: 2px solid var(--brand-green);
  border-radius: 4px;
  transform: rotate(-4deg);
}
.mock-checklist {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text);
}
.mock-checklist em {
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-left: auto;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mock-checklist li.pass .status-dot { background: var(--brand-green); }
.mock-checklist li.warn .status-dot { background: var(--brand-amber); }
.mock-checklist li.fail .status-dot { background: var(--brand-critical); }
.mock-result { text-align: center; }
.result-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
}
.result-badge.fits-with-conditions {
  background: rgba(176, 122, 34, 0.12);
  color: var(--brand-amber);
  border: 1px solid rgba(176, 122, 34, 0.35);
}

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { display: flex; justify-content: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* Problem grid */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.problem-card h3 { font-size: 1.1rem; }
.problem-card p { margin: 0; font-size: 0.92rem; }
.problem-card-highlight {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}
.problem-card-highlight h3 { color: var(--brand-cyan); }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-number {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  color: var(--brand-cyan);
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: 0.92rem; margin: 0; }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card h3 { font-size: 1.02rem; }
.feature-card p { font-size: 0.88rem; margin: 0; }

/* Pricing */
.pricing-lead { margin-top: 12px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}
.pricing-card { display: flex; flex-direction: column; }
.pricing-card h3 { font-size: 1.15rem; }
.pricing-card-highlight {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}
.pricing-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin: 0 0 8px;
}
.price { display: flex; align-items: baseline; gap: 4px; margin: 4px 0 2px; }
.price-amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}
.price-period { font-size: 0.9rem; color: var(--text-muted); }
.pricing-sub { font-size: 0.85rem; margin-bottom: 18px; }
.pricing-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
  flex-grow: 1;
}
.pricing-features li { padding-left: 20px; position: relative; }
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-green);
}
.pricing-cta { width: 100%; }
.pricing-note {
  text-align: center;
  font-size: 0.85rem;
  max-width: 560px;
  margin: 32px auto 0;
}

/* Comparison table — same component as the app's table.table */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
table.table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}
table.table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  background: var(--surface-2);
}
table.table td, table.table th[scope="row"] {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
table.table th[scope="row"] {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
table.table tr:last-child td, table.table tr:last-child th { border-bottom: none; }
.highlight-col {
  background: rgba(6, 182, 212, 0.06);
  color: var(--text) !important;
  font-weight: 500;
}

/* CTA band */
.cta-band {
  padding: 96px 0;
  background: var(--brand-navy);
  text-align: center;
}
.cta-band h2 { color: var(--on-brand); }
.cta-inner p { max-width: 480px; margin: 0 auto 32px; color: rgba(231, 236, 244, 0.72); }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-note { margin: 0; font-size: 0.85rem; }

/* Scroll-reveal */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) and (min-width: 961px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .header-inner .btn-accent,
  .header-inner .header-signin { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; margin-left: auto; }
  .hero { padding: 56px 0 48px; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
