/* ============================================
   Cloverleaf — Restructure components
   Data-driven nav, product cards, pricing, bundles, promises.
   Builds on the tokens in style.css.
   ============================================ */

/* ---- PLACEHOLDER MARKER (previews only; production builds fail if any remain) ---- */
[data-placeholder] {
  outline: 1px dashed var(--clr-gold);
  outline-offset: 2px;
  /* A faint overlay on top of the element's own background (never replacing it), so text stays readable on light, dark and accent sections */
  background-image: linear-gradient(rgba(176, 124, 30, 0.06), rgba(176, 124, 30, 0.06));
}

/* ---- DRAFT BANNER (drafts are never built in production) ---- */
.draft-banner {
  background: var(--clr-gold-light); color: #6B4A0B;
  border-bottom: 1px solid var(--clr-gold);
  padding: 0.6rem var(--px);
  font-size: 0.875rem; text-align: center;
}
.draft-list { list-style: none; max-width: 720px; margin: 1.5rem auto 0; text-align: left; }
.draft-list li { padding: 0.4rem 0; border-bottom: 1px solid var(--clr-border); font-size: 0.9375rem; }
.draft-list a { color: var(--clr-accent); font-weight: 500; text-decoration: none; }
.draft-list a:hover { text-decoration: underline; }
.draft-list code { font-size: 0.8125rem; color: var(--clr-text-secondary); margin-left: 0.5rem; }

/* ---- NAV DROPDOWNS ---- */
.nav-menu { position: relative; }
.nav-menu-button {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--font-body);
  font-size: 1rem; color: #34403B;
  transition: color 0.2s;
}
.nav-menu-button:hover,
.nav-menu-button[aria-expanded="true"],
.nav-menu-button.active { color: var(--clr-text); }
.nav-menu-button.active { font-weight: 600; }
.nav-menu-chevron { transition: transform 0.2s; }
.nav-menu-button[aria-expanded="true"] .nav-menu-chevron { transform: rotate(180deg); }

.nav-menu-panel {
  position: absolute; top: calc(100% + 14px); left: -1rem;
  min-width: 260px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 0.5rem;
  display: flex; flex-direction: column;
  z-index: 110;
}
.nav-menu-panel[hidden] { display: none; }
.nav-links .nav-menu-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: var(--clr-text);
}
.nav-links .nav-menu-item::after { display: none; }
.nav-links .nav-menu-item:hover,
.nav-links .nav-menu-item[aria-current="page"] { background: var(--clr-accent-light); }
.nav-menu-item-name { font-size: 1rem; font-weight: 600; }
.nav-menu-item-desc { font-size: 0.875rem; color: var(--clr-text-secondary); }

.nav-links a, .nav-menu-button { white-space: nowrap; }

/* Same breakpoint as the nav block in style.css */
@media (max-width: 980px) {
  .nav-menu { width: 100%; }
  .nav-menu-button {
    width: 100%; justify-content: space-between;
    padding: 0.75rem var(--px);
    font-size: 1rem;
  }
  .nav-menu-panel {
    position: static; min-width: 0;
    border: none; border-radius: 0; box-shadow: none;
    background: transparent;
    padding: 0 0 0.5rem;
  }
  .nav-links .nav-menu-item {
    padding: 0.5rem calc(var(--px) + 1rem);
    border-radius: 0;
  }
}

