/* Homepage rebuild — production styles (design pack homepage-rebuild-v2)
 * Tokens from restructure.css (incl. M1 status). Scoped to body.page-home.
 */
body.page-home {
  --hp-overlay: linear-gradient(
    105deg,
    rgba(26, 25, 23, 0.82) 0%,
    rgba(26, 25, 23, 0.62) 48%,
    rgba(26, 25, 23, 0.35) 100%
  );
  --hp-sh-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(0, 0, 0, 0.07);
  --hp-sh-lift: 0 10px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
}

body.page-home .container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

/* Buttons */
body.page-home .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: center;
  line-height: 1.3;
  text-decoration: none;
}
body.page-home .btn-primary:hover { background: var(--accent-dark); }
body.page-home .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 14px 28px;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
  text-decoration: none;
}
body.page-home .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }
body.page-home .btn-block { width: 100%; }

/* Hero */
body.page-home .hp-hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ai-dark-2, #111009);
}
body.page-home .hp-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
}
body.page-home .hp-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--hp-overlay);
}
body.page-home .hp-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 10vw, 96px) 0;
  max-width: 640px;
}
body.page-home .hp-hero__label {
  font-family: var(--font-mono, 'DM Mono', ui-monospace, monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E8B4A0;
  margin-bottom: 16px;
}
body.page-home .hp-hero h1 {
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  max-width: 20ch;
  margin-bottom: 12px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
}
body.page-home .hp-hero__aside {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  max-width: 22ch;
}
body.page-home .hp-hero__sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  max-width: 42ch;
  margin: 18px 0 28px;
}
body.page-home .hp-hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
@media (min-width: 640px) {
  body.page-home .hp-hero__ctas {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

/* Calculator */
body.page-home .hp-calc {
  padding: clamp(40px, 8vw, 80px) 0;
  background: var(--bg);
}
body.page-home .hp-calc__intro {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 28px;
}
body.page-home .hp-calc__intro h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  margin-bottom: 12px;
  line-height: 1.15;
}
body.page-home .hp-calc__intro p {
  color: var(--ai-mid, #57534E);
  font-size: 16px;
  line-height: 1.65;
}
body.page-home .hp-calc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--hp-sh-card);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}
body.page-home .hp-calc-card__grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  body.page-home .hp-calc-card__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
body.page-home .hp-calc-inputs {
  padding: clamp(22px, 4vw, 36px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  body.page-home .hp-calc-inputs {
    border-bottom: none;
    border-right: 1px solid var(--line);
  }
}
body.page-home .hp-calc-field {
  margin-bottom: 22px;
}
body.page-home .hp-calc-field:last-child { margin-bottom: 0; }
body.page-home .hp-calc-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}
body.page-home .hp-calc-field .val {
  font-family: var(--font-mono, 'DM Mono', ui-monospace, monospace);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}
body.page-home .hp-calc-field input[type="range"] {
  width: 100%;
  height: 44px;
  cursor: pointer;
  accent-color: var(--accent);
}
body.page-home .hp-calc-helper {
  font-size: 15px;
  color: var(--ai-mid, #57534E);
  margin-top: 8px;
  line-height: 1.45;
}
body.page-home .hp-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 6px;
}
body.page-home .hp-preset-chip {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--bg);
  font-size: 15px;
  font-weight: 600;
  color: var(--ai-mid, #57534E);
  cursor: pointer;
  font-family: var(--font-body);
}
body.page-home .hp-preset-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
body.page-home .hp-preset-chip.is-active {
  background: color-mix(in srgb, var(--accent) 12%, white);
  border-color: var(--accent);
  color: var(--accent-dark);
}
body.page-home .hp-calc-field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--font-body);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}

