/* Hallmark · redesign: restyle · page: homepage (/, /es/) · theme: locked (aws-sites/conecta-website/DESIGN.md + Ink sections, Bert 2026-12-04) · copy: verbatim · v2.0.0 */
/* Critique: the page read as one long run of white boxes with green blocks placed at random; it now moves through white, black, green and one tan band in a deliberate order, the hero and capability grids lose their boxes, and headers sit left on an editorial two-column line. */
/* Hallmark · waive 7b · DESIGN.md makes #FFFFFF the neutral surface and Ink #000000 the text colour; Bert approved #000000 Ink sections on 2026-12-04 */
/* Hallmark · waive F24 · DESIGN.md card pattern is a tan or green-tint stroke with the Soft brand lift shadow */

/* Homepage restyle layer. Loaded after the inline homepage styles and home-brand.css on / and /es/. Content and markup are unchanged. */
:root {
  --hp-green: #004F36;
  --hp-tan: #D7B99B;
  --hp-mocha: #654833;
  --hp-ink: #000000;
  --hp-white: #FFFFFF;
  --hp-muted: #4B5D56;
  --hp-line: rgba(0, 79, 54, 0.16);
  --hp-line-strong: rgba(0, 79, 54, 0.34);
  --hp-on-dark: rgba(255, 255, 255, 0.78);
  --hp-line-dark: rgba(255, 255, 255, 0.18);
  --hp-line-dark-strong: rgba(255, 255, 255, 0.56);
  --hp-shadow: 0 16px 42px rgba(0, 0, 0, 0.12);
}

html, body.home-page { overflow-x: clip; }

/* Section rhythm ------------------------------------------------------- */
.home-page .home-short { --home-space-section: 80px; }

/* Dark (Ink) sections: tokens flip so existing rules follow. */
.home-page :is(.home-demo, .home-proof-section, .home-ai-section, .home-final) {
  --home-text: var(--hp-white);
  --home-text-muted: var(--hp-on-dark);
  --home-border: var(--hp-line-dark);
  --home-border-strong: var(--hp-line-dark-strong);
  --home-surface: var(--hp-ink);
  --home-focus-color: var(--hp-tan);
  color: var(--hp-white);
  background: var(--hp-ink);
}
.home-page .home-short__section:has(.home-risk__grid) {
  --home-text: var(--hp-white);
  --home-text-muted: var(--hp-on-dark);
  --home-border: var(--hp-line-dark);
  --home-focus-color: var(--hp-tan);
  color: var(--hp-white);
  background: var(--hp-ink);
}
.home-page :is(.home-demo, .home-proof-section, .home-ai-section, .home-final, .home-short__section:has(.home-risk__grid)) :is(h2, h3) { color: var(--hp-white); }
.home-page :is(.home-demo, .home-proof-section, .home-ai-section, .home-final, .home-short__section:has(.home-risk__grid)) ::selection { color: var(--hp-ink); background: var(--hp-tan); }
.home-page :is(.home-demo, .home-proof-section, .home-ai-section, .home-final, .home-short__section:has(.home-risk__grid)) :focus-visible { outline-color: var(--hp-tan); }

