/* Marketing site styles for revorra.com.

   Depends on @revorra/design-system (loaded via design/{tokens,fonts,reset,components}.css):
   - Tokens: --color-*, --font-*, --radius-*, --space-*
   - Components: .rv-btn (+ --primary, --light), .rv-nav-blob, .rv-eyebrow,
                 .rv-accordion, .rv-acc-*, .rv-badge, .rv-modal-*

   This file holds page-specific layout only. Reusable components live in the
   design system so RevorraMVP and the marketing site stay in lockstep. */

/* ============ LAYOUT TOKENS ============ */
:root {
  --container: 1280px;
  --gutter: 80px;

  /* Site-local aliases for shorter writing in this file. */
  --accent:        var(--color-accent);
  --accent-soft:   var(--color-accent-soft);
  --accent-bg:     var(--color-accent-bg);
  --text-primary:  var(--color-text-primary);
  --text-secondary:var(--color-text-secondary);
  --text-muted:    var(--color-text-muted);
  --text-dim:      var(--color-text-dim);
  --text-fainter:  var(--color-text-fainter);
  --border-subtle: var(--color-border-subtle);
  --surface:       var(--color-surface);
  --dark:          var(--color-surface-dark);
  --success-bg:    var(--color-status-success-bg);
  --success-text:  var(--color-status-success-text);
  --warn-text:     var(--color-status-warning-text);
  --font-display:  var(--font-family-display);
  --font-body:     var(--font-family-body);
}

/* ============ BASE ============ */
/* Most baseline rules come from design-system reset.css (loaded by index.html
   via design/components.css's neighbours). Repeat the few we still need that
   weren't covered there. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; color: #011627; }
/* Figma V3 (all-css.css lines 149-157): Parkinsans 500 64px / 110% color #011627. */
h1 { font-weight: 500; font-size: 64px; line-height: 1.1; letter-spacing: -0.01em; }
/* Figma V3 (all-css.css lines 611-619): Parkinsans 400 48px / 110% color #011627. */
h2 { font-weight: 400; font-size: 48px; line-height: 1.1; letter-spacing: -0.005em; }

/* Lead/body copy: Atkinson 400 24px / 130% color #5F6974 (V3 all-css.css 172-179). */
.lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  color: #5F6974;
  margin: 0;
}

/* V3 eyebrow override: NO orange, NO dash — plain muted slate per Figma all-css.css 128-135.
   This overrides the design-system .rv-eyebrow (which keeps the dash for v2 RevorraMVP). */
.rv-eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 22px;
  color: #5D6D7E;
  gap: 0;
}
.rv-eyebrow::before { display: none; }

/* ============ NAV ============
   Comment #24: top nav is one single floating pill, not two separate blobs.
   The pill spans the full content width — left edge aligns with the page
   gutter, right edge aligns with the right gutter, so logo and right-side
   actions line up with the body content beneath.
*/
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  /* Pill aligns with the body content container width (--gutter on either
     side, --container in the middle) so the logo lines up with section
     content beneath. Vertical 24px matches Frame 50. */
  padding: 24px var(--gutter);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
/* Pill is constrained to body content width (--container), centered.
   Layout is 3 columns: logo left, nav links centered, CTA right.
   Figma Frame 38 layout_IV7J1X: padding 16/16/16/24, backdrop blur 16px,
   bg rgba(255,235,231,0.32) — same fill as hero so the pill blends. */
/* V3 nav pill (all-css.css 5026-5040): clean flat pill, padding 16px/16px/16px/24px,
   bg rgba(255,255,255,0.32), border #E8EAEB, radius 100px, NO halo / NO blur. */
