/* ===========================================================================
   beauty-advisor.css

   Literal port of the vendor reference's own advisor-page.css + tokens.css
   for the /beauty-advisor page. This is a
   deliberate exception to this project's normal Tailwind-only convention.

   Two changes only versus the reference source, everything else (spacing,
   layout, the single custom `min-width: 900px` breakpoint) is unchanged:

     1. Every selector is scoped under `.ba` (the root the component
        wraps its ported markup in), so nothing here can bleed into the real
        header/footer/other components, which may reuse short class names
        like `.btn` / `.input` / `.tab` for something unrelated.
     2. Four brand token VALUES are corrected against this project's real,
        confirmed theme (settings/Implementations/Styles/theme-custom.setting)
        — variable NAMES are untouched: --adv-ink, --adv-brown, --adv-bg-alt,
        --adv-line. Every other token (bands, shape, shadow, radius) is
        report-specific and kept exactly as the reference has it.

   =========================================================================== */

/* --- tokens (from tokens.css, advisor-page section only) ------------------- */
.ba {
  /* ink */
  --adv-ink: #463F3A;                   /* corrected: real theme ink (was #47403B) */
  --adv-ink-70: rgba(70, 63, 58, 0.7);
  --adv-ink-60: rgba(70, 63, 58, 0.6);  /* .lead, secondary copy */
  --adv-ink-50: rgba(70, 63, 58, 0.5);  /* placeholders, eyebrow on cards */
  --adv-brown: #B68076;                 /* corrected: real theme primary/accent (was #5C4738) */
  --adv-on-dark: #FFFFFF;

  /* surfaces */
  --adv-bg: #FFFFFF;
  --adv-bg-alt: #F4F3EE;                /* corrected: real theme bg-alt (was #F9F9F5) */
  --adv-tan: #CEBFAF;                   /* outline button fill, image placeholder */
  --adv-line: #E5E7EB;                  /* corrected: real theme line (was #DDDDDE) */

  /* bands — the legend on the report. Report-specific, no project equivalent
     to correct against, so these stay exactly as the reference has them. */
  --adv-band-attention: #B4453A;        /* 0-39  . treat first */
  --adv-band-improve: #E0A63C;          /* 40-69 . improve */
  --adv-band-good: #4E8A72;             /* 70-100 . good */
  --adv-band-attention-text: #B4453A;
  --adv-band-improve-text: #B07C1F;
  --adv-band-good-text: #4E8A72;

  /* type */
  --adv-font: Figtree, "Segoe UI", system-ui, sans-serif;

  /* shape — the comp uses 6px on controls and 8px on cards, not one radius */
  --adv-radius-control: 6px;
  --adv-radius-card: 8px;
  --adv-radius-modal: 16px;
  --adv-shadow-card: 0 4px 12px rgba(0, 0, 0, 0.05);
  --adv-shadow-modal: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* --- reset + page ------------------------------------------------------------ */
.ba, .ba::before, .ba::after { box-sizing: border-box; }
.ba *, .ba *::before, .ba *::after { box-sizing: border-box; }
.ba, .ba h1, .ba h2, .ba h3, .ba h4, .ba p, .ba figure { margin: 0; }

.ba {
  background: var(--adv-bg);
  color: var(--adv-ink);
  font-family: var(--adv-font);
  font-size: 16px;
  /* One body leading for every running text on the page. */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.ba h1, .ba h2, .ba h3 { font-weight: 700; line-height: 1.12; letter-spacing: -0.4px; }
.ba img, .ba video { max-width: 100%; }
.ba a { color: inherit; text-decoration: none; }

/* --- layout ------------------------------------------------------------------ */
.ba .wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.ba .sec { padding: 64px 0; }
.ba .sec-alt { background: var(--adv-bg-alt); }
.ba .sechead { display: flex; flex-direction: column; gap: 8px; max-width: 720px; }

/* --- type ---------------------------------------------------------------------- */
.ba .eyebrow {
  font-size: 12px; font-weight: 600; line-height: 1.2;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--adv-brown);
}
.ba .eyebrow-name > span { white-space: nowrap; }
.ba .eyebrow-name { line-height: 1.45; }
.ba .h-section { font-size: 32px; line-height: 1.15; }
.ba .lead { font-size: 15px; line-height: 1.6; color: var(--adv-ink-60); }
.ba .fine { font-size: 12px; line-height: 1.6; color: var(--adv-ink-60); }
.ba .underlined { border-bottom: 1px solid var(--adv-line); }

/* --- buttons --------------------------------------------------------------------- */
.ba .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 32px;
  border: 0; border-radius: var(--adv-radius-control);
  background: var(--adv-ink); color: var(--adv-on-dark);
  font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1;
  letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer;
}
.ba .btn:hover { opacity: 0.9; }
.ba .btn:disabled { opacity: 0.65; cursor: default; }
.ba .btn-outline { background: var(--adv-tan); color: var(--adv-ink); }
.ba .btn-light { background: var(--adv-bg); color: var(--adv-ink); }
.ba .btn-sm { min-height: 40px; padding: 8px 16px; font-size: 12px; }
.ba .btn-block { width: 100%; }

