/* Lamar explainer site — brand palette from assets/brand/BRAND.md + brand-card.html */

:root {
  --ink: #0b1d3a;            /* navy wordmark/text */
  --ink-soft: #33425c;
  --paper: #f7f1e3;          /* comic-paper cream */
  --paper-2: #fffdf7;        /* card surface */
  --accent: #e4572e;         /* comic red-orange — CTAs, links */
  --accent-dark: #c1431f;
  --line: #e2d8c2;
  --halo: 0 2px 16px rgba(255, 255, 255, .95), 0 1px 0 #fff, 0 0 22px rgba(255, 255, 255, .9);
  --hand: "Bradley Hand", "Marker Felt", "Noteworthy", cursive;
  --sans: "Helvetica Neue", Arial, sans-serif;
  --maxw: 880px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration: none; font-weight: 600; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1rem);
  letter-spacing: .2px;
  text-decoration: none;
  border: 2.5px solid var(--ink);
  transition: transform .08s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 0 var(--ink); }
.btn-primary:hover { color: #fff; box-shadow: 0 6px 0 var(--ink); }
.btn-ghost { background: var(--paper-2); color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn-ghost:hover { color: var(--ink); box-shadow: 0 6px 0 var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---- Section rhythm ---- */
section { padding: clamp(48px, 6vw, 88px) 0; }
.section-label {
  font-family: var(--hand);
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem);
  color: var(--accent);
  transform: rotate(-2deg);
  display: inline-block;
  margin-bottom: 10px;
}
h2 {
  font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 18px;
}
p.lead { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); color: var(--ink-soft); }
section p + p { margin-top: 1em; }

/* ---- Hero ---- */
.hero { text-align: center; padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(64px, 9vw, 116px); }
.hero-panel {
  border: 4px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 10px 12px 0 rgba(11, 29, 58, .14);
  background: #cfe3c6;
  margin-bottom: clamp(22px, 3vw, 36px);
}
.hero-panel img, .hero-panel video { display: block; width: 100%; height: auto; }
.wordmark {
  font-size: clamp(3.2rem, 2rem + 9vw, 6rem);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1;
  color: var(--ink);
  text-shadow: var(--halo);
}
.tagline {
  font-size: clamp(1.15rem, 1rem + 1.4vw, 1.9rem);
  font-weight: 600;
  margin-top: 14px;
}
.fix { position: relative; display: inline-block; }
.fix .old { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--ink); }
.fix .hw {
  position: absolute; left: 50%; top: -0.95em;
  transform: translateX(-50%) rotate(-6deg);
  font-family: var(--hand); font-weight: 700; white-space: nowrap; color: var(--accent);
}
.hero .lead { max-width: 620px; margin: 22px auto 28px; }

/* ---- The story ---- */
.story { background: var(--paper-2); border-top: 3px solid var(--line); border-bottom: 3px solid var(--line); }
.pullquote {
  font-family: var(--hand);
  font-size: clamp(1.4rem, 1.1rem + 1.8vw, 2.3rem);
  color: var(--ink);
  border-left: 5px solid var(--accent);
  padding: 6px 0 6px 22px;
  margin: 28px 0;
  transform: rotate(-1deg);
}
.pullquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 1rem; color: var(--ink-soft); margin-top: 8px; font-weight: 600; }
.video-panel {
  border: 4px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 8px 10px 0 rgba(11, 29, 58, .14);
  margin-top: 12px;
  max-width: 620px;
}
.video-panel video, .video-panel img { display: block; width: 100%; height: auto; }
.video-cap { font-family: var(--hand); color: var(--accent); margin-top: 10px; transform: rotate(-1.5deg); display: inline-block; }

/* ---- How it works ---- */
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
.card {
  background: var(--paper-2);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 6px 8px 0 rgba(11, 29, 58, .12);
}
.card .num {
  font-family: var(--hand); font-size: 2rem; color: var(--accent); line-height: 1; display: block; margin-bottom: 8px;
}
.card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.card p { color: var(--ink-soft); }
.flow {
  text-align: center; font-weight: 800; color: var(--ink);
  font-size: clamp(1rem, 0.9rem + 0.7vw, 1.3rem); margin-top: 30px; line-height: 2;
}
.flow code { background: var(--ink); color: var(--paper); padding: 3px 10px; border-radius: 6px; font-size: .9em; }
.flow .arrow { color: var(--accent); padding: 0 6px; }

/* ---- Install ---- */
.install { background: var(--ink); color: var(--paper); }
.install .section-label { color: #ffd9a0; }
.install h2 { color: #fff; }
.install p { color: #cdd7e6; }
pre {
  background: #07142a;
  border: 1px solid #1d3559;
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 18px 0;
}
pre code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92rem; color: #e8eef7; line-height: 1.7; }
.cmt { color: #7f93b3; }
.cost { font-size: .98rem; color: #aebbcf; border-left: 3px solid var(--accent); padding-left: 14px; margin-top: 8px; }

/* ---- Footer ---- */
footer { text-align: center; padding: 48px 0 60px; color: var(--ink-soft); font-size: .95rem; }
footer .small { margin-top: 8px; font-size: .88rem; }

/* ---- Tablet+ ---- */
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .story-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }
}
