/* =================================================================
   MIRRORMAP — marketing site
   Aesthetic: terminal-poetic / Pebble revival.
   All-monospace (JetBrains Mono). Black base. Pebble red as the
   brand accent. Routes green and Dash blue as tier-specific colors.
   ================================================================= */

:root {
  --bg: #0a0a0a;
  --bg-elev: #131313;
  --bg-card: #161616;
  --fg: #f4f4f4;
  --fg-mid: #b8b8b8;
  --fg-dim: #888888;
  --fg-mute: #555555;
  --border: #272727;
  --border-strong: #3a3a3a;

  /* Pebble brand */
  --pebble-red: #e63946;
  --pebble-red-bright: #ff5562;

  /* Tier colors — pulled from the icons */
  --routes-green: #2d7a3e;
  --routes-green-bright: #4abe66;
  --dash-blue: #2a8fa0;
  --dash-blue-bright: #4ec0d6;

  --radius: 4px;
  --radius-lg: 8px;

  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Subtle grid texture for atmosphere */
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--pebble-red-bright); }

::selection { background: var(--pebble-red); color: #fff; }

/* The thin brand bar at the very top — distinctive identity marker */
.brand-bar {
  height: 3px;
  background: var(--pebble-red);
  width: 100%;
}

/* ----- Layout ---------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ----- Header ---------------------------------------------------- */

.site-header {
  padding: 28px 0;
  position: sticky;
  top: 0;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.logo-mark {
  color: var(--pebble-red);
  margin-right: 4px;
  display: inline-block;
  transform: translateY(-1px);
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--fg-mid);
}
.site-nav a:hover { color: var(--fg); }

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

.hero {
  padding: 80px 0 100px;
  border-bottom: 1px dashed var(--border);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  font-weight: 500;
}

.headline {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
}
.headline .accent {
  color: var(--pebble-red);
}

.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-mid);
  margin: 0 0 36px;
  max-width: 38ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-arrow {
  font-weight: 800;
  display: inline-block;
  transition: transform 0.18s ease;
}
.btn:hover .btn-arrow { transform: translateX(2px); }

.btn-primary {
  background: var(--pebble-red);
  color: #fff;
  border-color: var(--pebble-red);
}
.btn-primary:hover {
  background: var(--pebble-red-bright);
  border-color: var(--pebble-red-bright);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--fg);
  color: var(--fg);
}

.btn-large {
  font-size: 16px;
  padding: 18px 32px;
}

.btn-disabled,
.btn-disabled:hover {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.hero-meta {
  font-size: 12px;
  color: var(--fg-mute);
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--routes-green-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--routes-green-bright);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.mono-mute { color: var(--fg-mute); }

.hero-art {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-icon {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 2px 0 rgba(255,255,255,0.04) inset;
  transition: transform 0.4s ease;
}
.hero-icon-routes {
  z-index: 2;
  transform: translate(-32px, 24px) rotate(-4deg);
}
.hero-icon-dash {
  z-index: 1;
  transform: translate(48px, -36px) rotate(5deg);
  opacity: 0.92;
}
.hero-art:hover .hero-icon-routes {
  transform: translate(-44px, 16px) rotate(-6deg);
}
.hero-art:hover .hero-icon-dash {
  transform: translate(60px, -44px) rotate(7deg);
}

/* ----- Generic section ------------------------------------------ */

.section {
  padding: 96px 0;
  border-bottom: 1px dashed var(--border);
}
.section-narrow .container { max-width: 760px; }

.section-head {
  text-align: left;
  margin-bottom: 56px;
  max-width: 720px;
}
.section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.section-sub {
  color: var(--fg-mid);
  font-size: 16px;
  margin: 0;
  max-width: 56ch;
}

.big-text {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg);
  margin: 0 0 24px;
  max-width: 62ch;
}
.big-text:last-child { margin-bottom: 0; }

.tier-mention {
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}
.tier-mention.tier-routes {
  color: var(--routes-green-bright);
  background: rgba(74, 190, 102, 0.08);
}
.tier-mention.tier-dash {
  color: var(--dash-blue-bright);
  background: rgba(78, 192, 214, 0.08);
}

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

.section-pricing {
  background:
    radial-gradient(circle at 50% 0%, rgba(230, 57, 70, 0.06) 0%, transparent 60%),
    var(--bg);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.tier {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tier:hover {
  transform: translateY(-2px);
}

.tier-free:hover { border-color: var(--fg-mute); }
.tier-routes {
  border-color: rgba(74, 190, 102, 0.4);
  background:
    linear-gradient(180deg, rgba(45, 122, 62, 0.06) 0%, transparent 40%),
    var(--bg-card);
}
.tier-routes:hover { border-color: var(--routes-green-bright); }
.tier-dash {
  border-color: rgba(78, 192, 214, 0.25);
}
.tier-dash:hover { border-color: var(--dash-blue-bright); }

.tier-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--routes-green-bright);
  color: #061b0c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 12px;
  border-radius: 3px;
}

.tier-head {
  margin-bottom: 24px;
}

.tier-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: block;
}