/* ---- PRODUCT CARDS (2 or 3 products, no empty columns) ----
   An illustrative interface preview on top (partials/product-mock-<slug>.njk, hidden from assistive
   tech), then the name, one line and a link. The name's link stretches over the whole card. */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  text-align: left;
}
.product-card {
  position: relative;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.2s;
}
.product-card:hover { border-color: var(--clr-accent); }
.product-card-visual {
  height: 250px;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: var(--green-50);
  border-bottom: 1px solid var(--clr-border);
}
.product-card:nth-child(2n) .product-card-visual { background: #F5F4F1; }
.product-card-body { padding: 2rem 2.25rem 2.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.product-card-name {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 600; line-height: 1.2;
  letter-spacing: -0.01em;
}
.product-card-name a { text-decoration: none; color: inherit; }
.product-card-name a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.product-card-name a:focus-visible { outline: none; }
.product-card:has(a:focus-visible) { outline: 2px solid var(--clr-accent); outline-offset: 3px; }
.product-card-summary {
  font-size: 1.125rem; color: var(--clr-text-secondary);
  line-height: 1.5;
}
.product-card .card-link { margin-top: 0.5rem; }

/* Interface previews inside product cards (decorative) */
.mock {
  width: 100%; max-width: 420px;
  background: #fff; border-radius: 4px;
  border: 1px solid var(--clr-border);
  padding: 1.1rem; display: flex; flex-direction: column; gap: 0.75rem;
  font-size: 0.875rem; color: var(--clr-text);
}
.mock-head { display: flex; justify-content: space-between; align-items: center; }
.mock-label { font-family: var(--font-label); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; color: #55615B; }
.mock-button { background: var(--clr-accent); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.35rem 0.75rem; border-radius: 3px; }
.mock-status { font-family: var(--font-label); font-size: 0.75rem; font-weight: 500; color: #55615B; }
.mock-field { border: 1px solid var(--clr-border); border-radius: 3px; padding: 0.6rem 0.75rem; font-weight: 600; font-size: 0.9375rem; }
.mock-lines { display: flex; flex-direction: column; gap: 0.45rem; }
.mock-lines span { height: 8px; background: #E8ECEA; }
.mock-lines span:nth-child(2) { width: 86%; }
.mock-lines span:nth-child(3) { width: 58%; }
.mock-rows { display: flex; flex-direction: column; }
.mock-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid #EEF0ED; }
.mock-row:last-child { border-bottom: none; }
.mock-row b { font-weight: 700; }
.mock-rank { display: inline-block; width: 1.5rem; color: #55615B; }

/* ---- PRICING ---- */
.pricing-from {
  font-size: 1rem; color: var(--clr-text-secondary);
}
.pricing-from strong {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
  color: var(--clr-text);
}
.pricing-from a { color: var(--clr-accent); font-weight: 600; text-decoration: none; }
.pricing-from a:hover { text-decoration: underline; }

.pricing-product { scroll-margin-top: 90px; }
.pricing-product + .pricing-product { margin-top: clamp(3rem, 6vw, 5rem); }
.pricing-product-header { text-align: left; }
.pricing-sized-by {
  font-family: var(--font-label);
  font-size: 0.875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--clr-warm);
  margin-bottom: 0.25rem;
}
.pricing-product-header h2,
.pricing-product-header h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 600;
  letter-spacing: -0.01em;
}
.pricing-grid-tiers .price-card:not(.featured) { padding-top: 2rem; }
.pricing-pending { margin-top: 0.75rem; font-size: 1.0625rem; }
.pricing-pending a { color: var(--clr-accent); font-weight: 600; text-decoration: none; }
.pricing-pending a:hover { text-decoration: underline; }
.price-card .price-annual {
  font-size: 0.9375rem; color: var(--clr-text-secondary);
  margin-bottom: 0.75rem;
}

.onboarding,
.pricing-faq { margin-top: 2.5rem; }
.pricing-faq > h3, .pricing-faq > h4 {
  font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--clr-text-secondary);
  text-align: left;
  margin-bottom: 1rem;
}

/* Onboarding is set by the size of the agency's current site, never by its tier. */
.onboarding > h3, .onboarding > h4 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.onboarding > h3:focus-visible, .onboarding > h4:focus-visible { outline: 2px solid var(--clr-accent); outline-offset: 4px; }
.onboarding-intro { max-width: 640px; margin-top: 0.5rem; font-size: 1.0625rem; color: var(--clr-text-secondary); }
.onboarding-table-wrap { overflow-x: auto; margin-top: 1.75rem; }
.onboarding-table {
  width: 100%; max-width: 860px; margin: 0;
  border-collapse: collapse;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}
.onboarding-table th, .onboarding-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--clr-border);
  vertical-align: top;
  font-size: 1rem;
}
.onboarding-table thead th {
  font-family: var(--font-label);
  font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--clr-text-secondary);
  background: var(--clr-surface-alt);
  white-space: nowrap;
}
.onboarding-table tbody th { font-weight: 600; }
.onboarding-table tbody tr:last-child th, .onboarding-table tbody tr:last-child td { border-bottom: 0; }
.onboarding-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.onboarding-descriptor { display: block; margin-top: 0.2rem; font-weight: 400; font-size: 0.875rem; color: var(--clr-text-secondary); }
.onboarding-rule { max-width: 640px; margin-top: 1rem; font-size: 0.9375rem; color: var(--clr-text-secondary); line-height: 1.6; }
.pricing-onboarding { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--clr-text-secondary); }
.pricing-onboarding a { color: var(--clr-accent); font-weight: 600; }
/* One quiet line under the tier cards: onboarding is set by site size, not by tier */
.onboarding-line { margin-top: 1.25rem; font-size: 1.0625rem; color: var(--clr-text-secondary); }
.onboarding-line .card-link { margin-left: 0.35rem; }
.onboarding-table-wrap:focus-visible { outline: 2px solid var(--clr-accent); outline-offset: 3px; }
/* Keep all three columns on a phone: tighter cells, and go-live wraps instead of scrolling. */
@media (max-width: 620px) {
  .onboarding-table th, .onboarding-table td { padding: 0.7rem 0.6rem; font-size: 0.9375rem; }
  .onboarding-table thead th { font-size: 0.6875rem; letter-spacing: 0.04em; white-space: normal; }
  .onboarding-table td { white-space: normal; }
  .onboarding-descriptor { font-size: 0.8125rem; }
}
.pricing-all-link { text-align: left; margin-top: 1.5rem; }

