/* Hero styling and responsive layouts. */
.hero-section { overflow: hidden; background: #faf6ff; }
.hero-section::after {
  background-color: transparent; inset: 0; width: 100%; height: 100%; border-radius: 0; filter: none;
  background-image: linear-gradient(#7d718b33 1px, transparent 1px), linear-gradient(90deg, #7d718b33 1px, transparent 1px);
  background-size: 78px 75px; background-position: center;
  mask-image: radial-gradient(ellipse 35% 48% at 48% 55%, #000 10%, transparent 100%);
}
.hero-shell { position: relative; z-index: 1; }
.hero-title-second { font-weight: 600; }
.hero-title .accent-text {
  background: linear-gradient(100deg, #ff6033, #934784);
  background-clip: text; -webkit-background-clip: text; color: transparent;
}
.hero-section .advisor-icon { color: #ff6033; }
.hero-section .advisor-icon svg { width: 55%; height: 55%; }
.hero-section .form-field label { display: flex; gap: 3px; align-items: baseline; }
.hero-section .form-field label > span { order: -1; color: #e00000; }
.hero-section .form-status:empty { display: none; }

/* Laptop and desktop: flexible columns with readable controls at every width. */
@media (min-width: 1024px) {
  .hero-section { min-height: 0; }
  .hero-shell {
    width: min(calc(100% - 64px), 1280px);
    grid-template-columns: minmax(0, 1fr) clamp(320px, 29vw, 400px);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
    padding: clamp(48px, 5vw, 80px) 0 clamp(56px, 5vw, 80px);
  }
  .hero-copy { min-width: 0; padding: 0; container-type: inline-size; }
  .hero-title-wrap, .hero-title { max-width: none; }
  .hero-title {
    font-family: 'Inclusive Sans', Arial, sans-serif;
    font-size: clamp(32px, 6.4cqw, 52px);
    line-height: 1.35;
    letter-spacing: -.02em;
    white-space: normal;
    transform: none;
  }
  .hero-title-opening { position: relative; display: inline-block; white-space: nowrap; }
  .hero-title-opening::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -.08em -.3em;
    border-radius: 999px;
    background: #ece2f8;
    box-shadow: 0 3px 3px #0002;
  }
  .hero-title strong, .hero-career-phrase { white-space: nowrap; }
  .hero-title-second { font-size: inherit; font-weight: 700; }
  .hero-title-pill, .hero-title-wrap > .hero-cursor { display: none; }
  .hero-title-opening .hero-cursor {
    display: block;
    top: calc(100% - .4em);
    left: 100%;
    right: auto;
    bottom: auto;
    width: .9em;
    height: .9em;
    transform: none;
  }
  .hero-description {
    max-width: 680px;
    margin-top: 26px;
    font-family: Arial, sans-serif;
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.5;
    color: #737174;
  }
  .benefit-pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 32px;
  }
  .benefit-pills li {
    min-width: 0;
    min-height: 50px;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    background: #ffffff59;
    box-shadow: 0 2px 5px #66409566;
  }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; align-items: stretch; }
  .hero-actions .button {
    width: auto;
    min-width: 0;
    min-height: 50px;
    padding: 12px 20px;
    gap: 12px;
    border-radius: 8px;
    font-family: 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.3;
    white-space: normal;
  }
  .hero-actions .button-arrow { font-size: 26px; flex-shrink: 0; }
  .hero-section .advisor-link {
    width: auto;
    min-height: 50px;
    padding: 8px 14px;
    gap: 8px;
    border-radius: 8px;
    background: #ff6033;
  }
  .hero-section .advisor-icon { flex: 0 0 32px; width: 32px; height: 32px; }
  .hero-section .advisor-copy { gap: 2px; }
  .hero-section .advisor-copy small { font: 9px/1.25 Arial, sans-serif; text-transform: uppercase; }
  .hero-section .advisor-copy strong { font: 700 17px/1.1 Arial, sans-serif; }
  .hero-section .lead-form--inline {
    width: 100%;
    min-width: 0;
    padding: 28px clamp(24px, 2.5vw, 36px);
    gap: 16px;
    border-radius: 16px;
    background: #ffffffc9;
    box-shadow: 0 7px 10px #66409580;
  }
  .hero-section .lead-form h2 { margin-bottom: 8px; font-size: 18px; line-height: 1.3; }
  .hero-section .form-field label { margin-bottom: 7px; font-size: 13px; line-height: 1.4; }
  .hero-section .form-field label > span { font-size: 14px; }
  .hero-section .form-field input, .hero-section .form-field select {
    min-height: 44px;
    height: auto;
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 14px;
  }
  .hero-section .phone-field { min-height: 44px; border-radius: 5px; }
  .hero-section .phone-field input { border-radius: 0; }
  .hero-section .phone-prefix { min-width: 64px; padding-inline: 8px; gap: 5px; font-size: 12px; }
  .hero-section .phone-prefix img { width: 14px; height: 12px; }
  .hero-section .button--submit { min-height: 46px; margin-top: 8px; padding: 12px; border-radius: 5px; font-size: 14px; box-shadow: none; }
  .hero-section .field-error, .hero-section .form-status { font-size: 12px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .benefit-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Below desktop, use readable type and touch targets instead of scaling the canvas. */
@media (max-width: 1023px) {
  .hero-section { min-height: 0; }
  .hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 768px;
    gap: 32px;
    padding: clamp(32px, 6vw, 56px) clamp(16px, 4vw, 32px) 48px;
    margin-inline: auto;
  }
  .hero-copy { width: 100%; max-width: none; padding: 0; }
  .hero-title-wrap { max-width: none; }
  .hero-title {
    font-size: clamp(27px, 5.7vw, 44px);
    line-height: 1.25;
    letter-spacing: -.025em;
    white-space: normal;
    transform: none;
  }
  .hero-title-opening { position: relative; display: inline-block; white-space: nowrap; }
  .hero-title-pill { display: none; }
  .hero-title-opening::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -.12em -.25em;
    border-radius: 999px;
    background: #ece2f8;
    box-shadow: 0 3px 3px #0002;
  }
  .hero-title strong, .hero-career-phrase, .hero-title .accent-text { white-space: nowrap; }
  .hero-title-second { font-size: inherit; font-weight: 700; }
  .hero-cursor {
    top: calc(100% - .4em);
    left: 100%;
    right: auto;
    bottom: auto;
    width: .9em;
    height: .9em;
    transform: none;
  }
  .hero-description {
    max-width: none;
    margin-top: 22px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
  }
  .benefit-pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
  }
  .benefit-pills li {
    min-width: 0;
    min-height: 48px;
    padding: 10px 8px;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: stretch;
    gap: 12px;
    margin-top: 24px;
  }
  .hero-actions .button, .hero-section .advisor-link {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 12px;
    border-radius: 8px;
    justify-content: center;
  }
  .hero-actions .button {
    font-family: 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.3;
    gap: 10px;
    white-space: normal;
  }
  .hero-actions .button-arrow { flex: 0 0 auto; font-size: 25px; }
  .hero-section .advisor-link { gap: 8px; }
  .hero-section .advisor-icon { width: 32px; height: 32px; flex: 0 0 32px; }
  .hero-section .advisor-copy { gap: 2px; }
  .hero-section .advisor-copy small { font-size: 9px; }
  .hero-section .advisor-copy strong { font-size: 16px; }
  .hero-section .lead-form--inline {
    width: 100%;
    max-width: 560px;
    justify-self: center;
    padding: clamp(22px, 4vw, 32px);
    gap: 16px;
    border-radius: 16px;
  }
  .hero-section .lead-form h2 { font-size: 18px; margin-bottom: 6px; }
  .hero-section .form-field label { font-size: 13px; line-height: 1.4; margin-bottom: 7px; }
  .hero-section .form-field input, .hero-section .form-field select {
    min-height: 44px;
    font-size: 16px;
    padding: 10px 12px;
  }
  .hero-section .phone-field { min-height: 44px; }
  .hero-section .phone-prefix { font-size: 13px; min-width: 64px; }
  .hero-section .button--submit { min-height: 46px; margin-top: 6px; font-size: 14px; }
  .hero-section .field-error, .hero-section .form-status { font-size: 12px; }
  .hero-section::after {
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 45% at 50% 35%, #0008, transparent);
  }
}
@media (max-width: 599px) {
  .hero-title-opening { display: table; margin-bottom: .28em; }
  .hero-title br { display: none; }
  .hero-title strong { margin-right: .12em; }
  .benefit-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions { grid-template-columns: minmax(0, 1fr); }
  .hero-section .lead-form--inline { max-width: none; }
}

/* Keep the original desktop cursor position; anchor the small-screen copy to its text. */
.hero-cursor--mobile { display: none; }
@media (max-width: 1023px) {
  .hero-title-wrap > .hero-cursor { display: none; }
  .hero-cursor--mobile { display: block; }
}

/* Floating call button for the mobile hero (top-right corner). */
.hero-call-fab {
  display: none;
}
@media (max-width: 1023px) {
  .hero-call-fab {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    color: var(--color-white);
    background: var(--color-orange);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
  }
  .hero-call-fab svg {
    width: 22px;
    height: 22px;
  }
  .hero-call-fab:hover {
    transform: translateY(-2px);
    background: var(--color-orange-dark);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
  }
  .hero-call-fab:active {
    transform: translateY(0);
  }
  .hero-call-fab:focus-visible {
    outline: 2px solid var(--color-purple);
    outline-offset: 3px;
  }
}
@media (max-width: 767px) {
  .hero-call-fab {
    top: 10px;
    right: 10px;
    width: 48px;
    height: 48px;
  }
  .hero-call-fab svg {
    width: 20px;
    height: 20px;
  }
}
