/* ============================================================
   ReviewBot site layer, on top of the Nvy theme skeleton
   (site/assets/nvy, generated by tools/build_nvy.py).

   1. Module settings as classes. In HubSpot, open_tag writes these
      vars inline from module fields. A static site sets them with
      classes, so there is no inline style= anywhere.
   2. Site modules the skeleton leaves per client: header, footer,
      and three small ReviewBot blocks.
   Colours, type, spacing and radii come from theme vars only.
   ============================================================ */

/* ── 1. Module settings ──────────────────────────────────── */

/* layout.content.alignment */
.is-align-center { --block-align: center; --text-align: center; }
.is-align-right  { --block-align: end;    --text-align: right; }

/* layout.spacing.spacing_top / spacing_bottom */
.is-top-none    { --mvs-gutter-top: 0; }
.is-top-xs      { --mvs-gutter-top: var(--organism-tiny); }
.is-top-sm      { --mvs-gutter-top: var(--organism-small); }
.is-top-md      { --mvs-gutter-top: var(--organism-standard); }
.is-top-lg      { --mvs-gutter-top: var(--organism-large); }
.is-bottom-none { --mvs-gutter-bottom: 0; }
.is-bottom-xs   { --mvs-gutter-bottom: var(--organism-tiny); }
.is-bottom-sm   { --mvs-gutter-bottom: var(--organism-small); }
.is-bottom-md   { --mvs-gutter-bottom: var(--organism-standard); }
.is-bottom-lg   { --mvs-gutter-bottom: var(--organism-large); }

/* layout.content.content_width */
.is-place-breakout { --placement: breakout; }
.is-place-full     { --placement: full; }

/* layout.content.content_col_width */
.is-col-50 { --mvs-content-col-width: 50%; }
.is-col-66 { --mvs-content-col-width: 66.666%; }
.is-col-75 { --mvs-content-col-width: 75%; }

/* background.text_color_context = dark */
.is-ctx-dark {
  --mvs-title-color-o:    var(--hs-white);
  --mvs-pretitle-color-o: var(--hs-white);
  --mvs-subtitle-color-o: var(--hs-white);
  --mvs-richtext-color-o: var(--hs-white);
}

/* background colour (render_backgrounds writes this inline in HubSpot) */
.rb-bg--tertiary { background: var(--hs-tertiary--light); }
.rb-bg--accent   { background: var(--hs-accent-1); }
.rb-bg--dark     { background: var(--hs-dark); }


/* ── 2. Base ─────────────────────────────────────────────── */

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--hs-white); }
img, svg { display: block; max-width: 100%; }


/* ── Header ──────────────────────────────────────────────── */

.rb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--hs-white--95pc);
  border-bottom: 1px solid var(--hs-tertiary--dark);
  backdrop-filter: blur(8px);
}
.rb-header .mvs-module__stage { align-items: center; justify-content: space-between; gap: var(--molecule-small); }
.rb-header__brand {
  display: inline-flex;
  align-items: baseline;
  gap: var(--atom-small);
  color: var(--text-color-primary);
  text-decoration: none;
}
.rb-header__brand:hover, .rb-header__brand:visited { color: var(--text-color-primary); text-decoration: none; }
.rb-header__mark { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.rb-header__mark::first-letter { color: var(--hs-primary); }
.rb-header__chip {
  font-family: var(--font-family-monospace);
  font-size: var(--font-size-xxsm);
  color: var(--text-color-muted);
  border: 1px solid var(--hs-tertiary--dark);
  border-radius: var(--global-radius-sm);
  padding: 1px 6px;
}
.rb-header__nav { display: flex; align-items: center; gap: var(--molecule-small); font-size: var(--font-size-sm); }
.rb-header__nav a:not(.mvsButton) { color: var(--text-color-secondary); text-decoration: none; }
.rb-header__nav a:not(.mvsButton):hover { color: var(--text-color-primary); }
.rb-header__toggle { display: none; }

@container mv2Module (width < 860px) {
  .rb-header__toggle { display: inline-flex; }
  .rb-header__nav { display: none; }
  .rb-header__nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: var(--molecule-tiny) var(--mvs-gutter-inline);
    background: var(--hs-white);
    border-bottom: 1px solid var(--hs-tertiary--dark);
  }
}


/* ── Hero ────────────────────────────────────────────────── */

.rb-hero .mvsTitle { font-weight: 700; letter-spacing: -0.02em; }
.rb-hero .mvsRichText { font-size: var(--font-size-lg); color: var(--text-color-secondary); }