/* ---- BUNDLE TABLE ---- */
.bundle-table-wrap { overflow-x: auto; }
.bundle-table {
  width: 100%; max-width: 760px; margin: 0;
  border-collapse: collapse;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.9375rem; text-align: left;
}
.bundle-table th, .bundle-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--clr-border);
}
.bundle-table thead th {
  font-family: var(--font-label);
  font-size: 0.8125rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--clr-text-secondary);
}
.bundle-table tbody tr:last-child th,
.bundle-table tbody tr:last-child td { border-bottom: none; }
.bundle-table tbody th { font-weight: 600; }
.bundle-table a { color: var(--clr-accent); text-decoration: none; }
.bundle-table a:hover { text-decoration: underline; }

/* Support table on /trust reuses the bundle table styles */
.support-table { margin-top: 1.5rem; }
.support-table caption {
  caption-side: top; text-align: left;
  font-size: 0.875rem; font-weight: 600;
  padding: 0 0 0.75rem;
}
.support-table thead th { color: var(--clr-text); }

/* ---- PRICING PROMISES ---- */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  text-align: left;
}
.promise-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.promise-card h3, .promise-card h4 {
  font-family: var(--font-display);
  font-size: 1.1875rem; font-weight: 600;
  margin-bottom: 0.5rem; line-height: 1.4;
}
.promise-card p { font-size: 1rem; color: var(--clr-text-secondary); line-height: 1.6; }

/* ---- CASE STUDY CARDS (data-driven) ---- */
.case-grid { text-align: left; }
.case-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
  margin-bottom: 0.5rem; line-height: 1.3;
}

/* ---- PAGE SECTIONS (entity, use-case, trust, resource pages) ---- */
.narrow { max-width: 760px; margin: 0; }
.narrow > h2 { margin-bottom: 1.25rem; }
.prose p {
  font-size: 1.125rem; color: var(--clr-text-secondary);
  line-height: 1.65;
}
.prose p + p { margin-top: 1.1rem; }
.section-center > .card-grid,
.section-center > .spec-list,
.section-center > .case-grid,
.section-center > .product-grid { margin-top: 3rem; }
a.card-linked {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
a.card-linked:hover { border-color: var(--clr-accent); }
a.card-linked .card-link { margin-top: auto; padding-top: 0.75rem; }
.section-link { margin-top: 2rem; }
/* Third level: a named group inside a section, above the items in it.
   The steps are h2 (section) > .section-subhead (group) > item titles. */
.section-subhead {
  font-family: var(--font-display);
  font-size: 1.625rem; font-weight: 600;
  line-height: 1.25; letter-spacing: -0.01em;
  color: var(--clr-text);
  margin-top: 3.5rem;
}
.section-subhead + .card-grid { margin-top: 1.5rem; }
.section-center > .narrow { text-align: left; }
.section-center > .narrow > h2 { text-align: left; }
.hero-detail { margin-top: 0.75rem !important; font-size: 1rem !important; }
.hero .pricing-from { margin-top: 1.25rem; max-width: 720px; font-size: 1rem; }
.card p + p { margin-top: 0.75rem; }
.card-grid-wide > * { flex-basis: calc((100% - 1.5rem) / 2); max-width: 540px; }
.pricing-teaser { margin-top: 1.5rem; }
.pricing-teaser .pricing-from + .pricing-from { margin-top: 0.5rem; }
.case-card-placeholder:hover { transform: none; box-shadow: none; }
/* A lone card (one product, one case study, a proof placeholder) stays a readable width instead of spanning the row */
.product-grid:has(> :only-child),
.case-grid:has(> :only-child) { max-width: 560px; }

/* ---- CONTACT SIDEBAR: headings are h2 (after the page h1), styled like the original h3 ---- */
.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600;
  margin-bottom: 1rem; line-height: 1.3;
}

