/**
 * Business-review lead-magnet route (/business-review/).
 *
 * Loaded ONLY on this route, and only ever after bundle.css, because
 * inc/enqueue-scripts.php declares aiimn-styles as this handle's dependency.
 * That ordering is what lets the whole file work without a single !important.
 *
 * NAMESPACE CONTRACT
 * Every selector here is inside .aiimn-brx-*. The route reuses the campaign
 * shell (header-campaign.php, footer-campaign.php) and the frozen bundle rules
 * that come with it: .aiimn-mc for type and focus, .aiimn-mc .container for
 * page gutters, .aiimn-mc-section / --sky for section rhythm, .aiimn-mc-lead
 * for the measure. Nothing in this file may style any of those shared
 * surfaces, so the masterclass route cannot change when this one does.
 *
 * WHY EVERY SELECTOR REPEATS ITS FIRST CLASS
 * The campaign body carries .aiimn-mc, and the frozen bundle styles headings
 * and links through descendant rules on that body class (.aiimn-mc h1,
 * .aiimn-mc h2, .aiimn-mc h3, .aiimn-mc a). Those are specificity (0,1,1) and
 * beat a plain single-class rule (0,1,0). Repeating the leading class lifts
 * every rule here to (0,2,x), which clears the highest bundle rule that can
 * reach this markup, without a single !important. It is a specificity floor,
 * not decoration: if you add a rule, repeat its first class the same way.
 *
 * FOCUS
 * There is deliberately no focus rule in this file. The campaign shell already
 * ships one indicator for the whole route (body.aiimn-mc :focus-visible), a
 * navy band inside a white band, which carries contrast on the white card, the
 * sky section and the orange button alike. Adding a second one here would be a
 * regression.
 *
 * TOKENS
 * Every colour is a literal from the AIIMN brand token registry
 * (config/brand.json, mirrored in design-tokens.css). The custom properties
 * below are local aliases so the file reads like the brand record, not so that
 * a new palette can be introduced here.
 *
 * @package AIIMN
 * @since 2.3.0
 */

:root {
  /* brand.json primary + support */
  --brx-navy: #163f68;
  --brx-deep: #06192b;
  --brx-orange: #ff7357;
  --brx-orange-dark: #e85f45;
  --brx-sky: #edf4fa;
  --brx-white: #ffffff;
  --brx-ink: #102033;
  --brx-muted: #607086;
  /* brand.json extended */
  --brx-border: rgba(22, 63, 104, .16);
  --brx-shadow: 0 24px 70px rgba(6, 25, 43, .14);
  --brx-navy-500: #1d5490;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* Dark ground so the white capture card is the brightest thing on the */
/* first screen. Normal flow only: the route has no fixed layer.       */
/* ------------------------------------------------------------------ */
.aiimn-brx-hero.aiimn-brx-hero {
  color: rgba(255, 255, 255, .88);
  padding-block: 2rem 2.5rem;
}

@media (min-width: 768px) {
  .aiimn-brx-hero.aiimn-brx-hero { padding-block: 4rem 4.5rem; }
}

.aiimn-brx-hero__grid.aiimn-brx-hero__grid {
  display: grid;
  grid-template-areas: "copy" "card" "founder";
  gap: 1.25rem;
  align-items: start;
}

/*
 * Two columns only where there is room for a 380px card beside a readable
 * measure. Below that the copy leads and the card follows it, which keeps the
 * headline and the first field inside the first screen on a phone.
 */
@media (min-width: 900px) {
  .aiimn-brx-hero__grid.aiimn-brx-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    grid-template-areas: "copy card" "founder card";
    gap: 1.5rem 3rem;
    align-items: start;
  }
}

.aiimn-brx-hero__copy.aiimn-brx-hero__copy {
  grid-area: copy;
  min-width: 0;
}

/*
 * The offer line. The ad that pays for this click names the kit, so this is the
 * confirming glance, and it is the loudest thing on the first screen after the
 * capture card. It is a badge rather than plain small caps: on desktop the
 * headline is now three words, and without the badge the free offer read
 * quieter than a caption.
 *
 * Contrast: #ff7357 on the 14% orange wash over --brx-deep measures 5.5:1, so
 * it clears AA at every size this badge takes.
 *
 * RADIUS. 1.5em, not 999px. A 999px radius on a box that has wrapped to five
 * lines (measured at a 32px root on a 390px viewport: 326x181) clamps to half
 * the height and paints a wide ellipse, which the wrapped label then crosses.
 * An em radius is proportional instead: on one line the box is about 2.4em tall,
 * so 1.5em clamps back to exactly half the height and the pill is unchanged,
 * and on two or more lines it degrades to a rounded rectangle that contains its
 * own text.
 */