body.page-home .hp-calc-results {
  padding: clamp(22px, 4vw, 36px);
  background: var(--warm-bar);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
body.page-home .hp-calc-results__title {
  font-family: var(--font-mono, 'DM Mono', ui-monospace, monospace);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ai-muted, #A8A29E);
  font-weight: 600;
  margin-bottom: 12px;
}
body.page-home .hp-calc-results.is-default .hp-result-stack { opacity: 0.55; }
body.page-home .hp-framing-note {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--ai-mid, #57534E);
  line-height: 1.55;
}
body.page-home .hp-result-line {
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
body.page-home .hp-result-line .k {
  font-size: 15px;
  color: var(--ai-mid, #57534E);
  margin-bottom: 4px;
  font-weight: 500;
}
body.page-home .hp-result-line .v {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
body.page-home .hp-result-line.is-pool .v {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.35;
}
body.page-home .hp-result-line.is-primary .v { color: var(--accent-dark); }
body.page-home .hp-g2-line {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--g2-bg);
  border: 1px solid var(--g2-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.5;
  color: var(--g2-ink);
  display: none;
}
body.page-home .hp-calc-results.is-low-output .hp-g2-line { display: block; }
body.page-home .hp-growth-note {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ai-mid, #57534E);
  line-height: 1.55;
}
body.page-home .hp-calc-results__cta {
  margin-top: auto;
  padding-top: 20px;
}

/* Audience cards */
body.page-home .hp-audience {
  padding: clamp(40px, 8vw, 80px) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
body.page-home .hp-audience h2 {
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  margin-bottom: 8px;
}
body.page-home .hp-audience .section-sub {
  text-align: center;
  color: var(--ai-mid, #57534E);
  font-size: 16px;
  margin-bottom: 32px;
}
body.page-home .hp-audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  body.page-home .hp-audience-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}
body.page-home .hp-door-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
body.page-home .hp-door-card:hover {
  box-shadow: var(--hp-sh-lift);
  transform: translateY(-2px);
}
body.page-home .hp-door-card__img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  background: var(--img-tint);
}
body.page-home .hp-door-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
body.page-home .hp-door-card h3 {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.25;
}
body.page-home .hp-door-card p {
  font-size: 15px;
  color: var(--ai-mid, #57534E);
  line-height: 1.55;
  flex: 1;
}
body.page-home .hp-door-card .btn-primary {
  margin-top: 8px;
  align-self: flex-start;
  font-size: 15px;
  padding: 12px 20px;
}

/* How we work */
body.page-home .hp-how {
  padding: clamp(40px, 8vw, 72px) 0;
  background: var(--warm-bar);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
body.page-home .hp-how h2 {
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  margin-bottom: 28px;
}
body.page-home .hp-how-list {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}
body.page-home .hp-how-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.45;
  min-height: 56px;
}
body.page-home .hp-how-list .mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono, 'DM Mono', ui-monospace, monospace);
  margin-top: 1px;
}

/* Proof */
body.page-home .hp-proof {
  padding: clamp(40px, 8vw, 80px) 0;
  background: var(--bg);
}
body.page-home .hp-proof h2 {
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  margin-bottom: 8px;
}
body.page-home .hp-proof .section-sub {
  text-align: center;
  color: var(--ai-mid, #57534E);
  font-size: 16px;
  max-width: 48ch;
  margin: 0 auto 32px;
}
body.page-home .hp-proof-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  body.page-home .hp-proof-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
body.page-home .hp-proof-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 22px;
}
body.page-home .hp-proof-stat blockquote {
  font-family: var(--font-head);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 12px;
  quotes: none;
}
body.page-home .hp-proof-cite {
  font-family: var(--font-mono, 'DM Mono', ui-monospace, monospace);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ai-muted, #A8A29E);
  font-weight: 500;
}
body.page-home .hp-founder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(22px, 4vw, 36px);
  max-width: 860px;
  margin: 0 auto;
}
@media (min-width: 700px) {
  body.page-home .hp-founder {
    grid-template-columns: auto 1fr;
    gap: 28px;
  }
}
body.page-home .hp-da-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
body.page-home .hp-founder h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin-bottom: 6px;
}
body.page-home .hp-founder .role {
  font-size: 15px;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 12px;
}
body.page-home .hp-founder p {
  font-size: 16px;
  color: var(--ai-mid, #57534E);
  line-height: 1.6;
  margin-bottom: 10px;
}
body.page-home .hp-founder p:last-child { margin-bottom: 0; }

/* 7.6 numb-to-the-cost band */
body.page-home .hp-numb {
  padding: clamp(36px, 7vw, 64px) 0;
  background: var(--warm-bar);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
body.page-home .hp-numb p {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.65;
  max-width: 62ch;
  margin: 0 auto;
  color: var(--ink);
  text-align: center;
}

/* Final CTA + ROI form */
body.page-home .hp-final {
  padding: clamp(48px, 9vw, 88px) 0;
  background: var(--ai-dark-2, #111009);
  color: #fff;
}
body.page-home .hp-final .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}
@media (min-width: 900px) {
  body.page-home .hp-final .container {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
}
body.page-home .hp-final h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  margin-bottom: 14px;
  color: #fff;
}
body.page-home .hp-final .lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 36ch;
}
body.page-home .hp-final .alt-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  color: #E8B4A0;
  font-weight: 600;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.page-home .hp-roi-form {
  background: var(--surface);
  color: var(--ink);
  border-radius: 14px;
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--hp-sh-lift);
}
body.page-home .hp-roi-form h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 6px;
}
body.page-home .hp-roi-form .form-sub {
  font-size: 15px;
  color: var(--ai-mid, #57534E);
  margin-bottom: 18px;
}
body.page-home .hp-roi-form .field {
  margin-bottom: 14px;
}
body.page-home .hp-roi-form label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
body.page-home .hp-roi-form input[type="text"],
body.page-home .hp-roi-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--font-body);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
}
body.page-home .hp-consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0 18px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ai-mid, #57534E);
}
body.page-home .hp-consent-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}
body.page-home .hp-state-msg {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.45;
}
body.page-home .hp-roi-form.is-error .hp-state-msg.error,
body.page-home .hp-roi-form.is-success .hp-state-msg.success {
  display: block;
}
body.page-home .hp-state-msg.error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error);
}
body.page-home .hp-state-msg.success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--ok);
}

/* Disclaimer 7.1 */
body.page-home .hp-disclaimer {
  padding: 24px 0 8px;
  background: var(--bg);
}
body.page-home .hp-disclaimer p {
  font-size: 15px;
  color: var(--ai-muted, #A8A29E);
  line-height: 1.55;
  max-width: 72ch;
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .hp-door-card { transition: none; }
  body.page-home .hp-door-card:hover { transform: none; }
}

/* Overflow guard @375 */
@media (max-width: 375px) {
  body.page-home .hp-hero__ctas .btn-primary,
  body.page-home .hp-hero__ctas .btn-secondary {
    width: 100%;
  }
  body.page-home .hp-preset-chip {
    font-size: 14px;
  }
}
