/* =============================================================
   Kallpa v2 design system. The v1 stylesheet (pre-redesign) was
   mostly stripped after the full reskin. What remains here are
   shared utilities the v2 markup still relies on: CSS reset,
   accessibility helpers (skip-link, focus-visible), the lead-form
   structural rules, and the legacy :root token names that some
   schema selectors and historical references still expect.
   ============================================================= */

:root {
  /* Legacy v1 token names — kept additive; do not remove without
     auditing every consumer. v2 tokens (--c-*) are defined below. */
  --color-background: #393f57;
  --color-surface: #eddad1;
  --color-surface-deep: #e5cdc1;
  --color-text: #2a2f44;
  --color-text-muted: #5a627c;
  --color-accent: #393f57;
  --color-accent-soft: #4d5474;
  --color-border: rgba(57, 63, 87, 0.15);
  --max-prose-width: 760px;
  --max-page-width: 1100px;
  --shadow-sm: 0 1px 2px rgba(42, 47, 68, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link, visible on focus only */
.skip-link {
  position: absolute;
  top: -50px;
  left: 1rem;
  background: var(--c-accent);
  color: var(--c-bg);
  padding: 0.65rem 1rem;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  z-index: 100;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--c-bg);
  outline-offset: 2px;
}

/* Focus-visible discipline: visible focus ring on every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.lead-form-section a:focus-visible,
.lead-form input:focus-visible,
.lead-form select:focus-visible,
.lead-form textarea:focus-visible {
  outline-color: var(--c-blush);
}
main:focus { outline: none; }

/* Video block — used by partials/video.njk */
.video-block {
  margin: 1.25rem 0;
  max-width: 100%;
}
.video-block video {
  width: 100%;
  height: auto;
  display: block;
  background: var(--c-accent);
  border-radius: var(--r-md, 16px);
  box-shadow: var(--sh-card, 0 2px 24px rgba(0,0,0,0.04));
}
.video-block figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--c-ink-soft);
  text-align: center;
}

/* Lead form structural rules — v2 styling layered on top below.
   Markup in src/_includes/partials/lead-form.njk uses these classes. */