.aiimn-brx-eyebrow.aiimn-brx-eyebrow {
  margin-bottom: 1rem;
}

.aiimn-brx-eyebrow.aiimn-brx-eyebrow .aiimn-brx-eyebrow__badge {
  display: inline-block;
  max-width: 100%;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--brx-orange);
  background: rgba(255, 115, 87, .14);
  border: 1px solid rgba(255, 115, 87, .45);
  border-radius: 1.5em;
  padding: 0.4375rem 0.9375rem;
}

@media (min-width: 900px) {
  .aiimn-brx-eyebrow.aiimn-brx-eyebrow .aiimn-brx-eyebrow__badge {
    font-size: 1.0625rem;
    letter-spacing: .1em;
    padding: 0.5625rem 1.125rem;
  }
}

/*
 * White, because the bundle paints every campaign heading navy and this one
 * sits on the deep-navy hero. Measured 15.9:1 against that ground.
 *
 * The lower bound is deliberately below the bundle's campaign H1: on a 390px
 * phone this headline is one long sentence, and every step up in size pushes
 * the email field further past the fold on the one page whose whole job is the
 * email field. It grows back to campaign scale as soon as there is width.
 */
.aiimn-brx-hero__title.aiimn-brx-hero__title {
  color: var(--brx-white);
  font-size: var(--aiimn-display-1-hero);
  line-height: 1.16;
  margin-bottom: 0.875rem;
}

/*
 * 2026-08-27: the shared display scale carries this title at campaign widths so
 * /business-review/ matches every other route. Below the two-column breakpoint
 * the original, deliberately small size is kept unchanged: this route's whole
 * job is the email field, and the campaign scale pushes it past the fold. See
 * the note above.
 */
@media (max-width: 899px) {
  .aiimn-brx-hero__title.aiimn-brx-hero__title {
    font-size: clamp(1.5rem, 1.125rem + 1.7vw, 2.75rem);
  }
}

.aiimn-brx-hero__body.aiimn-brx-hero__body {
  color: rgba(255, 255, 255, .88);
  margin-bottom: 0;
}

/*
 * The founder block. This is the page's strongest trust asset, a named operator
 * running a real business, so the portrait is shown at a size a visitor can
 * actually read a face in, above the fold, beside the credit rather than under
 * it. It is a flex row so the credit sets the block height and the photo cannot
 * push the capture card off the first screen.
 */
.aiimn-brx-founder.aiimn-brx-founder {
  grid-area: founder;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

/*
 * Sized in rem, not px, so the portrait grows with the text instead of
 * shrinking into irrelevance at 200% and 400%, and capped in px so it cannot
 * eat the first screen at a 64px root. 4:5 is the asset's own ratio, restated
 * here so the CSS box and the intrinsic box agree.
 */
.aiimn-brx-founder.aiimn-brx-founder .aiimn-brx-founder__photo {
  flex: 0 0 auto;
  display: block;
  width: min(6.25rem, 132px);
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 14px 34px rgba(6, 25, 43, .45);
}

@media (min-width: 900px) {
  .aiimn-brx-founder.aiimn-brx-founder .aiimn-brx-founder__photo {
    width: min(11.25rem, 180px);
  }
}

/*
 * A flex item's default min-width is auto, which floors it at its own
 * min-content width: at a 64px root (the 400% text-scale case) the longest
 * word in this credit held the row past a 360px viewport. min-width:0 lets the
 * lines wrap instead. Measured clean at 16px, 32px, 48px and 64px roots.
 */
.aiimn-brx-founder.aiimn-brx-founder .aiimn-brx-founder__credit {
  min-width: 0;
  display: grid;
  gap: 0.1875rem;
}

.aiimn-brx-founder.aiimn-brx-founder .aiimn-brx-founder__name {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--brx-white);
}

.aiimn-brx-founder.aiimn-brx-founder .aiimn-brx-founder__link {
  color: var(--brx-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aiimn-brx-founder.aiimn-brx-founder .aiimn-brx-founder__role {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--brx-orange);
}

.aiimn-brx-founder.aiimn-brx-founder .aiimn-brx-founder__note {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .86);
}

