/* ============================================================================
   MarginMax Solutions — Design System
   Source: vault/MarginMax-CRM/Brand/Colors-Fonts.md
   Style: warm paper, forest green, gold accents. Editorial, blue-collar premium.
   Type: Source Serif 4 (display) + Inter (body) + JetBrains Mono (metadata)
   ============================================================================ */

/* --- Tokens --------------------------------------------------------------- */

:root {
  /* Greens */
  --green-dark:  #2D3226;
  --green-mid:   #424838;
  --green-line:  #5C6450;

  /* Golds */
  --gold:        #B58033;
  --gold-light:  #D1AC5C;

  /* Paper */
  --paper:       #E8E2D3;
  --paper-soft:  #F0EBDD;
  --paper-warm:  #DDD6C5;

  /* Ink */
  --ink:         #1F2118;
  --ink-soft:    #4A4D40;
  --ink-mute:    #7A7C70;

  /* Lines */
  --line:        rgba(45, 50, 38, 0.12);
  --line-strong: rgba(45, 50, 38, 0.25);

  /* Status */
  --error:       #9B2C2C;
  --success:     #2F6B3A;

  /* Spacing rhythm */
  --space-section: clamp(64px, 10vw, 132px);
  --radius-card:   12px;
  --radius-button: 10px;
}

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "hlig" 0, "calt" 0;
  font-variant-ligatures: no-common-ligatures no-discretionary-ligatures no-historical-ligatures no-contextual;
}

html, body { height: 100%; }

/* --- Base ----------------------------------------------------------------- */

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Subtle paper texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(181, 128, 51, 0.04), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(45, 50, 38, 0.035), transparent 55%);
  z-index: 0;
}

/* Paper grain — subtle SVG noise overlay for warmth, never dominant */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.20  0 0 0 0 0.15  0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

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

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 76px) clamp(24px, 5vw, 64px) clamp(56px, 8vw, 112px);
}

.wrap--narrow { max-width: 920px; }
.wrap--wide   { max-width: 1320px; }

/* Section spacing */
section { margin-bottom: var(--space-section); }
section:last-of-type { margin-bottom: 0; }

/* --- Top Nav (for sub-pages) --------------------------------------------- */

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.topnav .nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--green-dark);
  position: relative;
}

.topnav .nav-brand[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translate(-50%, 100%);
  background: var(--green-dark);
  color: var(--paper-soft);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 20;
}

.topnav .nav-brand[data-tooltip]:hover::after,
.topnav .nav-brand[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, calc(100% + 4px));
}

.topnav .nav-brand img {
  height: 160px;
  width: auto;
}

.topnav .nav-brand-text {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.topnav .nav-brand-text .dot { color: var(--gold); }

.topnav .nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  list-style: none;
}

.topnav .nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 120ms ease;
}

.topnav .nav-links a:hover,
.topnav .nav-links a[aria-current="page"] { color: var(--gold); }

.topnav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-dark);
  color: var(--paper-soft);
  padding: 13px 24px;
  border-radius: var(--radius-button);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background 120ms ease, transform 120ms ease;
}

.topnav .nav-cta:hover {
  background: var(--green-mid);
}

.topnav .nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.topnav .nav-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--green-dark);
}

/* Mobile nav */
@media (max-width: 880px) {
  .topnav .nav-links,
  .topnav .nav-cta { display: none; }
  .topnav .nav-toggle { display: inline-flex; }

  .topnav .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 16px clamp(20px, 5vw, 48px);
    gap: 14px;
    z-index: 10;
  }
}

/* --- Eyebrow ------------------------------------------------------------- */

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(181, 128, 51, 0.18);
}

/* --- Section label ------------------------------------------------------- */

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}

/* --- Typography ---------------------------------------------------------- */

h1 {
  font-family: 'Source Serif 4', serif;
  font-weight: 500;
  font-size: clamp(40px, 6.6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--green-dark);
  margin-bottom: 30px;
  max-width: 20ch;
}

h1.tight { max-width: 15ch; }

h2 {
  font-family: 'Source Serif 4', serif;
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--green-dark);
  margin-bottom: 26px;
  max-width: 28ch;
}

h3 {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.25;
  color: var(--green-dark);
  margin-bottom: 12px;
}

h1 .gold,
h2 .gold,
h3 .gold {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}

.lede {
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--ink-soft);
  max-width: 70ch;
  margin-bottom: 52px;
  line-height: 1.6;
}

p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 17px;
}

p strong { color: var(--ink); font-weight: 600; }

a { color: var(--gold); text-decoration: none; transition: color 120ms ease; }
a:hover { color: var(--gold-light); }

/* Pull quote */
.pullquote {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.35;
  color: var(--green-dark);
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 24px;
  margin: 36px 0;
  max-width: 38ch;
}

.signoff {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  margin: 28px 0 36px;
}

/* --- CTA buttons --------------------------------------------------------- */

.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 12px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-dark);
  color: var(--paper-soft);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.005em;
  padding: 16px 28px;
  border-radius: var(--radius-button);
  text-decoration: none;
  border: 1px solid var(--green-dark);
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
  box-shadow: 0 1px 0 rgba(45, 50, 38, 0.08), 0 8px 24px -12px rgba(45, 50, 38, 0.35);
}

