/* GovLens landing — neobrutalist, matches the extension UI */

:root {
  --bg:        #f9f7f1;
  --paper:     #ffffff;
  --ink:       #0d0d0d;
  --muted:     #444;
  --soft:      #e6e2d6;
  --soft-2:    #d8d2c0;
  --red:       #d61b1b;
  --red-d:     #a91414;
  --yellow:    #ffd91a;
  --yellow-d:  #ddba00;
  --blue:      #1855d6;
  --blue-d:    #103e9c;
  --green:     #137b3b;
  --shadow:    6px 6px 0 0 var(--ink);
  --shadow-md: 4px 4px 0 0 var(--ink);
  --shadow-sm: 3px 3px 0 0 var(--ink);
  --shadow-tight: 2px 2px 0 0 var(--ink);
  --border:    2px solid var(--ink);
  --border-thick: 3px solid var(--ink);
}

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

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }

code, pre {
  font-family: 'Space Mono', monospace;
  font-size: 0.92em;
  background: var(--soft);
  padding: 2px 6px;
  border: 1px solid var(--ink);
}
pre {
  display: block;
  padding: 12px 14px;
  overflow-x: auto;
  background: var(--ink);
  color: var(--bg);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  margin-top: 10px;
}
pre code { background: transparent; border: none; padding: 0; color: inherit; }

.tricolour {
  height: 8px;
  background: linear-gradient(to right,
    #ff6b00 0 33.33%,
    #fff 33.33% 66.66%,
    var(--green) 66.66% 100%);
  border-bottom: var(--border);
}

/* ───────────── nav ───────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: var(--yellow);
  border-bottom: var(--border);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 4px 0 0 var(--ink);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px;
}
.logo-mark {
  width: 38px; height: 38px;
  background: var(--ink); color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 15px;
  border: var(--border); box-shadow: var(--shadow-tight);
}
.nav-links {
  display: flex; align-items: center; gap: 24px;
  font-weight: 500; font-size: 14px;
}
.nav-links a:not(.cta-mini):hover { text-decoration: underline; text-decoration-thickness: 3px; }
.cta-mini {
  background: var(--ink); color: var(--yellow);
  padding: 8px 14px;
  border: var(--border); box-shadow: var(--shadow-tight);
  font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.5px;
  transition: transform 0.06s, box-shadow 0.06s;
}
.cta-mini:hover { background: var(--red); color: var(--paper); }
.cta-mini:active { transform: translate(2px, 2px); box-shadow: 0 0 0 0 var(--ink); }

@media (max-width: 720px) {
  .nav { padding: 12px 16px; }
  .nav-links a:not(.cta-mini) { display: none; }
}

/* ───────────── hero ───────────── */
.hero {
  padding: 56px 32px 64px;
  border-bottom: var(--border);
}
.hero-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block;
  font-family: 'Space Mono', monospace; font-size: 12px;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  background: var(--ink); color: var(--yellow);
  padding: 4px 8px;
  margin-bottom: 16px;
}
.eyebrow.center { display: block; text-align: center; width: max-content; margin: 0 auto 20px; }
.eyebrow.yellow { background: var(--yellow); color: var(--ink); }

.hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hl-yellow {
  background: var(--yellow);
  padding: 0 8px;
  border: var(--border);
  box-shadow: var(--shadow-md);
  display: inline-block;
}
.lede {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 56ch;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.btn {
  display: inline-block;
  padding: 14px 22px;
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.5px; text-transform: uppercase;
  border: var(--border); box-shadow: var(--shadow);
  background: var(--paper); color: var(--ink);
  transition: transform 0.06s, box-shadow 0.06s, background 0.1s;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--yellow); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 0 var(--ink); }
.btn.primary { background: var(--red); color: var(--paper); }
.btn.primary:hover { background: var(--red-d); color: var(--paper); }
.btn.ghost { background: var(--paper); }