/* ------------------------------------------------------------------ */
/* Capture card                                                        */
/* ------------------------------------------------------------------ */
/*
 * scroll-margin, on the three surfaces this route jumps to: the card (the
 * closing CTA's fragment), the error summary (the server error redirect's
 * fragment, and the element that takes focus after a failed submit) and the
 * confirmation heading (which takes focus after a successful one). Without it
 * the browser parks each one flush against the top edge, so the thing the
 * visitor was sent to read opens with no air above it and no visible page
 * context. In rem, so the gap grows with the text.
 */
.aiimn-brx-card.aiimn-brx-card {
  grid-area: card;
  scroll-margin-block-start: 1.5rem;
}

/*
 * These two sit inside the card, so their margin also clears the card's own
 * 1.5rem padding and leaves the card's top edge on screen. Landing inside a
 * white box with no visible edge reads as a broken jump.
 */
.aiimn-brx-card.aiimn-brx-card .aiimn-brx-notice,
.aiimn-brx-card.aiimn-brx-card .aiimn-brx-card__heading {
  scroll-margin-block-start: 3.25rem;
}

.aiimn-brx-card.aiimn-brx-card {
  background: var(--brx-white);
  color: var(--brx-ink);
  border-radius: 16px;
  box-shadow: var(--brx-shadow);
  padding: 1.5rem;
  min-width: 0;
}

.aiimn-brx-card__heading.aiimn-brx-card__heading {
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--brx-navy);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.aiimn-brx-card__intro.aiimn-brx-card__intro {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--brx-muted);
  margin-bottom: 0.75rem;
}

.aiimn-brx-card__body.aiimn-brx-card__body {
  font-size: 0.9375rem;
  color: var(--brx-ink);
  margin-top: 0.75rem;
}

/*
 * The echoed address. overflow-wrap rather than a truncation, because a
 * shortened address defeats the entire point of showing it back.
 */
.aiimn-brx-card.aiimn-brx-card .aiimn-brx-echo {
  color: var(--brx-navy);
  overflow-wrap: anywhere;
}

.aiimn-brx-card__recovery.aiimn-brx-card__recovery {
  font-size: 0.875rem;
  color: var(--brx-muted);
}

.aiimn-brx-card__recovery.aiimn-brx-card__recovery a {
  color: var(--brx-navy);
}

/* Provider-confirmed activation. No selector reaches the form or a decoy. */
.aiimn-brx-success__eyebrow.aiimn-brx-success__eyebrow,
.aiimn-brx-success__bridge-eyebrow.aiimn-brx-success__bridge-eyebrow {
  margin: 0 0 0.5rem;
  color: var(--brx-orange-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.aiimn-brx-success__document.aiimn-brx-success__document {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--brx-border);
  border-left: 4px solid var(--brx-orange);
  border-radius: 0 12px 12px 0;
  background: var(--brx-sky);
  min-width: 0;
}

.aiimn-brx-success__document-label.aiimn-brx-success__document-label {
  margin: 0 0 0.75rem;
  color: var(--brx-navy);
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.aiimn-brx-success__download.aiimn-brx-success__download {
  text-decoration: none;
}

.aiimn-brx-success__document-note.aiimn-brx-success__document-note {
  margin: 0.75rem 0 0;
  color: var(--brx-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.aiimn-brx-success__activation.aiimn-brx-success__activation {
  padding-left: 0.875rem;
  border-left: 3px solid var(--brx-orange);
}

.aiimn-brx-success__bridge.aiimn-brx-success__bridge {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--brx-border);
  min-width: 0;
}

.aiimn-brx-success__bridge.aiimn-brx-success__bridge h3 {
  margin: 0 0 0.5rem;
  color: var(--brx-navy);
  font-size: 1.0625rem;
  line-height: 1.3;
}

.aiimn-brx-success__bridge.aiimn-brx-success__bridge p:not(.aiimn-brx-success__bridge-eyebrow) {
  margin: 0 0 0.75rem;
  color: var(--brx-ink);
  font-size: 0.875rem;
  line-height: 1.55;
}

.aiimn-brx-success__bridge.aiimn-brx-success__bridge a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--brx-navy);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.aiimn-brx-field.aiimn-brx-field {
  margin-bottom: 0.875rem;
}

.aiimn-brx-field.aiimn-brx-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brx-navy);
  margin-bottom: 0.3125rem;
}

