/* Pioneer Security Systems — public lander
   Cream base + forest / Clearview-yellow accents only. Mobile-first. */
:root {
  --cream: #FFFEFB;
  --cream-soft: #F7F4EF;
  --cream-deep: #EFEAE2;
  --ink: #1A1F1C;
  --ink-muted: #4A524E;
  --ink-faint: #6B746F;
  --forest: #1B4D3E;
  --forest-deep: #143D31;
  --forest-soft: #E8F0EC;
  --gold: #E8B923;
  --gold-deep: #D4A017;
  --gold-soft: #FBF5D4;
  --rule: #E2DCD2;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(26, 31, 28, 0.04), 0 8px 24px rgba(26, 31, 28, 0.06);
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); }
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-muted); }
.lead { font-size: 1.125rem; color: var(--ink-muted); max-width: 42rem; }
.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .container { width: min(100% - 2rem, var(--max)); }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 254, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0; min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; object-fit: contain; }
@media (max-width: 899px) {
  .brand {
    min-width: 0;
    flex: 1;
    max-width: calc(100% - 52px);
  }
}
.brand-text {
  font-weight: 700; font-size: 0.9rem; letter-spacing: -0.01em;
  line-height: 1.2;
  min-width: 0;
}
.brand-text span {
  display: block; font-weight: 500; font-size: 0.68rem; color: var(--ink-faint); letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 380px) {
  .brand-text span { display: none; }
}

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--rule);
  border-radius: 8px; background: var(--white); cursor: pointer;
  color: var(--forest);
}
.nav-toggle svg { width: 20px; height: 20px; }
.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream); border-bottom: 1px solid var(--rule);
  padding: 0.75rem 1rem 1.25rem;
  box-shadow: var(--shadow);
}
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.site-nav a {
  display: block; padding: 0.65rem 0.75rem; border-radius: 8px;
  text-decoration: none; color: var(--ink-muted); font-weight: 500; font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  background: var(--forest-soft); color: var(--forest);
}
.nav-cta {
  margin-top: 0.5rem !important;
  background: var(--forest) !important; color: var(--cream) !important;
  text-align: center; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--forest-deep) !important; color: var(--cream) !important; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 0.15rem; }
  .site-nav a { padding: 0.45rem 0.7rem; font-size: 0.9rem; }
  .nav-cta {
    margin-top: 0 !important; margin-left: 0.5rem !important;
    padding: 0.5rem 1rem !important; border-radius: 8px;
  }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.8rem 1.25rem; border-radius: 9px; font-weight: 600;
  font-size: 0.95rem; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--forest-deep); color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-deep); color: var(--white); }
.btn-ghost {
  background: transparent; color: var(--forest); border-color: var(--forest);
}
.btn-ghost:hover { background: var(--forest-soft); color: var(--forest-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Hero / sections */
.hero {
  padding: 3rem 0 2.5rem;
  background:
    linear-gradient(180deg, var(--cream-soft) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--rule);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 650; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--forest);
  background: var(--forest-soft); padding: 0.35rem 0.7rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.section { padding: 3.25rem 0; }
.section-alt { background: var(--cream-soft); border-block: 1px solid var(--rule); }
.section-head { margin-bottom: 2rem; max-width: 40rem; }
.section-head p { margin-bottom: 0; }
.rule {
  height: 1px; border: 0; background: var(--rule); margin: 2rem 0;
}
.rule-gold {
  height: 2px; width: 48px; border: 0; background: var(--gold); margin: 0 0 1.25rem;
}

/* Cards / grids */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4em; color: var(--forest); }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 40px; height: 40px; margin-bottom: 0.85rem;
  color: var(--forest);
}
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 650;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gold-deep); background: var(--gold-soft);
  padding: 0.25rem 0.55rem; border-radius: 999px; margin-bottom: 0.75rem;
}
.badge-forest {
  color: var(--forest); background: var(--forest-soft);
}

