/* =========================================================================
   MapAnything — Marketing site styles
   ========================================================================= */

.marketing { background: #fff; }

/* ----- Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 70% -10%, rgba(99,102,241,.35), transparent 60%),
              radial-gradient(900px 600px at 0% 100%, rgba(76,29,149,.25), transparent 55%),
              linear-gradient(180deg, #0a0f1e 0%, #0f1731 100%);
  color: #fff;
  padding: 96px 0 88px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at top, rgba(0,0,0,.6) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, rgba(0,0,0,.6) 0%, transparent 70%);
}
.hero-inner { position: relative; max-width: 1100px; margin-inline: auto; padding-inline: var(--sp-6); text-align: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-full);
  font-size: var(--fs-sm); font-weight: 600;
  color: rgba(255,255,255,.78);
  margin-bottom: var(--sp-5);
  backdrop-filter: blur(8px);
}
.hero-eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,.7); }
  70% { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 880px;
  margin: 0 auto var(--sp-5);
}
.hero h1 .accent {
  background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 50%, #c4b5fd 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,.7);
  max-width: 620px; margin: 0 auto var(--sp-7);
  line-height: 1.6;
}
.hero-btns {
  display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap;
  margin-bottom: var(--sp-10);
}
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--brand-700);
  padding: 14px 28px; border-radius: var(--r-lg);
  font-weight: 700; font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0,0,0,.3), 0 1px 0 rgba(255,255,255,.4) inset;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-hero-primary:hover { transform: translateY(-1px); color: var(--brand-800); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.04);
  color: #fff;
  padding: 14px 28px; border-radius: var(--r-lg);
  font-weight: 600; font-size: 1rem;
  border: 1px solid rgba(255,255,255,.18);
  text-decoration: none;
  transition: background .12s, border-color .12s;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.32); color: #fff; }

/* Dashboard mockup --------------------------------------------------- */
.dashboard-mockup {
  max-width: 920px; margin: 0 auto;
  background: #0b1326;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05) inset;
}
.mock-bar {
  background: #111a30; padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mock-dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-bar-title {
  flex: 1; text-align: center; font-size: .74rem;
  color: rgba(255,255,255,.4); font-weight: 500;
  letter-spacing: .01em;
}
.mock-inner {
  padding: 14px;
  display: grid; grid-template-columns: 224px 1fr; gap: 12px;
  height: 300px;
}
.mock-sidebar {
  background: #111a30; border-radius: var(--r-md);
  padding: 12px; display: flex; flex-direction: column; gap: 6px;
  border: 1px solid rgba(255,255,255,.04);
}
.mock-sb-title {
  font-size: .58rem; color: rgba(255,255,255,.4);
  text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
  margin-bottom: 4px;
}
.mock-row {
  background: #1a2547; border-radius: var(--r-xs);
  height: 30px; display: flex; align-items: center;
  padding: 0 10px; gap: 8px;
  border: 1px solid rgba(255,255,255,.03);
}
.mock-row.is-active { background: rgba(99,102,241,.18); border-color: rgba(99,102,241,.4); }
.mock-dot2 { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mock-label { height: 7px; background: rgba(255,255,255,.18); border-radius: 3px; flex: 1; }
.mock-badge { width: 32px; height: 14px; border-radius: var(--r-full); flex-shrink: 0; }
.mock-map {
  background: linear-gradient(135deg, #1a2547 0%, #0f1936 100%);
  border-radius: var(--r-md); position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.04);
}
.mock-map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
}
.mock-pin {
  position: absolute; width: 14px; height: 14px;
  border-radius: 50%; border: 2.5px solid #fff;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
  transform: translate(-50%, -50%);
}
.mock-pin::after {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid currentColor; opacity: .4;
  animation: ping 2.2s infinite;
}
@keyframes ping {
  0% { transform: scale(.8); opacity: .7; }
  100% { transform: scale(1.9); opacity: 0; }
}
.mock-trail {
  position: absolute; height: 3px; border-radius: 3px; opacity: .8;
  transform-origin: left center;
}
.mock-label-txt {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(15,23,42,.9);
  color: #fff; font-size: .72rem; font-weight: 600;
  padding: 5px 12px; border-radius: var(--r-full);
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.mock-label-txt .pulse {
  display: inline-block; vertical-align: middle; margin-right: 6px;
  width: 6px; height: 6px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: pulse 2s infinite;
}

/* ----- Trust strip --------------------------------------------------- */
.trust-strip {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-6) var(--sp-6);
}
.trust-inner {
  max-width: 1100px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); flex-wrap: wrap;
}
.trust-label {
  font-size: var(--fs-xs); font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: var(--tracking-wide);
}
.trust-stats { display: flex; gap: var(--sp-7); flex-wrap: wrap; }
.trust-stat {
  display: flex; flex-direction: column;
}
.trust-stat .v {
  font-size: 1.4rem; font-weight: 800;
  color: var(--text-primary); letter-spacing: var(--tracking-tight);
}
.trust-stat .l {
  font-size: var(--fs-xs); color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: var(--tracking-wide); font-weight: 600;
}