/* ---- CONTACT FORM: product interest checkboxes ---- */
/* Outside .form-group on purpose: its input rules would stretch checkboxes to full width */
.form-fieldset { border: none; padding: 0; margin: 0 0 1.25rem; }
.form-fieldset legend { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.4rem; padding: 0; }
.form-optional { font-weight: 400; color: var(--clr-text-secondary); }
.form-check {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1rem; padding: 0.3rem 0; cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 1.1rem; height: 1.1rem; margin: 0;
  accent-color: var(--clr-accent);
}

/* ---- FOOTER (brand + however many link columns have published pages) ---- */
.footer-top-v2 { grid-template-columns: 1.4fr 3fr; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.footer-col-heading {
  font-family: var(--font-label);
  font-size: 0.8125rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--clr-text);
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .footer-top-v2 { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* ---- CTA BAND: secondary email line ---- */
.cta-band-inner .cta-band-alt { margin: 1.25rem 0 0; font-size: 1rem; }
.cta-band-alt a { color: var(--clr-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---- STAT CARDS: source line links to the case study ---- */
.stat-card p a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.stat-card p a:hover { color: var(--clr-accent-dark); }

/* ---- OUR COMMITMENTS (/pricing, /about) ---- */
.commitments-intro { color: var(--clr-text-secondary); }
.commitment-list {
  list-style: none; padding: 0;
  max-width: 760px; margin: 1.75rem 0 0;
  display: grid; gap: 0.75rem;
  text-align: left;
}
.commitment-list li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 1.0625rem; line-height: 1.55;
}
.commitment-list svg, .commitment-list i {
  flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.15rem;
  color: var(--clr-accent);
}

/* ---- HERO ILLUSTRATION (homepage) ---- */
.hero-illustration {
  width: 100%; height: auto;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
}
.hero:has(.hero-illustration) {
  padding-bottom: 0;
  padding-top: clamp(3rem, 6vw, 5rem);
}
.hero:has(.hero-illustration) .hero-actions { margin-top: 2rem; }

/* A line of plain-text commitments under the hero buttons */
.hero-facts {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem 0;
  margin-top: 2.25rem;
  font-size: 0.9375rem; color: var(--clr-text-secondary);
}
.hero-facts li { display: flex; align-items: center; gap: 0.5rem; padding: 0 1.25rem; border-left: 1px solid var(--clr-border); }
.hero-facts li:first-child { padding-left: 0; border-left: none; }
.hero-facts svg { width: 15px; height: 15px; flex: none; color: var(--clr-accent); }
@media (max-width: 768px) {
  .hero-facts { flex-direction: column; }
  .hero-facts li { padding: 0; border-left: none; }
}

.section > h2 + .product-grid,
.section > h2 + .card-grid,
.section > h2 + .spec-list,
.section > h2 + .case-grid { margin-top: 2.5rem; }
.feature-row { margin-top: 1.75rem; }

/* Label + link on one line above a section's content */
.section-head-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem 2rem; margin-bottom: 2rem; }
.section-head-row .section-label { margin: 0; }
.section-head-row .card-link { margin-top: 0; }
@media (max-width: 640px) {
  /* Crop toward the civic hall instead of shrinking the whole street */
  .hero-illustration { height: 220px; object-fit: cover; object-position: 50% 60%; }
}

/* Consecutive light sections share their spacing rather than doubling it */
.section + .section,
.section + .cta-band { padding-top: calc(var(--section-y) * 0.5); }
.section h2.logo-eyebrow {
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 600; letter-spacing: 0;
  color: var(--clr-text-secondary);
  margin-bottom: 2rem;
}

/* ---- FULL-WIDTH DARK BAND (the AI-assistants band on the homepage and /sites) ---- */
.band { padding: var(--section-y) var(--px); }
.band-dark { background: var(--clr-band); color: #fff; }
.band-inner { max-width: var(--max-w); margin: 0 auto; }
.band-split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 600; line-height: 1.2; letter-spacing: -0.01em;
  text-wrap: balance;
}
.band p { font-size: 1.125rem; line-height: 1.6; margin-top: 1.25rem; }
.band-dark p { color: #D3E6DC; }
.band-dark a { color: #fff; font-weight: 600; }
.band-dark :focus-visible { outline-color: #fff; }
@media (max-width: 768px) {
  .band-split { grid-template-columns: 1fr; }
}

.band-dark .section-label { color: #A9D6BF; }
.band .section-label { margin-top: 0; font-size: 0.875rem; }

/* An example page record an assistant answers from (decorative) */
.band .record-q { margin: 0 0 0.75rem; font-size: 0.9375rem; color: #CFE2D8; }
.record { background: #fff; color: var(--clr-text); border-radius: var(--radius); overflow: hidden; }
.record-url { font-family: var(--font-label); font-size: 0.8125rem; color: var(--clr-text-secondary); background: var(--green-50); border-bottom: 1px solid var(--clr-border); padding: 0.6rem 1.1rem; }
.record-title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; padding: 1.1rem 1.1rem 0.5rem; }
.record-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); padding: 0.6rem 1.1rem; font-size: 1rem; border-top: 1px solid #EEF0EF; }
.record-row span:first-child { color: var(--clr-text-secondary); }
.record-row.is-answer { background: #FDF1DF; border-top: none; font-weight: 600; }
.record-row.is-answer span:first-child { font-weight: 400; }
.record-row:last-child { padding-bottom: 1rem; }

/* ---- FEATURE ROW: icon, title, one line (homepage promises) ---- */
.feature-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem); text-align: left;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--radius-btn);
  background: var(--green-100); color: var(--clr-accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.5rem; }
.feature p { font-size: 1.0625rem; color: var(--clr-text-secondary); line-height: 1.55; }
@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; }
}

/* ---- FEATURE LIST: titled items under thin rules (lighter than cards) ---- */
.feature-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2.5rem; margin-top: 2rem; text-align: left;
}
.feature-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-list-item { border-top: 1px solid var(--clr-border); padding: 1.25rem 0 1.75rem; }
.feature-list-item h3, .feature-list-item h4 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.125rem; line-height: 1.35; margin-bottom: 0.35rem;
}
.feature-list-item p { font-size: 1rem; color: var(--clr-text-secondary); line-height: 1.6; }
.feature-list-item .card-link { margin-top: 0.5rem; }
.section-subhead + .feature-list { margin-top: 1.25rem; }
@media (max-width: 900px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .feature-list, .feature-list-2 { grid-template-columns: 1fr; } }

/* ---- TEXT + VISUAL side by side ---- */
.split-block {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.split-block h2 { margin-bottom: 1.25rem; }
@media (max-width: 860px) { .split-block { grid-template-columns: 1fr; } }

/* ---- PRICING: budget-band tier cards ---- */
.pricing-product-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; }
@media (max-width: 620px) { .billing-note { text-align: left; } }
/* Terms sit under the prices they apply to, right-aligned, out of the heading's way */
.billing-note { margin-top: 0.85rem; text-align: right; font-size: 0.875rem; color: var(--clr-text-secondary); }
.pricing-intro { max-width: 760px; margin-top: 1rem; font-size: 1.125rem; color: var(--clr-text-secondary); line-height: 1.65; }
.pricing-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.price-card .tier-label {
  font-family: var(--font-label);
  font-size: 0.8125rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--clr-warm);
  margin-bottom: 0.5rem;
}
.price-card .price-band { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.price-card .price-caption { font-size: 0.9375rem; color: var(--clr-text-secondary); margin-bottom: 1.25rem; }
.price-card .price { margin-bottom: 0.15rem; }
.tier-allowances { margin: 1.25rem 0 0; display: grid; gap: 0.6rem; flex: 1; }
.tier-allowances > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.1rem; padding-top: 0.6rem; border-top: 1px solid var(--clr-border); }
.tier-allowances dt { font-size: 0.8125rem; color: var(--clr-text-secondary); }
.tier-allowances dd { font-size: 0.9375rem; font-weight: 600; }
.tier-link { margin-top: 1.5rem; }
.bundle-note { margin-top: 1.75rem; font-size: 1.125rem; font-weight: 600; }
/* One quiet line under the tier cards: additional sites are not a fifth card or an add-on */
.additional-sites { margin-top: 1.5rem; font-size: 1.0625rem; color: var(--clr-text-secondary); max-width: 760px; }

