/* Llave Group — Marketing & long-form content styles
 * Extends styles.css. Reuses brand tokens (:root in styles.css).
 * Loaded by /guide/*, /resources/*, /residency-arizona/, /thank-you/.
 *
 * THEME: dark glass over the homepage mesh gradient.
 * These pages used to be a light cream theme with a solid green hero band,
 * which read as a different website from llavegroup.com. They now sit on the
 * same fixed mesh gradient as the homepage and use the same glass-panel
 * vocabulary (translucent white fills, 1px light borders, backdrop blur).
 *
 * Two deliberate departures from the homepage, both for long-form legibility:
 *   1. The gradient's drift animation is disabled here. A 6s scale pulse behind
 *      4,000 words of body copy is genuinely distracting; behind a short hero
 *      it is not.
 *   2. Article copy sits on a glass "sheet" rather than directly on the
 *      gradient, so text always has a calm surface under it regardless of which
 *      part of the gradient it happens to land on.
 *
 * Every colour below is light-on-dark. If you add a rule here, do NOT reach for
 * var(--green) / var(--text) / var(--text-soft) for foreground — those are the
 * light-theme tokens and they vanish on this background. Use the --ink-* and
 * --glass-* tokens defined on body.marketing.
 */

body.marketing {
  /* Local theme tokens. Scoped to .marketing so the light-theme pages that
     share styles.css are untouched. */
  /* Panels that sit ON the dark sheet. Held to 0.06 deliberately: every point of
     lightening here costs text contrast on the surface underneath. Depth comes
     from the border, not the fill. */
  --glass:        rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.13);
  --glass-border: rgba(255, 255, 255, 0.20);
  --glass-hair:   rgba(255, 255, 255, 0.12);

  /* The reading surfaces are DARK scrims, not light ones. The mesh gradient runs
     from rgb(13,50,74) at its darkest to rgb(231,179,149) — a warm peach — at its
     lightest, and that peach sits top-left, exactly where an article scrolls.
     White body text directly on it measures 1.86:1, far under the 4.5:1 WCAG AA
     floor, and a translucent WHITE sheet makes it worse, not better.

     These alphas were solved against the peach worst case and hold every
     foreground token below above 4.5:1 on every surface — including text nested
     three deep (sheet -> card -> table header). Do not lighten them without
     re-checking contrast over rgb(231,179,149). */
  --glass-sheet:  rgba(18, 48, 40, 0.72);
  --scrim-hero:   rgba(13, 38, 32, 0.68);
  --scrim-band:   rgba(13, 38, 32, 0.68);

  --ink:          #FFFFFF;
  --ink-body:     rgba(255, 255, 255, 0.85);
  --ink-soft:     rgba(255, 255, 255, 0.80);

  /* Gold for TEXT. The brand golds (--gold #D4A853, --gold-light #E8C97A) are
     fills, not foregrounds: on these surfaces they measure 3.1:1 and 4.1:1, both
     under AA. This lightened gold keeps the accent and clears 4.75:1 everywhere.
     Use --gold / --gold-light only where they are a BACKGROUND with dark text
     on top (buttons, numbered badges, the factbox rule). */
  --gold-ink:     #EED9A0;

  /* Text/iconography that sits ON a gold fill. Brand --green (#1B4D3E) on
     #D4A853 measures 4.37:1 — just under AA, and these labels are ~15px bold,
     which is not large text. This deeper green clears 5.2:1 on --gold and
     7.2:1 on --gold-light (the hover fill). */
  --on-gold:      #16402F;

  background: var(--cream);
  color: var(--ink-body);
  overflow-x: hidden;
}

/* The mesh gradient is the shared visual signature — show it, but hold it
   still. .bg-gradient is position:fixed / z-index:0 in styles.css. */
body.marketing .bg-gradient {
  display: block;
  animation: none;
  transform: none;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Everything else has to sit above the gradient. */
body.marketing > *:not(.bg-gradient) {
  position: relative;
  z-index: 1;
}

/* ---------- Top navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--scrim-band);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--glass-hair);
}

.site-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.site-nav-brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.2px;
}

.site-nav-brand small {
  display: block;
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-soft);
  margin-top: 1px;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
}

.site-nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.site-nav-links a:hover { color: var(--gold-ink); }

/* Glass pill, matching the homepage's nav button rather than a solid fill. */
.site-nav-cta {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}

.site-nav-cta:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.32);
}

/* ---------- Article hero ---------- */
/* The gradient itself is the hero, as on the homepage — but a scrim goes over
   it so headline and lede clear contrast even where the gradient is palest. */
.article-hero {
  background: transparent;
  color: var(--ink);
  padding: 76px 24px 60px;
  position: relative;
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Near-flat on purpose. An earlier version faded to 0.34 at the bottom, which
     is exactly where the lede and the byline sit — and --ink-soft fails AA at
     that strength. The small falloff is cosmetic; the floor stays safe. */
  background: linear-gradient(180deg, var(--scrim-hero) 0%, rgba(13, 38, 32, 0.63) 100%);
  pointer-events: none;
}

