/* ==========================================================================
   REIX marketing site — shared stylesheet
   Design tokens pulled directly from the live reix-2.polsia.app build.
   ========================================================================== */

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

:root {
  /* brand blue ramp */
  --brand-400: #00a7ff;
  --brand-500: #0075da;
  --brand-600: #005bbe;
  --brand-700: #004299;

  /* neutrals */
  --dark-bg: #05050f;
  --dark-bg-2: #0e0e20;
  --light-bg: #f9fcfe;
  --card-bg: #ffffff;
  --text-dark: #0d1215;
  --text-muted: #5b6472;
  --text-muted-light: rgba(255, 255, 255, 0.65);
  --text-muted-light-2: rgba(255, 255, 255, 0.45);
  --border-light: rgba(13, 18, 21, 0.1);
  --border-dark: rgba(255, 255, 255, 0.1);

  --radius: 0.5rem;
  --radius-lg: 0.875rem;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--light-bg);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

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

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

/* ---------------- Navbar ---------------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 252, 254, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.logo svg { height: 20px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.nav-links a:hover { color: var(--brand-500); }

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover { opacity: 0.9; }

.btn-primary {
  background: var(--brand-600);
  color: #ffffff;
}

.btn-outline-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--border-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--border-light);
}

.btn-lg { padding: 12px 22px; font-size: 15px; }

/* Shown by assets/auth.js when a visitor is already signed in on the app
   and on the relevant plan -- replaces the Stripe/CTA button in place. */
.btn-subscribed {
  background: var(--brand-600);
  color: #fff;
  cursor: default;
  opacity: 0.92;
}
.btn-subscribed:hover { background: var(--brand-600); }

/* ---------------- Section helpers ---------------- */

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.section-dark {
  background: var(--dark-bg);
  color: #fff;
}

.section-dark-2 {
  background: var(--dark-bg-2);
  color: #fff;
}

.section-light { background: var(--light-bg); }
.section-white { background: #ffffff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  margin-bottom: 20px;
}

.section-dark .eyebrow,
.section-dark-2 .eyebrow {
  border-color: var(--border-dark);
  color: var(--text-muted-light);
}

.eyebrow .dot {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: var(--brand-500);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.1; }
h3 { font-size: 1.25rem; line-height: 1.3; }

.lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 620px;
}

.section-dark .lede,
.section-dark-2 .lede { color: var(--text-muted-light); }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

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

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

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

.hero-footnote {
  font-size: 13px;
  color: var(--text-muted-light-2);
}

/* Equity gap analysis card mock */

.equity-card {
  background: #0e0e20;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 22px;
  max-width: 420px;
  margin-left: auto;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.equity-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--text-muted-light);
}

.equity-card-header .dot-status {
  width: 8px; height: 8px; border-radius: 999px; background: var(--brand-400);
  display: inline-block; margin-right: 6px;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  letter-spacing: 0.03em;
}

.tag-brand { background: rgba(0, 117, 218, 0.25); color: #6cc0ff; }

.equity-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.equity-label { font-size: 12px; color: var(--text-muted-light); margin-bottom: 4px; }
.equity-value { font-size: 20px; font-weight: 800; }
.equity-value.strike { text-decoration: line-through; color: var(--text-muted-light); font-size: 16px; font-weight: 600; }

.equity-gap-box {
  background: rgba(0, 117, 218, 0.15);
  border: 1px solid rgba(0, 117, 218, 0.35);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.equity-gap-box .equity-value { color: #6cc0ff; }

.confidence-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin: 10px 0 6px;
}

.confidence-bar-fill {
  height: 100%;
  width: 72%;
  background: var(--brand-500);
}

.equity-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.equity-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
}

.equity-stat b { display: block; font-size: 17px; }
.equity-stat span { font-size: 11px; color: var(--text-muted-light); }

.equity-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted-light);
  border-top: 1px solid var(--border-dark);
  padding-top: 12px;
}

.equity-footer b { color: #6cc0ff; }

/* ---------------- Grids ---------------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 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; }

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
}

.stat-card b {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-500);
  letter-spacing: -0.02em;
}

.stat-card .stat-label { font-weight: 700; margin-top: 6px; }
.stat-card .stat-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.feature-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-600);
  background: rgba(0, 117, 218, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.feature-card p { color: var(--text-muted); margin: 0; }

/* ---------------- Process steps ---------------- */

.steps-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.steps-nav a {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.step-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border-light);
}

.step-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-500);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* ---------------- Pricing ---------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.price-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.price-card.featured {
  border: 2px solid var(--brand-500);
  box-shadow: 0 20px 40px -20px rgba(0, 117, 218, 0.35);
}

