/* ChamberSync marketing site — brand per General/Marketing Website/brand-guidelines.md
   Navy #0e2b4c primary · Gold #ba9c60 accent (never body text) · Teal #1a6062 links
   Headings: Source Serif 4 (self-hosted, fonts/fonts.css) · Body: system stack */

:root {
  --navy: #0e2b4c;
  --gold: #ba9c60;
  --teal: #1a6062;
  --tint: #eaf2f9;
  --canvas: #fafafa;
  --ink: #222;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 1.06rem;
}

.container { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 46rem; }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .6rem;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

/* Gold rule under section headings */
section > .container > h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin-top: .7rem;
}

a { color: var(--teal); }
p { margin: .6rem 0 0; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid #e5e9ee; }
.header-row { display: flex; align-items: center; justify-content: space-between; padding-top: .9rem; padding-bottom: .9rem; }
.header-actions { display: flex; gap: .75rem; }
.logo { display: block; height: 42px; width: auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .8rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-body);
}
.btn-small { padding: .5rem 1rem; font-size: .95rem; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #16406e; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #cbb078; }
.btn-outline { border: 1.5px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* Hero */
.hero {
  background: var(--navy);
  padding: 5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 450px;
  background: url("assets/device-white.svg") no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .lede { color: #dbe6f2; max-width: 44rem; font-size: 1.15rem; margin-top: 1.2rem; }

/* Sections */
section { padding: 4rem 0; }
.problem { background: var(--tint); }
.problem h2::after { margin-left: 0; }
.problem-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 3rem;
  align-items: center;
}
.problem-grid > div > h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin-top: .7rem;
}
.problem-diagram {
  width: 100%;
  height: auto;
  max-width: 380px;
  justify-self: center;
}
@media (max-width: 760px) {
  .problem-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero::after { display: none; }
}

/* Pillar icons */
.pillar-icon svg {
  width: 34px;
  height: 34px;
  display: block;
  margin-bottom: .8rem;
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-top: 2rem; }
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .8rem;
  border: 2px solid var(--gold);
}

/* Pillars */
.pillars { background: #fff; }
.pillar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; }
@media (max-width: 700px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar {
  background: var(--canvas);
  border: 1px solid #e5e9ee;
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  padding: 1.5rem;
}
.pillar-wide { grid-column: 1 / -1; background: var(--tint); }

/* Product glimpse */
.glimpse { background: #fff; }
.glimpse-grid {
  display: grid;
  grid-template-columns: 4fr 3fr;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: start;
}
.glimpse-grid figure { margin: 0; }
.glimpse-grid img {
  width: 100%;
  height: auto;
  border: 1px solid #e5e9ee;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(14, 43, 76, 0.12);
}
.glimpse-grid figcaption {
  margin-top: .6rem;
  font-size: .9rem;
  color: #555;
  text-align: center;
}
.glimpse-note { text-align: center; margin-top: 1.5rem; }
@media (max-width: 760px) {
  .glimpse-grid { grid-template-columns: 1fr; }
}

/* Trust strip */
.trust { background: var(--navy); }
.trust h2 { color: #fff; }
.trust h2::after { background: var(--gold); }
.trust-grid {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  color: #dbe6f2;
}
.trust-grid strong { color: #fff; display: block; margin-bottom: .25rem; }

/* Proof — staggered rows, text and graphic as siblings */
.proof-row {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 58rem;
}
.proof-row.reverse {
  grid-template-columns: 5fr 7fr;
  margin-top: 3.5rem;
  margin-left: auto;
}
.proof-row h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin-top: .7rem;
}
.proof-graphic { width: 100%; height: auto; max-width: 320px; justify-self: center; }
@media (max-width: 760px) {
  .proof-row, .proof-row.reverse { grid-template-columns: 1fr; gap: 1.5rem; margin-left: 0; }
  .proof-row.reverse svg { order: 2; }
}

.quiet { color: #555; font-size: .95rem; }

/* Closing CTA */
.closing { background: var(--tint); text-align: center; }
.closing h2::after { margin-left: auto; margin-right: auto; }
.closing .cta-row { justify-content: center; }
.closing .btn-outline { border-color: var(--navy); color: var(--navy); }
.closing .btn-outline:hover { background: rgba(14,43,76,.08); }

/* Footer */
.site-footer { background: var(--navy); color: #dbe6f2; padding: 2.5rem 0; }
.site-footer a { color: #fff; }
.footer-row { display: grid; gap: 1rem; }
.logo-footer { height: 32px; width: auto; }
.fine { font-size: .85rem; color: #8fa5bd; }

@media (max-width: 640px) {
  .hero { padding: 3.5rem 0; }
  section { padding: 2.8rem 0; }
  /* Header: logo only — the hero CTA is one scroll-length away */
  .header-actions { display: none; }
  /* Let the headline wrap naturally at phone widths */
  .hero h1 br { display: none; }
  .header-row { justify-content: center; }
  .logo { height: 36px; }
  /* Full-width, thumb-friendly CTAs */
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; text-align: center; }
}