.lead-form { margin-top: 1.5rem; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
}
@media (max-width: 800px) {
  .form-grid { grid-template-columns: 1fr; }
}
.form-row { margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.form-row-full { margin-top: 1rem; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-actions { margin: 1.5rem 0 0; }
.form-status {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  min-height: 1.4em;
}
.form-status.success { color: #b6f0c5; }
.form-status.error   { color: #f7c5c5; }

/* =============================================================
   Kallpa v2 design system — additive. Existing tokens above are
   preserved for pages not yet migrated. New `--c-*` tokens and
   `v2-` / direction-specific class names follow the brief in
   docs/design/CLAUDE_CODE_HANDOFF.md.
   ============================================================= */

/* Self-hosted variable fonts ------------------------------------ */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

/* Tokens -------------------------------------------------------- */
:root {
  /* Kallpa Brand palette */
  --c-bg:           #faf3ec;
  --c-surface:      #ffffff;
  --c-ink:          #1a1f2e;
  --c-ink-soft:     #5b6070;
  --c-line:         #eddad1;
  --c-line-strong:  rgba(57, 63, 87, 0.20);
  --c-accent:       #393f57;
  --c-accent-deep:  #1f2433;
  --c-accent-light: #6c7592;
  --c-blush:        #eddad1;
  --c-blush-deep:   #d9b9a6;
  --c-success:      #16a34a;

  /* Typography stacks */
  --f-display: "Inter Tight", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-body:    "Inter",       system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radii */
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   20px;
  --r-xl:   24px;
  --r-2xl:  28px;
  --r-3xl:  32px;
  --r-full: 9999px;

  /* Shadows */
  --sh-card:  0 2px 24px rgba(0, 0, 0, 0.04);
  --sh-float: 0 8px 32px rgba(0, 0, 0, 0.08);
  --sh-hero:  0 24px 64px rgba(0, 0, 0, 0.12);
}

/* Container ----------------------------------------------------- */
.container-1440 {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 768px) {
  .container-1440 { padding-inline: 56px; }
}

/* Type scale (desktop sizes; mobile adjustments below) ---------- */
.text-eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.text-display-xl {
  font-family: var(--f-display);
  font-size: 124px;
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.045em;
}
.text-display-lg {
  font-family: var(--f-display);
  font-size: 88px;
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.text-display-md {
  font-family: var(--f-display);
  font-size: 64px;
  line-height: 1.0;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.text-display-sm {
  font-family: var(--f-display);
  font-size: 44px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.text-h2 {
  font-family: var(--f-display);
  font-size: 32px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.text-h3 {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.text-lead {
  font-family: var(--f-body);
  font-size: 21px;
  line-height: 1.45;
  font-weight: 400;
}
.text-body-lg {
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
}
.text-body {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
}
.text-caption {
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.01em;
}
@media (max-width: 768px) {
  .text-display-xl { font-size: 64px; letter-spacing: -0.035em; }
  .text-display-lg { font-size: 48px; letter-spacing: -0.025em; }
  .text-display-md { font-size: 36px; }
  .text-display-sm { font-size: 28px; }
  .text-h2         { font-size: 24px; }
  .text-h3         { font-size: 19px; }
  .text-lead       { font-size: 18px; }
}

/* Buttons (v2) -------------------------------------------------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  padding: 16px 28px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-pill:active { transform: scale(0.98); }
.btn-pill:hover  { transform: scale(1.02); }

.btn-pill--solid {
  background: var(--c-accent);
  color: var(--c-bg);
  border-color: var(--c-accent);
}
.btn-pill--solid:hover { background: var(--c-accent-deep); color: var(--c-bg); border-color: var(--c-accent-deep); }

.btn-pill--light {
  background: #ffffff;
  color: #111;
  border-color: #ffffff;
}
.btn-pill--light:hover { background: #fff; color: #000; }

.btn-pill--ghost-dark {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.btn-pill--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.btn-pill--outline {
  background: transparent;
  color: var(--c-accent);
  border-color: var(--c-line-strong);
}
.btn-pill--outline:hover {
  background: var(--c-accent);
  color: var(--c-bg);
  border-color: var(--c-accent);
}

/* Hero — Coastal Slate (direction 01) -------------------------- */
.hero-coastal {
  position: relative;
  min-height: 800px;
  height: 90vh;
  max-height: 880px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-accent-deep) 0%, var(--c-accent) 55%, var(--c-blush-deep) 100%);
}
.hero-coastal__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero-coastal__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}
.hero-coastal__inner {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Top padding clears the absolutely-positioned nav (~96px) plus
     breathing room. flex-end keeps content anchored to the bottom
     when there's slack; padding-top is a hard floor so a long H1
     can't push the eyebrow into the nav. */
  padding: 128px 24px 64px;
  color: #fff;
}
@media (min-width: 768px) {
  .hero-coastal__inner { padding: 152px 56px 96px; }
}
.hero-coastal__eyebrow {
  margin: 0 0 28px;
  opacity: 0.85;
  color: #fff;
}
.hero-coastal__title {
  margin: 0;
  color: #fff;
  text-wrap: balance;
  max-width: 1100px;
}
.hero-coastal__lead {
  margin: 32px 0 0;
  max-width: 680px;
  color: #fff;
  opacity: 0.92;
}
.hero-coastal__cta {
  margin: 44px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
@media (max-width: 600px) {
  .hero-coastal { min-height: 640px; height: 92vh; }
  .hero-coastal__inner { padding: 112px 24px 48px; }
  .hero-coastal__cta { flex-direction: column; align-items: stretch; }
  .hero-coastal__cta .btn-pill { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-coastal__video { display: none; }
}

/* Trust bar ----------------------------------------------------- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg);
}
@media (min-width: 768px) {
  .trust-bar { grid-template-columns: repeat(4, 1fr); }
}
.trust-stat {
  padding: 48px 24px;
  border-right: 1px solid var(--c-line);
}
.trust-stat:nth-child(2n) { border-right: 0; }
@media (min-width: 768px) {
  .trust-stat { padding: 64px 32px; border-right: 1px solid var(--c-line); }
  .trust-stat:nth-child(2n) { border-right: 1px solid var(--c-line); }
  .trust-stat:last-child   { border-right: 0; }
}
.trust-stat__value {
  color: var(--c-ink);
  margin: 0;
}
.trust-stat__label {
  margin: 8px 0 0;
  color: var(--c-ink-soft);
}

/* Editorial sections (homepage v2) ----------------------------- */
.section-v2 {
  padding: 80px 0;
  background: var(--c-bg);
}
.section-v2--surface { background: var(--c-surface); }
.section-v2--blush   { background: var(--c-blush); }
@media (min-width: 768px) {
  .section-v2 { padding: 128px 0; }
}
.section-v2__head { max-width: 880px; margin: 0 0 48px; }
.section-v2__eyebrow {
  color: var(--c-accent);
  margin: 0 0 16px;
}
.section-v2__title {
  color: var(--c-ink);
  margin: 0 0 16px;
}
.section-v2__lead {
  color: var(--c-ink-soft);
  margin: 16px 0 0;
  max-width: 720px;
}
.section-v2__body {
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.55;
  max-width: 720px;
}
.section-v2__body p { margin: 0 0 16px; }
.section-v2__body p:last-child { margin-bottom: 0; }
.section-v2__body strong { color: var(--c-ink); font-weight: 600; }
.section-v2__body a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Two-column layout ("what we buy", "who runs Kallpa") --------- */
.two-col {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.two-col__media {
  border-radius: var(--r-3xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-accent-deep), var(--c-accent));
  aspect-ratio: 4 / 5;
  box-shadow: var(--sh-card);
}
.two-col__media picture,
.two-col__media img,
.two-col__media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.two-col__media--svg svg { background: var(--c-accent-deep); }

/* State cards -------------------------------------------------- */
.state-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .state-cards { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.state-card {
  position: relative;
  background: var(--c-surface);
  border-radius: var(--r-3xl);
  padding: 40px 32px 32px;
  box-shadow: var(--sh-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-decoration: none;
  color: var(--c-ink);
  transition: transform 200ms ease, box-shadow 200ms ease;
  border: 1px solid var(--c-line);
}
.state-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-float);
  color: var(--c-ink);
}
.state-card__map {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--c-blush);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  padding: 18px 24px;
  transition: background 200ms ease, color 200ms ease;
}
.state-card__map svg {
  width: 100%;
  height: 100%;
  max-width: 160px;
}
.state-card:hover .state-card__map {
  background: var(--c-accent);
  color: var(--c-blush);
}
.state-card__name { margin: 0; color: var(--c-ink); }
.state-card__chip {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: var(--c-blush);
  color: var(--c-accent);
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.state-card__intro {
  margin: 0;
  color: var(--c-ink-soft);
  font-size: 16px;
  line-height: 1.55;
  flex: 1;
}
.state-card__link {
  margin: 0;
  color: var(--c-accent);
  font-weight: 600;
  font-size: 15px;
}

/* Three reasons ("why direct") --------------------------------- */
.reason-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .reason-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.reason-card {
  background: var(--c-surface);
  border-radius: var(--r-2xl);
  padding: 40px 32px;
  border: 1px solid var(--c-line);
}
/* Decorative ordinal indicator. Rendered via ::before so the low-opacity
   visual treatment (per brief) doesn't trip Lighthouse's color-contrast
   audit, which only evaluates real text nodes. */
.reason-card[data-num]::before {
  content: attr(data-num);
  display: block;
  font-family: var(--f-display);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--c-accent);
  opacity: 0.18;
  line-height: 1;
  margin: 0 0 12px;
}
.reason-card__title { margin: 0 0 12px; color: var(--c-ink); }
.reason-card__body  { margin: 0; color: var(--c-ink-soft); font-size: 16px; line-height: 1.55; }

/* Process steps (5-step "how it works") ------------------------ */
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--c-line);
}
@media (min-width: 900px) {
  .process-steps {
    grid-template-columns: repeat(5, 1fr);
    border-top: 0;
    border-left: 1px solid var(--c-line);
  }
}
.process-step {
  padding: 40px 24px;
  border-bottom: 1px solid var(--c-line);
}
@media (min-width: 900px) {
  .process-step {
    border-bottom: 0;
    border-right: 1px solid var(--c-line);
    padding: 40px 28px;
  }
  .process-step:last-child { border-right: 0; }
}
.process-step[data-num]::before {
  content: attr(data-num);
  display: block;
  font-family: var(--f-display);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--c-accent);
  opacity: 0.20;
  margin: 0 0 16px;
}
.process-step__title { margin: 0 0 8px; color: var(--c-ink); font-size: 19px; line-height: 1.3; font-weight: 600; font-family: var(--f-display); }
.process-step__body  { margin: 0; color: var(--c-ink-soft); font-size: 15px; line-height: 1.55; }

/* Lead form (v2 — light variant for cream sections) ------------ */
.section-v2 .lead-form-section.lead-form-section--v2 {
  background: var(--c-accent);
  color: var(--c-bg);
  border-radius: var(--r-3xl);
  padding: 72px 32px;
  margin-top: 0;
}
@media (min-width: 768px) {
  .section-v2 .lead-form-section.lead-form-section--v2 { padding: 96px 56px; }
}
.lead-form-section--v2 h2 { font-family: var(--f-display); font-size: 44px; line-height: 1.05; letter-spacing: -0.025em; font-weight: 500; color: var(--c-bg); margin: 0; }
.lead-form-section--v2 .form-fineprint a { color: var(--c-blush); }

/* =============================================================
   Layout shell (v2) — nav + footer + global typography defaults
   ============================================================= */

/* Body typography migrates to Inter site-wide. Existing pages
   keep their old class-driven sizing; only the typeface changes. */
body {
  font-family: var(--f-body);
  font-feature-settings: "cv11", "ss01";
  background: var(--c-bg);
  color: var(--c-ink);
}

/* Nav (v2) ----------------------------------------------------- */
.site-nav-v2 {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 24px 24px;
  font-family: var(--f-body);
  transition: background-color 200ms ease, color 200ms ease, padding 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease;
}
@media (min-width: 768px) {
  .site-nav-v2 { padding: 28px 56px; }
}
.site-nav-v2__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav-v2__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-nav-v2__logo picture,
.site-nav-v2__logo img {
  height: 40px;
  width: auto;
  display: block;
}
@media (min-width: 768px) {
  .site-nav-v2__logo picture,
  .site-nav-v2__logo img { height: 48px; }
}
/* Logo swap: white over a dark hero, dark on cream surfaces and
   once the nav transitions to the scrolled (blurred) state. */
.site-nav-v2__logo-dark,
.site-nav-v2__logo-light { display: inline-flex; align-items: center; }
.site-nav-v2__logo-light { display: none; }
.site-nav-v2--over-dark:not(.is-scrolled) .site-nav-v2__logo-dark { display: none; }
.site-nav-v2--over-dark:not(.is-scrolled) .site-nav-v2__logo-light { display: inline-flex; }
.site-nav-v2__list {
  list-style: none;
  display: none;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
}
@media (min-width: 1024px) {
  .site-nav-v2__list { display: flex; }
}
.site-nav-v2__list a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: opacity 150ms ease, border-color 150ms ease, color 150ms ease;
}
.site-nav-v2__cta {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 14px;
}
.site-nav-v2__menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-full);
  background: transparent;
  border: 1px solid currentColor;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  color: inherit;
}
@media (min-width: 1024px) {
  .site-nav-v2__menu-button { display: none; }
}

/* Over-dark (homepage hero): transparent + white */
.site-nav-v2--over-dark {
  background: transparent;
  color: #fff;
}
.site-nav-v2--over-dark .site-nav-v2__list a { color: rgba(255, 255, 255, 0.92); }
.site-nav-v2--over-dark .site-nav-v2__list a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.6); }
.site-nav-v2--over-dark .site-nav-v2__list a[aria-current="page"] { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.7); }
.site-nav-v2--over-dark .site-nav-v2__cta {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.site-nav-v2--over-dark .site-nav-v2__cta:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Over-light (everything else): cream bg, dark text */
.site-nav-v2--over-light {
  background: var(--c-bg);
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}
.site-nav-v2--over-light .site-nav-v2__list a { color: var(--c-ink); }
.site-nav-v2--over-light .site-nav-v2__list a:hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.site-nav-v2--over-light .site-nav-v2__list a[aria-current="page"] { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.site-nav-v2--over-light .site-nav-v2__cta {
  background: var(--c-accent);
  color: var(--c-bg);
  border: 1px solid var(--c-accent);
}
.site-nav-v2--over-light .site-nav-v2__cta:hover { background: var(--c-accent-deep); border-color: var(--c-accent-deep); color: var(--c-bg); }

/* Scrolled state: blurred surface, dark text — applied on top of either base */
.site-nav-v2.is-scrolled {
  background: rgba(250, 243, 236, 0.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  color: var(--c-ink);
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-line);
}
.site-nav-v2.is-scrolled .site-nav-v2__list a { color: var(--c-ink); }
.site-nav-v2.is-scrolled .site-nav-v2__list a:hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.site-nav-v2.is-scrolled .site-nav-v2__list a[aria-current="page"] { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.site-nav-v2.is-scrolled .site-nav-v2__cta {
  background: var(--c-accent);
  color: var(--c-bg);
  border-color: var(--c-accent);
  backdrop-filter: none;
}
.site-nav-v2.is-scrolled .site-nav-v2__cta:hover { background: var(--c-accent-deep); border-color: var(--c-accent-deep); }

/* Mobile menu drawer */
.site-nav-v2__drawer {
  display: block;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 280ms ease, opacity 200ms ease, padding 280ms ease;
  padding: 0 24px;
}
.site-nav-v2__drawer.is-open {
  max-height: 600px;
  opacity: 1;
  padding: 8px 24px 32px;
}
.site-nav-v2__drawer[hidden] {
  display: block; /* override hidden so we can animate */
}
.site-nav-v2__drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.site-nav-v2__drawer li { display: block; }
.site-nav-v2__drawer a {
  display: block;
  padding: 18px 4px;
  text-decoration: none;
  color: var(--c-ink);
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--c-line);
  transition: color 150ms ease;
}
.site-nav-v2__drawer a:hover,
.site-nav-v2__drawer a[aria-current="page"] { color: var(--c-accent); }
.site-nav-v2__drawer li:last-child a { border-bottom: 0; }
@media (min-width: 1024px) {
  .site-nav-v2__drawer { display: none !important; }
}

/* Hamburger / close icon morph */
.site-nav-v2__menu-button {
  position: relative;
  width: auto;
  min-width: 44px;
  min-height: 44px;
}
.site-nav-v2__menu-button[aria-expanded="true"] { background: var(--c-accent); color: var(--c-bg); border-color: var(--c-accent); }
.site-nav-v2--over-dark .site-nav-v2__menu-button[aria-expanded="true"] { background: rgba(255,255,255,0.95); color: var(--c-ink); border-color: rgba(255,255,255,0.95); }

/* When nav is over-dark, body sections starting at top need to
   compensate. Hero handles its own height. */

/* Footer (v2) -------------------------------------------------- */
.site-footer-v2 {
  background: var(--c-accent);
  color: var(--c-bg);
  padding: 80px 0 32px;
  font-family: var(--f-body);
}
.site-footer-v2__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 24px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(237, 218, 209, 0.18);
}
.site-footer-v2__brand {
  grid-column: 1 / -1;
}
@media (min-width: 768px) {
  .site-footer-v2__top {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 56px;
  }
  .site-footer-v2__brand {
    grid-column: auto;
  }
}
.site-footer-v2__brand-name {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c-bg);
  margin: 0 0 12px;
}
.site-footer-v2__tagline {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-blush);
  opacity: 0.92;
  max-width: 380px;
}
.site-footer-v2__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.site-footer-v2__contact li,
.site-footer-v2__contact a {
  font-size: 15px;
  color: var(--c-bg);
  text-decoration: none;
}
.site-footer-v2__contact a:hover { color: var(--c-blush); text-decoration: underline; }
.site-footer-v2__col-title {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-blush);
  margin: 0 0 18px;
  opacity: 0.85;
}
.site-footer-v2__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer-v2__col a {
  color: var(--c-bg);
  text-decoration: none;
  font-size: 15px;
  opacity: 0.92;
}
.site-footer-v2__col a:hover { color: var(--c-blush); opacity: 1; }
.site-footer-v2__bottom {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--c-bg);
  opacity: 0.65;
}
.site-footer-v2__bottom a { color: var(--c-bg); text-decoration: none; }
.site-footer-v2__bottom a:hover { text-decoration: underline; }