/* ----- Section system ----------------------------------------------- */
.section { padding: var(--sp-12) var(--sp-6); }
.section-inner { max-width: 1100px; margin-inline: auto; }
.section-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: 700;
  color: var(--brand-700);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: var(--tracking-tighter);
  margin-bottom: var(--sp-3);
  line-height: 1.18;
}
.section-sub {
  font-size: var(--fs-md);
  color: var(--text-tertiary);
  max-width: 560px;
  line-height: var(--lh-loose);
}
.section-header { text-align: center; margin-bottom: var(--sp-10); }
.section-header.center .section-sub { margin-inline: auto; }

/* ----- Features grid ------------------------------------------------- */
.feature-grid {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.feature:hover {
  border-color: var(--brand-200);
  box-shadow: 0 8px 24px rgba(79,70,229,.08);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--brand-100) 100%);
  color: var(--brand-700);
  margin-bottom: var(--sp-4);
  border: 1px solid var(--brand-100);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 {
  font-size: var(--fs-md); font-weight: 700;
  color: var(--text-primary); margin-bottom: 6px;
  letter-spacing: var(--tracking-tight);
}
.feature p {
  font-size: var(--fs-base); color: var(--text-tertiary);
  line-height: var(--lh-loose);
}

/* ----- Pricing preview (dark) --------------------------------------- */
.section-dark {
  background:
    radial-gradient(900px 600px at 20% 0%, rgba(99,102,241,.18), transparent 60%),
    linear-gradient(180deg, #0a0f1e 0%, #0f1731 100%);
  color: #fff;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-sub { color: rgba(255,255,255,.6); }
.section-dark .section-eyebrow {
  background: rgba(165,180,252,.1);
  border-color: rgba(165,180,252,.2);
  color: #a5b4fc;
}

.price-grid {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 880px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-4);
  transition: border-color .15s, background .15s, transform .15s;
}
.price-card:hover { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.04); transform: translateY(-2px); }
.price-card.featured {
  background:
    linear-gradient(180deg, rgba(99,102,241,.15) 0%, rgba(99,102,241,.04) 100%);
  border-color: rgba(165,180,252,.4);
  box-shadow: 0 20px 50px rgba(79,70,229,.25), 0 0 0 1px rgba(165,180,252,.15) inset;
  position: relative;
}
.price-card.featured::before {
  content: 'Most Popular';
  position: absolute; top: -10px; right: var(--sp-5);
  background: var(--brand-600); color: #fff;
  font-size: .68rem; font-weight: 700;
  padding: 4px 10px; border-radius: var(--r-full);
  letter-spacing: .04em; text-transform: uppercase;
}
.price-tier {
  font-size: var(--fs-xs); font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: var(--tracking-wide);
}
.price-name { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: var(--tracking-tight); }
.price-val { font-size: var(--fs-md); font-weight: 600; color: #a5b4fc; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.price-features li {
  font-size: var(--fs-base); color: rgba(255,255,255,.72);
  display: flex; gap: 10px; align-items: flex-start; line-height: var(--lh-snug);
}
.price-features li svg {
  width: 16px; height: 16px; color: var(--brand-400); flex-shrink: 0; margin-top: 2px;
}