.ba .input {
  width: 100%; height: 48px;
  border: 1px solid var(--adv-line); border-radius: var(--adv-radius-control);
  padding: 12px 16px;
  background: var(--adv-bg);
  font-family: inherit; font-size: 16px; line-height: 1.5;
  color: var(--adv-ink);
}
.ba .input::placeholder { color: var(--adv-ink-50); }

/* Visible focus everywhere. */
.ba :where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--adv-brown);
  outline-offset: 2px;
}

/* --- referral / member bar (kept for completeness; the real header already
   renders webalias-search-banner.component, so this page does not mount the
   .topbar markup itself — the rule stays scoped here in case a future state
   needs it, at no cost since nothing in the component references it) --------- */
.ba .topbar {
  background: var(--adv-bg-alt); border-bottom: 1px solid var(--adv-line);
  padding: 12px 16px;
}
.ba .topbar-inner {
  display: flex; flex-direction: column; align-items: stretch; justify-content: center;
  gap: 8px;
  max-width: 1280px; margin: 0 auto;
}
.ba .topbar-label { font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; }
.ba .topbar-sep { display: none; width: 1px; height: 16px; background: var(--adv-line); }
.ba .topbar .fine { text-align: center; }
.ba .topbar-field { display: flex; gap: 8px; }
.ba .topbar-field .input { flex: 1; width: auto; min-width: 0; }
.ba .topbar-field .btn { flex: none; }

/* --- hero ------------------------------------------------------------------------ */
.ba .hero { position: relative; min-height: 500px; overflow: hidden; background: #8B827C;
        display: flex; }
.ba .hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ba .hero-scrim {
  position: absolute; inset: 0;
  --scrim: 26, 22, 20;
  --s1: 0.22; --s2: 0.50; --s3: 0.80;     /* mobile stops, top to bottom */
  --d1: 0.72; --d2: 0.46; --d3: 0.08;     /* desktop stops, left to right */
  background: linear-gradient(180deg,
    rgba(var(--scrim), var(--s1)) 0%,
    rgba(var(--scrim), var(--s2)) 55%,
    rgba(var(--scrim), var(--s3)) 100%);
}

.ba [data-scrim="light"] .hero-scrim {
  --s1: 0.12; --s2: 0.28; --s3: 0.45;
  --d1: 0.40; --d2: 0.28; --d3: 0.06;
}

