/* MAP Guardians website mockup — same look as the portal and the product site:
   near-black panels, gold accents, the red "MAP", Cinzel display type. */
:root {
  --bg: #0a0a0a;
  --panel: #0e0e0e;
  --panel-2: #131313;
  --line: #1c1c1c;
  --line-2: #2a2a2a;
  --gold: #c8a84b;
  --gold-hi: #dbb94f;
  --gold-dim: #c8a84b33;
  --red: #d12b2b;
  --text: #e8e8e8;
  --body: #b4b4b4;
  --muted: #8f8f8f;
  --bronze: #b9835a;
  --silver: #b5bcc4;
  --serif: "Cinzel", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #0a0a0a; padding: 8px 14px; font-family: var(--serif); font-weight: 700; z-index: 100; border-radius: 4px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ── type ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--text); line-height: 1.2; margin: 0; letter-spacing: 0.03em; }
h1 { font-size: clamp(30px, 5.2vw, 54px); font-weight: 700; }
h2 { font-size: clamp(23px, 3.4vw, 36px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
.eyebrow { font-family: var(--serif); font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.lede { font-size: clamp(16px, 2vw, 19px); color: var(--body); max-width: 62ch; }
.gold { color: var(--gold); }
.red { color: var(--red); }
.divider { height: 1px; width: 120px; margin: 22px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.divider.left { margin-left: 0; background: linear-gradient(90deg, var(--gold), transparent); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ── header ───────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: #0a0a0aeb; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-word { font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: 0.15em; }
.brand-word .m { color: var(--red); }
.brand-word .g { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-family: var(--serif); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 10px 14px; border-radius: 4px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--gold); background: #c8a84b14; }
.nav .portal { margin-left: 10px; border: 1px solid var(--gold-dim); color: var(--gold); }
.nav .portal:hover { border-color: var(--gold); background: #c8a84b14; color: var(--gold-hi); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); color: var(--gold); border-radius: 4px; padding: 9px 12px; cursor: pointer; font-family: var(--serif); letter-spacing: 0.14em; font-size: 12px; }

/* ── buttons ──────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 30px; font-family: var(--serif); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; border-radius: 4px; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn-primary { background: var(--gold); color: #0a0a0a; }
.btn-primary:hover { background: var(--gold-hi); color: #0a0a0a; }
.btn-ghost { background: transparent; color: var(--gold); border-color: #c8a84b66; font-weight: 600; }
.btn-ghost:hover { border-color: var(--gold); background: #c8a84b14; color: var(--gold-hi); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── hero ─────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 8vw, 100px); text-align: center; background:
  radial-gradient(ellipse at 15% 0%, #c8a84b14 0%, transparent 55%),
  radial-gradient(ellipse at 90% 100%, #d12b2b0d 0%, transparent 60%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, #c8a84b10 1px, transparent 1px); background-size: 36px 36px; pointer-events: none; mask-image: linear-gradient(#000 40%, transparent); }
.hero > .wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero h1 .gold { display: block; }
.hero .lede { margin-inline: auto; }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #3aa655; box-shadow: 0 0 8px #3aa655aa; }
.page-hero { padding: clamp(48px, 7vw, 84px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 10% 0%, #c8a84b12 0%, transparent 55%); }

/* ── sections ─────────────────────────────────────── */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--panel); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }

/* ── tier cards ───────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; align-items: stretch; }
.tier { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 30px 26px 28px; display: flex; flex-direction: column; gap: 16px; transition: border-color .25s, transform .25s; }
.tier:hover { border-color: var(--tier-c, var(--gold)); transform: translateY(-2px); }
.tier::before { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--tier-c), transparent); }
.tier.t-bronze { --tier-c: var(--bronze); }
.tier.t-silver { --tier-c: var(--silver); }
.tier.t-gold { --tier-c: var(--gold); background: linear-gradient(#c8a84b0a, transparent 40%), var(--panel); border-color: #c8a84b44; }
.tier .badge { font-family: var(--serif); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--tier-c); }
.tier h3 { font-size: 22px; }
.tier p { font-size: 15px; }
.tier .tag { align-self: flex-start; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #0a0a0a; background: var(--gold); padding: 3px 10px; border-radius: 99px; font-weight: 600; }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 14.5px; }
.tier li { position: relative; padding-left: 24px; }
.tier li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 6px; border-left: 2px solid var(--tier-c); border-bottom: 2px solid var(--tier-c); transform: rotate(-45deg) translateY(-3px); }
.tier .sub { font-family: var(--serif); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.tier .foot-block { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 8px; }
.tier .foot-block .sub { margin: 0; }
.tier .benefit { color: var(--body); font-size: 14.5px; }
.tier.t-addon { --tier-c: var(--muted); }
.tag.tag-addon { background: transparent; border: 1px solid var(--muted); color: var(--muted); }

/* ── comparison ───────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 560px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--serif); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); background: var(--panel-2); font-weight: 700; }
tbody th { color: var(--text); font-weight: 600; width: 28%; }
tbody tr:last-child > * { border-bottom: 0; }
.matrix td, .matrix thead th:not(:first-child) { text-align: center; }
.matrix td .y { color: var(--gold); font-size: 18px; line-height: 1; }
.matrix td .n { color: #3a3a3a; }

/* ── story / split ────────────────────────────────── */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.prose p + p { margin-top: 1.15em; }
.callout { background: var(--panel); border: 1px solid #c8a84b44; border-radius: 8px; padding: 28px; display: grid; gap: 14px; }
.callout .big { font-family: var(--serif); font-size: 21px; color: var(--text); line-height: 1.35; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.point { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: grid; gap: 10px; }
.point h3 { font-size: 16px; color: #e0d0a0; }
.point p { font-size: 14.5px; }
.icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #c8a84b2a; border-radius: 6px; }
.founders { display: grid; justify-items: center; gap: 18px; text-align: center; }
.founders-photo { width: 100%; max-width: 360px; height: auto; display: block; border-radius: 8px; border: 1px solid #c8a84b44; }
.founders-caption { font-family: var(--serif); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ── cta band ─────────────────────────────────────── */
.cta-band { text-align: center; background: radial-gradient(ellipse at 50% 0%, #c8a84b14, transparent 70%), var(--panel); border-block: 1px solid var(--line); }
.cta-band .lede { margin: 16px auto 28px; }

/* ── form ─────────────────────────────────────────── */
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: clamp(22px, 4vw, 38px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 4px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 130px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #3a3a3a; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px #c8a84b22; }
.field .err { color: #ef6b6b; font-size: 13px; min-height: 0; }
.field.bad input, .field.bad textarea, .field.bad select { border-color: #b94141; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.checks label { display: inline-flex; align-items: center; gap: 9px; text-transform: none; letter-spacing: 0; font-size: 14.5px; color: var(--body); cursor: pointer; }
.checks input { width: 17px; height: 17px; accent-color: var(--gold); padding: 0; }
.form-note { font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: 18px; padding: 12px 14px; border: 1px solid #b94141; border-radius: 4px; background: #b941411a; color: #f0a0a0; font-size: 14px; }
.form-error[hidden] { display: none; }
.demo-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.success { display: none; text-align: center; padding: 34px 20px; border: 1px solid #c8a84b44; border-radius: 8px; background: #c8a84b0a; }
.success h3 { margin: 12px 0 8px; }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 26px; font-weight: 700; color: #c8a84b66; line-height: 1; }
.steps b { display: block; color: var(--text); font-family: var(--serif); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 2px; }

/* ── blog ─────────────────────────────────────────── */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 26px; text-decoration: none; color: inherit; transition: border-color .25s, transform .25s; }
.post-card:hover { border-color: #c8a84b66; transform: translateY(-2px); }
.post-card h3 { font-size: 19px; line-height: 1.3; }
.post-card p { font-size: 14.5px; color: var(--body); flex: 1; }
.post-card .more { font-family: var(--serif); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.meta { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.meta span + span::before { content: "·"; margin-right: 14px; color: #444; }
.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: 34px; background: linear-gradient(#c8a84b0a, transparent 60%), var(--panel); border-color: #c8a84b33; }
.featured h3 { font-size: clamp(22px, 3vw, 30px); }
.article { max-width: 760px; margin: 0 auto; }
.article-head { padding: clamp(40px, 6vw, 72px) 0 28px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.article-head h1 { font-size: clamp(28px, 4.4vw, 44px); margin-bottom: 18px; }
.article-body { padding-bottom: 28px; font-size: 17px; }
.article-body > * + * { margin-top: 1.2em; }
.article-body > p:first-of-type { font-size: 19px; color: #cfcfcf; }
.article-body h2 { font-size: clamp(22px, 3vw, 29px); margin-top: 2.1em; padding-top: 0.2em; color: #e9d9a6; }
.article-body h3 { font-size: 19px; margin-top: 1.8em; color: var(--text); }
.article-body h4 { font-size: 16px; margin-top: 1.5em; }
.article-body ul, .article-body ol { padding-left: 1.3em; display: grid; gap: 0.55em; }
.article-body li::marker { color: var(--gold); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); color: #cfcfcf; font-style: italic; }
.article-body .table-wrap { margin-block: 1.6em; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0 8px; }
.pager a { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); text-decoration: none; transition: border-color .2s; }
.pager a:hover { border-color: #c8a84b66; }
.pager small { font-family: var(--serif); letter-spacing: 0.22em; text-transform: uppercase; font-size: 10.5px; color: var(--gold); }
.pager span { color: var(--text); font-size: 15px; line-height: 1.35; }
.pager .next { text-align: right; }
.article-cta { margin: 48px 0 0; padding: 30px; border: 1px solid #c8a84b44; border-radius: 8px; background: linear-gradient(#c8a84b0d, transparent 70%), var(--panel); display: grid; gap: 14px; justify-items: start; }
.article-cta h3 { font-size: 21px; }

/* ── footer ───────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--panel); padding: 56px 0 34px; margin-top: 0; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot h4 { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.foot a { color: var(--body); text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot p { font-size: 14.5px; max-width: 38ch; margin-top: 14px; }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ── logo pieces ──────────────────────────────────── */
.logo-full { display: flex; flex-direction: column; align-items: center; gap: 22px; font-family: var(--serif); }
.logo-orbit { position: relative; flex: none; }
.logo-orbit canvas { position: absolute; inset: 0; }
.logo-orbit .shield { position: absolute; inset: 0; display: grid; place-items: center; animation: breath 3400ms ease-in-out infinite; }
.logo-word { position: relative; overflow: hidden; padding: 4px 2px; font-weight: 700; letter-spacing: 0.17em; line-height: 1; }
.logo-word .m { color: var(--red); }
.logo-word .g { color: var(--gold); }
.logo-word .sweep { position: absolute; top: 0; bottom: 0; width: 55px; left: -100%; opacity: 0; pointer-events: none; background: linear-gradient(90deg, transparent, #c8a84b33 25%, #c8a84bbb 50%, #c8a84b33 75%, transparent); }
.logo-word .under { height: 1px; margin-top: 7px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(0); transform-origin: left; opacity: 0; }
.logo-tag { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.42em; color: #9a9a9a; text-transform: uppercase; }
.logo-tag::before, .logo-tag::after { content: ""; height: 1px; width: 56px; }
.logo-tag::before { background: linear-gradient(90deg, transparent, #c8a84bcc); }
.logo-tag::after { background: linear-gradient(90deg, #c8a84bcc, transparent); }
@keyframes breath { 0%,100% { filter: drop-shadow(0 0 5px #c8a84b55); } 50% { filter: drop-shadow(0 0 14px #c8a84b99); } }
@keyframes sweepLine { 0% { left: -100%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 120%; opacity: 0; } }
@keyframes underlineGrow { 0% { transform: scaleX(0); opacity: 0; } 20% { transform: scaleX(1); opacity: 1; } 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(0); opacity: 0; } }

/* ── responsive ───────────────────────────────────── */
@media (max-width: 880px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #0a0a0af5; border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 18px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 10px; border-bottom: 1px solid var(--line); }
  .nav .portal { margin: 12px 0 0; text-align: center; }
  .split, .contact-grid, .featured { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .foot { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { width: 100%; }
  .brand-word { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-orbit .shield, .tier, .post-card { animation: none; transition: none; }
  .tier:hover, .post-card:hover { transform: none; }
}

/* ── print: same layout, white page instead of black ── */
@media print {
  :root {
    --bg: #ffffff;
    --panel: #f6f5f2;
    --panel-2: #efeee9;
    --line: #d8d6d0;
    --line-2: #c3c0b8;
    --text: #141414;
    --body: #3a3a3a;
    --muted: #666666;
  }
  * { box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; }
  body { background: #fff; }
  a { color: #141414; text-decoration: underline; }
  .eyebrow, .gold, .brand-word .g, .logo-word .g, .tier .badge, thead th, .foot h4, .nav a[aria-current="page"] { color: #8a6d2c; }
  .red, .brand-word .m, .logo-word .m { color: #a51f1f; }
  .matrix td .n { color: #999; }
  .hero::before { display: none; }
  .hero, .page-hero, .cta-band, .featured, .article-cta { background-image: none; }
  .site-header { position: static; background: #fff; backdrop-filter: none; box-shadow: none; }
  .nav, .menu-btn, .status, .skip, .btn-row, form, .demo-note { display: none !important; }
  @page { margin: 0.6in; }
}