.price-card .price-terms { font-size: 0.9375rem; color: var(--clr-text-secondary); margin-top: 0.35rem; }

.setup-note { margin-top: 1.75rem; font-size: 1.0625rem; }
.setup-note .card-link { margin-left: 0.35rem; }

/* Setup block under the Applications tiers */
.setup-block { margin-top: 2.5rem; }
.setup-block > h3, .setup-block > h4 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.setup-body { max-width: 760px; margin-top: 0.75rem; font-size: 1.0625rem; color: var(--clr-text-secondary); line-height: 1.65; }
.setup-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; margin-top: 1.75rem; }
.setup-lists h4, .setup-lists h5 { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; margin-bottom: 0.75rem; }
.setup-lists ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.setup-lists li { position: relative; padding-left: 1.35rem; font-size: 1rem; line-height: 1.55; }
.setup-lists li::before { content: ''; position: absolute; left: 0; top: 0.55rem; width: 8px; height: 8px; border-radius: 50%; background: var(--green-100); border: 1.5px solid var(--clr-accent); }
.setup-excludes li::before { background: transparent; border-color: #B8C0BC; }
.setup-additional { max-width: 760px; margin-top: 1.75rem; font-size: 1rem; color: var(--clr-text-secondary); line-height: 1.6; }
@media (max-width: 760px) { .setup-lists { grid-template-columns: 1fr; } }

/* "Included at every tier" checklist */
.checklist { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 2.5rem; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 1.0625rem; line-height: 1.55; }
.checklist svg { width: 18px; height: 18px; flex: none; margin-top: 0.3rem; color: var(--clr-accent); }
@media (max-width: 1100px) { .pricing-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pricing-grid-4 { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
}

/* ---- COMPONENT PREVIEW PAGE (non-production only) ---- */
.preview-note {
  max-width: 720px; margin: 0 auto;
  font-size: 0.9375rem; color: var(--clr-text-secondary);
}
.preview-note code { font-size: 0.8125rem; }

/* ---- PRICING PAGE LAYOUT (2026-09-22) ----
   Each product sits in its own wash, the same two as the homepage product cards: Sites in the
   green wash, Applications in the warm one. Cards and panels are white on the wash. */
.pricing-band { --product-label: var(--clr-warm); padding: var(--section-y) var(--px); }
.pricing-band-sites { background: var(--green-50); --product-label: var(--green-700); }
.pricing-band-applications { background: #F5F4F1; --product-label: var(--orange-700); }
.pricing-band .pricing-sized-by { color: var(--product-label); }
.pricing-band .pricing-product { scroll-margin-top: 90px; }
.pricing-band .pricing-intro { max-width: 640px; margin-top: 0.75rem; font-size: 1.125rem; color: var(--clr-text-secondary); }
.pricing-band .pricing-grid { margin-top: 2rem; }
.pricing-band .price-card { padding: 1.75rem 1.75rem 1.5rem; }
.pricing-band .pricing-grid-tiers .price-card:not(.featured) { padding-top: 1.75rem; }
.pricing-band .price-card .tier-label { color: var(--product-label); }
.pricing-band .price-card .price-caption { margin-bottom: 1rem; }
.pricing-band .price-card .price-desc { margin-top: 0.5rem; }

/* The page's map: one tinted card per product under the hero, linking to its section. */
.pricing-chooser {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem; margin-top: 2.5rem; max-width: 760px;
}
.chooser-card {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--clr-border); border-radius: var(--radius-lg);
  text-decoration: none; color: inherit;
  transition: border-color 0.2s;
}
.chooser-card:hover, .chooser-card:focus-visible { border-color: var(--clr-accent); }
.chooser-card-sites { background: var(--green-50); }
.chooser-card-applications { background: #F5F4F1; }
/* Each of these is a <p>, so `.hero p` outranks a single class and blows the sizes up.
   Scoping to the card wins on specificity and keeps the label the same size as every other one. */
.chooser-card .chooser-label {
  font-family: var(--font-label); font-size: 0.875rem; font-weight: 500; line-height: 1.4;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--clr-text-secondary);
}
.chooser-card-sites .chooser-label { color: var(--green-700); }
.chooser-card-applications .chooser-label { color: var(--orange-700); }
.chooser-card .chooser-name { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.chooser-card .chooser-price { font-size: 1rem; color: var(--clr-text-secondary); }
.chooser-price strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--clr-text); }
.chooser-link { margin-top: 0.5rem; font-size: 0.9375rem; font-weight: 600; color: var(--clr-accent); }

/* Allowances and support, one row each, one column per tier. */
.compare-wrap { margin-top: 1.5rem; overflow-x: auto; }
.compare-wrap:focus-visible { outline: 2px solid var(--clr-accent); outline-offset: 3px; }
.compare-table {
  width: 100%; margin: 0;
  border-collapse: separate; border-spacing: 0;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border); border-radius: var(--radius-lg);
  overflow: hidden; text-align: left;
}
.compare-table th, .compare-table td {
  padding: 0.8rem 1.25rem; font-size: 0.9375rem; line-height: 1.45;
  border-bottom: 1px solid var(--clr-border); vertical-align: top;
}
.compare-table thead th { background: var(--clr-surface-alt); vertical-align: bottom; }
.compare-table thead th:first-child {
  font-family: var(--font-label); font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--clr-text-secondary);
}
.compare-tier { display: block; font-family: var(--font-label); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--product-label); }
.compare-band { display: block; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; margin-top: 0.15rem; }
.compare-table tbody th { font-weight: 500; color: var(--clr-text-secondary); width: 22%; }
.compare-table tbody td { font-weight: 600; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table thead th:not(:first-child), .compare-table tbody td { width: 19.5%; }

.pricing-band .additional-sites { margin-top: 1.25rem; }

/* White panels on the wash: onboarding, and the Applications setup block. */
.pricing-panel {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border); border-radius: var(--radius-lg);
  padding: 2rem 2.25rem 2.25rem;
}
.pricing-band .onboarding, .pricing-band .setup-block { margin-top: 2.5rem; }
/* A footnote on the onboarding table: the marker is a link, so it reads and navigates both ways. */
.footnote-ref { font-size: 0.75em; text-decoration: none; color: var(--clr-accent); font-weight: 600; }
.footnote-ref sup { font-size: 1em; }
.footnote-ref:hover { text-decoration: underline; }
.table-footnote { margin-top: 0.85rem; font-size: 0.875rem; color: var(--clr-text-secondary); line-height: 1.6; }
.table-footnote sup { margin-right: 0.15rem; }
.footnote-back { margin-left: 0.25rem; color: var(--clr-accent); text-decoration: none; }
.footnote-back:hover { text-decoration: underline; }
.pricing-panel .setup-lists { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--clr-border); }
.pricing-band .bundle-note { margin-top: 1.5rem; }

