/* ==========================================================================
   JM Digital Corp — Homepage redesign
   Design tokens + component styles
   ========================================================================== */

body.home-redesign {
  /* Color — pulled from the live brand (jmdigitalcorp.com computed styles) */
  --color-ink: #17211D;
  --color-ink-soft: #5E6B65;
  --color-muted: #8D9891;
  --color-muted-on-dark: #A9BDB5;
  --color-line: #D9E1DC;

  --color-bg: #F8F7F2;
  --color-bg-alt: #F1EEE3;
  --color-surface: #FFFFFF;

  --color-accent: #DCA44A;
  --color-accent-border: #B66B3E;
  --color-accent-tint: #F8ECD8;

  --color-dark: #12352D;
  --color-dark-2: #0F2A23;
  --color-dark-muted: #C4D3CC;
  --color-dark-border: rgba(255, 255, 255, 0.12);
  --color-dark-btn-bg: rgba(255, 255, 255, 0.12);
  --color-dark-btn-bg-hover: rgba(255, 255, 255, 0.18);
  --color-dark-btn-border: rgba(255, 255, 255, 0.28);

  --color-success: #2F9E5B;
  --color-success-tint: #E9F7EE;
  --color-danger: #D6493D;
  --color-warning: #E0A83C;
  --color-track: #E7EBE7;

  /* Type */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Shape / layout */
  --radius-pill: 999px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --container: 1180px;
  --shadow-card-hover: 0 20px 40px -24px rgba(18, 53, 45, 0.22);
  --header-height: 65px;
}

/* ---- Reset / base ------------------------------------------------------ */
body.home-redesign *,
body.home-redesign *::before,
body.home-redesign *::after { box-sizing: border-box; }

body.home-redesign {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.home-redesign a { color: inherit; text-decoration: none; }
body.home-redesign button { font-family: inherit; }
body.home-redesign img,
body.home-redesign svg { display: block; max-width: 100%; }
body.home-redesign [id] { scroll-margin-top: calc(var(--header-height) + 12px); }
body.home-redesign::selection { background: #F6E4C4; }

body.home-redesign .container { max-width: var(--container); margin: 0 auto; padding-inline: 24px; }

/* ---- Sections ------------------------------------------------------------ */
body.home-redesign .section { padding-block: clamp(56px, 7vw, 96px); }
body.home-redesign .section--alt { background: var(--color-bg-alt); }
body.home-redesign .section--dark { background: var(--color-dark); }
body.home-redesign .section--tight-top { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(48px, 6vw, 72px); }
body.home-redesign .section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
body.home-redesign .section-head--wide { max-width: 700px; }
body.home-redesign .section-head--narrow { max-width: 620px; }

body.home-redesign .eyebrow-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-muted);
}
body.home-redesign .eyebrow-label--on-dark { color: var(--color-muted-on-dark); }
body.home-redesign .eyebrow-label--accent { color: var(--color-accent); }

body.home-redesign .eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}
body.home-redesign .eyebrow-badge__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

body.home-redesign h1,
body.home-redesign h2 { margin: 0; letter-spacing: -0.02em; font-weight: 700; }
body.home-redesign .h1 { font-size: clamp(2.4rem, 1.6vw + 2rem, 3.7rem); line-height: 1.06; letter-spacing: -0.025em; }
body.home-redesign .h2 { font-size: clamp(1.7rem, 1vw + 1.4rem, 2.5rem); }
body.home-redesign .h2--sm { font-size: clamp(1.6rem, 1vw + 1.3rem, 2.2rem); }
body.home-redesign .h2--lg { font-size: clamp(1.8rem, 1.4vw + 1.5rem, 2.6rem); }
body.home-redesign p { margin: 0; }

body.home-redesign .text-soft { color: var(--color-ink-soft); }
body.home-redesign .text-muted { color: var(--color-muted); }

