/* ==============================================================
   STAVARA AI — Shared site styles
   Dark navy theme with teal + lime brand accents.
   Used by index.html, consulting.html, back-office.html.
   The contractor.html landing page is self-contained.
   ============================================================== */

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

:root {
  --navy: #080F1E;
  --navy-soft: #0E1729;
  --navy-card: #131D33;
  --navy-deep: #050912;
  --teal: #00D4C5;
  --teal-dim: rgba(0, 212, 197, 0.5);
  --teal-glow: rgba(0, 212, 197, 0.15);
  --lime: #C4FF3D;
  --white: #FFFFFF;
  --ink: #FFFFFF;
  --ink-soft: rgba(255, 255, 255, 0.72);
  --ink-dim: rgba(255, 255, 255, 0.48);
  --muted: rgba(255, 255, 255, 0.55);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-teal: rgba(0, 212, 197, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--lime); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.maxw-700 { max-width: 700px; }
.maxw-800 { max-width: 800px; }
.center { text-align: center; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 48px; }

/* ==============================================================
   NAV
   ============================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 15, 30, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-block;
  line-height: 0;
}
.brand img {
  height: 36px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex; gap: 28px; align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active {
  color: var(--teal);
  font-weight: 600;
}

/* ==============================================================
   BUTTONS
   ============================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  font-family: inherit;
  text-decoration: none;
  border: none; cursor: pointer;
  letter-spacing: 0.3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--teal);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--lime);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 197, 0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-1px);
}

/* ==============================================================
   SECTIONS — eyebrow + heading + lede
   ============================================================== */
.section { padding: 80px 24px; border-bottom: 1px solid var(--border-soft); }
.section-warm { background: var(--navy-soft); }
.section-dark { background: var(--navy-deep); }
@media (min-width: 768px) { .section { padding: 110px 24px; } }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
}
@media (min-width: 768px) { h1 { font-size: 64px; } }
h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}
@media (min-width: 768px) { h2 { font-size: 44px; } }
h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}
.lede {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 700px;
}
.section p { color: var(--ink-soft); }
.section p + p { margin-top: 18px; }

/* ==============================================================
   HERO
   ============================================================== */
.hero {
  position: relative;
  padding: 80px 24px 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  top: -300px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
}
.hero::after {
  content: ""; position: absolute; pointer-events: none;
  bottom: -200px; left: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 197, 0.06) 0%, transparent 70%);
}
.corner-accent { display: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { margin-top: 8px; }
.hero .lede { font-size: 22px; margin-top: 16px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid:not(.hero-grid-text-only) {
    grid-template-columns: 1.2fr 1fr;
  }
  .hero { padding: 100px 24px 130px; }
}
.hero-cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-vera {
  display: flex; justify-content: center; align-items: center;
}
.hero-vera img {
  width: 100%; max-width: 420px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--navy-card) 0%, var(--navy-soft) 100%);
  border: 1px solid var(--border-teal);
  box-shadow: 0 0 80px var(--teal-glow), 0 30px 60px rgba(0, 0, 0, 0.5);
  padding: 12px;
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.badge-live {
  background: rgba(196, 255, 61, 0.15);
  color: var(--lime);
  border: 1px solid rgba(196, 255, 61, 0.4);
}
.badge-waitlist {
  background: rgba(0, 212, 197, 0.12);
  color: var(--teal);
  border: 1px solid var(--border-teal);
}

/* ==============================================================
   FRUSTRATION (pain list)
   ============================================================== */