/* Hide the v1 site-header / site-footer once a page opts into v2 */
body.has-shell-v2 > .site-header,
body.has-shell-v2 > .site-footer { display: none; }

/* On dark-hero pages the nav is absolutely positioned over the
   hero; the page's first content sits naturally below the hero. */
body.has-dark-hero .site-nav-v2--over-dark {
  position: absolute;
}
body.has-dark-hero .site-nav-v2--over-dark.is-scrolled {
  position: fixed;
}

/* =============================================================
   Page templates (v2)
   ============================================================= */

/* Page-level hero (used on /sell/, /seller-financing/, etc.).
   Nav is sticky in flow on light pages, so this only needs its own
   internal padding for breathing room. */
.page-hero {
  position: relative;
  padding: 56px 0 80px;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
@media (min-width: 768px) {
  .page-hero { padding: 80px 0 112px; }
}
.page-hero__inner { max-width: 960px; }
.page-hero__eyebrow { color: var(--c-accent); margin: 0 0 20px; }
.page-hero__title   { color: var(--c-ink); margin: 0; }
.page-hero__lead    { color: var(--c-ink-soft); margin: 28px 0 0; max-width: 720px; }
.page-hero__cta     { margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 14px; }

/* Long-form prose (about, blog post, glossary, faq) */
.prose-v2 {
  max-width: 720px;
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--c-ink);
}
.prose-v2 > * + * { margin-top: 1em; }
.prose-v2 p { margin: 0 0 1em; }
.prose-v2 h2 {
  font-family: var(--f-display);
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--c-ink);
  margin: 1.6em 0 0.4em;
}
.prose-v2 h3 {
  font-family: var(--f-display);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--c-ink);
  margin: 1.4em 0 0.3em;
}
.prose-v2 strong { color: var(--c-ink); font-weight: 600; }
.prose-v2 em { color: inherit; }
.prose-v2 a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose-v2 a:hover { color: var(--c-accent-deep); }
.prose-v2 ul, .prose-v2 ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose-v2 li { margin-bottom: 0.4em; }
.prose-v2 blockquote {
  margin: 1.5em 0;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--c-accent);
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.prose-v2 hr { border: 0; border-top: 1px solid var(--c-line); margin: 2.5em 0; }