.cta:hover {
  background: var(--green-mid);
  color: var(--paper-soft);
  box-shadow: 0 1px 0 rgba(45, 50, 38, 0.1), 0 14px 28px -12px rgba(45, 50, 38, 0.4);
}

.cta .arrow {
  display: inline-block;
  transition: transform 140ms ease;
  color: var(--gold-light);
  font-weight: 500;
}

.cta:hover .arrow { transform: translateX(3px); }

.cta--secondary {
  background: transparent;
  color: var(--green-dark);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.cta--secondary:hover {
  background: var(--paper-soft);
  color: var(--green-dark);
  border-color: var(--green-line);
}

.cta-alt {
  font-size: 14px;
  color: var(--ink-mute);
}

.cta-alt a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 120ms ease, border-color 120ms ease;
}

.cta-alt a:hover { color: var(--gold); border-color: var(--gold); }

/* --- Card grids ---------------------------------------------------------- */

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  transition: border-color 140ms ease, transform 140ms ease;
}

.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.card .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.card h3 { margin-bottom: 8px; }

.card p {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
}

/* --- Icon-numbered list (1-2-3 patterns) --------------------------------- */

.get-list {
  list-style: none;
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.get-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}

.get-list .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 22px;
}

.get-list h3 { margin-bottom: 6px; }
.get-list p { font-size: 15px; line-height: 1.6; margin-bottom: 0; }

/* --- Services grid (chip list) ------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  list-style: none;
  margin-top: 16px;
}

.services-grid li {
  font-size: 15px;
  color: var(--ink);
  padding-left: 18px;
  position: relative;
}

.services-grid li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* --- Bordered panel ------------------------------------------------------ */

.panel {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 32px;
}

/* --- FAQ accordion ------------------------------------------------------- */

.faq { display: grid; gap: 12px; }

details {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  transition: border-color 120ms ease;
}

details[open] { border-color: var(--line-strong); }

summary {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--green-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 400;
  color: var(--gold);
  transition: transform 180ms ease;
}

details[open] summary::after { content: '−'; }

details p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 0;
}

/* --- Forms --------------------------------------------------------------- */

.form-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 36px);
}

.form-intro {
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 24px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.005em;
}

.field label .req { color: var(--error); margin-left: 2px; }

.field label .hint {
  display: block;
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 400;
  margin-top: 2px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-button);
  padding: 12px 14px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 128, 51, 0.18);
}

@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; }
}

/* --- Contact grid -------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}

.contact-item { display: flex; flex-direction: column; gap: 4px; }

.contact-key {
  font-size: 13px;
  color: var(--ink-mute);
}

.contact-val {
  font-family: 'Source Serif 4', serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--green-dark);
  text-decoration: none;
  transition: color 120ms ease;
}

.contact-val:hover { color: var(--gold); }

@media (max-width: 540px) {
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* --- Status messages ----------------------------------------------------- */

.status-msg {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-button);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.55;
}

.status-msg.error {
  display: block;
  background: rgba(155, 44, 44, 0.08);
  border: 1px solid rgba(155, 44, 44, 0.25);
  color: var(--error);
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(64px, 10vw, 120px);
  padding-top: 56px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  color: var(--ink-mute);
}

.site-footer .legal-name {
  font-weight: 500;
  color: var(--ink-soft);
}

.site-footer .footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer .footer-links { margin-top: 6px; }

.site-footer .footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 120ms ease, border-color 120ms ease;
}

.site-footer .footer-links a:hover { color: var(--gold); border-color: var(--gold); }

.site-footer .footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.site-footer .social {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  color: var(--green-dark);
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.site-footer .social svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.site-footer .social:hover {
  background: var(--green-dark);
  color: var(--gold);
  border-color: var(--green-dark);
  transform: translateY(-1px);
}

/* --- Editorial pullquote ------------------------------------------------- */

.pull {
  font-family: 'Source Serif 4', serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--green-dark);
  max-width: 24ch;
  margin: clamp(36px, 5vw, 56px) 0;
  padding-left: clamp(24px, 4vw, 44px);
  position: relative;
}

.pull::before {
  content: '\201C';
  position: absolute;
  left: -0.05em;
  top: -0.35em;
  font-family: 'Source Serif 4', serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(72px, 10vw, 120px);
  line-height: 1;
  color: var(--gold);
  opacity: 0.85;
  pointer-events: none;
}

.pull--right {
  margin-left: auto;
  text-align: right;
  padding-left: 0;
  padding-right: clamp(24px, 4vw, 44px);
}

.pull--right::before {
  left: auto;
  right: -0.05em;
  content: '\201D';
}

/* --- Tagline moment ------------------------------------------------------ */

