/* ──────────────────────────────────────────────────────────
   GEO SERVICE PAGE — page-specific styles.
   Depends on tokens.css and base.css. Loaded only by templates/geo.html.

   The copy lives in content/geo.md (so the Markdown twin carries the whole
   offer), which means layout rules map Markdown structures to the site's
   data-plate language instead of hand-built markup:

     h2 + ul   → grid of items (deliverables, audience, objections)
     h2 + ol   → ordered process steps with a mono step number
     table     → data table
     h3 + p    → FAQ question and answer

   Any new section in content/geo.md picks those up automatically.
   ────────────────────────────────────────────────────────── */

.geo-main { background: var(--paper); }

/* ── HERO ── */
.geo-hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 152px clamp(24px, 5vw, 96px) 0;
  overflow: hidden;
}
.geo-hero .corner-mark { color: var(--rule-dark); top: 88px; }
.geo-hero-inner { max-width: 1200px; margin: 0 auto; }
.geo-hero-label { color: var(--gray-5); }
.geo-hero-h1 {
  margin-top: 26px;
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--paper);
  max-width: 24ch;
}
.geo-hero-lead {
  margin-top: 26px;
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-4);
  max-width: 66ch;
}
.geo-hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* Buttons */
.geo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}
.geo-btn-primary {
  background: var(--paper);
  color: var(--ink);
  padding: 14px 26px;
  transition: background 0.2s;
}
.geo-btn-primary:hover { background: var(--gray-1); }
.geo-btn-ghost {
  color: var(--gray-4);
  font-weight: 400;
  border-bottom: 1px solid var(--rule-dark);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.geo-btn-ghost:hover { color: var(--paper); border-color: var(--gray-5); }

/* Data plate — the signature element: the instrument, drawn as a figure. */
.geo-plate {
  max-width: 1200px;
  margin: 80px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule-dark);
}
.geo-plate-cell {
  padding: 22px 24px 26px 0; /* gap before the divider */
  border-right: 1px solid var(--rule-dark);
}
.geo-plate-cell + .geo-plate-cell { padding-left: 24px; } /* gap after the divider */
.geo-plate-cell:last-child { border-right: none; }
.geo-plate dt {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-5);
}
.geo-plate dd {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--gray-3);
}

/* ── BODY ── */
.geo-body { padding: clamp(64px, 9vw, 120px) clamp(24px, 5vw, 96px); background: var(--paper); }
.geo-content {
  max-width: 860px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink);
}
.geo-content p { margin-bottom: 22px; max-width: 72ch; }
.geo-content h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 64px 0 20px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-soft);
  scroll-margin-top: 88px;
}
.geo-content h3 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 40px 0 12px;
  scroll-margin-top: 88px;
}
.geo-content > :first-child { margin-top: 0; border-top: none; padding-top: 0; }
.geo-content strong { font-weight: 500; color: var(--ink); }
.geo-content em { font-family: var(--font-serif); font-style: italic; }
.geo-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gray-3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.geo-content a:hover { text-decoration-color: var(--ink); }
/* Plain lists keep the site's own bullet treatment; the grid mapping below is
   only for lists that sit directly under a section header. */
.geo-content ul,
.geo-content ol { padding-left: 24px; margin: 0 0 24px; }
.geo-content li { margin-bottom: 10px; max-width: 68ch; line-height: 1.65; }
.geo-content hr { border: none; border-top: 1px solid var(--rule-soft); margin: 56px 0; }
.geo-content blockquote {
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  padding: 20px 0;
  margin: 28px 0;
  color: var(--gray-6);
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
}

/* List directly under a section header → grid of items. */
.geo-content h2 + ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  padding-left: 0;
  margin-top: 28px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}
.geo-content h2 + ul > li {
  background: var(--paper);
  padding: 22px 24px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--gray-6);
  max-width: none;
}
.geo-content h2 + ul > li strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}
/* Odd item counts leave a hole in the last row — let the last item fill it. */
.geo-content h2 + ul:has(> li:nth-child(odd):last-child) > li:last-child { grid-column: 1 / -1; }

/* Ordered list under a section header → process steps, numbered in mono. */
.geo-content h2 + ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  list-style: none;
  padding-left: 0;
  margin-top: 28px;
  counter-reset: geo-step;
}
.geo-content h2 + ol > li {
  counter-increment: geo-step;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--gray-6);
  max-width: none;
}
.geo-content h2 + ol > li::before {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gray-5);
  content: counter(geo-step, decimal-leading-zero);
}
.geo-content h2 + ol > li strong { display: block; margin-bottom: 6px; font-size: 15px; }

/* Data table */
.geo-content table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 13.5px; }
.geo-content thead th {
  padding: 0 16px 12px 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  color: var(--gray-6);
}
.geo-content tbody td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
  line-height: 1.55;
  color: var(--gray-6);
}
.geo-content tbody td:first-child { width: 34%; color: var(--ink); }

/* ── CLOSING CTA ── */
.geo-cta {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 9vw, 112px) clamp(24px, 5vw, 96px);
}
.geo-cta .corner-mark { color: var(--rule-dark); }
.geo-cta-inner { max-width: 860px; margin: 0 auto; }
.geo-cta .label-mono { color: var(--gray-5); }
.geo-cta-h2 {
  margin-top: 22px;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.geo-cta-h2 em { font-family: var(--font-serif); font-style: italic; color: var(--gray-3); }
.geo-cta-desc {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-4);
  max-width: 62ch;
}
.geo-cta .geo-hero-actions { margin-top: 32px; }

/* ── QUALITY FLOOR ── */
.geo-main a:focus-visible,
.geo-main button:focus-visible { outline: 2px solid var(--gray-5); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .geo-main *, .geo-main *::before { animation: none !important; transition: none !important; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .geo-plate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Two columns: row starts go back to the hero's left edge, and trailing
     cells give up the padding that was holding space for a divider. */
  .geo-plate-cell:nth-child(odd) { padding-left: 0; }
  .geo-plate-cell:nth-child(2n) { border-right: none; padding-right: 0; }
  .geo-content h2 + ul,
  .geo-content h2 + ol { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .geo-hero { padding-top: 112px; }
  .geo-hero .corner-mark { top: 76px; }
  .geo-hero-h1 { max-width: none; }
  .geo-content tbody td:first-child { width: auto; }
}
@media (max-width: 640px) {
  .geo-content table { display: block; overflow-x: auto; }
}