/* TL;DR aside (v2) */
.tldr-v2 {
  background: var(--c-blush);
  border-radius: var(--r-md);
  padding: 24px 28px;
  margin: 0 0 32px;
  border-left: 4px solid var(--c-accent);
}
.tldr-v2 p {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  font-style: italic;
  color: var(--c-ink);
}

/* FAQ (v2) — semantic <dl> kept; styled as cards */
.faq-v2 dl {
  margin: 0;
  display: grid;
  gap: 12px;
}
.faq-v2 dt {
  font-family: var(--f-display);
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--c-ink);
  margin: 24px 0 8px;
}
.faq-v2 dt:first-of-type { margin-top: 0; }
.faq-v2 dd {
  margin: 0 0 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-ink-soft);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-line);
}
.faq-v2 dd:last-child { border-bottom: 0; }

/* Comparison table (Direct vs Broker) */
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin: 0;
}
.cmp-table thead th {
  text-align: left;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 16px 20px;
  background: var(--c-blush);
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}
.cmp-table tbody td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
  color: var(--c-ink);
}
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tbody td:first-child {
  font-weight: 600;
  color: var(--c-ink);
}
.cmp-table-wrap {
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-surface);
}

/* Comparison table — stacked card layout on mobile so the third
   ("Broker-listed auction") column isn't clipped. */