/* ---- Buttons ------------------------------------------------------------ */
body.home-redesign .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14.5px; padding: 13px 24px;
  border-radius: var(--radius-pill); cursor: pointer; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .15s ease, filter .15s ease, background .15s ease, border-color .15s ease;
}
body.home-redesign .btn--lg { padding: 15px 28px; font-size: 15px; }
body.home-redesign .btn-primary {
  background: var(--color-accent); color: var(--color-dark);
  border-color: var(--color-accent-border);
}
body.home-redesign .btn-primary:hover { filter: brightness(.96); transform: translateY(-1px); }

body.home-redesign .btn-secondary {
  background: var(--color-surface); color: var(--color-dark);
  border-color: var(--color-line);
}
body.home-redesign .btn-secondary:hover { border-color: var(--color-dark); transform: translateY(-1px); }

body.home-redesign .btn-secondary-dark {
  background: var(--color-dark-btn-bg); color: #fff;
  border-color: var(--color-dark-btn-border);
}
body.home-redesign .btn-secondary-dark:hover { background: var(--color-dark-btn-bg-hover); transform: translateY(-1px); }

body.home-redesign .btn-ghost { color: var(--color-ink-soft); font-weight: 600; font-size: 14.5px; padding: 10px 4px; border: none; background: none; cursor: pointer; }
body.home-redesign .btn-ghost:hover { color: var(--color-ink); }

body.home-redesign .link-arrow { font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

/* ---- Cards --------------------------------------------------------------- */
body.home-redesign .card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); }
body.home-redesign .card--hover { transition: box-shadow .2s ease, transform .2s ease; }
body.home-redesign .card--hover:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

body.home-redesign .icon-tile {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--color-bg-alt); border: 1px solid var(--color-line);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
body.home-redesign .icon-tile--plain { background: var(--color-surface); }

/* ---- Forms --------------------------------------------------------------- */
body.home-redesign input[type="email"],
body.home-redesign input[type="text"] {
  font-family: inherit; font-size: 15px; padding: 14px 16px;
  border-radius: var(--radius-md); border: 1px solid var(--color-line);
  outline: none; width: 100%; background: var(--color-surface);
}
body.home-redesign input[type="email"]:focus,
body.home-redesign input[type="text"]:focus { border-color: var(--color-dark); }
body.home-redesign label { font-size: 13px; font-weight: 600; color: var(--color-ink-soft); display: block; margin-bottom: 6px; }
body.home-redesign .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- Announcement bar ----------------------------------------------------- */
body.home-redesign .announcement-bar { background: var(--color-dark); color: #fff; }
body.home-redesign .announcement-bar__inner {
  max-width: var(--container); margin: 0 auto; padding: 11px 48px 11px 24px;
  position: relative; display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; text-align: center; font-size: 13px;
}
body.home-redesign .announcement-bar__text { color: #C7D6CF; }
body.home-redesign .announcement-bar__link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: #fff; }
body.home-redesign .announcement-bar__dismiss {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #fff; opacity: .65; cursor: pointer; padding: 6px; display: flex;
}
body.home-redesign .announcement-bar__dismiss:hover { opacity: 1; }

/* ---- Header / nav ---------------------------------------------------------- */
body.home-redesign .site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 247, 242, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}
body.home-redesign .site-header__row {
  max-width: var(--container); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
body.home-redesign .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; flex-shrink: 0; }
body.home-redesign .logo__mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--color-dark); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
}
body.home-redesign .nav-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 600; color: var(--color-ink-soft); }
body.home-redesign .nav-links a:hover { color: var(--color-ink); }
body.home-redesign .nav-cta-desktop { display: flex; align-items: center; gap: 10px; }
body.home-redesign .hamburger {
  display: none; background: none; border: 1px solid var(--color-line); border-radius: 10px;
  padding: 9px; cursor: pointer;
}
body.home-redesign .mobile-panel {
  border-top: 1px solid var(--color-line); padding: 16px 24px 22px;
  display: flex; flex-direction: column; gap: 16px; background: var(--color-surface);
}
body.home-redesign .mobile-panel[hidden] { display: none; }
body.home-redesign .mobile-panel a { font-weight: 600; font-size: 15px; }
body.home-redesign .mobile-panel__cta { display: flex; gap: 10px; padding-top: 8px; }
body.home-redesign .mobile-panel__cta .btn { flex: 1; }