.ba [data-scrim="off"] .hero-scrim { display: none; }
.ba [data-scrim="off"] .hero-copy { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55); }
.ba .hero-inner {
  position: relative; flex: 1;
  display: flex; align-items: flex-end;
  padding: 24px 16px 32px;
}
.ba .hero-copy {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  color: var(--adv-on-dark);
}
.ba .hero-copy .eyebrow {
  font-size: clamp(13px, 1.82vw + 7.2px, 14px);
  letter-spacing: clamp(2.5px, 1.82vw - 3.32px, 3.5px);
  color: #fff;
}
.ba .hero h1 { font-size: 28px; line-height: 1.2; color: var(--adv-on-dark); white-space: pre-line; }
.ba .hero-body { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }
.ba .hero-actions {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 12px; width: 100%; margin-top: 4px;
}
.ba .hero-hiw {
  align-self: flex-start;
  font-size: 14px; font-weight: 600; color: var(--adv-on-dark);
  background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0 0 4px; cursor: pointer; font-family: inherit;
}
.ba .hero-restart { display: inline-flex; align-items: center; gap: 8px; }
.ba .hero-actions .hero-restart { align-self: center; }   /* centred under the CTA */
.ba .hero-body { line-height: 1.55; }
.ba .hero-sig {
  font-size: 14px; font-weight: 600; letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: -4px;
}
.ba .hero-note { font-size: 13px; color: rgba(255, 255, 255, 0.7); }

@media (prefers-reduced-motion: reduce) {
  .ba .hero video { display: none; }
  .ba .hero { background-size: cover; background-position: center; }
}

