/*
 * chippie-marketing.css — shared design system for all public marketing pages.
 *
 * Single source of truth for the Chippie marketing theme (warm sandstone
 * palette, Space Grotesk / General Sans / IBM Plex Mono typography). Every
 * standalone public page links this file instead of Bootstrap.
 *
 * Palette origin: research-result.md §3. Mirrors the embedded design system
 * in templates/landing.html — when the palette changes, change it here.
 *
 * Page-specific styles belong in a small embedded <style> block on the page,
 * not in this file. This file only holds genuinely shared rules.
 */

:root {
  --orange:      #E85D1F;  /* Hi-Vis Orange — accents, divider rule */
  --orange-deep: #C44A14;
  --black:       #1A1A1A;  /* Worksite Black — CTAs, body text */
  --green:       #2E5D3B;  /* Ironbark Green — sub-headings */
  --green-paid:  #3F7F58;
  --sandstone:   #F7F1E6;  /* warm base */
  --white:       #FFFFFF;
  --text-2:      #5A5A5A;
  --border:      #E7E1D4;
  --yellow:      #D9A21B;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--black); background: var(--sandstone);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Space Grotesk", sans-serif; font-weight: 700;
  line-height: 1.1; margin: 0; }
p { margin: 0 0 1rem; }
a { color: var(--green); }
img { max-width: 100%; }
.mono { font-family: "IBM Plex Mono", monospace; font-weight: 600; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.text-center { text-align: center; }
.muted { color: var(--text-2); }

/* ---------- Top accent bar ---------- */
.top-bar { height: 6px; background: var(--orange); }

/* ---------- Nav (CSS-only responsive, no JS dependency) ---------- */
.site-nav { background: var(--sandstone); border-bottom: 1px solid var(--border); }
.site-nav .wrap { display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; padding-bottom: 12px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none;
  flex-shrink: 0; }
.nav-brand .louie-crop { position: relative; width: 46px; height: 60px;
  overflow: hidden; flex-shrink: 0; display: block; }
.nav-brand .louie-crop img { position: absolute; top: 50%; left: 50%;
  width: 94px; height: 94px; transform: translate(-50%, -50%); object-fit: contain; }
.nav-brand .name { font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 34px; letter-spacing: -0.03em; color: var(--black); }
.nav-brand .chippie-wordmark { height: 42px; width: auto; display: block; }
.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; padding: 8px; font-size: 26px;
  color: var(--black); line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--black); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: var(--orange); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: "General Sans", sans-serif; font-weight: 600;
  font-size: 16px; text-decoration: none; padding: 15px 28px; border-radius: 8px;
  cursor: pointer; border: 2px solid transparent; text-align: center; }