@media (max-width: 1120px) {
  html.js body.home-redesign .nav-links,
  html.js body.home-redesign .nav-cta-desktop { display: none; }
  html.js body.home-redesign .hamburger { display: inline-flex; }
}

/* ---- Hero ------------------------------------------------------------------ */
body.home-redesign .hero { background: linear-gradient(180deg, #F8F7F2 0%, #EEF2ED 50%, #F8F7F2 100%); }
body.home-redesign .hero__content { max-width: 820px; margin: 0 auto; padding: 0 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; }
body.home-redesign .hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
body.home-redesign .hero__micro { font-size: 13px; color: var(--color-muted); }

body.home-redesign .hero-stats {
  max-width: 960px; margin: 52px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
body.home-redesign .hero-stats__card { padding: 22px 20px; text-align: center; }
body.home-redesign .hero-stats__value { font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); font-weight: 800; letter-spacing: -0.02em; }
body.home-redesign .hero-stats__label { font-size: 13px; color: var(--color-ink-soft); margin-top: 4px; }

body.home-redesign .hero-note {
  max-width: 620px; margin: 24px auto 0; padding: 15px 22px; border-radius: 14px;
  background: var(--color-surface); border: 1px solid var(--color-line);
  text-align: center; font-size: 13.5px; color: var(--color-ink-soft);
}
body.home-redesign .hero-note strong { color: var(--color-ink); }

@media (max-width: 720px) {
  body.home-redesign .hero-stats { grid-template-columns: 1fr; }
}

/* ---- Grids reused across sections -------------------------------------------- */
body.home-redesign .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
body.home-redesign .grid-3--wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
body.home-redesign .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
body.home-redesign .grid-2--loose { gap: 56px; align-items: center; }
body.home-redesign .grid-2--stretch { align-items: stretch; margin-bottom: 48px; }
body.home-redesign .grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
@media (max-width: 720px) {
  body.home-redesign .grid-2 { grid-template-columns: 1fr; }
}

/* ---- Service / feature cards --------------------------------------------------- */
body.home-redesign .service-card,
body.home-redesign .feature-card { padding: 32px; }
body.home-redesign .service-card__title,
body.home-redesign .feature-card__title { font-weight: 700; font-size: 16px; margin-bottom: 10px; }
body.home-redesign .feature-card__title { font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
body.home-redesign .service-card__text,
body.home-redesign .feature-card__text { font-size: 14px; color: var(--color-ink-soft); line-height: 1.6; }
body.home-redesign .feature-card__text { font-size: 14.5px; }

/* ---- Client reality numbered list -------------------------------------------------- */
body.home-redesign .reality-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px; }
body.home-redesign .reality-item__number { font-size: 15px; font-weight: 800; color: var(--color-accent); margin-bottom: 10px; }
body.home-redesign .reality-item__title { font-weight: 700; font-size: 16.5px; margin-bottom: 8px; }
body.home-redesign .reality-item__text { font-size: 14.5px; color: var(--color-ink-soft); line-height: 1.65; }

/* ---- Start cards (Risk Score / Diagnostic) ------------------------------------------ */
body.home-redesign .start-card { padding: 36px; display: flex; flex-direction: column; gap: 16px; }
body.home-redesign .start-card__head { display: flex; align-items: center; justify-content: space-between; }
body.home-redesign .tag { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: var(--radius-pill); }
body.home-redesign .tag--free { color: var(--color-success); background: var(--color-success-tint); }
body.home-redesign .tag--fee { color: var(--color-accent); background: var(--color-accent-tint); }
body.home-redesign .tag--clarity { font-size: 11.5px; font-weight: 700; color: var(--color-accent); background: var(--color-accent-tint); padding: 4px 10px; border-radius: var(--radius-pill); }
body.home-redesign .start-card__text { font-size: 14.5px; color: var(--color-ink-soft); line-height: 1.65; }

/* ---- Risk snapshot ------------------------------------------------------------------ */
body.home-redesign .risk-snapshot { padding: 28px; }
body.home-redesign .risk-snapshot__title { font-weight: 700; font-size: 14px; margin-bottom: 18px; }
body.home-redesign .risk-rows { display: flex; flex-direction: column; gap: 14px; }
body.home-redesign .risk-row__head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
body.home-redesign .risk-track { height: 8px; border-radius: var(--radius-pill); background: var(--color-track); overflow: hidden; }
body.home-redesign .risk-fill { height: 100%; }
body.home-redesign .risk-fill--red { background: var(--color-danger); }
body.home-redesign .risk-fill--yellow { background: var(--color-warning); }
body.home-redesign .risk-fill--green { background: var(--color-success); }
body.home-redesign .risk-label--red { color: var(--color-danger); font-weight: 700; }
body.home-redesign .risk-label--yellow { color: var(--color-warning); font-weight: 700; }
body.home-redesign .risk-label--green { color: var(--color-success); font-weight: 700; }
body.home-redesign .risk-snapshot__foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--color-line); font-size: 12.5px; color: var(--color-muted); }