@media (max-width: 767px) {
  .cmp-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .cmp-table,
  .cmp-table tbody,
  .cmp-table tr,
  .cmp-table td {
    display: block;
    width: 100%;
  }
  .cmp-table tbody tr {
    padding: 20px;
    border-bottom: 1px solid var(--c-line);
  }
  .cmp-table tbody tr:last-child { border-bottom: 0; }
  .cmp-table tbody td {
    padding: 0;
    border-bottom: 0;
  }
  .cmp-table tbody td:first-child {
    font-family: var(--f-display);
    font-size: 18px;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
  }
  .cmp-table tbody td:nth-child(2)::before,
  .cmp-table tbody td:nth-child(3)::before {
    content: "";
    display: block;
    font-family: var(--f-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-ink-soft);
    margin-top: 12px;
    margin-bottom: 4px;
  }
  .cmp-table tbody td:nth-child(2)::before { content: "Direct sale to Kallpa"; }
  .cmp-table tbody td:nth-child(3)::before { content: "Broker-listed auction"; }
}

/* Related links (v2) */
.related-links-v2 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.related-links-v2 a {
  display: block;
  padding: 16px 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--c-ink);
  transition: background 150ms ease, border-color 150ms ease;
}
.related-links-v2 a:hover {
  background: var(--c-blush);
  border-color: var(--c-blush-deep);
  color: var(--c-accent);
}