.aiimn-brx-field.aiimn-brx-field .aiimn-brx-field__optional {
  font-weight: 500;
  color: var(--brx-muted);
}

.aiimn-brx-optional.aiimn-brx-optional {
  margin: -0.125rem 0 0.75rem;
  border: 1px solid var(--brx-border);
  border-radius: 9px;
}

.aiimn-brx-optional.aiimn-brx-optional summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: var(--brx-navy);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.aiimn-brx-optional.aiimn-brx-optional[open] summary {
  border-bottom: 1px solid var(--brx-border);
}

.aiimn-brx-optional.aiimn-brx-optional .aiimn-brx-field {
  padding: 0.75rem;
  margin: 0;
}

/* 16px, so iOS does not zoom the viewport on focus. */
.aiimn-brx-field.aiimn-brx-field input {
  width: 100%;
  min-width: 0;
  height: 3rem;
  border: 1px solid var(--brx-border);
  background: #f4f8fc;
  border-radius: 9px;
  padding: 0 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--brx-ink);
}

.aiimn-brx-field.aiimn-brx-field input[aria-invalid="true"] {
  border-color: #c0392b;
  background: #fff5f4;
}

.aiimn-brx-field-error.aiimn-brx-field-error {
  font-size: 0.8125rem;
  color: #a5281a;
  margin: 0.3125rem 0 0;
  font-weight: 600;
}

/*
 * The immediate payoff, sitting between the last field and the button, which is
 * the moment the visitor decides. Sky ground with an orange edge so it reads as
 * the one highlighted line in the card without introducing a second button
 * colour. #102033 on #edf4fa measures 14.6:1.
 */
.aiimn-brx-payoff.aiimn-brx-payoff {
  background: var(--brx-sky);
  border-left: 3px solid var(--brx-orange);
  border-radius: 0 10px 10px 0;
  padding: 0.75rem 0.875rem;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--brx-ink);
}

.aiimn-brx-form--first-view.aiimn-brx-form--first-view .aiimn-brx-btn {
  margin-bottom: 0.75rem;
}

/*
 * Primary action.
 *
 * The label is deep navy, NOT white. White on #ff7357 measures 2.68:1, which
 * fails AA outright; #06192b on the same orange measures 6.64:1, and 5.21:1 on
 * the hover shade. The orange itself is unchanged, so the button still reads as
 * the brand's one accent. No shared button token is touched by this file.
 *
 * The label size is 1em, not 1rem. base.css already gives every button
 * font: inherit, and pinning this one to the root detached it from the campaign
 * body size: the label then tracked only the root font size and ignored any
 * inherited text enlargement, while the copy around it moved. Inheriting puts
 * the label back on the same scale as the sentence above it under every
 * enlargement path. min-height and padding stay in rem so the target grows too.
 */
.aiimn-brx-btn.aiimn-brx-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  background: var(--brx-orange);
  color: var(--brx-deep);
  font-weight: var(--font-weight-semibold);
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.2;
  border: 0;
  border-radius: var(--aiimn-radius-sm);
  cursor: pointer;
  padding: var(--button-padding-y) var(--button-padding-x);
  text-align: center;
}

/*
 * The closing anchor. Same button, sized to its label instead of the card
 * width, and allowed to wrap so a large text size cannot push it past a narrow
 * viewport.
 */
.aiimn-brx-btn--inline.aiimn-brx-btn--inline {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  padding: var(--button-padding-y) var(--button-padding-x);
  text-decoration: none;
}

.aiimn-brx-btn.aiimn-brx-btn:hover,
.aiimn-brx-btn.aiimn-brx-btn:focus-visible {
  background: var(--brx-orange-dark);
  color: var(--brx-deep);
}

.aiimn-brx-disclosure.aiimn-brx-disclosure {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--brx-muted);
  margin: 0.875rem 0 0;
}

.aiimn-brx-disclosure.aiimn-brx-disclosure a {
  color: var(--brx-navy);
}

.aiimn-brx-notice.aiimn-brx-notice {
  border: 1px solid #e2b3ab;
  background: #fff5f4;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.aiimn-brx-notice.aiimn-brx-notice strong {
  display: block;
  color: #a5281a;
  margin-bottom: 0.375rem;
}