/* Pricing band */
.pricing {
  background: var(--forest);
  color: var(--cream);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}
.pricing h2, .pricing h3 { color: var(--cream); }
.pricing p { color: rgba(255, 254, 251, 0.85); }
.pricing .gold-line { color: var(--gold); font-weight: 650; }
.price-big {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700; letter-spacing: -0.02em; color: var(--cream);
  margin: 0.25rem 0 0.5rem;
}
.price-note { font-size: 0.9rem; color: rgba(255, 254, 251, 0.75); }
.pricing-grid {
  display: grid; gap: 1.25rem; margin-top: 1.75rem;
}
@media (min-width: 800px) {
  .pricing-grid { grid-template-columns: 1.4fr 1fr; align-items: stretch; }
}
.pricing-side {
  background: rgba(255, 254, 251, 0.08);
  border: 1px solid rgba(255, 254, 251, 0.15);
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
}
.pricing ul {
  margin: 0.75rem 0 0; padding-left: 1.15rem; color: rgba(255, 254, 251, 0.88);
}
.pricing li { margin-bottom: 0.4rem; }

/* Compare strip */
.compare {
  display: grid; gap: 1rem;
}
@media (min-width: 800px) {
  .compare { grid-template-columns: 1fr auto 1fr; align-items: stretch; }
}
.compare-vs {
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--gold); font-size: 0.85rem; letter-spacing: 0.08em;
}
.compare .card.rent { border-top: 3px solid #B85C4A; }
.compare .card.own { border-top: 3px solid var(--forest); }
.compare .strike { text-decoration: line-through; color: var(--ink-faint); }

/* Stack list */
.stack-item {
  display: grid; gap: 0.35rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
}
.stack-item:last-child { border-bottom: 0; }
.stack-item h3 { margin: 0; font-size: 1.05rem; }
.stack-meta {
  font-size: 0.8rem; font-weight: 600; color: var(--gold-deep);
  letter-spacing: 0.02em;
}

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step {
  position: relative; padding-left: 3.25rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.35rem; height: 2.35rem;
  border-radius: 50%;
  background: var(--forest); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
}
.step h3 { margin-bottom: 0.35em; }

/* Grants table */
.grant-table {
  width: 100%; border-collapse: collapse; font-size: 0.92rem;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden;
}
.grant-table th, .grant-table td {
  text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.grant-table th {
  background: var(--cream-soft); color: var(--forest); font-weight: 650;
  font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.grant-table tr:last-child td { border-bottom: 0; }
.grant-table td strong { color: var(--ink); }
@media (max-width: 699px) {
  .grant-table, .grant-table thead, .grant-table tbody, .grant-table th, .grant-table td, .grant-table tr {
    display: block;
  }
  .grant-table thead { display: none; }
  .grant-table tr {
    border-bottom: 1px solid var(--rule); padding: 0.75rem 0;
  }
  .grant-table td {
    border: 0; padding: 0.25rem 1rem;
  }
  .grant-table td::before {
    content: attr(data-label);
    display: block; font-size: 0.72rem; font-weight: 650;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--forest); margin-bottom: 0.15rem;
  }
}

/* Form */
.form {
  display: grid; gap: 1rem;
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.form label {
  display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; color: var(--ink);
}
.form input, .form select, .form textarea {
  font: inherit; padding: 0.7rem 0.85rem; border: 1px solid var(--rule);
  border-radius: 8px; background: var(--cream); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--forest); outline-offset: 1px; border-color: var(--forest);
}
.form textarea { min-height: 140px; resize: vertical; }
.form-row {
  display: grid; gap: 1rem;
}
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-note { font-size: 0.85rem; color: var(--ink-faint); margin: 0; }
.mailto-fallback {
  margin-top: 1.5rem; padding: 1.15rem 1.25rem;
  background: var(--cream-soft); border: 1px dashed var(--rule); border-radius: var(--radius);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--cream-soft);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid; gap: 1.75rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--forest); margin-bottom: 0.75rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { text-decoration: none; color: var(--ink-muted); font-size: 0.92rem; }
.site-footer a:hover { color: var(--forest); }
.footer-brand { font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; display:flex; align-items:center; gap:0.55rem; }
.footer-brand img { width: 20px; height: 20px; object-fit: contain; opacity: 0.9; }
.footer-copy {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule);
  font-size: 0.82rem; color: var(--ink-faint);
}
.footer-copy a { color: var(--ink-faint); }