/* Renewals band: ten years of CPI against the cap. One series, so no legend — the title names it;
   the part of 2022 above the cap is the piece the cap absorbs, drawn in the warm token.
   Colours checked against this surface: CVD separation 9.6, normal vision 21.9, contrast over 3:1. */
.cpi-figure { margin: 0; }
.cpi-chart { display: block; width: 100%; height: auto; overflow: visible; }
.cpi-bar { fill: #56C08C; }
.cpi-bar-over { fill: #EE8A3C; }
.cpi-cap { stroke: #FFFFFF; stroke-width: 2; stroke-dasharray: 6 5; opacity: 0.85; }
.cpi-base { stroke: #FFFFFF; stroke-width: 1; opacity: 0.35; }
.cpi-cap-label, .cpi-value, .cpi-year {
  font-family: var(--font-label); font-size: 13px; font-weight: 500;
}
.cpi-cap-label { fill: #FFFFFF; letter-spacing: 0.04em; }
.cpi-value { fill: #FFFFFF; font-family: var(--font-body); font-weight: 600; font-size: 14px; }
.cpi-year { fill: #A9D6BF; font-size: 12px; }
/* The svg scales with the column, so on a phone the year labels would fall below a readable size.
   Keep the three that anchor the axis — first, last, and the year the cap bit — and enlarge them. */
@media (max-width: 620px) {
  .cpi-year { display: none; }
  .cpi-year.is-anchor { display: block; font-size: 18px; }
  .cpi-value { font-size: 20px; }
  .cpi-cap-label { font-size: 17px; }
}
.cpi-caption { margin-top: 1.1rem; font-size: 0.9375rem; line-height: 1.6; color: #D3E6DC; }
.cpi-source { display: block; margin-top: 0.5rem; font-size: 0.8125rem; color: #A9D6BF; }
.cpi-source a { color: #fff; }
@media (forced-colors: active) {
  .cpi-bar, .cpi-bar-over { fill: CanvasText; }
  .cpi-bar-over { opacity: 0.6; }
}

/* A worked example set inside a breadth section: one case shown in full, without a new section. */
.worked-example { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--clr-border); }
.worked-example h3 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; margin-bottom: 0.75rem; }
.worked-example .section-link { margin-top: 0.75rem; }

/* Questions, grouped by product. */
.faq-group { margin-top: 2.5rem; }
.faq-group h3 {
  font-family: var(--font-label); font-size: 0.8125rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--clr-warm);
  margin-bottom: 0.5rem;
}
.faq-group .faq-list { margin-top: 0; }

@media (max-width: 760px) {
  .pricing-chooser { grid-template-columns: 1fr; }
  .compare-table th, .compare-table td { padding: 0.65rem 0.85rem; font-size: 0.875rem; white-space: nowrap; }
  .compare-table tbody th { white-space: normal; min-width: 8rem; }
  .pricing-panel { padding: 1.5rem 1.25rem; }
}

/* ---- DEFINITION TOOLTIPS ----
   A term with a definition is a button: hover, keyboard focus or a tap shows it. The panel is
   positioned fixed by js/tips.js so the table's scroll container cannot clip it, and it is
   hoverable, Escape-dismissible and persistent (WCAG 2.2 SC 1.4.13). */
.tip-wrap { position: relative; display: inline-block; }
.tip-trigger {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: left;
  cursor: help;
  border-bottom: 1px dotted var(--clr-text-tertiary);
}
.tip-trigger:hover { color: var(--clr-text); border-bottom-color: var(--clr-accent); }
.tip-trigger:focus-visible { outline: 2px solid var(--clr-accent); outline-offset: 3px; border-radius: 2px; }
.tip-icon { width: 13px; height: 13px; flex: none; color: var(--clr-text-tertiary); }
.tip-trigger:hover .tip-icon, .tip-wrap.is-open .tip-icon { color: var(--clr-accent); }
.tip {
  position: fixed; top: 0; left: 0; z-index: 60;
  width: max-content; max-width: min(280px, calc(100vw - 2rem));
  padding: 0.7rem 0.85rem;
  background: var(--clr-band); color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(12, 59, 43, 0.18);
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 400; line-height: 1.5;
  white-space: normal;
  opacity: 0; pointer-events: none;
  transition: opacity 0.12s ease;
}
.tip-wrap.is-open .tip { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .tip { transition: none; } }

/* ---- HERO SCREENSHOT (a real product screen, shown at a readable size on a quiet panel) ---- */
.hero-shot {
  margin: 2.5rem 0 0; padding: clamp(1.5rem, 4vw, 3rem) 1rem;
  background: var(--clr-surface-alt); border: 1px solid var(--clr-border); border-radius: 6px;
  display: flex; justify-content: center;
}
.hero-shot img {
  width: 100%; max-width: 380px; height: auto;
  border-radius: 6px; box-shadow: 0 8px 28px rgba(16, 32, 26, 0.12);
}
/* A landscape composite (list plus panel) uses the full width; its own cards carry the shadows. */
.hero-shot-wide { padding: clamp(1rem, 3vw, 2rem); }
.hero-shot-wide img { max-width: none; box-shadow: none; border-radius: 0; }
@media (max-width: 640px) {
  /* Phones get the narrow crop, so the wide variant falls back to the portrait treatment. */
  .hero-shot-wide { padding: 1.5rem 1rem; }
  .hero-shot-wide img { max-width: 380px; box-shadow: 0 8px 28px rgba(16, 32, 26, 0.12); border-radius: 6px; }
}
/* A real product screen beside the portals text on /sites. */
.portal-shot { margin: 0; }
.portal-shot img { display: block; width: 100%; height: auto; }

/* ---- ABOUT: the main street drawing between the hero and the story ---- */
.about-illustration { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.about-illustration img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) {
  /* Crop toward the city hall and the notice board instead of shrinking the whole street */
  .about-illustration img { height: 200px; object-fit: cover; object-position: 58% 70%; }
}

/* "Updated <Month Year>" on /pricing and case studies: the content revision date, the same one the
   sitemap's lastmod and the page's JSON-LD dateModified carry. */
.hero .updated-line { margin-top: 1rem; font-family: var(--font-label); font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--clr-text-secondary); }