/* Buttons on Ink: tan primary with Ink text, white outline secondary. */
.home-page .home-short :is(.home-demo, .home-proof-section, .home-ai-section, .home-final) .home-short__btn--primary,
.home-page .home-short :is(.home-demo, .home-proof-section, .home-ai-section, .home-final) .home-short__btn--primary:hover {
  color: var(--hp-ink);
  background: var(--hp-tan);
  border-color: var(--hp-tan);
}
.home-page .home-short :is(.home-demo, .home-proof-section, .home-ai-section, .home-final) .home-short__btn--secondary {
  color: var(--hp-white);
  background: transparent;
  border-color: var(--hp-line-dark-strong);
}
.home-page .home-short :is(.home-demo, .home-proof-section, .home-ai-section, .home-final) .home-short__btn--secondary:hover {
  color: var(--hp-white);
  background: transparent;
  border-color: var(--hp-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-page .home-short :is(.home-demo, .home-proof-section, .home-ai-section, .home-final) .home-short__text-link { color: var(--hp-tan); }
.home-page .home-short :is(.home-demo, .home-proof-section, .home-ai-section, .home-final) .home-short__text-link:hover { color: var(--hp-white); }

/* Headers: left-aligned, heading and intro on one editorial line. */
.home-page .home-short__heading,
.home-page :is(.home-demo__header, .home-proof__header, .home-risk__column, .home-final) h2 {
  font-size: clamp(2.125rem, 3.4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.home-page .home-short__section--soft .home-short__header,
.home-page .home-short__header--center {
  margin-inline: 0;
  text-align: left;
}
.home-page .home-short__section--soft .home-short__intro,
.home-page .home-short__header--center .home-short__intro { margin-inline: 0; }
.home-page .home-short__header { margin-bottom: 44px; }
.home-page .home-short__header:has(> .home-short__intro) {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: end;
  gap: 16px 56px;
}
.home-page .home-short__header:has(> .home-short__intro) .home-short__intro { max-width: 60ch; margin-top: 0; }
.home-page .home-short__heading { min-width: 0; overflow-wrap: break-word; }

/* 1. Hero: unboxed */
.home-page .home-hero { padding-block: clamp(48px, 6vw, 88px); }
.home-page .home-hero__grid {
  padding: 0;
  border: 0;
  border-radius: 0;
  gap: clamp(36px, 5vw, 72px);
}
.home-page .home-hero__form-card {
  border: 1px solid var(--hp-tan);
  border-radius: 16px;
  box-shadow: var(--hp-shadow);
}
.home-page .home-hero__signals { border-top-color: var(--hp-tan); }

/* Follow-up calculator: the one tan band */
.home-page .home-followup-section {
  --home-text-muted: var(--hp-ink);
  background: var(--hp-tan);
  text-align: center;
}
.home-page .home-followup-section .home-short__header {
  display: block;
  margin-inline: auto;
  margin-bottom: 28px;
  text-align: center;
}
.home-page .home-followup-section .home-short__intro { margin-inline: auto; margin-top: 16px; }
.home-page .home-followup-section ::selection { color: var(--hp-white); background: var(--hp-green); }
.home-page .home-followup-section :focus-visible { outline-color: var(--hp-ink); }

/* What is Conecta: video on Ink */
.home-page .home-demo { padding-block: 88px; }
.home-page .home-demo__header { width: min(100%, 1040px); margin: 0 auto 36px; text-align: left; }
.home-page .home-demo__video {
  width: min(100%, 1040px);
  background: var(--hp-ink);
  border: 1px solid var(--hp-line-dark);
  box-shadow: none;
}

/* Client flow: mocha numerals on white */
.home-page .home-client-flow-section .home-client-flow__steps li::before {
  color: var(--hp-mocha);
  font-size: 2.75rem;
}

/* Proof on Ink */
.home-page .home-proof-section { padding-block: 88px; }
.home-page .home-proof__header { margin-inline: 0; text-align: left; }
.home-page .home-proof__mark { color: var(--hp-tan); }
.home-page .home-proof__signals { justify-content: start; }
.home-page .home-proof__signal { justify-content: flex-start; }
.home-page .home-proof__signal + .home-proof__signal { border-left-color: var(--hp-line-dark); padding-left: 24px; }
.home-page .home-proof__broadcast,
.home-page .home-proof__broadcast-label { background: var(--hp-green); }
.home-page .home-proof__testimonials { margin-top: 56px; padding-top: 44px; }
.home-page .home-proof__quote blockquote { color: var(--hp-white); }

/* Capabilities: ruled columns instead of boxed cards */
.home-page .home-capabilities__grid { gap: 44px 48px; }
.home-page .home-capability,
.home-page .home-capability:hover,
.home-page .home-capability:focus-within {
  padding: 24px 0 0;
  border: 0;
  border-top: 2px solid var(--hp-green);
  border-radius: 0;
  background: transparent;
  transform: none;
}
.home-page .home-capability h3 { font-size: 1.25rem; }

/* AI section on Ink: tan rules and numerals */
.home-page .home-ai-section .home-client-flow__steps li { border-top-color: var(--hp-tan); }
.home-page .home-ai-section .home-client-flow__steps li::before { color: var(--hp-tan); font-size: 2.75rem; }

/* Sofia stays green */
.home-page .home-sofia__image { box-shadow: none; }

/* Plans */
.home-page .home-plan { padding: 32px; border-color: var(--hp-line-strong); }
.home-page .home-plan__price strong { font-size: 3rem; }

/* Comparison: Ink header row, green Conecta column */
.home-page .home-comparison__wrap { border-color: var(--hp-line-strong); }
.home-page .home-comparison__table thead th { background: var(--hp-ink); color: var(--hp-white); }
.home-page .home-comparison__table thead th:last-child { background: var(--hp-green); }

/* Onboarding and security on Ink: green card and white card */
.home-page .home-short__section:has(.home-risk__grid) { padding-block: 88px; }
.home-page .home-risk__column--onboarding { color: var(--hp-white); background: var(--hp-green); }
.home-page .home-risk__column--security {
  --home-text: var(--hp-ink);
  --home-text-muted: var(--hp-muted);
  --home-border: var(--hp-line);
  --home-focus-color: var(--hp-mocha);
  color: var(--hp-ink);
  background: var(--hp-white);
  border: 0;
}
.home-page .home-risk__column--security h2 { color: var(--hp-ink); }
.home-page .home-risk__column--security ::selection { color: var(--hp-ink); background: var(--hp-tan); }

/* Tax school: flat cards */
.home-page .home-tax-school__card,
.home-page .home-tax-school__card:hover {
  border-color: var(--hp-line-strong);
  background: var(--hp-white);
  box-shadow: none;
  transform: none;
}

/* Drop-off stays green */
.home-page .home-drop-off { border-top: 0; }

/* FAQ keeps a centred header over its centred list */
.home-page #faq .home-short__header {
  display: block;
  max-width: 960px;
  margin-inline: auto;
  text-align: left;
}
.home-page #faq .home-short__header .home-short__intro { margin-top: 16px; }

/* Final call to action on Ink */
.home-page .home-final { padding-block: 96px; }
.home-page .home-final h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
  .home-page .home-short { --home-space-section: 64px; }
  .home-page .home-short__header:has(> .home-short__intro) { display: block; }
  .home-page .home-short__header:has(> .home-short__intro) .home-short__intro { margin-top: 16px; }
  .home-page :is(.home-demo, .home-proof-section, .home-short__section:has(.home-risk__grid)) { padding-block: 64px; }
  .home-page .home-final { padding-block: 72px; }
}
@media (max-width: 1020px) {
  .home-page .home-hero__copy { text-align: left; }
  .home-page .home-hero__actions,
  .home-page .home-hero__proof-list { justify-content: flex-start; }
  .home-page .home-hero__proof { text-align: left; }
}
@media (max-width: 680px) {
  .home-page .home-short__heading,
  .home-page :is(.home-demo__header, .home-proof__header, .home-risk__column, .home-final) h2 {
    font-size: clamp(1.875rem, 7vw, 2.25rem);
    line-height: 1.1;
  }
  .home-page .home-proof__signal + .home-proof__signal { padding-left: 0; }
  .home-page .home-capabilities__grid { gap: 32px; }
}
