/* ============================================================
   Multifamily Parking Solutions — shared design system
   Fast, hand-coded, no framework. Optimized for SEO/AEO + speed.
   ============================================================ */

:root {
  --ink: #0e1b2e;          /* near-black navy text */
  --ink-soft: #3a4a61;     /* secondary text */
  --muted: #6b7a90;        /* tertiary text */
  --line: #e4e9f0;         /* borders */
  --bg: #ffffff;
  --bg-alt: #f5f8fc;       /* section tint */
  --bg-deep: #0e1b2e;      /* dark sections */

  --brand: #1657d0;        /* 5280 / primary blue */
  --brand-dark: #0f3f9e;
  --brand-soft: #e8f0ff;

  --op: #6d28d9;           /* OpenParking indigo/purple */
  --op-dark: #57209f;
  --op-soft: #f1ebfe;

  --gold: #f0a000;         /* accent / dots */
  --ok: #16a34a;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14,27,46,.06), 0 2px 8px rgba(14,27,46,.05);
  --shadow: 0 10px 30px rgba(14,27,46,.10);
  --shadow-lg: 0 24px 60px rgba(14,27,46,.16);
  --maxw: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.15; color: var(--ink); margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.18rem; color: var(--ink-soft); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

section { padding: 84px 0; }
.section-tint { background: var(--bg-alt); }
.section-dark { background: var(--bg-deep); color: #cfdaeb; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-weight: 700; font-size: 1rem; padding: 14px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: all .18s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(22,87,208,.28); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-op { background: var(--op); color: #fff; box-shadow: 0 8px 20px rgba(109,40,217,.28); }
.btn-op:hover { background: var(--op-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eef3fb; color: var(--ink); }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink); color: #c7d3e6; font-size: .9rem;
  text-align: center; padding: 9px 16px;
}
.topbar a { color: #fff; font-weight: 600; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .logo-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--op));
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.1rem;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 70px; background: radial-gradient(1200px 500px at 80% -10%, var(--brand-soft), transparent 60%), radial-gradient(900px 500px at 0% 0%, var(--op-soft), transparent 55%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--brand); }
.hero .lead { margin-bottom: 26px; max-width: 540px; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink-soft); }
.hero-points li::before { content: "✓"; color: var(--ok); font-weight: 900; }
.hero-visual { position: relative; }
.hero-visual .phone { width: 100%; max-width: 360px; margin: 0 auto; border-radius: 28px; box-shadow: var(--shadow-lg); }

/* ---------- Two-path split ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.path-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px 34px;
  background: #fff; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.path-card .tag { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.path-card.full { border-top: 5px solid var(--brand); }
.path-card.full .tag { color: var(--brand); }
.path-card.self { border-top: 5px solid var(--op); }
.path-card.self .tag { color: var(--op); }
.path-card h3 { font-size: 1.6rem; font-weight: 800; margin-top: 10px; }
.path-card .price { font-weight: 800; color: var(--ink); font-size: 1.05rem; margin: 0 0 6px; }
.path-card ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 12px; }
.path-card ul li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }
.path-card ul li::before { content: "✓"; font-weight: 900; color: var(--ok); flex: none; }
.path-card .btn { margin-top: auto; }

/* ---------- Feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.feature .ico { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 1.4rem; margin-bottom: 16px; }
.feature.op .ico { background: var(--op-soft); color: var(--op); }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; text-align: center; }
.stat .n { font-size: 2.6rem; font-weight: 900; color: #fff; letter-spacing: -.03em; }
.stat .l { color: #9fb2cc; font-size: .95rem; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.quote .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; }
.quote p { font-size: 1rem; color: var(--ink); font-style: italic; }
.quote .who { margin-top: 16px; font-weight: 700; font-size: .95rem; }
.quote .who span { display: block; font-weight: 500; color: var(--muted); font-style: normal; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; background: #fff; }
table.compare th, table.compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare thead th { font-size: 1.05rem; }
table.compare thead .c-full { color: var(--brand); }
table.compare thead .c-self { color: var(--op); }
table.compare tbody th { font-weight: 700; color: var(--ink); width: 30%; }
table.compare td { color: var(--ink-soft); }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: 0; }
.cell-yes { color: var(--ok); font-weight: 700; }
.cell-no { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 22px 24px; font-size: 1.08rem; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; font-family: inherit; }
.faq-q::after { content: "+"; font-size: 1.5rem; color: var(--brand); font-weight: 400; flex: none; transition: transform .2s; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; color: var(--ink-soft); }
.faq-item.open .faq-a { padding: 0 24px 22px; max-height: 600px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand), var(--op)); color: #fff; border-radius: var(--radius-lg); padding: 56px 44px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 600px; margin: 0 auto 26px; font-size: 1.12rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.field textarea { min-height: 120px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: .95rem; font-weight: 600; }
.form-status.ok { background: #e7f7ee; color: #14794a; border: 1px solid #b7e6cb; }
.form-status.err { background: #fdecec; color: #b42318; border: 1px solid #f6c8c4; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* ---------- Calculator ---------- */
.calc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.calc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.calc-out { background: var(--bg-deep); color: #fff; border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.calc-out h3 { color: #fff; }
.calc-range-val { font-weight: 800; color: var(--brand); float: right; }
.calc-result { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.calc-result:last-of-type { border-bottom: 0; }
.calc-result .label { color: #9fb2cc; font-size: .95rem; }
.calc-result .big { font-size: 2rem; font-weight: 900; letter-spacing: -.02em; }
.calc-result .big.green { color: #4ade80; }
input[type=range] { width: 100%; accent-color: var(--brand); margin-top: 6px; }

/* ---------- Article / prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.8rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.3rem; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--ink-soft); }
.prose li { margin-bottom: .5em; }
.prose .meta { color: var(--muted); font-size: .95rem; margin-bottom: 2rem; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.article-card .body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.article-card .kicker { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--op); margin-bottom: 10px; }
.article-card h3 { margin-bottom: 10px; }
.article-card p { color: var(--ink-soft); font-size: .96rem; flex: 1; }
.article-card a.more { font-weight: 700; margin-top: 14px; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: .9rem; color: var(--muted); padding: 18px 0 0; }
.crumb a { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9fb2cc; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #9fb2cc; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-brand p { font-size: .95rem; max-width: 280px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge { display: inline-block; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .82rem; padding: 6px 12px; border-radius: 999px; }
.badge.op { background: var(--op-soft); color: var(--op); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-2, .paths, .steps, .stats, .quotes, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  section { padding: 60px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 16px; box-shadow: var(--shadow);
  }
  .cta-band { padding: 40px 24px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
