/* Shared styles for Longtael SEO/AEO pages — Comparison, How It Works, FAQ.
   Carries D3's visual DNA (Bricolage Grotesque, Caveat, Coral palette) into
   pages that are heavier on content and lighter on theatrics. No JS — pure
   semantic HTML so crawlers (and answer engines) get the cleanest possible
   extraction. */

:root {
  --paper:  #FFF8F4;
  --ink:    #2A1810;
  --soft:   #FCE4D6;
  --softer: #FDEEE3;
  --accent: #E94B3C;
  --muted:  #7A5E4A;
  --rule:   #E8D5C5;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

.hand { font-family: 'Caveat', cursive; font-weight: 600; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace;
        font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ─── layout ──────────────────────────────────────────────────────────── */

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ─── masthead ────────────────────────────────────────────────────────── */

.masthead { /* no divider line */ }
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: block;
}
.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  opacity: 0.7;
  transition: opacity .12s;
}
.nav a:hover { opacity: 1; }
.nav a[aria-current="page"] {
  opacity: 1;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.nav-cta {
  background: var(--accent);
  color: var(--paper) !important;
  opacity: 1 !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.nav-cta:hover { transform: translateY(-1px); }

/* ─── page hero ──────────────────────────────────────────────────────── */

.page-hero {
  padding: 64px 0 48px;
}
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-variation-settings: 'wdth' 95;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  text-wrap: balance;
}
h1 .accent { color: var(--accent); }
.lede {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.85;
  max-width: 680px;
  margin: 0;
  text-wrap: pretty;
}

/* ─── section + headings ─────────────────────────────────────────────── */

section { padding: 32px 0; }
section + section { padding-top: 16px; }

h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-variation-settings: 'wdth' 95;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 48px 0 16px;
  text-wrap: balance;
}
h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 24px 0 8px;
}
p { margin: 0 0 16px; text-wrap: pretty; }
p + p { margin-top: 0; }
strong { font-weight: 700; color: var(--ink); }
em { font-style: italic; }

/* Inline body links inside the article take the coral accent, not the
   browser-default blue. CTA buttons, masthead nav, and footer links are
   styled separately and unaffected. */
article p a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(233, 75, 60, 0.55);
  transition: color .12s, text-decoration-color .12s;
}
article p a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

/* ─── comparison table ───────────────────────────────────────────────── */

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 40px 0 24px;
  font-size: 15px;
  background: transparent;
}
.compare-table caption {
  text-align: left;
  padding: 0 0 16px;
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.compare-table thead th {
  text-align: left;
  padding: 14px 20px 18px;
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  border-bottom: 2px solid var(--ink);
  vertical-align: bottom;
  color: var(--ink);
}
.compare-table thead th:first-child {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.compare-table thead th.col-us {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.compare-table tbody th {
  text-align: left;
  padding: 22px 20px 22px 0;
  font-weight: 700;
  font-size: 15px;
  width: 22%;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink);
  background: transparent;
}
.compare-table tbody td {
  padding: 22px 20px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  font-size: 15px;
  line-height: 1.55;
  background: transparent;
}
.compare-table tbody td.col-them {
  color: var(--muted);
}
.compare-table tbody td.col-us {
  color: var(--ink);
  font-weight: 500;
  background: rgba(233, 75, 60, 0.06);
}
.compare-table tbody tr:first-child td.col-us { border-top-left-radius: 10px; border-top-right-radius: 10px; }
.compare-table tbody tr:last-child td.col-us  { border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }

/* ─── article body lists ─────────────────────────────────────────────── */

article ul {
  margin: 18px 0;
  padding: 0 0 0 22px;
}
article ul li {
  margin-bottom: 10px;
  line-height: 1.55;
  padding-left: 4px;
}
article ul li::marker {
  color: var(--accent);
}
article ul li:last-child { margin-bottom: 0; }

/* ─── how-it-works steps ─────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px 28px 28px 84px;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 28px;
  left: 28px;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 38px;
  color: var(--accent);
  line-height: 1;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 24px;
}
.step p { margin: 0; opacity: 0.85; }
.step + .step::after {
  /* dotted connector dropping into the next card */
  content: '';
  position: absolute;
  top: -16px;
  left: 50px;
  width: 1px;
  height: 16px;
  background: repeating-linear-gradient(to bottom, var(--muted) 0 3px, transparent 3px 6px);
}

/* ─── faq ────────────────────────────────────────────────────────────── */

.faq-group {
  margin-bottom: 40px;
}
.faq-group h2 {
  font-size: 18px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 48px 0 16px;
  font-weight: 600;
}
.faq-group h2:first-of-type { margin-top: 16px; }

details {
  border-bottom: 1px solid var(--rule);
  padding: 4px 0;
}
details summary {
  cursor: pointer;
  padding: 18px 32px 18px 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  position: relative;
  list-style: none;
  color: var(--ink);
  transition: color .12s;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  transition: transform .15s;
}
details[open] summary::after { content: '−'; }
details summary:hover { color: var(--accent); }
details .answer {
  padding: 0 0 22px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.85;
}
details .answer p:last-child { margin-bottom: 0; }

/* ─── callout / cta ─────────────────────────────────────────────────── */

.callout {
  background: var(--soft);
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
  font-size: 18px;
  line-height: 1.5;
}
.callout strong { font-weight: 700; }

.cta-block {
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px;
  padding: 48px 40px;
  margin: 64px 0 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.cta-block h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 36px);
  color: var(--paper);
}
.cta-block p {
  margin: 0;
  font-size: 17px;
  opacity: 0.85;
  max-width: 520px;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  background: var(--accent);
  color: var(--paper);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(0,0,0,0.15);
  transition: transform .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.cta-button:hover { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.15); }
.cta-button .arrow { font-size: 22px; }

/* ─── footer ─────────────────────────────────────────────────────────── */

footer.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 64px;
  padding: 32px 56px;
}
.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer-inner a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 16px;
}
.site-footer-inner a:hover { color: var(--ink); }

/* ─── responsive ──────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .masthead-inner { padding: 20px 28px; }
  .shell { padding: 0 28px; }
  footer.site-footer { padding: 24px 28px; }
  .nav { gap: 16px; font-size: 14px; }
  .nav a { white-space: nowrap; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }
  .page-hero { padding: 48px 0 32px; }
  .compare-table { font-size: 14px; }
  .compare-table thead th,
  .compare-table tbody th,
  .compare-table tbody td { padding: 14px 12px; }
  .cta-block { grid-template-columns: 1fr; padding: 32px 24px; }
}

@media (max-width: 540px) {
  .masthead-inner { padding: 14px 20px; }
  .brand-name { font-size: 19px; }
  .brand-logo { width: 30px; height: 30px; }
  .nav { gap: 0; }
  .nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 8px 16px; font-size: 13px; white-space: nowrap; }
}
