/* Shared styles for TapMapp static content pages (About + Learn articles).
   Uses the "Atlas" visual system — kept in sync with src/index.css :root.
   Self-contained: no build step, linked directly from public/*.html. */
:root {
  --bg: #0a1716;
  --bg-deep: #081413;
  --accent: #ff7a4d;
  --accent-ink: #ff9466;
  --brand: #e9c46a;
  --close: #5be0a4;
  --text: #f3eee3;
  --text-2: #aec0ba;
  --text-3: #8a998f;
  --body: #dce4df;
  --hairline: rgba(180, 200, 190, 0.12);
  --border: rgba(233, 196, 106, 0.16);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at 50% -12%, #10312b 0%, transparent 62%),
    var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 40px 22px 96px; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header / nav */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 18px; margin-bottom: 30px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; display: block; }
.brand span {
  font-family: var(--font-display); font-weight: 800;
  font-size: 20px; color: var(--text); letter-spacing: -0.02em;
}
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { color: var(--text-2); }
.nav a:hover { color: var(--text); text-decoration: none; }

/* headings + prose */
.eyebrow {
  color: var(--brand); font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  margin: 0 0 12px;
}
h1 {
  font-family: var(--font-display); color: var(--text);
  font-size: 38px; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px;
}
h2 {
  font-family: var(--font-display); color: var(--text);
  font-size: 24px; line-height: 1.22; letter-spacing: -0.01em; margin: 44px 0 12px;
}
h3 { font-family: var(--font-display); color: var(--text); font-size: 19px; margin: 30px 0 8px; }
p { margin: 0 0 18px; }
strong { color: var(--text); font-weight: 700; }
em { color: var(--text); }
.lede { font-size: 20px; line-height: 1.6; color: var(--text); }
ul, ol { padding-left: 22px; }
li { margin: 7px 0; }
.meta { color: var(--text-3); font-family: var(--font-mono); font-size: 13px; margin: 0 0 28px; }

/* Quick Answer callout */
.callout {
  background: rgba(255, 122, 77, 0.09);
  border: 1px solid rgba(255, 122, 77, 0.22);
  border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 18px 20px; margin: 30px 0;
}
.callout .label {
  margin: 0 0 6px; font-weight: 700; font-family: var(--font-mono);
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; color: var(--accent-ink);
}
.callout p { margin: 0; line-height: 1.6; color: var(--text); }

/* At a Glance table */
table.glance { width: 100%; border-collapse: collapse; margin: 14px 0 30px; font-size: 15.5px; }
table.glance th, table.glance td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
table.glance th { font-weight: 600; color: var(--text-2); width: 42%; }
table.glance td { color: var(--text); }
table.glance tr.headline th, table.glance tr.headline td { color: var(--brand); border-bottom: none; }
table.glance tr.headline td { font-weight: 700; }

/* FAQ accordion */
details.faq {
  border: 1px solid var(--hairline); border-radius: 12px;
  padding: 14px 18px; margin: 10px 0; background: rgba(255, 255, 255, 0.02);
}
details.faq summary {
  font-weight: 700; cursor: pointer; list-style: none;
  color: var(--text); font-family: var(--font-display);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--accent-ink); font-weight: 700; }
details.faq[open] summary::after { content: "\2013"; }
details.faq p { margin: 12px 0 0; color: var(--body); }

/* Learn hub post list */
.post-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.post-list li { margin: 0; }
.post-card {
  display: block; padding: 20px 22px; border: 1px solid var(--hairline);
  border-radius: 14px; background: rgba(255, 255, 255, 0.02);
  transition: border-color .15s ease, background .15s ease;
}
.post-card:hover { border-color: var(--border); background: rgba(233, 196, 106, 0.04); text-decoration: none; }
.post-card .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.post-card h2 { font-size: 21px; margin: 8px 0 6px; }
.post-card p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* CTA button */
.cta {
  display: inline-block; background: var(--accent); color: #1a0f0a;
  font-weight: 800; font-family: var(--font-display);
  padding: 13px 22px; border-radius: 12px; margin: 8px 0 4px;
}
.cta:hover { text-decoration: none; filter: brightness(1.06); }

/* Contact form (support page) */
.tm-form { margin: 10px 0 8px; display: grid; gap: 15px; max-width: 540px; }
.tm-field { display: grid; gap: 6px; }
.tm-field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.tm-field input, .tm-field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--text);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hairline);
  border-radius: 10px; padding: 11px 13px; width: 100%; color-scheme: dark;
}
.tm-field textarea { min-height: 150px; resize: vertical; }
.tm-field input:focus, .tm-field textarea:focus { outline: none; border-color: var(--accent); }
/* Honeypot: kept off-screen (not display:none, which some bots skip). */
.tm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tm-form-submit {
  justify-self: start; background: var(--accent); color: #1a0f0a;
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  border: none; border-radius: 11px; padding: 12px 24px; cursor: pointer;
}
.tm-form-submit:disabled { opacity: 0.6; cursor: default; }
.tm-form-status { min-height: 20px; font-size: 14px; margin: 4px 0 0; }
.tm-form-status.ok { color: var(--close); }
.tm-form-status.err { color: var(--far); }

/* footer */
.site-foot {
  margin-top: 62px; padding-top: 22px; border-top: 1px solid var(--hairline);
  color: var(--text-3); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap;
}
.site-foot a { color: var(--text-3); }
.site-foot a:hover { color: var(--text-2); }

@media (max-width: 560px) {
  h1 { font-size: 30px; }
  .lede { font-size: 18px; }
  .wrap { padding: 28px 18px 72px; }
}