.tier-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.tier-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tier-price {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.tier-price .per {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-dim);
  margin-left: 2px;
}
.tier-tagline {
  font-size: 13px;
  color: var(--fg-dim);
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.tier-features li {
  font-size: 13.5px;
  padding: 6px 0;
  color: var(--fg-mid);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}
.tier-features li .check {
  color: var(--routes-green-bright);
  font-weight: 800;
  flex-shrink: 0;
  width: 14px;
}
.tier-features li .x {
  color: var(--fg-mute);
  font-weight: 800;
  flex-shrink: 0;
  width: 14px;
}
.tier-dash .tier-features li .check { color: var(--dash-blue-bright); }

.btn-tier {
  width: 100%;
  font-size: 14px;
  margin-bottom: 16px;
}
.btn-tier-free {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-tier-free:hover {
  border-color: var(--fg);
}
.btn-tier-routes {
  background: var(--routes-green);
  border-color: var(--routes-green);
  color: #fff;
}
.btn-tier-routes:hover {
  background: var(--routes-green-bright);
  border-color: var(--routes-green-bright);
  color: #061b0c;
}
.btn-tier-dash {
  background: var(--dash-blue);
  border-color: var(--dash-blue);
  color: #fff;
}
.btn-tier-dash:hover:not(.btn-disabled) {
  background: var(--dash-blue-bright);
  border-color: var(--dash-blue-bright);
  color: #052026;
}

.tier-foot {
  font-size: 12px;
  color: var(--fg-mute);
  line-height: 1.55;
}

.pricing-fineprint {
  text-align: center;
  font-size: 12px;
  color: var(--fg-mute);
  margin-top: 40px;
}

/* ----- How it works --------------------------------------------- */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.how-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.how-num {
  font-size: 13px;
  color: var(--pebble-red);
  font-weight: 700;
  margin-bottom: 14px;
}
.how-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.how-card p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-mid);
  line-height: 1.6;
}

.under-hood {
  padding-top: 56px;
  border-top: 1px dashed var(--border);
}
.roadmap-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 16px 0 28px;
}
.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 14px;
}
.roadmap-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 15.5px;
  color: var(--fg);
  line-height: 1.5;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.roadmap-list li:hover {
  border-color: var(--pebble-red);
  transform: translateX(2px);
}
.roadmap-mark {
  color: var(--pebble-red);
  font-weight: 800;
  flex-shrink: 0;
}
.roadmap-foot {
  margin: 0;
  font-size: 13px;
  color: var(--fg-mute);
  max-width: 64ch;
}

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

.faq-list {
  margin: 0;
  display: grid;
  gap: 0;
}
.faq-item {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}
.faq-item dt {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.faq-item dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--fg-mid);
  line-height: 1.65;
  max-width: 70ch;
}

/* ----- Closer CTA ----------------------------------------------- */

.section-closer {
  text-align: center;
  border-bottom: none;
  padding: 88px 0;
}
.closer-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 36px;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: #060606;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer-brand .logo {
  font-size: 18px;
  margin-bottom: 12px;
}
.footer-tagline {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--fg-dim);
  max-width: 36ch;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--fg-mid);
  font-weight: 500;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.footer-social:hover {
  color: var(--fg);
  border-color: var(--fg);
  background: var(--bg-elev);
}
.footer-head {
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.footer-col a {
  color: var(--fg-mid);
  width: fit-content;
}
.footer-col a:hover { color: var(--fg); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 11px;
}

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

@media (max-width: 900px) {
  .hero { padding: 60px 0 80px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-art {
    height: 340px;
    order: -1;
  }
  .hero-icon { width: 200px; height: 200px; }

  .tier-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }

  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .site-nav { gap: 18px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
