/* Vizil.ai — main.css
   Obsidian & Copper design system
   Supplements Tailwind CDN with custom properties and components
   ---------------------------------------------------------------- */

:root {
  --obsidian: #0d0d0d;
  --dark-surface: #1a1a1a;
  --dark-border: #2e2e2e;
  --off-white: #fafaf8;
  --white: #ffffff;
  --light-border: #e5e3de;
  --text-primary: #0d0d0d;
  --text-body: #3d3d3d;
  --text-muted: #5c6370;
  --text-on-dark: #f5f5f0;
  --muted-on-dark: #8a8f99;
  --malachite: #B5622A;
  --malachite-dark: #C4723A;
  --malachite-tint: rgba(181,98,42,0.10);
  --malachite-tint-text: #7a3d17;
  --danger: #ef4444;
  --warning: #f59e0b;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Instrument Serif', serif;
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--malachite);
  display: block;
  margin-bottom: 14px;
}

/* ── Sections ── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-dark {
  background: var(--obsidian);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--text-on-dark);
}
.section-dark p, .section-dark li {
  color: var(--muted-on-dark);
}

.section-light { background: var(--off-white); }
.section-white { background: var(--white); }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--obsidian);
  border-bottom: 1px solid var(--dark-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-on-dark);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-on-dark); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-on-dark);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--obsidian);
    border-bottom: 1px solid var(--dark-border);
    padding: 16px 24px;
    gap: 16px;
    align-items: flex-start;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--malachite);
  color: #ffffff;
}
.btn-primary:hover { background: var(--malachite-dark); }

.btn-secondary-light {
  background: transparent;
  border: 1.5px solid var(--obsidian);
  color: var(--obsidian);
}
.btn-secondary-light:hover {
  background: var(--obsidian);
  color: var(--text-on-dark);
}

.btn-secondary-dark {
  background: transparent;
  border: 1.5px solid var(--text-on-dark);
  color: var(--text-on-dark);
}
.btn-secondary-dark:hover {
  background: var(--text-on-dark);
  color: var(--obsidian);
}

.btn-lg {
  font-size: 15px;
  padding: 14px 32px;
}

/* ── Cards ── */
.card-light {
  background: var(--white);
  border: 0.5px solid var(--light-border);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.15s;
}
.card-light:hover { border-color: var(--malachite); }

.card-dark {
  background: var(--dark-surface);
  border: 0.5px solid var(--dark-border);
  border-radius: 14px;
  padding: 28px;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-malachite {
  background: var(--malachite-tint);
  color: var(--malachite-tint-text);
}
.badge-coming-soon {
  background: #f1f0ed;
  color: #6b6b6b;
}
.badge-dark {
  background: rgba(0,200,150,0.12);
  color: var(--malachite);
}

/* ── GEO Score Widget ── */
.geo-score-widget {
  background: var(--dark-surface);
  border: 0.5px solid var(--dark-border);
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
}

.geo-score-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.geo-score-number {
  font-family: 'Instrument Serif', serif;
  font-size: 72px;
  font-weight: 800;
  color: var(--malachite);
  line-height: 1;
  letter-spacing: -0.04em;
}

.geo-score-denom {
  font-size: 20px;
  color: var(--muted-on-dark);
  font-weight: 500;
}

.geo-score-label {
  font-size: 13px;
  color: var(--muted-on-dark);
  margin-bottom: 28px;
}

.geo-sub-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.geo-sub-score {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid var(--dark-border);
  border-radius: 10px;
  padding: 14px;
}

.geo-sub-score-label {
  font-size: 11px;
  color: var(--muted-on-dark);
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.geo-sub-score-value {
  font-size: 22px;
  font-weight: 700;
  font-family: 'Instrument Serif', serif;
  line-height: 1;
  letter-spacing: -0.02em;
}

.geo-sub-score-bar {
  height: 3px;
  background: var(--dark-border);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.geo-sub-score-fill {
  height: 100%;
  background: var(--malachite);
  border-radius: 2px;
}

/* ── Comparison Table ── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid var(--light-border);
}
.compare-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--light-border);
  vertical-align: middle;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .col-vizil { color: var(--malachite-tint-text); font-weight: 500; }
.compare-table .col-header { background: var(--off-white); }
.compare-icon-yes { color: var(--malachite); font-size: 16px; }
.compare-icon-no { color: #c0b8b0; font-size: 16px; }
.compare-icon-partial { color: var(--warning); font-size: 16px; }

/* ── Pricing Cards ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

.pricing-card {
  background: var(--white);
  border: 0.5px solid var(--light-border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--malachite);
  border-width: 1.5px;
}

.pricing-price {
  font-family: 'Instrument Serif', serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
}
.pricing-per {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
  padding: 7px 0;
  border-bottom: 1px solid var(--light-border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-feat-icon { color: var(--malachite); flex-shrink: 0; margin-top: 2px; }
.pricing-feat-icon.no { color: #c0b8b0; }

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--light-border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 20px 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 0 20px;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ── Footer ── */
.footer {
  background: var(--obsidian);
  border-top: 1px solid var(--dark-border);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: var(--muted-on-dark);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-on-dark); }

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--muted-on-dark);
}

/* ── Social Proof Strip ── */
.proof-strip {
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  padding: 20px 0;
}
.proof-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-on-dark);
}
.proof-item strong { color: var(--text-on-dark); }

/* ── Step cards ── */
.step-number {
  width: 36px;
  height: 36px;
  background: var(--malachite-tint);
  color: var(--malachite-tint-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  margin-bottom: 16px;
}

/* ── Utilities ── */
.text-malachite { color: var(--malachite); }
.text-on-dark { color: var(--text-on-dark); }
.text-muted-dark { color: var(--muted-on-dark); }
.text-muted { color: var(--text-muted); }
.text-body { color: var(--text-body); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.section-header { max-width: 640px; }
.section-header-center { max-width: 640px; margin: 0 auto; text-align: center; }

.divider { height: 1px; background: var(--light-border); margin: 0; }
.divider-dark { height: 1px; background: var(--dark-border); margin: 0; }

/* ── Feature icon box ── */
.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--malachite-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.feat-icon svg { color: var(--malachite-tint-text); }

/* ── Tag row ── */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--off-white);
  border: 1px solid var(--light-border);
  color: var(--text-muted);
}

/* ── Testimonial ── */
.testimonial-card {
  background: var(--white);
  border: 0.5px solid var(--light-border);
  border-radius: 14px;
  padding: 28px;
}
.testimonial-stars { color: #f59e0b; letter-spacing: 2px; font-size: 14px; margin-bottom: 12px; }
.testimonial-text { font-size: 15px; line-height: 1.7; color: var(--text-body); font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--malachite-tint);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--malachite-tint-text);
  flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.testimonial-role { font-size: 12px; color: var(--text-muted); }

/* ── Overflow clamp for demo widget ── */
.geo-probe-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--dark-border);
  font-size: 13px;
}
.geo-probe-row:last-child { border-bottom: none; }
.geo-probe-label { color: var(--muted-on-dark); }
.geo-probe-engine { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; color: var(--muted-on-dark); }
.geo-probe-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
}
.geo-probe-pill.mentioned { background: rgba(0,200,150,0.15); color: var(--malachite); }
.geo-probe-pill.not-mentioned { background: rgba(255,255,255,0.07); color: #6b7280; }
