/* FlareMark — design system v2
   Body ink softened from near-black; rules replaced by regions, cards, and
   spacing; serif display headings for an editorial, trustworthy register. */

:root {
  --ink: #292524;      /* headings only */
  --text: #44403c;     /* body — stone, not black */
  --muted: #78716c;
  --flare: #2563eb;
  --flare-deep: #1e40af;
  --paper: #fafaf9;
  --card: #ffffff;
  --line: #e7e5e4;
  --tint: #eef4fb;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
}

/* Footer docks to the viewport bottom on short pages; on long pages this
   changes nothing. The last section stretches with main so its background
   fills the gap — no seam between the final region and the footer. */

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

main > section:last-child { flex: 1 0 auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
}

h1 { font-size: 2.2rem; line-height: 1.15; margin: 0 0 1rem; }
h2 { font-size: 1.55rem; line-height: 1.25; margin: 0 0 1rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.25rem; }

p { margin: 0 0 1rem; }

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

.lead {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.small { color: var(--muted); font-size: 0.9rem; }

ol, ul { padding-left: 1.25rem; }
li { margin-bottom: 0.6rem; }

/* Layout ---------------------------------------------------------------- */

.container {
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: 3rem; }

.band {
  padding-block: 3.25rem;
}

.band-tint { background: var(--tint); }

.section-white { background: var(--card); }

/* Header / footer ------------------------------------------------------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}

.wordmark {
  display: inline-block;
  line-height: 0;
}

.wordmark-img { height: 40px; width: auto; }

.site-header nav { display: flex; gap: 1.75rem; }

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer .container {
  padding-block: 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a { color: var(--muted); }

/* Hero ------------------------------------------------------------------ */

.hero {
  background: linear-gradient(180deg, #e8f0fc 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding-block: 4.25rem 4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--flare);
  margin: 0 0 1.1rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.3rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

.hero .lead { font-size: 1.25rem; max-width: 40rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary { background: var(--flare); color: #fff; }
.btn-primary:hover { background: var(--flare-deep); text-decoration: none; }

.btn-ghost {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--flare); color: var(--flare); text-decoration: none; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  margin-top: 2.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.chips span::before {
  content: "✓";
  color: var(--flare);
  font-weight: 700;
  margin-right: 0.45rem;
}

/* Cards ----------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.6rem;
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.05);
}

.card .tag {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.card ul { margin-bottom: 1.25rem; }

/* A card whose last element is its list shouldn't carry dead space below it,
   and a heading following a card needs breathing room. */
.card > ul:last-child { margin-bottom: 0; }

.card + h2 { margin-top: 2.25rem; }

.card .btn { padding: 0.55rem 1.1rem; font-size: 0.95rem; }

/* Testimonials — editorial pull-quotes, single column -------------------- */

.quote { margin: 0 0 2.75rem; }

.quote:last-child { margin-bottom: 0; }

.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink);
  max-width: 40rem;
}

/* The mark's line box is cropped to its ink height so the quote sits
   directly beneath it — no floating gap between mark and text. */
.quote blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--serif);
  color: var(--flare);
  font-size: 4rem;
  line-height: 1;
  height: 0.5em;
  margin-bottom: 0.15em;
}

.quote-attr {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.quote-attr .avatar {
  width: 40px;
  height: 40px;
  flex: none;
}

.quote-attr strong { color: var(--ink); font-weight: 600; }

/* Final CTA band --------------------------------------------------------- */

.band-cta {
  background: var(--flare-deep);
  border-bottom: 0;
  color: #dbe4f8;
}

.band-cta h2 { color: #ffffff; }

.band-cta a { color: #ffffff; text-decoration: underline; }

.band-cta .btn-primary {
  background: #ffffff;
  color: var(--flare-deep);
}

.band-cta .btn-primary:hover { background: var(--tint); }

/* Responsive ------------------------------------------------------------ */

@media (max-width: 44rem) {
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 3rem; }
}