.trust-row {
  display: flex; gap: 22px; flex-wrap: wrap;
  font-family: 'Space Mono', monospace; font-size: 12px;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* mock-up */
.hero-mock { display: flex; justify-content: center; }
.mock-window {
  width: 100%; max-width: 540px;
  background: var(--paper);
  border: var(--border-thick);
  box-shadow: 12px 12px 0 0 var(--ink);
  transform: rotate(-1.2deg);
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  background: var(--soft);
  padding: 8px 12px;
  border-bottom: var(--border);
}
.mock-dot {
  width: 12px; height: 12px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
}
.mock-url {
  margin-left: 12px;
  font-family: 'Space Mono', monospace; font-size: 12px;
  color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 320px;
}
.mock-page {
  padding: 16px;
  border-right: var(--border);
  background: var(--paper);
}
.mock-h { font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.mock-p {
  font-size: 12px; color: var(--muted); margin-bottom: 8px;
  line-height: 1.5;
}
.mock-side { padding: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.mock-card {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow-tight);
  padding: 9px 11px;
}
.mock-card.mock-yellow { background: var(--yellow); }
.mock-card.mock-red { background: var(--red); color: var(--paper); }
.mock-tag {
  font-family: 'Space Mono', monospace; font-size: 9px;
  background: var(--ink); color: var(--yellow);
  padding: 2px 5px;
  display: inline-block;
  letter-spacing: 1px; font-weight: 700;
  margin-bottom: 6px;
}
.mock-tag.tag-blue { background: var(--blue); color: var(--paper); }
.mock-tag.tag-yellow { background: var(--yellow); color: var(--ink); }
.mock-row, .mock-li {
  font-family: 'Space Mono', monospace; font-size: 11px;
  margin-bottom: 3px;
}
.mock-li.small { font-size: 9.5px; opacity: 0.85; }
.mock-progress {
  height: 8px; background: var(--paper); border: 1.5px solid var(--ink);
  margin-top: 6px;
}
.mock-progress span {
  display: block; height: 100%; width: 62%;
  background: var(--blue);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock-window { transform: rotate(0); }
}

/* ───────────── section primitive ───────────── */
.section {
  padding: 80px 32px;
  border-bottom: var(--border);
}
.section.dark {
  background: var(--ink);
  color: var(--bg);
}
.section.dark .section-title { color: var(--bg); }
.section-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 48px;
  max-width: 22ch;
  margin-left: auto; margin-right: auto;
}
.section-title.light { color: var(--bg); }

/* ───────────── pillars ───────────── */
.pillars-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.pillar-card {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.1s, box-shadow 0.1s;
}
.pillar-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 0 var(--ink); }
.pillar-card.alt { background: var(--yellow); }
.pillar-num {
  position: absolute; top: 16px; right: 16px;
  font-family: 'Space Mono', monospace; font-size: 14px;
  font-weight: 700;
  background: var(--ink); color: var(--yellow);
  padding: 4px 8px;
}
.pillar-icon { font-size: 38px; margin-bottom: 16px; }
.pillar-card h3 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.pillar-card p { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.pillar-card.alt p { color: var(--ink); }
.pillar-card ul { list-style: none; }
.pillar-card li {
  font-family: 'Space Mono', monospace; font-size: 12px;
  padding: 6px 0;
  border-top: 1px dashed var(--ink);
}
.pillar-card li:before { content: '▸ '; font-weight: 700; }

@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

/* ───────────── features ───────────── */
.features-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feat {
  background: var(--bg);
  color: var(--ink);
  border: var(--border);
  box-shadow: var(--shadow-md);
  padding: 24px;
  transition: transform 0.1s;
}
.feat:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 var(--bg); }
.feat-icon { font-size: 28px; margin-bottom: 10px; }
.feat h4 {
  font-size: 18px; font-weight: 800; margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.feat p { font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ───────────── install ───────────── */
.install-steps {
  max-width: 800px; margin: 0 auto;
  list-style: none;
  display: flex; flex-direction: column; gap: 22px;
}
.install-steps li {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow-md);
  padding: 24px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: start;
}
.step-num {
  font-family: 'Space Mono', monospace;
  font-size: 38px; font-weight: 700;
  background: var(--yellow);
  color: var(--ink);
  border: var(--border);
  box-shadow: var(--shadow-tight);
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
}
.step-body h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.step-body p { color: var(--muted); margin-bottom: 8px; }

.cta-banner {
  max-width: 1100px;
  margin: 56px auto 0;
  background: var(--red);
  color: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.cta-banner h3 { font-size: 22px; font-weight: 800; line-height: 1.2; }
.cta-banner code { background: var(--ink); color: var(--yellow); border-color: var(--paper); }

@media (max-width: 720px) {
  .install-steps li { grid-template-columns: 1fr; }
  .cta-banner { padding: 20px; }
}

/* ───────────── faq ───────────── */
.faq-list {
  max-width: 800px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px;
}
.faq-list details {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow-tight);
  padding: 16px 20px;
  cursor: pointer;
  transition: box-shadow 0.1s;
}
.faq-list details[open] {
  box-shadow: var(--shadow-md);
  background: var(--yellow);
}
.faq-list summary {
  font-weight: 700; font-size: 16px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::after { content: '＋'; font-size: 22px; font-weight: 700; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.faq-list details[open] p { color: var(--ink); }

/* ───────────── footer ───────────── */
.foot {
  background: var(--ink);
  color: var(--bg);
  padding: 48px 32px 24px;
}
.foot-grid {
  max-width: 1200px; margin: 0 auto 32px;
  display: flex; justify-content: space-between; align-items: start;
  flex-wrap: wrap; gap: 24px;
}
.foot-logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 22px; font-weight: 800;
  margin-bottom: 8px;
}
.foot-logo .logo-mark {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--bg);
}
.foot-tag {
  font-family: 'Space Mono', monospace; font-size: 13px;
  color: var(--soft-2);
}
.foot-links {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px;
}
.foot-links a:hover { color: var(--yellow); }
.foot-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--soft-2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: 'Space Mono', monospace; font-size: 11px;
  color: var(--soft-2);
  text-transform: uppercase; letter-spacing: 1px;
}