.aiimn-brx-notice.aiimn-brx-notice ul {
  list-style: disc;
  margin: 0;
  padding-left: 18px;
}

.aiimn-brx-notice.aiimn-brx-notice a {
  color: #a5281a;
}

/* Honeypot. Visually hidden but focusable-by-bot, never display:none. */
.aiimn-brx-hp.aiimn-brx-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 389px) {
  .aiimn-brx-hero.aiimn-brx-hero { padding-block: 1.5rem 2rem; }
  .aiimn-brx-card.aiimn-brx-card { padding: 1.25rem; }
  .aiimn-brx-eyebrow.aiimn-brx-eyebrow { margin-bottom: 0.75rem; }
}

@media (min-width: 900px) {
  .aiimn-brx-card.aiimn-brx-card { align-self: center; }
  .aiimn-brx-founder.aiimn-brx-founder { align-self: start; }
}

@media (forced-colors: active) {
  .aiimn-brx-optional.aiimn-brx-optional { border-color: CanvasText; }
}

/* ------------------------------------------------------------------ */
/* What's inside                                                       */
/* ------------------------------------------------------------------ */
.aiimn-brx-h2.aiimn-brx-h2 {
  color: var(--brx-navy);
  margin-bottom: 1.5rem;
}

/* ------------------------------------------------------------------ */
/* The artifact itself                                                 */
/* Two real renders of the shipped PDF, not a mockup. The cover says    */
/* "this is a document"; the prompt page is the argument the page makes.*/
/* ------------------------------------------------------------------ */
.aiimn-brx-artifact.aiimn-brx-artifact {
  margin: 0 0 2rem;
}

.aiimn-brx-artifact.aiimn-brx-artifact .aiimn-brx-artifact__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
}

/*
 * Both pages are capped by height so the two different page crops sit on one
 * baseline, and by max-width so neither can overflow a narrow column. The
 * heights are in rem, so the images grow with the text rather than staying
 * fixed while everything around them doubles.
 */
.aiimn-brx-artifact.aiimn-brx-artifact img {
  display: block;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(6, 25, 43, .18);
}

.aiimn-brx-artifact.aiimn-brx-artifact .aiimn-brx-artifact__cover {
  width: 11.25rem;
  border: 1px solid var(--brx-border);
}

.aiimn-brx-artifact.aiimn-brx-artifact .aiimn-brx-artifact__page {
  width: 21.5rem;
  border: 1px solid var(--brx-border);
}

.aiimn-brx-artifact.aiimn-brx-artifact figcaption {
  margin-top: 0.875rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--brx-muted);
}

@media (min-width: 768px) {
  .aiimn-brx-artifact.aiimn-brx-artifact .aiimn-brx-artifact__cover { width: 13.75rem; }
  .aiimn-brx-artifact.aiimn-brx-artifact .aiimn-brx-artifact__page { width: 26.25rem; }
}

.aiimn-brx-inside.aiimn-brx-inside {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .aiimn-brx-inside.aiimn-brx-inside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.aiimn-brx-inside.aiimn-brx-inside > li {
  background: var(--brx-white);
  border: 1px solid var(--brx-border);
  border-radius: 14px;
  padding: 1.25rem;
  min-width: 0;
}

.aiimn-brx-inside.aiimn-brx-inside h3 {
  color: var(--brx-navy);
  margin-bottom: 0.5rem;
}

.aiimn-brx-inside.aiimn-brx-inside p {
  color: var(--brx-ink);
  font-size: 0.9375rem;
  margin: 0;
}

/* ------------------------------------------------------------------ */
/* What you need, then the closing action                              */
/* ------------------------------------------------------------------ */
.aiimn-brx-needs.aiimn-brx-needs {
  max-width: 44rem;
  margin: 1.75rem auto 0;
  text-align: center;
}

.aiimn-brx-needs.aiimn-brx-needs h3 {
  color: var(--brx-navy);
  margin-bottom: 0.375rem;
}

.aiimn-brx-needs.aiimn-brx-needs p {
  color: var(--brx-ink);
  font-size: 0.9375rem;
  margin: 0;
}

/*
 * The mobile visitor finishes the page here, so the page has to end with the
 * ask rather than with a card and a footer.
 */
.aiimn-brx-close.aiimn-brx-close {
  margin: 1.75rem 0 0;
  text-align: center;
}