/* ---- Email capture card --------------------------------------------------------------- */
body.home-redesign .capture-card { max-width: 640px; margin: 56px auto 0; padding: 36px; text-align: center; }
body.home-redesign .capture-card__title { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
body.home-redesign .capture-card__honeypot-note { margin: 0 0 20px; font-size: 13.5px; color: var(--color-ink-soft); }
body.home-redesign .capture-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
body.home-redesign .capture-form input { flex: 1; min-width: 220px; }
body.home-redesign .capture-form__note { margin-top: 12px; font-size: 12.5px; color: var(--color-muted); }
body.home-redesign .capture-success { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; }
body.home-redesign .capture-success__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--color-success-tint); display: flex; align-items: center; justify-content: center; }
body.home-redesign .capture-success[hidden],
body.home-redesign .capture-form[hidden] { display: none; }

body.home-redesign .callout { max-width: 760px; margin: 36px auto 0; text-align: center; }
body.home-redesign .callout__title { display: block; margin-bottom: 8px; }
body.home-redesign .callout__text { font-size: 15px; color: var(--color-ink-soft); line-height: 1.7; }

/* ---- Architecture diagram card ------------------------------------------------------- */
body.home-redesign .arch-card { padding: 32px; position: relative; overflow: hidden; }
body.home-redesign .arch-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
body.home-redesign .arch-diagram { position: relative; height: 220px; }
body.home-redesign .arch-diagram svg { position: absolute; inset: 0; }
body.home-redesign .arch-node {
  position: absolute; background: var(--color-surface); border: 1px solid var(--color-line);
  font-size: 10.5px; font-weight: 700; padding: 5px 10px; border-radius: var(--radius-pill);
}
body.home-redesign .arch-node--center {
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--color-dark); color: #fff; font-size: 11px; padding: 8px 14px; white-space: nowrap; border: none;
}
body.home-redesign .arch-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--color-line); }
body.home-redesign .arch-card__foot-label { font-size: 12px; color: var(--color-muted); }
body.home-redesign .arch-card__foot-value { font-size: 12px; font-weight: 700; color: var(--color-danger); }