/* --- how it works steps ----------------------------------------------------------- */
.ba .steps { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
.ba .step { display: flex; flex-direction: column; gap: 12px; }
.ba .step-img {
  height: 160px; border-radius: var(--adv-radius-card);
  background: var(--adv-bg-alt); border: 1px solid var(--adv-line);
  overflow: hidden;
}
.ba .step-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba .step-num {
  display: flex; align-items: center; gap: 12px;
  color: var(--adv-brown);
  font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
}
.ba .step h3 { font-size: 20px; }

/* --- email capture ------------------------------------------------------------------ */
.ba .capture { display: flex; flex-direction: column; gap: 24px; }
.ba .capture-img {
  width: 100%; aspect-ratio: 1; max-width: 456px;
  border-radius: var(--adv-radius-card); object-fit: cover; display: block;
}
.ba .capture-copy { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ba .capture-cards {
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; max-width: 520px; margin-top: 8px;
}
.ba .capture-card {
  border: 1px solid var(--adv-line); border-radius: var(--adv-radius-card);
  padding: 16px; background: var(--adv-bg);
  display: flex; flex-direction: column; gap: 12px;
}
.ba .capture-card.is-primary { border-color: var(--adv-brown); background: var(--adv-bg-alt); }
.ba .capture-card h3 { font-size: 18px; font-weight: 400; line-height: 1.25; }
.ba .capture-form { display: flex; flex-direction: column; gap: 12px; }
.ba .consent { display: flex; gap: 12px; align-items: flex-start; }
.ba .consent input {
  flex: none; width: 20px; height: 20px; margin: 2px 0 0;
  accent-color: var(--adv-brown);
}
.ba .member-email {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  font-size: 16px; font-weight: 600; line-height: 1.4;
}
.ba .member-email .addr { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* --- report --------------------------------------------------------------------------- */
.ba .score {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--adv-line); border-radius: var(--adv-radius-card);
  padding: 16px; margin-top: 24px;
}
.ba .score svg { flex: none; width: 80px; height: 80px; }
.ba .score-ring { fill: none; stroke-width: 9; stroke-linecap: round; }
.ba .score-track { fill: none; stroke: var(--adv-line); stroke-width: 9; }
.ba .score-num { font-size: 26px; font-weight: 700; fill: var(--adv-ink); }
.ba .score-head { font-size: 14px; line-height: 1.5; }
.ba .score-band { font-size: 22px; font-weight: 600; margin-top: 2px; }
.ba .score-sub { font-size: 13px; line-height: 1.6; color: var(--adv-ink-60); margin-top: 6px; }

.ba .score-blurb {
  font-size: 14px; line-height: 1.6; color: var(--adv-ink-70);
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--adv-line);
}

.ba .tabs {
  display: flex; gap: 24px;
  border-bottom: 1px solid var(--adv-line);
  margin-top: 24px;
}
.ba .tab {
  padding: 12px 4px;
  background: none; border: 0; border-bottom: 2px solid transparent;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.4;
  color: var(--adv-ink-50); cursor: pointer;
}
.ba .tab[aria-selected="true"] { color: var(--adv-ink); border-bottom-color: var(--adv-brown); }

.ba .metrics { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.ba .metric { display: flex; flex-direction: column; gap: 8px; }
.ba .metric-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.ba .metric-name { font-size: 15px; line-height: 1.4; }
.ba .metric-band {
  flex: none;
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
}
.ba .bar {
  display: block;
  height: 8px; border-radius: 999px;
  background: var(--adv-bg-alt); border: 1px solid var(--adv-line);
  overflow: hidden;
}
.ba .bar i { display: block; height: 100%; border-radius: 999px; }

.ba .b-attention .bar i, .ba .dot.b-attention { background: var(--adv-band-attention); }
.ba .b-improve   .bar i, .ba .dot.b-improve   { background: var(--adv-band-improve); }
.ba .b-good      .bar i, .ba .dot.b-good      { background: var(--adv-band-good); }
.ba .b-attention .metric-band, .ba .t-attention { color: var(--adv-band-attention-text); }
.ba .b-improve   .metric-band, .ba .t-improve   { color: var(--adv-band-improve-text); }
.ba .b-good      .metric-band, .ba .t-good      { color: var(--adv-band-good-text); }

.ba .showall {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; margin-top: 4px; padding: 12px 16px;
  border: 1px solid var(--adv-line); border-radius: var(--adv-radius-card);
  background: var(--adv-bg); font-family: inherit; text-align: left;
  font-size: 14px; line-height: 1.4; color: var(--adv-ink); cursor: pointer;
}
.ba .showall-cue {
  flex: none; display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--adv-brown);
}
.ba .showall[aria-expanded="true"] .showall-cue svg { transform: rotate(180deg); }

.ba .key { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 12px; line-height: 1.5; color: var(--adv-ink-60); }
.ba .key-item { display: flex; gap: 8px; align-items: center; }
.ba .dot { width: 8px; height: 8px; border-radius: 999px; flex: none; }

.ba .key-note { font-size: 12px; line-height: 1.6; color: var(--adv-ink-60); margin-top: 10px; }

.ba .concerns { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.ba .concern {
  border: 1px solid var(--adv-line); border-radius: var(--adv-radius-card);
  background: var(--adv-bg); overflow: hidden;
}
.ba .concern.is-open { border-color: var(--adv-brown); }

.ba .concern-head {
  width: 100%; padding: 16px;
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  background: none; border: 0; font: inherit; color: inherit; cursor: pointer;
}
.ba .concern-head:hover { background: var(--adv-bg-alt); }
.ba .concern .dot { width: 10px; height: 10px; margin-top: 8px; }
.ba .concern-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ba .concern-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.ba .concern-name { font-size: 18px; line-height: 1.25; }

.ba .concern-cue {
  flex: none; margin-top: 4px; color: var(--adv-brown);
  display: flex; transition: transform 0.18s ease;
}
.ba .concern.is-open .concern-cue { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .ba .concern-cue { transition: none; }
}

.ba .concern-detail {
  padding: 0 16px 16px 38px;
  display: flex; flex-direction: column; gap: 8px;
}
.ba .concern-desc { font-size: 14px; line-height: 1.6; color: var(--adv-ink-70); }
.ba .concern-partner {
  padding-left: 12px;
  border-left: 2px solid var(--adv-line);
  color: var(--adv-ink-60);
}
.ba .concern-src {
  font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--adv-ink-50);
  padding-top: 8px; border-top: 1px solid var(--adv-line);
}

/* --- products ------------------------------------------------------------------------- */
/* Three layouts, mobile first. Phones stack one full-width card per row: the horizontal rail
   below gives every card a fixed 210px whatever the screen is, which on a 390px phone is a
   cramped card with the rest of the ritual hidden off to the side. From 640px (this project's
   `sm`) the scroll rail returns for tablets, and from 900px it becomes the four-up grid. */
.ba .rail {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 16px; margin: 24px 0 0;
}

.ba .pcard {
  border-radius: var(--adv-radius-card); overflow: hidden;
  background: var(--adv-bg); box-shadow: var(--adv-shadow-card);
  display: flex; flex-direction: column;
}

/* Tablets: the original scroll rail, fixed-width cards and all. */
@media (min-width: 640px) {
  .ba .rail {
    display: flex; gap: 12px; margin: 24px -16px 0; padding: 0 16px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ba .rail::-webkit-scrollbar { display: none; }
  .ba .pcard { flex: none; width: 210px; scroll-snap-align: start; }
}
.ba .pcard-img {
  width: 100%; height: 210px;
  object-fit: cover; display: block; background: var(--adv-tan);
}
/* The image is a link to the PDP now - block, so no inline baseline gap under it. */
.ba .pcard-img-link { display: block; }
.ba .pcard-name a:hover, .ba .pcard-name a:focus-visible { text-decoration: underline; }
.ba .pcard-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ba .pcard-cat {
  font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--adv-ink-50);
}
.ba .pcard-brand { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.ba .pcard-name { font-size: 16px; font-weight: 400; line-height: 1.3; }
.ba .pcard-foot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
/* The amount and its "/mo with subscription" wording are ONE wrapping text flow, not a flex row:
   inside a 210px card at 390px the longest translations (fr "/mois avec abonnement",
   pl "/mies. z subskrypcja") have to fall to a second line rather than clip, and a flex row with
   a fixed gap gives them nowhere to go. `anywhere` is the backstop for a four-figure price in a
   language with no break opportunity before the currency runs out of room. */
.ba .price {
  font-size: 13px; font-weight: 400; line-height: 1.5;
  color: var(--adv-ink-60); overflow-wrap: anywhere;
}
.ba .price-now { font-size: 20px; font-weight: 600; color: var(--adv-ink); }

/* --- loading placeholders (saved result still loading) ------------------------------------ */
.ba .skel-block, .ba .skel-line, .ba .pcard-skel .pcard-img {
  background: linear-gradient(90deg, var(--adv-bg-alt) 25%, var(--adv-line) 50%, var(--adv-bg-alt) 75%);
  background-size: 200% 100%;
  animation: ba-skel 1.4s ease-in-out infinite;
}
.ba .skel-line { display: block; height: 14px; width: 100%; max-width: 520px; border-radius: 7px; }
.ba .skel-line.is-short { width: 30%; }
.ba .skel-line.is-title { height: 28px; width: 60%; }
.ba .skel-copy { width: 100%; gap: 14px; }
.ba .skel-card { width: 100%; max-width: 520px; height: 120px; margin-top: 8px; border-radius: var(--adv-radius-card); }
.ba .capture-img.skel-block { border-radius: var(--adv-radius-card); }
@keyframes ba-skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .ba .skel-block, .ba .skel-line, .ba .pcard-skel .pcard-img { animation: none; }
}

/* --- how-it-works dialog ----------------------------------------------------------------- */
.ba .hiw::backdrop { background: rgba(70, 63, 58, 0.5); }
.ba .hiw {
  width: 100%; max-width: 100%;
  margin: auto auto 0; padding: 0; border: 0;
  border-radius: var(--adv-radius-modal) var(--adv-radius-modal) 0 0;
  background: var(--adv-bg); color: var(--adv-ink);
  box-shadow: var(--adv-shadow-modal);
  max-height: 90vh; overflow-y: auto;
}
.ba .hiw-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 24px 16px 16px;
}
.ba .hiw-head h2 { font-size: 24px; line-height: 1.15; }
.ba .hiw-close {
  flex: none; width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--adv-line); background: none; color: var(--adv-ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.ba .hiw-steps { padding: 0 16px; display: flex; flex-direction: column; gap: 16px; }
.ba .hiw-step { display: flex; gap: 12px; align-items: flex-start; }
.ba .hiw-num {
  flex: none; width: 32px; height: 32px; border-radius: 999px;
  background: var(--adv-bg-alt); border: 1px solid var(--adv-line);
  color: var(--adv-brown); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.ba .hiw-step h3 { font-size: 18px; font-weight: 400; line-height: 1.25; }
.ba .hiw-step p { font-size: 14px; line-height: 1.6; color: var(--adv-ink-60); }
.ba .hiw-privacy {
  margin: 24px 16px; padding: 16px;
  background: var(--adv-bg-alt); border-radius: var(--adv-radius-card);
  display: flex; flex-direction: column; gap: 8px;
}
.ba .hiw-privacy p:first-child { font-size: 14px; font-weight: 600; line-height: 1.4; }
.ba .hiw-privacy p { font-size: 13px; line-height: 1.6; color: var(--adv-ink-60); }

/* --- notices: failure, and scan warnings ---------------------------------------------------- */
.ba .notice {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--adv-line); border-left: 3px solid var(--adv-band-attention);
  border-radius: var(--adv-radius-card);
  background: var(--adv-bg-alt);
}
.ba .notice-icon { flex: none; margin-top: 4px; color: var(--adv-band-attention); }

.ba .notice.is-resume { border-left-color: var(--adv-brown); }
.ba .notice.is-resume .notice-icon { color: var(--adv-brown); }

.ba .linkish {
  align-self: flex-start;
  background: none; border: 0; padding: 0;
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--adv-ink); cursor: pointer;
  border-bottom: 1px solid var(--adv-line);
}
.ba .linkish:hover { border-bottom-color: var(--adv-brown); }
.ba .member-email .linkish { flex: none; }
.ba .linkish.restart { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }

