/* ═══════════════════════════════════════════
   TapTheMap — Marketing Pages
   Shared stylesheet
   ═══════════════════════════════════════════ */

:root {
  --accent:        #1A6FA8;
  --accent-dark:   #145882;
  --accent-light:  #E8F2FA;
  --text:          #1a1a1a;
  --text-mid:      #3d4451;
  --text-muted:    #6b7280;
  --surface:       #fafaf8;
  --card:          #ffffff;
  --border:        #e5e5e0;
  --green:         #1E8449;
  --green-light:   #E8F6EE;
  --red-light:     #FEF2F2;
  --amber-light:   #FEF9E7;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 2px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --max-width:     1080px;
  --transition:    0.2s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
}


/* ── Navigation ── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.95);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.nav-wordmark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--accent-light);
  color: var(--accent);
}

.nav-links .btn-nav {
  background: var(--accent);
  color: white;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
}

.nav-links .btn-nav:hover {
  background: var(--accent-dark);
  color: white;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform var(--transition);
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 14px; }
  .nav-links .btn-nav { text-align: center; }
}


/* ── Sections ── */

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

@media (max-width: 640px) {
  .section { padding: 48px 20px; }
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 640px;
  line-height: 1.7;
}


/* ── Hero ── */

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

.hero-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.12;
  color: var(--text);
  letter-spacing: -1px;
  margin-bottom: 20px;
  max-width: 720px;
}

.hero-headline em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-mid);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform 0.1s ease, box-shadow var(--transition);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(26, 111, 168, 0.25);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}


/* ── Cards ── */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.card-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 768px) {
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
}


/* ── Steps ── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
  counter-reset: step;
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
}

.step {
  position: relative;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}

.step h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 18px;
  margin-bottom: 6px;
}

.step p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}


/* ── FAQ / Accordion ── */

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--accent-light); }

.faq-chevron {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 600px; }


/* ── Comparison Table ── */

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 14px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.compare-table thead th {
  background: var(--accent);
  color: white;
  font-weight: 600;
  padding: 14px 16px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.compare-table thead th:first-child { text-align: left; }

.compare-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--text-mid);
}

.compare-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.compare-table tbody tr:nth-child(even) { background: #fafbfc; }
.compare-table tbody tr:last-child td { border-bottom: none; }

.check { color: var(--green); font-weight: 700; }
.cross { color: #c0392b; }

@media (max-width: 640px) {
  .compare-table { font-size: 12px; }
  .compare-table thead th,
  .compare-table tbody td { padding: 10px 8px; }
}


/* ── Forms ── */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-label .optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 111, 168, 0.12);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}


/* ── Callout ── */

.callout {
  padding: 20px 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  margin: 24px 0;
}

.callout-green {
  border-left-color: var(--green);
  background: var(--green-light);
}

.callout strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text);
}

.callout p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}


/* ── Divider ── */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}


/* ── Footer ── */

.footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-mark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 16px;
  color: var(--text);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-contact {
  font-size: 14px;
  color: var(--text-mid);
}

.footer-contact a {
  color: var(--accent);
  text-decoration: none;
}

.footer-contact a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; }
}


/* ── Utility ── */

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.bg-muted { background: var(--surface); }