/* ── Steps (pillars with number cards) ───────────────────── */

.rb-steps .mvsNumberCard { --card-bg: var(--hs-white); border: 1px solid var(--hs-tertiary--dark); }
.rb-steps .mvsNumberCard__badge { --num-bg: var(--hs-accent-1); --num-c: var(--hs-primary); font-size: 0.875rem; }
.rb-steps .mvsNumberCard__title { font-size: 1.125rem; font-weight: 600; margin: 0; }
.rb-steps .mvsNumberCard__text { color: var(--text-color-secondary); font-size: var(--font-size-sm); }


/* ── Report pack cards ───────────────────────────────────── */

.rb-pack .mvsCard { border: 1px solid var(--hs-tertiary--dark); }
.rb-pack .mvsCard__pre-title { font-family: var(--font-family-monospace); font-size: var(--font-size-xsm); color: var(--text-color-muted); }
.rb-pack .mvsCard__title { font-weight: 600; }
.rb-pack .mvsCard__text { color: var(--text-color-secondary); }


/* ── Confidentiality ticks ───────────────────────────────── */

.rb-ticks { list-style: none; margin: 0; padding: 0; text-align: left; }
.rb-ticks li { padding: var(--molecule-tiny) 0; border-bottom: 1px solid var(--hs-tertiary--dark); margin: 0; }
.rb-ticks li:first-child { border-top: 1px solid var(--hs-tertiary--dark); }
.rb-ticks strong { display: block; }
.rb-ticks span { color: var(--text-color-secondary); font-size: var(--font-size-sm); }


/* ── Price ───────────────────────────────────────────────── */

.rb-price {
  background: var(--hs-white);
  border: 1px solid var(--hs-tertiary--dark);
  border-radius: var(--global-radius-md);
  padding: var(--molecule-large);
  display: flex;
  flex-direction: column;
  gap: var(--atom-large);
  align-items: flex-start;
}
.rb-price__amount { font-size: clamp(2.5rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.rb-price__unit { color: var(--text-color-secondary); }


/* ── Footer ──────────────────────────────────────────────── */

.rb-footer { border-top: 1px solid var(--hs-tertiary--dark); color: var(--text-color-muted); font-size: var(--font-size-sm); }
.rb-footer .mvs-module__stage { justify-content: space-between; flex-wrap: wrap; gap: var(--molecule-tiny); }


/* ── Notice pages (404, portal holding page) ─────────────── */

.rb-notice .mvs-content { align-items: flex-start; }


/* ── 1 November 2026: preview site additions ──────────────── */

/* Headings in a serif, as the walkthrough Pablo has seen; interface stays in Inter. */
.mvsTitle, .rb-kinds h3, .rb-about h3 { font-family: 'Newsreader', Georgia, 'Times New Roman', serif; font-weight: 500; letter-spacing: -0.01em; }
.rb-hero .mvsTitle { font-weight: 500; letter-spacing: -0.015em; }

/* Notes under sections */
.rb-note { color: var(--text-color-secondary); font-size: var(--font-size-sm); max-width: 68ch; }
.rb-note p { margin: 0; }
.rb-steps .rb-note { margin-top: var(--molecule-small); }

/* Grades */
.rb-grades .mvsCard { border: 1px solid var(--hs-tertiary--dark); border-top-width: 4px; }
.rb-grade--proven { border-top-color: var(--hs-primary); }
.rb-grade--rerun  { border-top-color: var(--hs-secondary); }
.rb-grade--cond   { border-top-color: var(--hs-tertiary--dark); }
.rb-grade--open   { border-top-color: var(--hs-tertiary--dark); border-top-style: dashed; }
.rb-grades .mvsCard__title { font-weight: 600; }
.rb-grades .mvsCard__text { color: var(--text-color-secondary); font-size: var(--font-size-sm); }
.rb-kinds { margin-top: var(--molecule-large); text-align: left; width: 100%; }
.rb-kinds h3 { font-size: 1.25rem; margin: 0 0 var(--molecule-tiny); }
.rb-kinds dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--molecule-tiny) var(--molecule-large); margin: 0 0 var(--molecule-small); }
.rb-kinds dl > div { border-top: 1px solid var(--hs-tertiary--dark); padding-top: var(--atom-large); }
.rb-kinds dt { font-weight: 600; }
.rb-kinds dd { margin: var(--atom-small) 0 0; color: var(--text-color-secondary); font-size: var(--font-size-sm); }
@container mv2Module (width < 720px) { .rb-kinds dl { grid-template-columns: 1fr; } }