.article-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.article-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-ink);
  margin-bottom: 14px;
}

.article-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 18px;
  color: var(--ink);
  letter-spacing: -0.5px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.16);
}

.article-hero .lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  margin: 0 0 24px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.12);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.article-meta strong { color: var(--ink); font-weight: 600; }

/* Byline link. Without this it inherits the browser default (#0000EE). */
.article-meta a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 3px;
}
.article-meta a:hover { text-decoration-color: var(--ink); }

/* ---------- Article body layout ---------- */
/* The glass sheet. Long-form copy gets a consistent surface instead of riding
   directly on whatever part of the gradient it lands over. */
.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 52px 56px 72px;
  position: relative;
  background: var(--glass-sheet);
  border: 1px solid var(--glass-hair);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
  margin-bottom: 72px;
}

.article-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  font-weight: 600;
  color: var(--ink);
  margin: 56px 0 18px;
  line-height: 1.25;
  letter-spacing: -0.3px;
  scroll-margin-top: 90px;
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-family: var(--font);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 10px;
  scroll-margin-top: 90px;
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--ink-body);
  margin-bottom: 18px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 22px 1.2rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-body);
}

.article-body li { margin-bottom: 8px; }

.article-body strong { color: var(--ink); font-weight: 600; }

.article-body small { color: var(--ink-soft); }

.article-body em { color: var(--ink-body); }

/* Body links are white, underlined in a dimmer white so they still read as
   links without turning the page into a field of bright text. */
.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.42);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.article-body a:hover { text-decoration-color: var(--ink); }

/* ---------- Table of contents ---------- */
.toc {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 22px 26px;
  margin: 36px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.toc-title {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold-ink);
  margin-bottom: 14px;
}

.toc ol {
  margin: 0;
  padding-left: 1.4rem;
  font-size: 0.98rem;
}

.toc ol li {
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.toc ol li a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}

.toc ol li a:hover { color: var(--gold-ink); }

/* ---------- Callout / inline offer ---------- */
.callout {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.20) 0%, rgba(212, 168, 83, 0.07) 100%);
  border: 1px solid rgba(212, 168, 83, 0.42);
  border-radius: 18px;
  padding: 26px 28px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.callout-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gold);
  display: grid;
  place-items: center;
  color: var(--on-gold);
}

.callout-text { flex: 1 1 220px; }

.callout-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 4px;
  font-weight: 600;
}

.callout-text span {
  font-size: 0.95rem;
  color: var(--ink-body);
  line-height: 1.55;
}

.callout-btn {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--on-gold) !important;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.callout-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ---------- Info card / fact box ---------- */
.factbox {
  background: var(--glass);
  border: 1px solid var(--glass-hair);
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--ink-body);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.factbox strong { color: var(--ink); }

/* ---------- Comparison table ---------- */
/* Wide tables must scroll inside their own box, never widen the page. */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 28px 0;
  font-size: 0.96rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.compare th,
.compare td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--glass-hair);
  vertical-align: top;
  color: var(--ink-body);
}

.compare th {
  background: rgba(0, 0, 0, 0.14);
  font-weight: 600;
  color: var(--gold-ink);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.compare tr:last-child td { border-bottom: none; }

.compare td:first-child {
  font-weight: 600;
  color: var(--ink);
}

.compare td small { color: var(--ink-soft); }

.compare strong { color: var(--ink); }

/* ---------- FAQ accordion ---------- */
.faq-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: background 0.15s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold-ink);
  transition: transform 0.2s;
  width: 24px;
  text-align: center;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item summary:hover { background: rgba(255, 255, 255, 0.06); }

.faq-item-body {
  padding: 0 22px 18px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-body);
}

.faq-item-body p { margin-bottom: 12px; color: var(--ink-body); }
.faq-item-body p:last-child { margin-bottom: 0; }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: rgba(13, 38, 32, 0.80);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink);
  padding: 18px 22px;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  max-width: 260px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sticky-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.sticky-cta strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}

.sticky-cta span {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.sticky-cta-arrow {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-ink);
}

/* ---------- Sections (landing-page blocks) ---------- */
.section { padding: 72px 24px; }

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-ink);
  margin-bottom: 12px;
  text-align: center;
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-sub {
  text-align: center;
  font-size: 1.05rem;
  color: var(--ink-body);
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.65;
}

.section.alt { background: rgba(0, 0, 0, 0.12); }

/* ---------- Three-column grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.process-step {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 32px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
}

.section.alt .process-step {
  background: var(--glass-strong);
  border-color: var(--glass-border);
}

.process-step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-gold);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.process-step h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-body);
}

/* Trust strip variant */
.trust-item {
  text-align: center;
  padding: 24px 18px;
}

.trust-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.trust-item span {
  font-size: 0.94rem;
  color: var(--ink-body);
}