/* Desktop polish ≥1200 */
@media (min-width: 1200px) {
  .hero { padding: 4.5rem 0 3.5rem; }
  .section { padding: 4rem 0; }
  .hero-grid {
    display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: center;
  }
  .hero-panel {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
  }
}


.hero-pioneer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1.5rem 1.25rem 1.75rem;
  background: linear-gradient(165deg, #fff 0%, #f4f0e6 55%, #e8f0eb 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(27, 77, 62, 0.08);
}
.hero-pioneer img {
  width: min(220px, 70%);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(27, 77, 62, 0.18));
}
.hero-pioneer .pioneer-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
}
.hero-pioneer .pioneer-line {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.hero-pioneer .pioneer-sub {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-faint);
  max-width: 22rem;
}
/* About — small corner mark, not a mid-scroll billboard */
.hero-about-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}
.hero-about-copy { flex: 1; min-width: 0; }
.about-mark {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-top: 0.15rem;
  opacity: 0.92;
}
@media (min-width: 700px) {
  .about-mark { width: 64px; height: 64px; }
}

.hero-panel { display: none; }
@media (min-width: 1200px) {
  .hero-panel { display: block; }
}
.stat-row { display: grid; gap: 1rem; margin: 1.25rem 0 0; }
.stat {
  padding: 0.85rem 0; border-top: 1px solid var(--rule);
}
.stat:first-child { border-top: 0; padding-top: 0; }
.stat strong {
  display: block; font-size: 1.35rem; color: var(--forest); letter-spacing: -0.02em;
}
.stat span { font-size: 0.88rem; color: var(--ink-muted); }

.legal { max-width: 42rem; }
.legal h1 { margin-bottom: 0.5em; }
.legal p, .legal li { font-size: 0.95rem; }

.callout {
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  padding: 1rem 1.15rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}
.callout p { margin: 0; color: var(--ink); font-size: 0.95rem; }


/* Risk / threat strip */
.risk-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.25rem 0 0;
}
@media (min-width: 720px) {
  .risk-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
.risk-stat {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.risk-stat strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--forest);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.risk-stat span {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.4;
}
.risk-footnote {
  margin-top: 1.35rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
  max-width: 44rem;
}

@media (min-width: 900px) {
  .hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; }
  .hero-pioneer { display: flex; }
}


/* mobile-safe 2026-09-12 */
main, .section, .hero, .site-footer, .hero-grid, .compare, .pricing-grid,
.risk-stats, .grid, .footer-grid, .form-card, .stack-list, .steps {
  min-width: 0;
}
.hero-about-inner {
  gap: 0.75rem;
}
.about-mark {
  width: 44px !important;
  height: 44px !important;
}
@media (min-width: 700px) {
  .about-mark { width: 56px !important; height: 56px !important; }
}
.table-wrap, .data-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table { max-width: 100%; }
.btn-row { justify-content: flex-start; }
.btn { max-width: 100%; }
.card, .hero-panel, .pricing-card, .form-card {
  max-width: 100%;
}
.lead, h1, h2, p { overflow-wrap: anywhere; word-break: break-word; }
/* keep brand from shoving toggle off-screen */
.header-inner { gap: 0.65rem; }
@media (max-width: 899px) {
  .site-nav.is-open {
    left: 0; right: 0;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}