.frustration {
  background: var(--navy-soft);
  padding: 80px 24px;
  border-bottom: 1px solid var(--border-soft);
}
@media (min-width: 768px) { .frustration { padding: 110px 24px; } }
.frustration-list {
  list-style: none;
  margin-top: 36px;
}
.frustration-list li {
  position: relative;
  padding: 22px 24px 22px 56px;
  margin-bottom: 14px;
  background: var(--navy-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.55;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.frustration-list li:hover {
  border-color: var(--border-teal);
  transform: translateY(-1px);
}
.frustration-list li::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 28px;
  width: 18px; height: 2px;
  background: var(--teal);
}
.frustration-turn {
  margin-top: 36px;
  font-size: 20px;
  color: var(--white);
  font-weight: 600;
  border-left: 3px solid var(--teal);
  padding-left: 20px;
}

/* ==============================================================
   STATS
   ============================================================== */
.stat-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 36px 0 36px;
}
@media (min-width: 768px) {
  .stat-row { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.stat {
  background: var(--navy-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.2s ease;
}
.stat:hover { border-color: var(--border-teal); }
.stat-num {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--teal);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 12px;
  line-height: 1.5;
}

/* ==============================================================
   TIERS (consulting)
   ============================================================== */
.tier-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.tier {
  background: var(--navy-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.tier:hover {
  border-color: var(--border-teal);
  transform: translateY(-2px);
}
.tier-active {
  border-color: var(--border-teal);
  background: linear-gradient(135deg, var(--navy-card) 0%, rgba(0, 212, 197, 0.08) 100%);
}
@media (min-width: 900px) {
  .tier { grid-template-columns: 1fr auto; gap: 36px; padding: 44px 40px; }
}
.tier-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 12px 0 6px;
}
.tier-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.tier-who {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 8px;
}
.tier-who-body { color: var(--ink-soft); margin-bottom: 18px; line-height: 1.6; }
.tier-cta {
  display: flex; align-items: flex-end;
}

/* ==============================================================
   STEPS (how the audit works)
   ============================================================== */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--navy-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.2s ease;
}
.step:hover { border-color: var(--border-teal); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 12px; }
.step p { color: var(--ink-soft); line-height: 1.6; }

/* ==============================================================
   TILES (back office grid)
   ============================================================== */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 700px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tile-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.tile {
  background: var(--navy-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  min-height: 160px;
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.tile:hover {
  border-color: var(--border-teal);
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--navy-card) 0%, rgba(0, 212, 197, 0.06) 100%);
  color: var(--white);
}
.tile-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.tile-who {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.tile-status {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.tile-status.live {
  background: rgba(196, 255, 61, 0.15);
  color: var(--lime);
  border: 1px solid rgba(196, 255, 61, 0.4);
}
.tile-status.waitlist {
  background: rgba(0, 212, 197, 0.12);
  color: var(--teal);
  border: 1px solid var(--border-teal);
}
.tile-capture {
  border-style: dashed;
}

/* ==============================================================
   PATHWAYS (home: two doors)
   ============================================================== */
.pathways {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 768px) { .pathways { grid-template-columns: 1fr 1fr; gap: 28px; } }
.pathway {
  background: var(--navy-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 40px 32px;
  text-decoration: none;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.pathway:hover {
  border-color: var(--border-teal);
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--navy-card) 0%, rgba(0, 212, 197, 0.08) 100%);
  color: var(--white);
}
.pathway h3 { font-size: 24px; }
.pathway p { color: var(--ink-soft); flex: 1; }
.pathway .btn { align-self: flex-start; }

/* ==============================================================
   VERA SNEAK PEEK (home)
   ============================================================== */
.vera-peek {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
@media (min-width: 768px) { .vera-peek { padding: 110px 24px; } }
.vera-peek::before {
  content: ""; position: absolute; pointer-events: none;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 60%);
}
.vera-peek .wrap { position: relative; z-index: 1; }
.vera-peek-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 24px;
  border: 2px solid var(--border-teal);
  box-shadow: 0 0 60px var(--teal-glow);
}
.vera-peek h2 { margin-bottom: 24px; }
.vera-peek-quote {
  display: block;
  font-size: 22px;
  color: var(--white);
  font-weight: 600;
  border-left: 3px solid var(--teal);
  padding-left: 20px;
  margin: 24px auto 36px;
  font-style: italic;
  max-width: 500px;
  text-align: left;
}

/* ==============================================================
   FOOTER
   ============================================================== */
.footer {
  background: var(--navy-deep);
  padding: 40px 24px;
  color: var(--ink-dim);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer .brand { color: var(--white); font-weight: 800; letter-spacing: 1.5px; font-size: 16px; }
.footer .brand img { height: 28px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--ink-dim); font-size: 14px; }
.footer-links a:hover { color: var(--teal); }

/* ==============================================================
   WAITLIST MODAL
   ============================================================== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(8, 15, 30, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  overflow-y: auto;
  padding: 24px 16px;
}
.modal-overlay.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.modal-panel {
  background: #FFFFFF;
  color: #080F1E;
  width: 100%;
  max-width: 560px;
  margin: 24px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  position: relative;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.modal-header {
  background: var(--navy);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-wordmark {
  display: flex; align-items: center;
}
.modal-wordmark img { height: 28px; }
.modal-close {
  background: transparent; border: none;
  color: rgba(255,255,255,0.7);
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s ease;
}
.modal-close:hover { color: var(--teal); }
.modal-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--lime) 100%);
}
.modal-body { padding: 28px 28px 32px; }
.modal-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #080F1E;
  margin-bottom: 8px;
}
.modal-intro {
  font-size: 15px;
  color: #555;
  margin-bottom: 22px;
  line-height: 1.5;
}

.field-row {
  display: flex; gap: 14px; margin-bottom: 14px;
}
@media (max-width: 520px) { .field-row { flex-direction: column; gap: 0; } }
.field { flex: 1; margin-bottom: 14px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.field-label .req {
  background: var(--teal);
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  letter-spacing: 0.5px;
}
.field-input, .field-select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  color: #080F1E;
  background: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field-input:focus, .field-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 212, 197, 0.15);
}
.field-textarea { resize: vertical; min-height: 70px; font-family: inherit; }

.form-submit {
  width: 100%;
  background: var(--teal);
  color: var(--navy);
  border: none;
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
}
.form-submit:hover {
  background: var(--lime);
  transform: translateY(-1px);
}
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-error {
  display: none;
  background: #fff0f0;
  color: #c00;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 14px;
}
.form-error.active { display: block; }

.modal-success { display: none; text-align: center; padding: 40px 28px; }
.modal-success.active { display: block; }
.modal-success-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy);
  font-size: 32px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.modal-success-title {
  font-size: 22px;
  font-weight: 700;
  color: #080F1E;
  margin-bottom: 8px;
}
.modal-success-text {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
}

.modal-footer {
  background: #f5f5f5;
  padding: 12px 24px;
  font-size: 12px;
  color: #888;
  text-align: center;
  letter-spacing: 0.5px;
}