/* ---------- Pricing block ---------- */
.pricing-block {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 36px 32px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 560px;
  margin: 0 auto;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed var(--glass-hair);
  font-size: 1rem;
}

.pricing-row:last-child { border-bottom: none; }

.pricing-label { color: var(--ink-body); font-weight: 500; }

.pricing-amount {
  color: var(--ink);
  font-weight: 700;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.pricing-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.55;
}

/* ---------- Testimonial cards ---------- */
.testimonial {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 28px 26px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.testimonial blockquote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-body);
  margin-bottom: 18px;
  font-style: italic;
  position: relative;
  padding-left: 22px;
}

.testimonial blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -8px;
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}

.testimonial-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

.testimonial-city {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- CTA section ---------- */
.cta-section {
  background: var(--scrim-band);
  border-top: 1px solid var(--glass-hair);
  border-bottom: 1px solid var(--glass-hair);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  text-align: center;
  padding: 80px 24px;
}

.cta-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: var(--ink);
  margin-bottom: 14px;
  font-weight: 600;
}

.cta-section p {
  color: var(--ink-body);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.cta-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--on-gold) !important;
  padding: 16px 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.cta-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* ---------- Lead capture form ---------- */
.lead-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 36px 32px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 460px;
  margin: 0 auto;
}

.lead-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lead-form input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--font);
  border: 1.5px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}

.lead-form input::placeholder { color: rgba(255, 255, 255, 0.5); }

.lead-form input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.16);
}

.lead-form button {
  width: 100%;
  background: var(--gold);
  color: var(--on-gold);
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.lead-form button:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.lead-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.lead-form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2em;
  color: var(--ink-body);
}

.lead-form-status.success { color: var(--gold-ink); }
.lead-form-status.error { color: #FFB4B4; }

.lead-form-fineprint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 14px;
  line-height: 1.55;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--scrim-band);
  border-top: 1px solid var(--glass-hair);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink-body);
  padding: 48px 24px 32px;
  font-size: 0.9rem;
}

.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.site-footer h4 {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-ink);
  margin-bottom: 14px;
}

.site-footer a {
  color: var(--ink-body);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: color 0.15s;
}

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

.site-footer-brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 12px;
}

.site-footer-disc {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 380px;
}

.site-footer-bottom {
  max-width: 1080px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--glass-hair);
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  /* Sheet goes edge-to-edge once the side padding costs more than it buys. */
  .article-body {
    padding: 44px 26px 60px;
    border-radius: 18px;
    max-width: none;
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media (max-width: 720px) {
  .site-nav-links a:not(.site-nav-cta) { display: none; }

  .article-hero { padding: 56px 22px 40px; }
  .article-body { padding: 36px 20px 52px; }
  .article-body p, .article-body ul, .article-body ol { font-size: 1rem; }

  .toc { padding: 20px 22px; }

  .callout { padding: 22px 20px; gap: 16px; }
  .callout-btn { width: 100%; text-align: center; }

  /* Tables scroll in place rather than pushing the page sideways. */
  .compare { display: block; overflow-x: auto; white-space: nowrap; }
  .compare th, .compare td { padding: 12px 14px; font-size: 0.9rem; }

  .sticky-cta {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    flex-direction: row;
    align-items: center;
    padding: 14px 18px;
    gap: 12px;
  }
  .sticky-cta strong { font-size: 0.98rem; margin-bottom: 2px; }
  .sticky-cta span { display: none; }
  .sticky-cta-arrow { margin-top: 0; margin-left: auto; }

  .section { padding: 56px 22px; }
  .cta-section { padding: 60px 22px; }

  .site-footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 420px) {
  .article-hero h1 { font-size: 1.7rem; }
  .article-body h2 { font-size: 1.4rem; }
  .article-body h3 { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .callout-btn:hover,
  .cta-primary:hover,
  .sticky-cta:hover,
  .lead-form button:hover { transform: none; }
}

/* ---------- Print ---------- */
/* Back to ink-on-paper — the glass theme prints as grey mud. */
@media print {
  body.marketing { background: #fff; color: #000; }
  body.marketing .bg-gradient { display: none; }
  .site-nav, .sticky-cta, .site-footer { display: none; }

  .article-hero { background: none; padding: 0 0 24px; }
  .article-hero h1,
  .article-hero .lede,
  .article-hero .article-eyebrow,
  .article-meta,
  .article-meta strong,
  .article-meta a { color: #000; text-shadow: none; }

  .article-body {
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .article-body h2,
  .article-body h3,
  .article-body p,
  .article-body li,
  .article-body strong,
  .article-body a,
  .article-body small,
  .factbox,
  .factbox strong,
  .faq-item summary,
  .faq-item-body,
  .compare th,
  .compare td,
  .toc,
  .toc ol li,
  .toc ol li a { color: #000; }

  .toc, .factbox, .compare, .faq-item, .callout {
    background: none;
    border: 1px solid #ccc;
    backdrop-filter: none;
  }
  .compare th { background: #f2f2f2; }
}