body.home-redesign .deliverables-card { padding: 36px; }
body.home-redesign .deliverables-card__title { font-weight: 700; font-size: 15px; margin-bottom: 20px; }
body.home-redesign .deliverables-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
body.home-redesign .deliverable-item { display: flex; gap: 10px; align-items: flex-start; }
body.home-redesign .deliverable-item svg { flex-shrink: 0; margin-top: 2px; }
body.home-redesign .deliverable-item span { font-size: 14px; color: var(--color-ink-soft); }

/* ---- Decision area / outcome / FAQ cards ---------------------------------------------- */
body.home-redesign .decision-card,
body.home-redesign .faq-card { padding: 28px; }
body.home-redesign .faq-card { padding: 26px; }
body.home-redesign .decision-card__number { font-size: 13px; font-weight: 800; color: var(--color-accent); margin-bottom: 10px; }
body.home-redesign .decision-card__title { font-weight: 700; font-size: 15.5px; margin-bottom: 8px; }
body.home-redesign .decision-card__text { font-size: 14px; color: var(--color-ink-soft); line-height: 1.6; }

body.home-redesign .outcome-item__title,
body.home-redesign .faq-card__title { font-weight: 700; margin-bottom: 10px; }
body.home-redesign .outcome-item__title { font-size: 16.5px; }
body.home-redesign .faq-card__title { font-size: 14.5px; margin-bottom: 8px; }
body.home-redesign .outcome-item__text { font-size: 14.5px; color: var(--color-ink-soft); line-height: 1.65; }
body.home-redesign .faq-card__text { font-size: 13.5px; color: var(--color-ink-soft); line-height: 1.6; }