/* ----- CTA strip ----------------------------------------------------- */
.cta-section {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(99,102,241,.18), transparent 70%),
    linear-gradient(135deg, #1e1b4b 0%, #0a0f1e 100%);
  padding: var(--sp-12) var(--sp-6);
  text-align: center;
  color: #fff;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800; color: #fff;
  letter-spacing: var(--tracking-tighter); margin-bottom: var(--sp-3);
  line-height: 1.2;
}
.cta-section p {
  color: rgba(255,255,255,.65);
  font-size: var(--fs-md);
  max-width: 520px; margin: 0 auto var(--sp-6);
}

/* ----- Pricing page extras ------------------------------------------ */
.price-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}
.price-table thead {
  background: var(--slate-900);
}
.price-table th {
  padding: 14px 20px; text-align: left;
  color: rgba(255,255,255,.7);
  font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: var(--tracking-wide);
}
.price-table td {
  padding: 16px 20px;
  font-size: var(--fs-md);
  border-top: 1px solid var(--border-subtle);
}
.price-table tr:hover td { background: var(--bg-muted); }
.price-table .tier-free { color: var(--success-700); font-weight: 700; }
.price-table .tier-paid { color: var(--brand-700); font-weight: 700; }
.price-table strong { color: var(--text-primary); font-weight: 700; }

.calc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.calc-box h2 { font-size: var(--fs-lg); font-weight: 700; color: var(--text-primary); margin-bottom: 6px; letter-spacing: var(--tracking-tight); }
.calc-box p { color: var(--text-tertiary); font-size: var(--fs-base); margin-bottom: var(--sp-4); }
.calc-row {
  display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
}
.calc-label { font-size: var(--fs-base); font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.calc-input {
  width: 120px;
  font-size: 1.1rem; font-weight: 700; color: var(--text-primary);
}
.calc-result {
  flex: 1; min-width: 220px;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.calc-result .label {
  font-size: var(--fs-xs); color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: var(--tracking-wide); font-weight: 700;
  margin-bottom: 2px;
}
.calc-cost {
  font-size: 1.7rem; font-weight: 800; color: var(--text-primary);
  letter-spacing: var(--tracking-tight); line-height: 1;
}
.calc-cost span {
  font-size: var(--fs-sm); font-weight: 500;
  color: var(--text-tertiary); margin-left: 4px;
}
.calc-breakdown {
  font-size: var(--fs-sm); color: var(--text-tertiary);
  margin-top: var(--sp-3); line-height: var(--lh-loose);
}

/* ----- FAQ ----------------------------------------------------------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .12s;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item.open { border-color: var(--brand-200); }
.faq-q {
  padding: 16px 20px;
  font-weight: 600; font-size: var(--fs-md);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  user-select: none; color: var(--text-primary);
  transition: background .12s;
  line-height: var(--lh-snug);
}
.faq-q:hover { background: var(--bg-muted); }
.faq-q::after {
  content: '';
  width: 12px; height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center/contain no-repeat;
  flex-shrink: 0; margin-left: var(--sp-4);
  transition: transform .2s;
}
.faq-item.open .faq-q::after { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 20px 16px;
  color: var(--text-tertiary);
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
}
.faq-item.open .faq-a { display: block; }

/* ----- Marketing nav override (transparent over hero) --------------- */
.appbar.is-marketing { backdrop-filter: blur(12px); background: rgba(10, 15, 30, .8); }

/* ----- Responsive ---------------------------------------------------- */
@media (max-width: 768px) {
  .hero { padding: var(--sp-10) 0 var(--sp-8); }
  .mock-inner { grid-template-columns: 1fr; height: auto; }
  .mock-sidebar { max-height: 140px; overflow: hidden; }
  .mock-map { min-height: 200px; }
  .section { padding: var(--sp-10) var(--sp-5); }
  .trust-inner { flex-direction: column; gap: var(--sp-3); text-align: center; }
}