.nav > .rv-nav-blob {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px 32px;
  width: 100%;
  max-width: var(--container);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #E8EAEB;
  box-shadow: none;
  /* Blur content behind the pill so headlines/hero art don't bleed
     through and clash with the nav links. */
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}
.nav-logo img { display: block; height: 36px; width: auto; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
/* Centered link group (Home + About) is its own grid cell. */
.nav-center {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: center;
}
/* Figma nav links: active page has thin underline (no fill),
   inactive page on hover gets a solid dark pill with white text. */
/* V3 nav scroll variant should also stay flat (no peach halo). */
.rv-nav-blob--scrolled {
  background: rgba(255, 255, 255, 0.7) !important;
  box-shadow: none !important;
  border-color: #E8EAEB !important;
}

/* V3 nav links (Frame 50 — V3-About.jpg, V3-Home (1).png):
   regular weight (NOT bold), 18px, #011627. Active page has thin
   underline only — no extra weight, no background fill. */
.nav-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: #011627;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}
.nav-link:hover {
  background: var(--text-primary);
  color: #fff;
}
.nav-link--active {
  /* Keep the active link clear of the dark fill so the underline reads. */
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
}
.nav-link--active::after {
  content: "";
  position: absolute;
  left: 22px; right: 22px; bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-link--active:hover {
  background: transparent;
  color: var(--text-primary);
}
/* Nav CTA: dark navy pill (V3 — matches all body CTAs).
   Slightly shorter padding than body CTAs to balance the nav pill height. */
.nav .rv-btn {
  background: #1A2938;
  border: 1px solid #1A2938;
  color: #E8EAEB;
  padding: 8px 14px 8px 22px;
  font-size: 16px;
}
.nav .rv-btn:hover {
  background: #FF3A0B;
  border-color: #FF3A0B;
  color: #E8EAEB;
}

/* Hamburger toggle — hidden on desktop, shown on mobile via media query.
   Inside .nav-actions; swaps between bars and X icons based on body.menu-open. */
.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #BABFC3;
  border-radius: 999px;
  color: #011627;
  cursor: pointer;
  padding: 0;
}
.nav-toggle-icon { width: 20px; height: 20px; display: block; }
.nav-toggle-icon--x { display: none; }
body.menu-open .nav-toggle-icon--bars { display: none; }
body.menu-open .nav-toggle-icon--x { display: block; }

/* Mobile full-screen overlay (hidden on desktop). Lives as a sibling of
   .rv-nav-blob inside <nav>, NOT inside .rv-nav-blob — the pill applies
   backdrop-filter which would otherwise create a containing block and
   constrain `position: fixed; inset: 0` to the pill's box. */
.nav-mobile-menu { display: none; }

/* ============ SECTIONS ============ */
.section { padding: 100px var(--gutter); }
.section-inner { max-width: var(--container); margin: 0 auto; }

/* ============ HERO ============
   V3 home is 2-col: text left + cape illustration right (with cream/peach
   circular background built into the PNG). V3 about uses .hero--centered:
   text-only centered column with the CTA centered.
*/
/* V3 hero (all-css.css 48-179): 1440 × 900, padding 184/80/128/80, gap 32,
   bg #FAF9F6. Text col 614 × 398 with gap 32 between [eyebrow/h1/lead] and CTA;
   inner stack of eyebrow/h1/lead has gap 16. Illustration is 587.48 × 401.9. */
.hero {
  background: #FAF9F6;
  padding: 184px var(--gutter) 128px;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  /* V3: text col 614 + illustration 588 = 1202; with 1280 container that's 78px
     slack — let the visual col flex so illustration scales to fill its space. */
  grid-template-columns: 614px minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.hero-text { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.hero-text .rv-eyebrow,
.hero-text h1,
.hero-text .lead { width: 100%; max-width: 614px; }
.hero h1 { margin: 0; }
.hero h1 .accent { color: #FF3A0B; }
.hero .lead { margin: 0; }
.hero .rv-btn { margin: 0; align-self: flex-start; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
/* Hero illustration is the undraw SVG (588×402 viewBox, pink circle baked in).
   Let it fill the right column up to its natural width. */
.hero-visual img { width: 100%; height: auto; display: block; }

/* About page hero (V3-About): centered single column, no illustration. */
.hero--centered .hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
.hero--centered .hero-text { align-items: center; text-align: center; }
.hero--centered .hero-text .rv-eyebrow { justify-content: center; }
.hero--centered .hero-inner h1 { margin-left: auto; margin-right: auto; max-width: 1280px; }
.hero--centered .hero-inner .lead { margin-left: auto; margin-right: auto; max-width: 1280px; }
.hero--centered .rv-btn { align-self: center; justify-self: center; }

/* ============ PLATFORM ============
   Figma: left column 756px, right mindmap 444px wide × 722px tall.
   Mindmap is portrait & needs visual weight, so let it run to the section
   bottom (align-items: stretch) and stretch the image to its natural ratio.
*/
/* V3 platform (V3-Home (1).png): white band — hero is cream, then platform/
   capabilities/compliance share a white block. 2-col grid: text+accordion+CTA
   left (756), mindmap right (444). */
.platform { background: #FFFFFF; }
.platform-grid {
  display: grid;
  grid-template-columns: 756px 444px;
  gap: 80px;
  align-items: start;
  justify-content: space-between;
}
.platform-grid > div:first-child { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.platform .rv-eyebrow { margin: 0; }
.platform h2 { margin: 0; }
.platform .lead { margin: 0; max-width: none; }
.platform .rv-accordion { margin-top: 16px; width: 100%; display: flex; flex-direction: column; gap: 16px; }
.platform .rv-btn { margin-top: 16px; }

/* Platform accordion (all-css.css 679-810): white bg, 1px #BABFC3 border, pill
   radius, padding 12px 16px, gap 24px. Number orange, title navy. */
.platform .rv-acc-item { border: 1px solid #BABFC3; border-radius: 100px; background: #FFFFFF; }
.platform .rv-acc-item--open { border-radius: 24px; }
.platform .rv-acc-trigger {
  padding: 12px 16px;
  gap: 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 25px;
  color: #1A2938;
}
.platform .rv-acc-num { color: #FF3A0B; min-width: 24px; }
.platform .rv-acc-body-inner { padding: 0 16px 14px 64px; }
/* Platform mind-map: Figma Rectangle 39 is 444x722 (portrait), exported as
   1776x2888 PNG (4x supersampling — Figma source is a flat raster image, no
   vector text). We render at 444x722 CSS pixels (the Figma reference size)
   so the browser can directly downsample with high quality, and high-DPI
   screens still get 1:1 mapping. Anti-aliasing hints help with text crispness. */
.platform-visual {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.platform-visual img {
  /* V3 mindmap: 444×722 reference size from Figma (all-css.css 1363-1364). */
  width: 444px;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 32px;
}

/* ============ CAPABILITIES (AR) ============
   Comment #32: lead spans full row width, not constrained.
   Comment #37: capability list items are plain text + divider lines, NOT chips.
   Comment #39: hover an item -> highlight (orange) + swap chat-mock image.
*/
/* Figma alternates: hero peach → platform white → capabilities peach → compliance white.
   Use the same peach tone as hero so the alternation reads visibly. */
/* V3 capabilities (all-css.css ~5274+): same cream bg, header full-width 1280,
   then 2-col grid chat-left 758 / list-right 490, gap 32. */
.capabilities { background: #FAF9F6; }
.cap-header { margin-bottom: 32px; display: flex; flex-direction: column; gap: 16px; }
.cap-header .rv-eyebrow,
.cap-header h2,
.cap-header .lead { width: 100%; max-width: none; margin: 0; }
.cap-grid {
  display: grid;
  grid-template-columns: 758px 490px;
  gap: 32px;
  align-items: stretch;
  justify-content: space-between;
}

/* Chat mock: one SVG per capability variant. Their viewBoxes differ (Figma
   adds outer glow / extra height on some variants) so we anchor every SVG
   at top-left and let the trailing whitespace fall outside the visible area.
   That keeps the chat card in the same x,y position across all variants —
   only the highlighted content changes between fades. */
.chat-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 758 / 657;
  background: transparent;
}
.chat-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: top left;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.chat-image--active { opacity: 1; }

/* Plain-text capability list with dividers (matches Figma per comment #37). */
.cap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.cap-list li {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 16px 0 16px 32px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.3;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s ease;
}
.cap-list li:last-child { border-bottom: 1px solid var(--border-subtle); }
.cap-list .cap-num {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: var(--font-weight-medium, 500);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  min-width: 24px;
  transition: color 0.15s ease;
}
/* Hover dim siblings, keep hovered item orange. */
.cap-list:hover .cap-num                       { color: var(--text-dim); }
.cap-list:hover li:hover .cap-num              { color: var(--accent); }
.cap-list:not(:hover) .cap-num                 { color: var(--accent); }
/* Figma: right column is a flex column that stretches to match chat height.
   List grows to fill space, button sits at bottom-right. */
.capabilities .cap-grid > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.cap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.cap-list li {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0 12px 32px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.3;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s ease;
  flex: 1;
}
.cap-list li:first-child { border-top: none; }
.capabilities .cap-grid > div .rv-btn { margin-top: 24px; align-self: flex-end; }

/* ============ COMPLIANCE ============
   Comment: badges use the design-system .rv-badge (now border-style per Figma).
*/
/* V3 compliance (all-css.css 4184-4601): 2-col 600/600 gap 80, left = text col
   (eyebrow+h2+lead in 169 tall stack), right = badges 600 wide.
   Badges: 189.33 × 74 (3 across) for top row, 292 × 74 (2 across) for bottom row,
   padding 16/32, border 1px #D1D4D7, radius 100px, text Parkinsans 300 32px #FF3A0B. */
.compliance { background: #FFFFFF; }
.compliance-grid {
  display: grid;
  grid-template-columns: 600px 600px;
  gap: 80px;
  align-items: start;
  justify-content: space-between;
}
.compliance-grid > div:first-child { display: flex; flex-direction: column; gap: 16px; }
.compliance .rv-eyebrow,
.compliance h2,
.compliance .lead { margin: 0; max-width: none; }
.badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
/* Bottom row's 2 badges span 1.5 cols each so they read wider than top row,
   matching V3 (top 189.33 × 3 / bottom 292 × 2). Achieved by making bottom
   badges span 1.5 grid cells with auto-fit fallback. */
.badges .rv-badge:nth-child(4),
.badges .rv-badge:nth-child(5) {
  grid-column: span 1;
}
.badges .rv-badge {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.3;
  padding: 16px 32px;
  height: 74px;
  border: 1px solid #D1D4D7;
  border-radius: 100px;
  color: #FF3A0B;
  background: transparent;
  white-space: nowrap;
  text-align: center;
  justify-content: center;
}
/* Bottom row: 2 wider pills, centered under the 3 above. */
.badges .rv-badge:nth-child(4) { grid-column: 1 / span 1.5; }
.badges .rv-badge:nth-child(5) { grid-column: 2.5 / span 1.5; }
/* Fallback for browsers that don't support fractional grid spans:
   put the 4th/5th in a centered second row using 6-col underlying grid. */
@supports not (grid-column: 1 / span 1.5) {
  .badges { grid-template-columns: repeat(6, 1fr); }
  .badges .rv-badge { grid-column: span 2; }
  .badges .rv-badge:nth-child(4) { grid-column: 2 / span 2; }
  .badges .rv-badge:nth-child(5) { grid-column: 4 / span 2; }
}

/* ============ CLOSING DARK BAND + FOOTER ============
   Comment #40: tighter top/bottom spacing matches Figma.
   Comment #41: footer text matches the same style as the dark band.
   Comment #43: extra Terms link in the footer.
*/
/* V3 closing dark band (all-css.css 4613-4769): 1440 × 482, padding 80/80/0,
   gap 120 between text-row and footer-row, bg #011627.
   Inner row: text 862 wide centered + CTA button right, gap 200. */
.closing {
  background: #011627;
  padding: 80px var(--gutter) 0;
}
.closing-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 200px;
}
.closing-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.3;
  color: #A3A9AF;
  max-width: 862px;
  margin: 0;
  /* V3 closing copy is left-aligned per V3-About.jpg + current V3-Home. */
  text-align: left;
}
/* Smooth hover fade on every Request-a-Demo button site-wide (header, hero,
   platform, capabilities, closing). Bumped to 0.5s so the cream-to-orange
   transition is clearly perceivable. */
.rv-btn,
.rv-btn--primary,
.rv-btn--dark,
.rv-btn--light {
  transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease !important;
}

/* V3 dark-navy primary CTA (all-css.css 196-262 / 1292-1358):
   width 218, height 48, padding 10/16/10/24, gap 4, bg #1A2938, radius 100,
   label Parkinsans 400 18px/25px color #E8EAEB.
   Hover state is "Primary Hover" = orange fill #FF3A0B with same text. */
.rv-btn--dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px 10px 24px;
  gap: 4px;
  height: 48px;
  background: #1A2938;
  border: 1px solid #1A2938;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  line-height: 25px;
  color: #E8EAEB;
}
.rv-btn--dark:hover {
  background: #FF3A0B;
  border-color: #FF3A0B;
  color: #E8EAEB;
}
/* V3 closing CTA (all-css.css 4699-4769): transparent bg, 1px #FF896D border,
   #FF896D label, padding 10/16/10/24, width 218 height 48. Hover: cream pill.
   !important on white-space/flex-shrink because the design-system .rv-btn base
   rule applies `white-space: normal` and flex-shrink: 1, which made the label
   wrap onto two lines inside a flex column. */
.closing .rv-btn--light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px 10px 24px;
  gap: 4px;
  height: 48px;
  background: transparent;
  border: 1px solid #FF896D;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  line-height: 25px;
  color: #FF896D;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  width: auto;
}
.closing .rv-btn--light:hover {
  background: #FFEBE7;
  border-color: #FFEBE7;
  color: #011627;
}
/* V3 footer (all-css.css 4777-4995): bg #011627 (same as closing — one continuous
   dark block). Padding 48px 0. Top row: logo center + links 26px gap. Bottom row:
   copyright centered #A3A9AF 16px. */
body > footer {
  background: #011627;
  padding: 48px var(--gutter);
  color: #FFFFFF;
}
.footer-row {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-logo { display: inline-flex; align-items: center; }
.footer-logo img { display: block; height: 40px; width: auto; }
.footer-links { display: flex; gap: 26px; }
.footer-links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  color: #FFFFFF;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: #FF896D; }
.footer-copy {
  max-width: var(--container);
  margin: 32px auto 0;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  color: #A3A9AF;
}

/* ============ MODAL (V3) ============
   Two views inside one .rv-modal:
   - .modal-view--form    (default): title + sub + email input + Cancel/Submit row
   - .modal-view--success (hidden):  orange check + title + sub + Go Back Home

   V3 visuals (V3-Submit Request.png / V3-Submitted.png):
   - White bg #fff, 480px wide, 20px radius, 40px padding
   - No top-right close button (Cancel covers that affordance)
   - Cancel: outlined pill, Submit/Go Back Home: dark navy fill
*/
/* Belt-and-suspenders: ensure hidden views never render even if some other
   rule sets display on them. The browser default for [hidden] is display:none
   but that loses to any later display rule. !important here guarantees the
   toggle works regardless of layout overrides. */
.modal-view[hidden] { display: none !important; }

/* Override the design-system overlay so the open/close animation actually plays.
   Upstream uses display:none → display:flex, which is not transitionable — the
   opacity/transform "from" values are skipped and the modal snaps in. Using
   visibility + pointer-events keeps it click-through when closed but lets the
   opacity/transform transitions fire on open. */
.rv-modal-overlay {
  display: flex;
  visibility: hidden;
  pointer-events: none;
}
.rv-modal-overlay--open {
  visibility: visible;
  pointer-events: auto;
}

/* V3 modal — exact Figma Frame 172 spec */
.rv-modal {
  background: #FAF9F6;
  border-radius: 16px;
  padding: 24px;
  width: 546px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 48px;
  box-shadow: none;
}
.modal-view {
  align-self: stretch;
  width: 100%;
}
/* modal-header: Frame 353 — title + subtitle with 8px gap */
.modal-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.modal-view h3 {
  font-family: 'Parkinsans', var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 34px;
  color: #011627;
  margin: 0;
}
.modal-view .modal-sub {
  font-family: 'Atkinson Hyperlegible', var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #5D6D7E;
  margin: 0;
}
/* Frame 355: header + input stacked with 32px gap */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}
.modal-form > .rv-modal-actions {
  margin-top: 16px;
}
/* Frame 351: input field */
.rv-modal-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0 16px;
  height: 48px;
  background: #FFFFFF;
  border: 1px solid #BABFC3;
  border-radius: 8px;
  font-family: 'Atkinson Hyperlegible', var(--font-body);
  font-size: 16px;
  line-height: 20px;
  color: #5D6D7E;
}
.rv-modal-input:focus { outline: none; border-color: #FF3A0B; }
/* Frame 358: button row, justify-end, 32px gap, both buttons flex-grow:1 */
.rv-modal-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
}
.rv-modal-actions .rv-btn {
  justify-content: center;
  padding: 10px 24px;
  height: 48px;
  font-family: 'Parkinsans', var(--font-display);
  font-weight: 400;
  font-size: 18px;
  line-height: 25px;
  flex: 1 1 0;
  white-space: nowrap;
  border-radius: 100px;
}
/* Cancel: white bg, #BABFC3 border */
.modal-cancel {
  background: #FFFFFF;
  border: 1px solid #BABFC3;
  color: #011627;
}
.modal-cancel:hover {
  background: rgba(1, 22, 39, 0.04);
  border-color: rgba(1, 22, 39, 0.3);
  color: #011627;
}
/* Submit: dark navy */
.rv-modal-actions .rv-btn--primary,
.modal-home {
  background: #1A2938;
  border-color: #1A2938;
  color: #E8EAEB;
}
.rv-modal-actions .rv-btn--primary:hover,
.modal-home:hover {
  background: #FF3A0B;
  border-color: #FF3A0B;
  color: #E8EAEB;
}
.modal-note {
  font-family: 'Atkinson Hyperlegible', var(--font-body);
  font-size: 14px;
  min-height: 20px;
  color: #5D6D7E;
}
.modal-note:empty {
  min-height: 0;
  height: 0;
  margin-top: -32px;
  overflow: hidden;
}

/* Success view — exact Figma Frame 172 (closing) spec */
.modal-view--success {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 32px;
}
.modal-view--success h3 {
  margin: 0;
  font-family: 'Parkinsans', var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 34px;
  color: #011627;
}
.modal-view--success .modal-sub {
  margin: 0;
  font-family: 'Atkinson Hyperlegible', var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #5D6D7E;
}
.modal-check {
  width: 80px;
  height: 80px;
  color: #FF3A0B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.modal-check svg { width: 100%; height: 100%; }
.modal-success-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.modal-home {
  width: 100%;
  justify-content: center;
  height: 48px;
  padding: 10px 24px;
  border-radius: 100px;
  font-family: 'Parkinsans', var(--font-display);
  font-size: 18px;
  font-weight: 400;
  background: #1A2938;
  border-color: #1A2938;
  color: #E8EAEB;
}
.modal-home:hover {
  background: #FF3A0B;
  border-color: #FF3A0B;
  color: #E8EAEB;
}

/* ============ LEGAL PAGES (about, privacy, terms, msa) ============
   Long-form pages opt into `<body class="legal">`. Content is still capped
   at --container (1280px) and centered, matching the marketing pages.
*/
.legal-header {
  background: #FAF9F6;
  padding: 184px 0 80px;
}
.legal-header-inner {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
/* Eyebrow + "Effective" date sit on one row, full width. */
.legal-header-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}
.legal-header-meta .legal-effective {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.2;
  color: #313E4C;
}
.legal-header h1 {
  font-weight: 400;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0;
}
.legal-page {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 24px var(--gutter) 96px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.3;
  color: #383939;
}
.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-page a:hover { color: var(--text-primary); }
.legal-page h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin: 40px 0 16px;
}
.legal-page h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: #383939;
  margin: 24px 0 8px;
}
.legal-page p { margin: 0 0 12px; }
.legal-page .legal-intro {
  font-size: 16px;
  color: #383939;
  margin: 0 0 24px;
}
.legal-page ul,
.legal-page ol {
  padding-left: 24px;
  margin: 0 0 16px;
}
.legal-page li {
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.legal-page li::marker { color: var(--accent); }
.legal-page strong { color: var(--text-primary); font-weight: 700; }
.legal-page hr {
  border: none;
  border-top: 1px solid rgba(1, 22, 39, 0.12);
  margin: 64px 0;
}
@media (max-width: 1100px) {
  .legal-header { padding: 144px var(--gutter) 48px; }
  .legal-header h1 { font-size: 44px; }
  .legal-page h2 { font-size: 24px; }
}
@media (max-width: 860px) {
  .legal-header { padding: 112px var(--gutter) 40px; }
  .legal-header h1 { font-size: 34px; }
  /* Figma mobile: eyebrow above title, "Effective" caption BELOW title.
     Reorder by removing the inline meta row and pulling the effective date
     below the h1 with flex order. */
  .legal-header-inner { display: flex; flex-direction: column; }
  .legal-header-meta {
    display: contents;
  }
  .legal-header-meta .rv-eyebrow { order: 1; margin-bottom: 12px; }
  .legal-header h1 { order: 2; }
  .legal-header-meta .legal-effective { order: 3; margin-top: 16px; font-size: 14px; }
  .legal-page { padding: 40px var(--gutter) 64px; }
  .legal-page h2 { font-size: 22px; margin: 40px 0 12px; }
  .legal-page p, .legal-page li { font-size: 16px; }
}

/* ============ GLOBAL SCROLL ============ */
html {
  scroll-behavior: smooth;
}
/* Invisible scrollbar — keeps scroll functionality, hides the track/thumb */
html {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE 10+ */
}
html::-webkit-scrollbar {
  display: none;                /* Chrome, Safari, Edge */
}

/* ============ MOTION ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */

/* Large tablet / small desktop */
@media (max-width: 1100px) {
  :root { --gutter: 48px; }
  h1 { font-size: 64px; }
  h2 { font-size: 40px; }
  .hero { padding: 144px var(--gutter) 96px; }
  .section { padding: 80px var(--gutter); }
  .platform-grid, .cap-grid, .compliance-grid { gap: 56px; }
  /* Below 1100px the desktop grids (Figma 1440 frame) have hardcoded column
     widths that exceed the container. Switch to fr-based columns so they
     shrink to fit instead of forcing horizontal page overflow. */
  .cap-grid,
  .platform-grid,
  .compliance-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  /* Cape illustration shrinks more at this width so it doesn't visually
     collide with the floating nav pill above it on narrower viewports. */
  .hero-visual { order: -1; max-width: 280px; margin: 0 auto; }
}

/* Tablet */
@media (max-width: 860px) {
  :root { --gutter: 32px; }
  h1 { font-size: 48px; line-height: 1.05; }
  h2 { font-size: 32px; }
  .lead, .closing-text { font-size: 18px; }
  .nav { padding: 16px var(--gutter); }
  .nav-logo img { height: 24px; }
  /* Mobile nav layout: 2 columns (logo / actions). Inline .nav-center links
     are hidden; the full-screen overlay sibling .nav-mobile-menu takes over. */
  .nav > .rv-nav-blob { grid-template-columns: 1fr auto; }
  .nav .rv-btn { padding: 8px 16px; font-size: 14px; }
  .nav-center { display: none; }
  .nav-toggle { display: inline-flex; }
  /* Keep the inline "Request a Demo" pill next to the hamburger on mobile
     (matches Figma Frame 370). The bottom CTA in the open overlay is a
     separate full-width pill rendered inside .nav-mobile-menu. */

  /* Full-screen overlay. Sits as a sibling of .rv-nav-blob inside <nav>;
     <nav> has no backdrop-filter, so position:fixed/inset:0 resolves to the
     viewport (otherwise the pill's blur would form a containing block and
     shrink the overlay to the pill's box). */
  .nav-mobile-menu {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    padding: 120px 24px 32px;
    background: #FAF9F6;
    z-index: 90;
    visibility: hidden;
    opacity: 0;
    /* .nav has pointer-events:none so page scrolls pass through it; the
       overlay needs to re-enable pointer events for its links and CTA. */
    pointer-events: auto;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  /* Keep the pill (and its X toggle) above the overlay's cream background
     so the user can always close the menu. */
  .nav > .rv-nav-blob { position: relative; z-index: 100; }
  body.menu-open .nav-mobile-menu { visibility: visible; opacity: 1; }
  .nav-mobile-link {
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1.2;
    color: #011627;
    padding: 12px 0;
    text-decoration: none;
  }
  .nav-mobile-link--active { font-weight: 600; }
  /* Bottom full-width Request a Demo CTA inside the overlay. */
  .nav-mobile-cta {
    margin-top: auto;
    width: 100%;
  }
  .nav-mobile-cta .rv-btn { width: 100%; justify-content: center; }
  .hero { padding: 112px var(--gutter) 64px; }
  .hero-inner { gap: 32px; }
  .hero-visual { max-width: 320px; }
  .section { padding: 64px var(--gutter); }
  .platform-grid, .cap-grid, .compliance-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* Mobile Capabilities (Figma /Mobile/capabilities/):
     - List shows all 7 rows at natural height (not flex:1-stretched).
     - Chat panel moves between the active row and its successor via JS;
       when no row is active, JS keeps the chat at its default top position.
     - Inactive number is muted grey; active row is orange + semibold.
     - CTA is a full-width dark pill below the list. */
  .capabilities .cap-grid { gap: 24px; }
  .capabilities .cap-grid > div:last-child {
    height: auto;
    justify-content: flex-start;
    gap: 0;
  }
  .cap-list { flex: 0 1 auto; gap: 0; }
  .cap-list li {
    flex: 0 0 auto;
    align-items: flex-start;
    padding: 16px 0;
    gap: 16px;
  }
  /* Default state: numbers stay orange (matches Figma /Mobile/capabilities/).
     When an item is .cap-active (tapped), its label text turns orange + semibold
     and sibling items dim to grey to focus attention on the active row. */
  .cap-list .cap-num,
  .cap-list:hover .cap-num,
  .cap-list:hover li:hover .cap-num,
  .cap-list:not(:hover) .cap-num { color: var(--accent); }
  .cap-list:has(li.cap-active) .cap-num { color: var(--text-dim); }
  .cap-list li.cap-active .cap-num,
  .cap-list li.cap-active > span:last-child { color: var(--accent); }
  .cap-list li.cap-active > span:last-child { font-weight: 600; }
  /* Chat panel as an inline tile when injected after an active row, or at the
     top of the grid in the default state. Border + radius matches Figma. */
  .chat-stage {
    width: 100%;
    aspect-ratio: 758 / 657;
    margin: 8px 0;
  }
  /* Full-width Request a Demo CTA below the list. */
  .capabilities .cap-grid > div .rv-btn {
    align-self: stretch;
    margin-top: 24px;
    width: 100%;
    justify-content: center;
  }
  .platform-visual { aspect-ratio: 16/10; }
  .badges { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* Reset desktop "bottom row spans 1.5 cols" rules so all five badges
     flow into the simple 2-col grid (3 on row 1, 2 on row 2). */
  .badges .rv-badge,
  .badges .rv-badge:nth-child(4),
  .badges .rv-badge:nth-child(5) { grid-column: auto; }
  .badges .rv-badge { font-size: 22px; padding: 12px 16px; height: auto; min-height: 56px; }
  .closing-inner {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
  .closing-text { text-align: center; }
  .closing { padding: 48px var(--gutter); }
  .footer-row {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  body > footer { padding: 32px var(--gutter); }
  /* Stack the two action buttons vertically on mobile so "Submit my request"
     doesn't overflow the modal width with white-space: nowrap. Submit appears
     above Cancel — primary action stays the visually dominant choice. */
  .rv-modal { align-items: stretch; gap: 24px; }
  .rv-modal-actions {
    flex-direction: column-reverse;
    gap: 12px;
    align-items: stretch;
  }
  .rv-modal-actions .rv-btn { flex: 0 0 auto; width: 100%; }
  .legal-header { padding: 144px 0 48px; }
  .legal-header-inner { padding: 0 var(--gutter); }
}

/* Mobile */
@media (max-width: 480px) {
  :root { --gutter: 20px; }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .lead, .closing-text { font-size: 16px; }
  .nav { padding: 12px var(--gutter); }
  .nav > .rv-nav-blob { padding: 12px 12px 12px 16px; gap: 8px; }
  .hero { padding: 96px var(--gutter) 48px; }
  .hero-text { gap: 20px; }
  .section { padding: 48px var(--gutter); }
  .platform-visual { aspect-ratio: 4/3; }
  .badges { grid-template-columns: 1fr; }
  /* Reset desktop "bottom row spans 1.5 cols" rules so the explicit
     grid-column placements don't materialize phantom columns on phones. */
  .badges .rv-badge,
  .badges .rv-badge:nth-child(4),
  .badges .rv-badge:nth-child(5) { grid-column: auto; }
  .badges .rv-badge { font-size: 20px; padding: 10px 16px; height: auto; min-height: 52px; }
  .cap-item { padding: 12px 16px; gap: 16px; }
  .closing { padding: 40px var(--gutter); }
  .closing-inner { gap: 24px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .footer-copy { margin-top: 24px; }
  body > footer { padding: 24px var(--gutter); }
  .rv-modal { padding: 20px; }
  .rv-modal-inner { padding: 20px; }
}