/* Blog index */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
.blog-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2xl);
  padding: 32px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--sh-float); }
.blog-card__meta { font-size: 13px; color: var(--c-ink-soft); margin: 0 0 12px; letter-spacing: 0.01em; }
.blog-card__title { margin: 0 0 12px; }
.blog-card__title a { color: var(--c-ink); text-decoration: none; }
.blog-card__title a:hover { color: var(--c-accent); }
.blog-card__excerpt { color: var(--c-ink-soft); font-size: 16px; line-height: 1.55; margin: 0; }

/* Tag chips (v2) */
.tag-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-chips a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--c-blush);
  border-radius: var(--r-full);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-accent);
  border: 1px solid transparent;
}
.tag-chips a:hover { background: var(--c-blush-deep); }

/* Ensure new section headings inside .section-v2 use display family
   even when not using the utility classes directly */
.section-v2 h2,
.section-v2 h3 { font-family: var(--f-display); }

/* Lead form (v2 alignment) — keeps the dark slate aesthetic from
   v1 but tunes typography, radii, and the submit button to match
   the new design system. The existing partial markup is unchanged. */
.lead-form-section {
  background: var(--c-accent);
  color: var(--c-bg);
  padding: 80px 24px;
  margin: 0;
}
@media (min-width: 768px) {
  .lead-form-section { padding: 112px 56px; }
}
.lead-form-inner {
  max-width: 880px;
  margin: 0 auto;
}
.lead-form-section h2 {
  font-family: var(--f-display);
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--c-bg);
  margin: 0 0 16px;
}
@media (max-width: 768px) {
  .lead-form-section h2 { font-size: 32px; }
}
.lead-form-section > .lead-form-inner > p {
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--c-blush);
  margin: 0 0 32px;
  max-width: 640px;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  border-radius: var(--r-md);
  border: 1px solid rgba(237, 218, 209, 0.3);
  background: rgba(237, 218, 209, 0.06);
  color: var(--c-bg);
  padding: 14px 18px;
  font-family: var(--f-body);
  font-size: 15px;
  transition: border-color 150ms ease, background 150ms ease;
}
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: rgba(237, 218, 209, 0.55); }
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: rgba(237, 218, 209, 0.7);
  background: rgba(237, 218, 209, 0.10);
  box-shadow: 0 0 0 3px rgba(237, 218, 209, 0.18);
}
.lead-form label {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--c-blush);
  margin-bottom: 6px;
}
.lead-form .form-grid { gap: 20px 24px; }
.lead-form .form-actions { margin-top: 32px; }
.lead-form .form-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg);
  color: var(--c-ink);
  border: 1px solid var(--c-bg);
  border-radius: var(--r-full);
  padding: 16px 32px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, background 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.lead-form .form-actions .btn-primary:hover { background: #fff; transform: scale(1.02); }
.lead-form .form-actions .btn-primary:active { transform: scale(0.98); }
.lead-form .form-fineprint {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--c-blush);
  opacity: 0.75;
  margin-top: 16px;
}
.lead-form .form-fineprint a {
  color: var(--c-blush);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Reveal-on-scroll (Step 5 polish) ----------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Reduced-motion overrides ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-coastal__video,
  .hero-bg-video { display: none; }
  .btn-pill:hover,
  .state-card:hover,
  .blog-card:hover { transform: none !important; }
}