/* ---- Case study cards ------------------------------------------------------------------ */
body.home-redesign .case-card { padding: 30px; display: flex; flex-direction: column; gap: 12px; }
body.home-redesign .case-card__title { font-weight: 700; font-size: 16.5px; line-height: 1.3; }
body.home-redesign .case-card__text { font-size: 14px; color: var(--color-ink-soft); line-height: 1.6; flex-grow: 1; }
body.home-redesign .case-foot { text-align: center; margin-top: 36px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
body.home-redesign .case-foot__text { font-size: 13.5px; color: var(--color-muted); max-width: 560px; }
body.home-redesign .case-foot__note { font-size: 12.5px; color: var(--color-muted); font-style: italic; max-width: 560px; }

/* ---- Timeline (three weeks) -------------------------------------------------------------- */
body.home-redesign .timeline { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
body.home-redesign .timeline-step { display: flex; flex-direction: column; gap: 12px; }
body.home-redesign .timeline-step__number {
  width: 38px; height: 38px; border-radius: 50%; background: var(--color-dark); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
}
body.home-redesign .timeline-step__number--accent { background: var(--color-accent); color: var(--color-dark); }
body.home-redesign .timeline-step__title { font-weight: 700; font-size: 16px; }
body.home-redesign .timeline-step__text { font-size: 14px; color: var(--color-ink-soft); line-height: 1.6; }

/* ---- About / founder ------------------------------------------------------------------ */
body.home-redesign .about-card {
  padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: auto 1fr;
  gap: 36px; align-items: center;
}
body.home-redesign .about-avatar {
  width: 112px; height: 112px; border-radius: 50%; background: var(--color-dark); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 32px;
  letter-spacing: -0.02em; flex-shrink: 0;
}
body.home-redesign .about-body { display: flex; flex-direction: column; gap: 14px; }
body.home-redesign .about-title { font-weight: 700; font-size: 19px; }
body.home-redesign .about-text { font-size: 14.5px; color: var(--color-ink-soft); line-height: 1.7; }
body.home-redesign .about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 8px; }
body.home-redesign .about-stats__value { font-weight: 800; font-size: 18px; }
body.home-redesign .about-stats__label { font-size: 12.5px; color: var(--color-muted); }
@media (max-width: 720px) { body.home-redesign .about-card { grid-template-columns: 1fr; text-align: center; } body.home-redesign .about-avatar { margin: 0 auto; } }

/* ---- Final CTA ------------------------------------------------------------------------ */
body.home-redesign .cta-dark { padding: clamp(64px, 8vw, 110px) 24px; }
body.home-redesign .cta-dark__inner { max-width: 680px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 20px; align-items: center; }
body.home-redesign .cta-dark h2 { color: #fff; }
body.home-redesign .cta-dark__text { font-size: 15px; color: var(--color-dark-muted); line-height: 1.7; max-width: 520px; }
body.home-redesign .cta-dark__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* ---- Footer --------------------------------------------------------------------------- */
body.home-redesign .site-footer { background: var(--color-dark-2); padding: 56px 24px 28px; color: var(--color-muted-on-dark); }
body.home-redesign .footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px;
  padding-bottom: 36px; border-bottom: 1px solid var(--color-dark-border);
}
body.home-redesign .footer-col { display: flex; flex-direction: column; gap: 10px; }
body.home-redesign .footer-col--brand { gap: 12px; }
body.home-redesign .footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; color: #fff; }
body.home-redesign .footer-logo__mark {
  width: 28px; height: 28px; border-radius: 8px; background: #fff; color: var(--color-dark);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}
body.home-redesign .footer-col__title { font-size: 12.5px; font-weight: 700; color: #fff; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
body.home-redesign .footer-link { font-size: 13.5px; color: var(--color-muted-on-dark); }
body.home-redesign .footer-link:hover { color: #fff; }
body.home-redesign .footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: 12.5px; }
body.home-redesign .footer-bottom__links { display: flex; gap: 18px; }

/* ---- Production integration and accessible responsive refinements -------- */
/* Keep the legacy stylesheet for the assistant and consent components, but
   isolate the handoff layout from its homepage and general element rules. */
body.home-redesign {
  --color-muted: #65726A;
  --color-accent-text: #915E20;
  --header-height: 80px;
  min-width: 0;
  font-size: 16px;
  overflow-x: clip;
}
body.home-redesign [hidden] { display: none !important; }
body.home-redesign main { min-width: 0; }
body.home-redesign .anchor-alias { display: block; height: 0; overflow: hidden; margin: 0; padding: 0; }
body.home-redesign .skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  border: 2px solid var(--color-dark);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-dark);
  font-weight: 700;
  transform: translateY(-160%);
}
body.home-redesign .skip-link:focus { transform: translateY(0); }
body.home-redesign main section[id] { scroll-margin-top: calc(var(--header-height) + 20px); }
body.home-redesign .container { width: 100%; }
body.home-redesign h1,
body.home-redesign h2,
body.home-redesign h3 { max-width: none; }
body.home-redesign h2 { line-height: 1.5; }
body.home-redesign h3 { margin: 0; line-height: 1.5; }
body.home-redesign .site-header { display: block; padding: 0; }
body.home-redesign .site-header__row { width: 100%; }
body.home-redesign .hero { display: block; min-height: 0; padding-inline: 0; }
body.home-redesign .hero-note { width: calc(100% - 48px); }
body.home-redesign .footer-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  align-items: start !important;
  gap: 32px !important;
}
body.home-redesign .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.home-redesign .grid-3,
body.home-redesign .grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
body.home-redesign .grid-3--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
body.home-redesign .reality-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
body.home-redesign .deliverables-grid,
body.home-redesign .timeline { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
body.home-redesign .about-card { grid-template-columns: auto minmax(0, 1fr); }
body.home-redesign .about-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
body.home-redesign :is(.grid-2, .grid-3, .grid-4, .hero-stats, .footer-grid, .about-card) > * { min-width: 0; }
body.home-redesign .btn { min-height: 46px; max-width: 100%; text-align: center; line-height: 1.5; }
body.home-redesign .btn-ghost { display: inline-flex; align-items: center; min-height: 44px; }
body.home-redesign .nav-links a,
body.home-redesign .footer-link { display: inline-flex; align-items: center; min-height: 36px; }
body.home-redesign .hamburger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; color: var(--color-ink); }
body.home-redesign .announcement-bar__inner { padding-right: 58px; }
body.home-redesign .announcement-bar__dismiss { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; right: 8px; }
body.home-redesign :is(a, button, input, select, textarea):focus-visible { outline: 3px solid #246D5A; outline-offset: 4px; }
body.home-redesign :is(.announcement-bar, .site-footer, .cta-dark) :is(a, button):focus-visible { outline-color: #F0BD69; }
body.home-redesign :is(input, select, textarea) { min-width: 0; }
body.home-redesign .eyebrow-label--accent,
body.home-redesign .reality-item__number,
body.home-redesign .decision-card__number,
body.home-redesign .tag--fee,
body.home-redesign .tag--clarity { color: var(--color-accent-text); }
body.home-redesign .risk-label--yellow { color: #896014; }
body.home-redesign .risk-label--green,
body.home-redesign .tag--free { color: #267A46; }
body.home-redesign .risk-label--red,
body.home-redesign .arch-card__foot-value { color: #B13C32; }
body.home-redesign .section--dark .eyebrow-label--accent { color: var(--color-accent); }
body.home-redesign .arch-card__head,
body.home-redesign .arch-card__foot,
body.home-redesign .start-card__head { gap: 12px; flex-wrap: wrap; }
body.home-redesign .arch-card { container-type: inline-size; }
body.home-redesign .tag,
body.home-redesign .tag--clarity { flex-shrink: 0; }
body.home-redesign .capture-form input { min-width: min(100%, 220px); }
body.home-redesign .capture-form label { flex-basis: 100%; text-align: left; }
body.home-redesign .capture-form__note { flex-basis: 100%; }
body.home-redesign :is(.capture-form__note, .form-note, .contact-copy) a { text-decoration: underline; text-underline-offset: 3px; }
body.home-redesign .capture-card .form-error,
body.home-redesign .homepage-contact-form .form-error { color: #A13228; }

/* Native form submission keeps the existing lead flow and bot protection. */
body.home-redesign .contact-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
body.home-redesign .contact-copy > p { font-size: 15px; line-height: 1.75; color: var(--color-ink-soft); }
body.home-redesign .contact-copy h2 { line-height: 1.25; }
body.home-redesign .homepage-contact-form {
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  gap: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
}
body.home-redesign .homepage-contact-form label { display: grid; gap: 8px; margin: 0; color: var(--color-ink-soft); font-size: 13px; font-weight: 600; }
body.home-redesign .homepage-contact-form :is(input, select, textarea) {
  width: 100%;
  min-height: 48px;
  padding: 13px 15px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
body.home-redesign .homepage-contact-form select { appearance: auto; padding-right: 32px; }
body.home-redesign .homepage-contact-form textarea { min-height: 128px; resize: vertical; }
body.home-redesign .homepage-contact-form :is(input, select, textarea):focus { border-color: var(--color-dark); }
body.home-redesign .homepage-contact-form .btn { justify-self: start; }
body.home-redesign .homepage-contact-form .form-note { margin: 0; font-size: 12.5px; font-weight: 400; color: var(--color-ink-soft); line-height: 1.6; }
body.home-redesign .homepage-contact-form button:disabled { cursor: wait; opacity: .65; }

/* Retain visible links when scripts are unavailable. JavaScript adds .js
   only when the disclosure menu has been initialized. */
@media (max-width: 1120px) {
  body.home-redesign .site-header__row { min-height: 76px; }
  body.home-redesign .mobile-panel { max-height: calc(100dvh - 88px); overflow-y: auto; overscroll-behavior: contain; }
  body.home-redesign .mobile-panel > a { display: flex; align-items: center; min-height: 44px; }
  html:not(.js) body.home-redesign .site-header { position: relative; }
  html:not(.js) body.home-redesign .site-header__row { flex-wrap: wrap; }
  html:not(.js) body.home-redesign .nav-links { flex-wrap: wrap; flex-basis: 100%; order: 3; gap: 8px 20px; }
  html:not(.js) body.home-redesign .nav-cta-desktop { flex-wrap: wrap; }
}
@media (min-width: 1121px) {
  body.home-redesign .mobile-panel { display: none; }
}
@media (max-width: 720px) {
  body.home-redesign .grid-2,
  body.home-redesign .about-card { grid-template-columns: minmax(0, 1fr); }
  body.home-redesign .grid-2--loose { gap: 32px; }
  body.home-redesign .hero__actions,
  body.home-redesign .cta-dark__actions { width: 100%; }
  body.home-redesign .hero-stats { gap: 12px; margin-top: 36px; }
  body.home-redesign .hero-stats__card { padding: 18px 20px; }
  body.home-redesign .section-head { margin-bottom: 32px; }
}
@media (max-width: 520px) {
  body.home-redesign .arch-diagram { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; height: auto; padding-block: 4px 12px; }
  body.home-redesign .arch-diagram > svg { display: none; }
  body.home-redesign .arch-node { position: static; transform: none; padding: 7px 3px; text-align: center; font-size: 9px; line-height: 1.5; }
  body.home-redesign .arch-node--center { grid-column: 1 / -1; font-size: 12px; padding: 11px; margin-bottom: 4px; }
  body.home-redesign .arch-card__head { align-items: flex-start; }
  body.home-redesign .arch-card__head .eyebrow-label { max-width: 180px; }
  body.home-redesign .capture-form { flex-direction: column; }
  body.home-redesign .capture-form input { flex: auto; width: 100%; }
  body.home-redesign .capture-form .btn { width: 100%; }
}
/* At tablet widths the diagram card can be narrower than the viewport. */
@container (max-width: 360px) {
  body.home-redesign .arch-diagram { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; height: auto; padding-block: 4px 12px; }
  body.home-redesign .arch-diagram > svg { display: none; }
  body.home-redesign .arch-node { position: static; transform: none; padding: 7px 3px; text-align: center; font-size: 9px; line-height: 1.5; }
  body.home-redesign .arch-node--center { grid-column: 1 / -1; font-size: 12px; padding: 11px; margin-bottom: 4px; }
}
@media (max-width: 480px) {
  body.home-redesign .container,
  body.home-redesign .site-header__row,
  body.home-redesign .hero__content,
  body.home-redesign .hero-stats { padding-inline: 20px; }
  body.home-redesign .hero-note { width: calc(100% - 40px); padding: 16px; }
  body.home-redesign .btn { white-space: normal; padding-inline: 20px; }
  body.home-redesign .hero__actions,
  body.home-redesign .cta-dark__actions,
  body.home-redesign .mobile-panel__cta { flex-direction: column; align-items: stretch; }
  body.home-redesign .hero__actions > .btn,
  body.home-redesign .cta-dark__actions > .btn { width: 100%; }
  body.home-redesign .eyebrow-badge { font-size: 11px; padding: 9px 12px; }
  body.home-redesign .service-card,
  body.home-redesign .feature-card,
  body.home-redesign .start-card,
  body.home-redesign .risk-snapshot,
  body.home-redesign .capture-card,
  body.home-redesign .arch-card,
  body.home-redesign .deliverables-card,
  body.home-redesign .decision-card,
  body.home-redesign .faq-card,
  body.home-redesign .case-card { padding: 24px; }
  body.home-redesign .about-card { padding: 28px 24px; }
  body.home-redesign .footer-bottom__links { flex-wrap: wrap; gap: 8px 18px; }
  body.home-redesign .footer-bottom__links a { min-height: 36px; display: inline-flex; align-items: center; }
  body.home-redesign .homepage-contact-form .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.home-redesign) { scroll-behavior: auto; }
  body.home-redesign *,
  body.home-redesign *::before,
  body.home-redesign *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
