/* validus-landing/site/src/assets/css/hero.css — hero layout + fit demo styling. */

/* Slim header: logo + wordmark left, conversion action right. */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto; padding: 18px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--evergreen); }
.brand-accent { color: var(--teal-deep); }
.btn-header { min-height: 44px; padding: 0 22px; font-size: 15px; }

/* Full-bleed ambience band: owner background art behind a paper wash so text
   contrast never depends on the image. The wave crest shows at the bottom edge;
   the top stays calm for the headline. */
.hero-band {
  /* Fallback first: browsers without image-set() keep the JPEG declaration. */
  background:
    linear-gradient(180deg, rgba(250, 249, 245, 0.94) 0%, rgba(250, 249, 245, 0.86) 60%, rgba(250, 249, 245, 0.55) 100%),
    url("/assets/img/hero-bg.jpg") center bottom / cover no-repeat;
  background:
    linear-gradient(180deg, rgba(250, 249, 245, 0.94) 0%, rgba(250, 249, 245, 0.86) 60%, rgba(250, 249, 245, 0.55) 100%),
    image-set(url("/assets/img/hero-bg.avif") type("image/avif"), url("/assets/img/hero-bg.webp") type("image/webp"), url("/assets/img/hero-bg.jpg") type("image/jpeg")) center bottom / cover no-repeat;
}
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  max-width: var(--container); margin: 0 auto; padding: 64px 24px 88px;
  align-items: center;
}
.hero-copy .subhead { font-size: 20px; color: var(--slate); }
.hero-ctas { display: flex; gap: 16px; margin: 28px 0; flex-wrap: wrap; }
.trust-strip { display: flex; gap: 20px; padding: 0; list-style: none; color: var(--slate); font-size: 15px; flex-wrap: wrap; }
.trust-strip li::before { content: "✓ "; color: var(--good-ink); }

/* Product switcher — same pill pattern as goals, quieter (underline-style). */
.product-switch { display: flex; gap: 4px; margin-bottom: 18px; flex-wrap: wrap; }
.product-switch [role="radio"] {
  min-height: 44px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent;
  background: transparent; color: var(--slate); font: 600 15px var(--font-body); cursor: pointer;
}
.product-switch [role="radio"][aria-checked="true"] { color: var(--evergreen); border-bottom-color: var(--teal-deep); }

.goal-switch { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.goal-switch-label {
  font-family: var(--font-data); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--slate); margin: 0 0 2px; width: 100%;
}
.goal-switch [role="radio"] {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: 500 15px var(--font-body); cursor: pointer;
}
.goal-switch [role="radio"][aria-checked="true"] { border-color: var(--teal-deep); background: var(--tint); }
.goal-description { width: 100%; font-size: 14px; color: var(--slate); margin: 4px 0 0; max-width: 46ch; }

.result-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; max-width: 420px;
}
.result-card-name { font: 600 19px var(--font-body); margin: 0; }
.result-card-brand { color: var(--slate); font-size: 15px; margin: 2px 0 0; }

/* Top benefit / top concern — one each, straight from the artifact. Label + icon,
   never color alone. */
.chips { display: flex; flex-direction: column; gap: 5px; list-style: none; padding: 0; margin: 14px 0 0; }
.chip { font-family: var(--font-data); font-size: 12.5px; line-height: 1.5; border-radius: 6px; padding: 4px 9px; }
.chip-benefit { color: var(--good-ink); background: rgba(30, 122, 70, 0.07); }
.chip-concern { color: var(--amber-ink); background: rgba(138, 90, 0, 0.07); }

/* Goal-aware Validus Verdict — the changing centerpiece, app parity. */
.verdict { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2px; }
.verdict-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-deep); margin: 0 0 6px; }
.verdict-text { font-size: 15px; line-height: 1.55; color: var(--ink); margin: 0; }

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

/* Brand wave divider — quiet page punctuation between sections. Fixed height +
   object-fit crops the whitespace baked into the source art. */
.section-divider { display: block; width: 100%; max-width: var(--container); height: 110px; object-fit: cover; margin: 8px auto 0; }
.result-card dl { margin: 20px 0 0; }
.result-card .row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.result-card dt { color: var(--slate); font-size: 15px; }
.result-card dd { margin: 0; text-align: right; font-size: 16px; max-width: 24ch; }
.band { font-weight: 600; }
.band[data-band="Excellent"], .band[data-band="Good"] { color: var(--good-ink); }
.band[data-band="Fair"] { color: var(--amber-ink); }
.band[data-band="Poor"], .band[data-band="Limit"] { color: var(--coral-ink); }
.locked { color: var(--slate); font-size: 11px; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; margin-left: 8px; }

/* Fit meter — the ONLY place outside the hero accents the gradient may appear. */
.meter { display: block; height: 7px; min-width: 170px; border-radius: 4px; background: var(--line); margin-top: 8px; position: relative; overflow: hidden; }
.meter::after {
  content: ""; position: absolute; inset: 0; background: var(--grad);
  transform-origin: left; transition: transform 220ms ease;
}
.meter[data-band="Excellent"]::after { transform: scaleX(0.92); }
.meter[data-band="Good"]::after { transform: scaleX(0.76); }
.meter[data-band="Fair"]::after { transform: scaleX(0.58); }
.meter[data-band="Poor"]::after { transform: scaleX(0.36); }
.meter[data-band="Limit"]::after { transform: scaleX(0.15); }
.result-card-footnote { color: var(--slate); font-size: 13px; margin: 16px 0 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 56px 24px; gap: 32px; }
  .result-card { max-width: 100%; }
}