.btn-primary { background: var(--black); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-play { background: var(--orange); color: #fff;
  box-shadow: 0 6px 18px rgba(232, 93, 31, 0.32);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.btn-play:hover { background: var(--orange-deep);
  box-shadow: 0 8px 22px rgba(232, 93, 31, 0.42); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn-ghost:hover { background: rgba(0,0,0,0.05); }
.btn-lg { padding: 17px 34px; font-size: 17px; }
.btn-block { display: block; width: 100%; }

/* ---------- Eyebrow / pills / badges ---------- */
.eyebrow { font-family: "IBM Plex Mono", monospace; font-weight: 600;
  font-size: 13px; letter-spacing: 0.14em; color: var(--orange);
  text-transform: uppercase; }
.pill { display: inline-block; font-family: "IBM Plex Mono", monospace;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; padding: 5px 13px;
  border-radius: 999px; background: rgba(232,93,31,0.12); color: var(--orange-deep); }
.pill-green { background: rgba(63,127,88,0.14); color: var(--green); }
.pill-yellow { background: rgba(217,162,27,0.16); color: #9a7414; }

/* ---------- Hero band ---------- */
.hero-band { text-align: center; padding: 60px 0 64px; }
.hero-band h1 { font-size: 54px; letter-spacing: -0.02em;
  max-width: 18ch; margin: 16px auto 18px; }
.hero-band .lead { font-size: 19px; color: var(--text-2);
  max-width: 56ch; margin: 0 auto 26px; }
.hero-chips { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.hero-chips span { font-size: 14px; color: var(--text-2); }
.hero-chips i { color: var(--green-paid); margin-right: 6px; }

/* ---------- Section heading ---------- */
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head h2 { font-size: 36px; letter-spacing: -0.01em; margin-bottom: 10px; }
.sec-head p { color: var(--text-2); margin: 0; }

/* ---------- Generic card grid ---------- */
.card-grid { display: grid; gap: 20px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.m-card { background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px; }
.m-card--link { text-decoration: none; color: var(--black); display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease; }
.m-card--link:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.m-card h3 { font-size: 19px; margin-bottom: 8px; }
.m-card p { font-size: 15px; color: var(--text-2); margin: 0; }
.m-card .ico { width: 56px; height: 56px; border-radius: 12px;
  background: rgba(232,93,31,0.1); display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px; }
.m-card .ico i { font-size: 1.6rem; color: var(--orange); }

/* ---------- Check list ---------- */
.check-list { list-style: none; padding: 0; margin: 22px 0; }
.check-list li { position: relative; padding: 9px 0 9px 28px;
  border-bottom: 1px solid var(--border); font-size: 15.5px; }
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: "✓"; position: absolute; left: 0;
  color: var(--green-paid); font-weight: 700; }
.check-list strong { color: var(--black); }

/* ---------- Two-column feature row ---------- */
.feat-row { display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center; }
.feat-row--rev > :first-child { order: 2; }

/* ---------- Pricing tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tier { background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 30px; position: relative; }
.tier.popular { border-color: var(--orange); border-width: 2px; }
.tier-pop-tag { position: absolute; top: -13px; left: 30px; background: var(--orange);
  color: #fff; font-family: "IBM Plex Mono", monospace; font-size: 11px;
  font-weight: 600; padding: 4px 12px; border-radius: 5px; letter-spacing: 0.06em; }
.tier-name { font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 22px; }
.tier-price { font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 46px; margin: 8px 0 2px; }
.tier-price small { font-size: 16px; color: var(--text-2);
  font-family: "General Sans", sans-serif; font-weight: 400; }
.tier-note { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }
.tier .check-list { margin: 16px 0 22px; }
.tier .check-list li { font-size: 14.5px; }

/* ---------- FAQ (native <details>, no JS) ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: 19px; padding: 20px 36px 20px 0; cursor: pointer; position: relative;
  list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 16px;
  font-size: 26px; font-weight: 400; color: var(--orange); line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 0 22px; color: #2a2a2a; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Comparison table ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: var(--white);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left;
  border-bottom: 1px solid var(--border); font-size: 15px; }
.compare-table thead th { font-family: "Space Grotesk", sans-serif;
  background: var(--sandstone); font-size: 14px; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .col-chippie { background: rgba(232,93,31,0.06); }
.compare-table .yes { color: var(--green-paid); font-weight: 700; }
.compare-table .no { color: #b94a36; font-weight: 700; }

/* ---------- Prose (articles, long-form content) ---------- */
.prose { font-size: 17.5px; line-height: 1.72; }
.prose h2 { font-size: 30px; margin: 44px 0 14px; }
.prose h3 { font-size: 23px; margin: 32px 0 10px; }
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem; padding-left: 24px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--orange-deep); }
.prose blockquote { border-left: 3px solid var(--orange); margin: 24px 0;
  padding: 4px 0 4px 22px; color: var(--text-2); font-style: italic; }
.prose img { border-radius: 12px; margin: 24px 0; }
.prose code { font-family: "IBM Plex Mono", monospace; font-size: 0.9em;
  background: var(--white); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 15.5px; display: block; overflow-x: auto; }
.prose table thead { background: var(--bg-2, #faf8f5); }
.prose table th, .prose table td {
  border: 1px solid var(--border); padding: 10px 14px;
  text-align: left; vertical-align: top; }
.prose table th { font-weight: 600; color: var(--text-1); }
.prose table tr:nth-child(even) td { background: rgba(0,0,0,0.015); }

/* ---------- Cross-link list ---------- */
.cross-links-head { font-size: 20px; margin-bottom: 14px; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 7px 0; border-bottom: 1px solid var(--border);
  font-size: 15.5px; }
.link-list li:last-child { border-bottom: none; }
.link-list a { color: var(--green); text-decoration: none; }
.link-list a:hover { color: var(--orange); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; background: var(--orange); }
.cta-band h2 { font-size: 40px; color: #fff; margin-bottom: 8px; }
.cta-band p { color: #ffe7d6; margin-bottom: 26px; }
.cta-band .btn-play { background: #fff; color: var(--orange-deep);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22); }
.cta-band .btn-play:hover { background: var(--sandstone); color: var(--orange-deep);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
.cta-band .cta-chips { margin-top: 22px; display: flex; gap: 22px;
  justify-content: center; flex-wrap: wrap; }
.cta-band .cta-chips span { font-size: 14px; color: #ffe7d6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #b4afa3; font-size: 14px;
  padding: 56px 0 40px; }
.site-footer a { color: #cdc8bc; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px; margin-bottom: 32px; }
.site-footer .footer-brand { display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; }
.site-footer .louie-badge { width: 54px; height: 54px; border-radius: 50%;
  background: var(--sandstone); padding: 5px; object-fit: contain; }
.site-footer .footer-brand .name { font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 28px; color: #fff; }
.site-footer .footer-brand .chippie-wordmark { height: 34px; width: auto;
  display: block; filter: brightness(0) invert(1); }
.site-footer h4 { font-size: 15px; color: #fff; margin-bottom: 14px;
  letter-spacing: 0.02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; }
.footer-about p { max-width: 38ch; }
.footer-trust { font-size: 13px; }
.footer-base { border-top: 1px solid #2c2c2c; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-legal a { margin-left: 18px; }
.footer-legal a:first-child { margin-left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  section { padding: 56px 0; }
  .hero-band h1 { font-size: 36px; }
  .sec-head h2 { font-size: 28px; }
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4,
  .tiers, .feat-row, .footer-grid { grid-template-columns: 1fr; }
  .feat-row--rev > :first-child { order: 0; }
  .tier-price { font-size: 38px; }

  /* Mobile nav: burger toggles the link list open */
  .nav-burger { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0;
    top: 100%; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--sandstone); border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px; z-index: 40; }
  .nav-links a { padding: 11px 0; width: 100%;
    border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .site-nav .wrap { position: relative; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}