.tagline-moment {
  text-align: center;
  padding: clamp(56px, 9vw, 96px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tagline-moment .tagline {
  font-family: 'Source Serif 4', serif;
  font-weight: 500;
  font-size: clamp(30px, 4.8vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--green-dark);
  max-width: 24ch;
  margin: 0 auto;
}

.tagline-moment .tagline .beat {
  display: block;
}

.tagline-moment .tagline .beat--accent {
  color: var(--gold);
  font-style: italic;
}

.tagline-moment .signoff {
  display: block;
  margin-top: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* --- Editorial numbered list (services TOC pattern) -------------------- */

.editorial-list {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.editorial-list li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease;
}

.editorial-list li:hover {
  background: rgba(181, 128, 51, 0.05);
}

.editorial-list .ord {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}

.editorial-list .name {
  font-family: 'Source Serif 4', serif;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  color: var(--green-dark);
  letter-spacing: -0.005em;
}

.editorial-list .meta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic;
}

@media (max-width: 640px) {
  .editorial-list li { grid-template-columns: 44px 1fr; }
  .editorial-list .meta { grid-column: 2; margin-top: 4px; }
}

/* --- Scroll entrance ----------------------------------------------------- */

.scroll-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.scroll-fade.is-in {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-fade { opacity: 1; transform: none; transition: none; }
}

/* --- Refined CTA arrow micro-interaction -------------------------------- */

.cta:hover .arrow { transform: translateX(6px); }

/* --- Utilities ----------------------------------------------------------- */

.text-gold { color: var(--gold); }
.text-mute { color: var(--ink-mute); }
.italic { font-style: italic; }
.center { text-align: center; }

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: clamp(32px, 5vw, 56px) 0;
}

.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;
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   DUAL CTA  — choose: talk to the AI agent OR send a message
   AI option is primary (dark panel + gold button). Form is secondary.
   ============================================================ */
.dual-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2.4vw, 24px);
  align-items: stretch;
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}
.dual-cta__ai,
.dual-cta__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}
.dual-cta__ai {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.dual-cta__form { background: var(--green-dark); border-color: var(--green-dark); }

.dual-cta__tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.dual-cta__ai .dual-cta__tag { color: var(--gold-light); }
.dual-cta__form .dual-cta__tag { color: var(--paper-warm); }

.dual-cta__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: var(--green-dark);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  padding: 16px 22px;
  border-radius: var(--radius-button);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(45,50,38,0.12), 0 10px 24px -14px rgba(0,0,0,0.5);
  transition: background 120ms ease, transform 120ms ease;
}
.dual-cta__primary:hover { background: var(--gold-light); color: var(--green-dark); }
.dual-cta__primary .arrow { color: var(--green-dark); }

.dual-cta__ai .dual-cta__sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--paper-warm);
}
.dual-cta__phone {
  font-size: 14px;
  line-height: 1.5;
  color: var(--paper-soft);
  margin-top: auto;
}
.dual-cta__copy {
  font: inherit;
  background: none;
  border: 0;
  border-bottom: 1px dashed var(--gold-light);
  color: var(--paper-soft);
  cursor: pointer;
  padding: 0 0 1px;
}
.dual-cta__copy strong { color: var(--gold-light); font-weight: 700; }
.dual-cta__copied {
  display: inline-block;
  margin-left: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  opacity: 0;
  transition: opacity 120ms ease;
}
.dual-cta__copied.show { opacity: 1; }

.dual-cta__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: var(--green-dark);
  border: 1px solid var(--gold);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: var(--radius-button);
  text-decoration: none;
  transition: background 120ms ease, transform 120ms ease;
}
.dual-cta__secondary:hover { background: var(--gold-light); color: var(--green-dark); }
.dual-cta__form .dual-cta__sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--paper-warm);
  margin-top: auto;
}

@media (max-width: 640px) {
  .dual-cta {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
}

/* ============================================================
   INTAKE FORM  — sectioning, choice chips (checkbox/radio), reveal
   ============================================================ */
.form-section-head {
  margin: 8px 0 16px;
}
.form-section-head:not(:first-child) {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.form-section-head .step {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.form-section-head h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--green-dark);
  margin-top: 4px;
}

/* A labelled group of choices (checkbox or radio) */
.field-group { margin-bottom: 24px; }
.field-group > .group-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.4;
}
.field-group > .group-label .hint {
  display: inline;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-mute);
  margin-left: 6px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.choice-grid--single { grid-template-columns: 1fr; }

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-button);
  background: var(--paper);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}
.choice:hover { border-color: var(--green-line); }
.choice input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.choice.is-checked,
.choice:has(input:checked) {
  border-color: var(--gold);
  background: var(--paper-soft);
  box-shadow: inset 0 0 0 1px var(--gold);
}

/* Reveal field (e.g. "Something else") */
.reveal-field {
  display: none;
  margin-top: 10px;
}
.reveal-field.show { display: block; }

@media (max-width: 540px) {
  .choice-grid { grid-template-columns: 1fr; }
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(155, 44, 44, 0.15);
}

/* SMS opt-in consent block */
.consent {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-button);
  padding: 18px 20px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green-dark);
  cursor: pointer;
  flex-shrink: 0;
}
.consent label {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.55;
  cursor: pointer;
}
.consent label strong { color: var(--ink); font-weight: 600; }
.consent a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(181, 128, 51, 0.4);
}
.consent a:hover { border-bottom-color: var(--gold); }