.ba .notice-dismiss {
  background: none; border: 0; padding: 0;
  font: inherit; font-size: 14px; font-weight: 600;
  color: var(--adv-ink-60); cursor: pointer;
  border-bottom: 1px solid var(--adv-line);
}
.ba .notice-dismiss:hover { color: var(--adv-ink); }
.ba .notice-body { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ba .notice-body .lead { max-width: 60ch; }
.ba .notice-actions {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 12px; width: 100%; margin-top: 4px;
}

.ba .warn {
  margin-top: 24px; padding: 12px 16px;
  border-left: 3px solid var(--adv-band-improve);
  background: var(--adv-bg-alt);
  border-radius: 0 var(--adv-radius-control) var(--adv-radius-control) 0;
  font-size: 14px; line-height: 1.6; color: var(--adv-ink-70);
  max-width: 70ch;
}

/* --- the advisor -----------------------------------------------------------------------------
   These two rules target the advisor custom element and the page-scroll lock while its native
   <dialog> is open. Left UNSCOPED (global), on purpose: they must apply regardless of where
   <revieve-conversational-advisor> sits in the DOM (a direct child of <body>, not of .ba),
   and regardless of nesting. */
revieve-conversational-advisor { display: contents; }
body:has(revieve-conversational-advisor[opened]) { overflow: hidden; }

/* --- states ------------------------------------------------------------------------------------ */
.ba [hidden] { display: none !important; }

/* ===========================================================================
   DESKTOP - the 1280 artboard. Single breakpoint: above it the page is the
   comp's desktop layout, below it the comp's mobile one.
   =========================================================================== */
@media (min-width: 900px) {
  .ba .wrap { padding: 0 40px; }
  .ba .sec { padding: 96px 0; }
  .ba .sechead { gap: 12px; }
  .ba .sechead-wide { max-width: none; }
  .ba .h-section { font-size: 50px; line-height: 1.12; }
  .ba .lead { font-size: 16px; }

  .ba .topbar { padding: 16px 40px; }
  .ba .topbar-inner { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 24px; }
  .ba .topbar-label { text-align: left; }
  .ba .topbar-sep { display: block; }
  .ba .topbar-field { gap: 16px; }
  .ba .topbar-field .input { flex: none; width: 280px; }

  /* hero - 720px, copy in the left third, gradient left-to-right */
  .ba .hero { min-height: 720px; }
  .ba .hero-scrim {
    background: linear-gradient(90deg,
      rgba(var(--scrim), var(--d1)) 0%,
      rgba(var(--scrim), var(--d2)) 42%,
      rgba(var(--scrim), var(--d3)) 100%);
  }
  .ba .hero-inner { align-items: center; padding: 64px 0; }
  .ba .hero-inner > .wrap { display: flex; align-items: center; }
  .ba .hero-copy { width: 560px; gap: 24px; }
  .ba .hero-copy .eyebrow { font-size: 16px; letter-spacing: 4px; }
  .ba .hero h1 { font-size: 48px; line-height: 1.12; }
  .ba .hero-body { font-size: 16px; line-height: 1.6; max-width: 480px; }
  /* CTA and "How it works" side by side; "Start a new analysis" on its own row under the CTA. */
  .ba .hero-actions {
    display: grid; grid-template-columns: auto auto; justify-content: start;
    align-items: center; column-gap: 16px; row-gap: 12px; width: auto; margin-top: 8px;
  }
  .ba .hero-actions .btn { width: auto; grid-area: 1 / 1; }
  .ba .hero-actions .hero-hiw { grid-area: 1 / 2; }
  .ba .hero-actions .hero-restart { grid-area: 2 / 1; justify-self: center; }
  .ba .hero-hiw { align-self: auto; }
  .ba .hero-note { font-size: 14px; margin-top: 8px; }

  .ba .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
  .ba .step { gap: 16px; }
  .ba .step-img { height: 200px; }
  .ba .step h3 { font-size: 24px; }

  /* email capture - editorial square beside the copy */
  .ba .capture { flex-direction: row; align-items: center; gap: 96px; }
  .ba .capture-img { flex: none; width: 456px; height: 456px; }
  .ba .capture-copy { flex: 1; gap: 16px; }
  .ba .capture-cards { gap: 16px; }
  .ba .capture-card { padding: 24px; gap: 16px; }
  .ba .capture-card h3 { font-size: 20px; }
  .ba .capture-card.is-inline { flex-direction: row; align-items: center; gap: 24px; }
  .ba .capture-card.is-inline > div { flex: 1; }
  .ba .capture-form { flex-direction: row; }
  .ba .capture-form .btn { flex: none; }

  /* report - score card in a 456px column beside the tabs */
  .ba .report { display: flex; gap: 64px; align-items: flex-start; margin-top: 48px; }
  .ba .report-score { flex: none; width: 456px; }
  .ba .report-detail { flex: 1; display: flex; flex-direction: column; }
  .ba .score { gap: 24px; padding: 24px; margin-top: 0; }
  .ba .score svg { width: 96px; height: 96px; }
  .ba .score-band { font-size: 24px; margin-top: 4px; }
  .ba .tabs { gap: 32px; margin-top: 0; }
  .ba .tab { font-size: 16px; }
  .ba .metrics { gap: 16px; }
  .ba .metric-name { font-size: 16px; }
  .ba .showall { padding: 16px 24px; font-size: 15px; }
  .ba .showall-cue { gap: 8px; font-size: 12px; }
  .ba .key { gap: 24px; }
  .ba .notice { padding: 32px; gap: 24px; }
  .ba .notice-actions { flex-direction: row; align-items: center; width: auto; gap: 24px; margin-top: 8px; }
  .ba .warn { padding: 16px 24px; font-size: 15px; }

  .ba .concern-head { padding: 24px; gap: 24px; }
  .ba .concern-detail { padding: 0 24px 24px 58px; gap: 12px; }
  .ba .concern-desc { font-size: 15px; }
  .ba .concern-name { font-size: 20px; }

  /* products - four across, no rail */
  .ba .rail {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px; margin: 48px 0 0; padding: 0; overflow: visible;
  }
  .ba .pcard { width: auto; }
  .ba .pcard-img { height: 282px; }
  .ba .pcard-body { padding: 24px; }
  .ba .pcard-name { font-size: 20px; }
  .ba .price { font-size: 14px; }
  .ba .price-now { font-size: 24px; }

  /* dialog - centred panel, 720px */
  .ba .hiw {
    width: 720px; max-width: calc(100% - 80px);
    margin: auto; border-radius: var(--adv-radius-modal);
    max-height: 85vh;
  }
  .ba .hiw-head { padding: 48px 48px 24px; }
  .ba .hiw-head h2 { font-size: 32px; }
  .ba .hiw-steps { padding: 0 48px; gap: 24px; }
  .ba .hiw-step { gap: 16px; }
  .ba .hiw-step h3 { font-size: 20px; }
  .ba .hiw-privacy { margin: 32px 48px 48px; padding: 24px; }
}