/* How we check: dark band, numbered standard */
.rb-how-we-check .mvs-content__titles, .rb-how-we-check .mvsRichText { text-align: left; }
.rb-how-we-check .mvsRichText p { color: var(--hs-white); opacity: 0.88; }
.rb-how-we-check .mvsPreTitle { color: var(--hs-white); opacity: 0.7; }
.rb-how-we-check .mvsTitle { color: var(--hs-white); }
.rb-standard { list-style: none; margin: 0; padding: 0; counter-reset: std; text-align: left; }
.rb-standard li { counter-increment: std; display: grid; grid-template-columns: 2.25rem 1fr; gap: 0 var(--atom-large); padding: var(--molecule-tiny) 0; border-top: 1px solid var(--hs-white--20pc, rgba(255,255,255,0.2)); }
.rb-standard li::before { content: counter(std); grid-row: 1 / span 2; font-family: 'Newsreader', Georgia, serif; font-size: 1.5rem; line-height: 1; color: var(--hs-white); opacity: 0.6; }
.rb-standard strong { color: var(--hs-white); }
.rb-standard span { color: var(--hs-white); opacity: 0.78; font-size: var(--font-size-sm); }

/* Tiers */
.rb-tier { border: 1px solid var(--hs-tertiary--dark); }
.rb-tier .mvsCard__pre-title { font-family: var(--font-family-monospace); font-size: var(--font-size-xsm); color: var(--text-color-muted); }
.rb-tier .mvsCard__title { font-weight: 600; margin-bottom: var(--atom-small); }
.rb-tier__price { font-family: 'Newsreader', Georgia, serif; font-size: 2rem; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
.rb-tier__label { margin: var(--atom-small) 0 0; font-size: var(--font-size-xsm); color: var(--text-color-secondary); border: 1px solid var(--hs-tertiary--dark); border-radius: var(--global-radius-sm); padding: 2px 8px; display: inline-block; }
.rb-tier .mvsCard__text { color: var(--text-color-secondary); font-size: var(--font-size-sm); }
.rb-tiers .rb-note { margin-top: var(--molecule-small); }

/* Request form */
.rb-request { width: 100%; max-width: 640px; text-align: left; display: grid; gap: var(--molecule-tiny); }
.rb-request .mvsForm__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--molecule-tiny); }
@container mv2Module (width < 560px) { .rb-request .mvsForm__row { grid-template-columns: 1fr; } }
.rb-request label { display: block; font-weight: 500; margin-bottom: var(--atom-small); }
.rb-request input[type=text], .rb-request input[type=email], .rb-request input[type=number], .rb-request select, .rb-request textarea { width: 100%; }
.rb-optional { font-weight: 400; color: var(--text-color-muted); font-size: var(--font-size-xsm); margin-left: 4px; }
.rb-fieldset { border: 1px solid var(--hs-tertiary--dark); border-radius: var(--global-radius-sm); padding: var(--molecule-tiny); }
.rb-fieldset legend { font-weight: 500; padding: 0 4px; }
.rb-radio, .rb-check { display: grid; grid-template-columns: 1.25rem 1fr; gap: var(--atom-large); align-items: start; font-weight: 400; margin: var(--atom-small) 0; }
.rb-radio input, .rb-check input { margin-top: 3px; width: auto; }
.rb-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rb-request .rb-note { margin-top: var(--atom-large); }

/* Footer link */
.rb-footer a { color: var(--text-color-secondary); }

/* Plain form controls (the skeleton styles HubSpot forms only) */
.rb-request input[type=text], .rb-request input[type=email], .rb-request input[type=number], .rb-request select, .rb-request textarea {
  font: inherit; color: var(--text-color-primary); background: var(--hs-white);
  border: 1px solid var(--hs-tertiary--dark); border-radius: var(--global-radius-sm); padding: 10px 12px; box-sizing: border-box;
}
.rb-request input:focus-visible, .rb-request select:focus-visible, .rb-request textarea:focus-visible, .rb-request button:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--hs-secondary); outline-offset: 2px;
}
.rb-tier__label { align-self: flex-start; }
.mvsSubTitle { --mvs-subtitle-color-o: var(--text-color-secondary); --mvs-subtitle-style-o: normal; --mvs-subtitle-opacity-o: 1; }
@container mv2Module (width < 720px) { .is-col-50, .is-col-66, .is-col-75 { --mvs-content-col-width: 100%; } }
.rb-request label.rb-radio, .rb-request label.rb-check { font-weight: 400; }
.rb-request .rb-radio, .rb-request .rb-check { --label-font-weight: 400; }
