/* Shared chrome and inner-page layout. Homepage keeps its own component CSS. */

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

:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F7FA;
  --bg-tertiary: #EDF0F5;
  --text-primary: #1A2140;
  --text-secondary: #4A5568;
  --text-muted: #5C6B82;
  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;
  --blue: #3939F5;
  --blue-dark: #2D2DC4;
  --blue-pale: rgba(57, 57, 245, 0.08);
  --blue-border: rgba(57, 57, 245, 0.2);
  --navy-deepest: #070F1E;
  --navy-border: rgba(255, 255, 255, 0.08);
  --white: #FFFFFF;
  --silver: #C8D4E8;
  --muted: #7A90B0;
  --font-display: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

::selection { background: rgba(57, 57, 245, 0.15); }

a { color: var(--blue); }

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

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 5%;
  height: 72px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text-primary); }

.nav-links-mobile { display: none; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-primary);
  font: 600 14px/1 var(--font-body);
  cursor: pointer;
}

.btn-ghost,
.btn-gold,
.btn-gold-lg,
.btn-outline-lg {
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-ghost {
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.btn-ghost:hover { border-color: var(--border-medium); color: var(--text-primary); }

.btn-gold {
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--blue);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.btn-gold:hover { background: var(--blue-dark); }

.btn-gold-lg,
.btn-outline-lg {
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
}

.btn-gold-lg { background: var(--blue); color: #fff; border: none; }
.btn-gold-lg:hover { background: var(--blue-dark); }

.btn-outline-lg {
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
}

.btn-outline-lg:hover { border-color: var(--border-medium); color: var(--text-primary); }

.page-hero {
  padding: 132px 5% 36px;
  background: var(--bg-primary);
}

.section-inner { max-width: 1100px; margin: 0 auto; }
.narrow { max-width: 760px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.crumbs a { color: var(--text-secondary); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 12px;
}

h1, .section-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.page-hero h1 { font-size: clamp(36px, 5vw, 56px); max-width: 18em; margin-bottom: 16px; }

.lede, .section-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 68ch;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

main section, .page-section { padding: 72px 5%; }
.page-section.alt { background: var(--bg-secondary); }
.page-section h2, .prose h2, .band-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.form-card h2, .side-card h2 { font-size: 22px; }

.page-section p, .prose p, .prose li { color: var(--text-secondary); }
.page-section p + p { margin-top: 12px; }

.check-list, .plain-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.check-list li, .plain-list li { color: var(--text-secondary); }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0F766E;
  font-weight: 700;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.card {
  display: block;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
}

a.card:hover { border-color: var(--blue-border); background: var(--bg-secondary); }

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.card p { color: var(--text-secondary); font-size: 15px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.price-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
}

.price-card.featured { border: 2px solid var(--blue); position: relative; }

/* Beats `.page-section p`, which would paint this label dark on the blue pill. */
.price-card .price-popular {
  align-self: flex-start;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.price-card h2.price-plan {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.3;
  margin-bottom: 8px;
}

.price-card.featured .price-plan { color: var(--blue); }

.price-amount {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
}

.price-amount span { font-size: 16px; font-weight: 600; margin-right: 4px; color: var(--text-muted); }
.price-period { color: var(--text-muted); font-size: 14px; margin: 8px 0 18px; }

.price-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  padding: 11px 12px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 18px;
}

.price-cta-outline { border: 1px solid var(--border-light); color: var(--text-primary); }
.price-cta-outline:hover { border-color: var(--border-medium); }
.price-cta-gold { background: var(--blue); color: #fff; }
.price-cta-gold:hover { background: var(--blue-dark); }

.price-card h3 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 8px 0;
}

.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.price-card li { font-size: 14px; color: var(--text-secondary); }

.pricing-note { margin-top: 22px; color: var(--text-secondary); }

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.form-card, .side-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
}

.side-card { background: var(--bg-secondary); }
.side-card h2 { font-size: 22px; }
.side-card p, .side-card li { margin-top: 10px; }
.side-card ul { list-style: none; }

form { display: flex; flex-direction: column; gap: 14px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input, select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-medium);
  background: #fff;
  color: var(--text-primary);
  font: 16px/1.4 var(--font-body);
}
input:focus, select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.form-note { font-size: 13px; color: var(--text-secondary); }
button.btn-gold-lg { border: none; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; max-width: 800px; }
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: #fff;
  padding: 0 18px;
}
.faq-item summary { cursor: pointer; font-weight: 600; padding: 16px 0; }
.faq-item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.faq-item p { padding-bottom: 16px; }

.band-cta {
  background: #2D2DC4;
  color: #fff;
  text-align: center;
  padding: 88px 5%;
}
.band-cta h2 { color: #fff; }
.band-cta p { color: rgba(255, 255, 255, 0.88); margin-bottom: 8px; }
.band-cta .hero-actions { justify-content: center; }
.band-cta .btn-gold-lg { background: #fff; color: var(--blue); }
.band-cta .btn-gold-lg:hover { background: rgba(255, 255, 255, 0.92); }
.band-cta .btn-outline-lg { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.band-cta .btn-outline-lg:hover { border-color: #fff; color: #fff; }
.band-cta a { color: #fff; }

footer {
  background: var(--navy-deepest);
  padding: 60px 5% 32px;
  border-top: 1px solid var(--navy-border);
  color: var(--muted);
}
.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-logo-img { height: 40px; width: auto; }
.footer-tagline { font-size: 13px; line-height: 1.6; margin: 12px 0; }
.footer-address { font-size: 13px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0; }
.footer-contact a { color: var(--silver); font-size: 14px; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--navy-border);
  padding-top: 22px;
  font-size: 12px;
}

.prose { padding-bottom: 72px; }
.prose h2 { font-size: 22px; margin-top: 28px; }
.prose ul { padding-left: 18px; margin: 8px 0 12px; }
.prose li { margin-bottom: 8px; }
.prose code { font-size: 0.95em; }

.consent-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  max-width: 420px;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
}
.consent-banner:not([hidden]) { display: flex; }
.consent-banner p { font-size: 14px; color: var(--text-secondary); }
.consent-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 5% 20px;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links.is-open { display: flex; }
  .nav-links-mobile { display: list-item; }
  .nav-cta .btn-ghost { display: none; }
}

@media (max-width: 900px) {
  .card-grid, .demo-layout { grid-template-columns: 1fr; }
  .page-hero h1 { max-width: none; }
}

@media (max-width: 640px) {
  .pricing-grid, .footer-top { grid-template-columns: 1fr; }
  .consent-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