.price-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.price-amount {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 18px 0 4px;
  color: var(--text-dark);
}

.price-amount span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  flex: 1;
}

.price-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.price-features li::before {
  content: "\2713";
  color: var(--brand-500);
  font-weight: 700;
  flex-shrink: 0;
}

.badge-popular {
  background: var(--brand-600);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-lock {
  background: var(--dark-bg-2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 14px;
}

.compare-table th, .compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-dark);
  text-align: left;
}

.section-dark .compare-table th, .section-dark .compare-table td,
.section-dark-2 .compare-table th, .section-dark-2 .compare-table td {
  border-bottom: 1px solid var(--border-dark);
}

.compare-table th:not(:first-child), .compare-table td:not(:first-child) { text-align: center; }

/* ---------------- FAQ ---------------- */

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}

.section-dark .faq-item, .section-dark-2 .faq-item { border-bottom: 1px solid var(--border-dark); }

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { color: var(--text-muted); margin-top: 12px; }
.section-dark .faq-item p, .section-dark-2 .faq-item p { color: var(--text-muted-light); }

/* ---------------- Forms ---------------- */

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  font-family: var(--font);
  font-size: 14px;
  background: #ffffff;
  color: var(--text-dark);
}

.section-dark .form-field input,
.section-dark .form-field textarea,
.section-dark-2 .form-field input,
.section-dark-2 .form-field textarea {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-dark);
  color: #fff;
}

.form-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.section-dark .form-checkbox, .section-dark-2 .form-checkbox { color: var(--text-muted-light); }

.card-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.section-dark .card-panel, .section-dark-2 .card-panel {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-dark);
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--dark-bg-2);
  color: var(--text-muted-light);
  padding: 32px 0;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.footer-links a:hover { color: #fff; }

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-500);
  padding: 40px 0 0;
}

/* ---------------- Sign in ---------------- */

.auth-wrap {
  max-width: 420px;
  margin: 0 auto;
}

/* ---------------- Utilities ---------------- */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.divider { border: none; border-top: 1px solid var(--border-light); margin: 0; }
.section-dark .divider, .section-dark-2 .divider { border-top: 1px solid var(--border-dark); }

/* ---------------- Responsive ---------------- */

/* ---------------- Coverage map ---------------- */

.map-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
  align-items: start;
}

.map-panel {
  position: relative;
  background: var(--dark-bg);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-height: 420px;
}

.map-back-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 14px;
}

#map-svg-wrap svg { width: 100%; height: auto; display: block; }

.map-shape {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 0.6;
  cursor: pointer;
  transition: filter 0.15s ease, stroke-width 0.15s ease;
}

.map-shape:hover { filter: brightness(1.25); stroke-width: 1.4; }

.map-shape.is-selected {
  stroke: #ffffff;
  stroke-width: 2.2;
}

.map-sidebar {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 22px;
  color: #fff;
}

.map-legend { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }

.map-legend-item { display: flex; gap: 10px; align-items: flex-start; }

.map-legend-swatch {
  width: 14px; height: 14px; border-radius: 4px;
  margin-top: 3px; flex-shrink: 0;
}

.map-legend-item b { display: block; font-size: 14px; }
.map-legend-item span { font-size: 12px; color: var(--text-muted-light); }

.map-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted-light);
}

.map-counts b { color: #fff; font-size: 15px; margin-right: 4px; }

.map-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.map-panel-name { font-size: 1.15rem; font-weight: 800; margin: 0 0 8px; }
.map-panel-desc { font-size: 13px; color: var(--text-muted-light); margin: 0 0 14px; }

.map-clear-btn {
  background: none; border: none; padding: 0; margin-top: 10px;
  font-size: 13px; color: var(--brand-400); cursor: pointer;
  text-decoration: underline;
}

.map-bottom-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: #fff;
}

.map-bottom-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.map-bottom-card .map-panel-desc { font-size: 15px; margin-bottom: 20px; }

.map-grid-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.map-grid-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.map-grid-item:hover { background: rgba(255, 255, 255, 0.06); }

.map-grid-item .dot {
  width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0;
  background: var(--text-muted-light); display: inline-block; margin-right: 8px;
}

.map-grid-item .name { display: flex; align-items: center; }

.map-grid-item .status {
  font-size: 10px; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--text-muted-light);
  text-align: right;
}

.map-loading {
  color: var(--text-muted-light);
  font-size: 14px;
  padding: 60px 0;
  text-align: center;
}

.map-form { margin-top: 14px; }

@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-grid-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .pricing-grid, .step-block { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .equity-card { margin: 0 auto; }
  .section { padding: 64px 0; }
}
