/* BIM Sprint — reusable product landing-page system */
.rw-page {
  --rw-navy: #071b2e;
  --rw-navy-2: #0b2c49;
  --rw-blue: #0f4c81;
  --rw-blue-bright: #1f78c7;
  --rw-orange: #ff8a00;
  --rw-ink: #0b1728;
  --rw-copy: #526174;
  --rw-line: #dce5ef;
  --rw-soft: #f4f8fc;
  background: #fff;
  color: var(--rw-ink);
  overflow: clip;
}

.rw-page h1,
.rw-page h2,
.rw-page h3,
.rw-page p { margin: 0; }

.rw-page svg { width: 1.25em; height: 1.25em; flex: 0 0 auto; }
.rw-container { width: min(1180px, calc(100% - 96px)); margin-inline: auto; position: relative; z-index: 2; }
.rw-section { padding: 72px 0; }

.rw-section-kicker,
.rw-eyebrow {
  display: inline-block;
  color: var(--rw-blue-bright);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.rw-section-heading { max-width: 760px; margin-bottom: 52px; }
.rw-section-heading h2,
.rw-closing-card h2 {
  margin-top: 13px;
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.rw-section-heading h2 span { color: var(--rw-blue); }

/* Hero */
.rw-hero {
  position: relative;
  isolation: isolate;
  padding: 112px 0 64px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 32%, rgba(31, 120, 199, .26), transparent 34%),
    linear-gradient(135deg, #061728 0%, #08233b 48%, #0b3153 100%);
}
.rw-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
}
.rw-hero-grid {
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}
.rw-orb { position: absolute; border-radius: 999px; filter: blur(3px); pointer-events: none; }
.rw-orb--one { width: 320px; height: 320px; top: 110px; left: -180px; background: rgba(255,138,0,.1); }
.rw-orb--two { width: 240px; height: 240px; right: -130px; bottom: 50px; background: rgba(31,120,199,.16); }
.rw-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 48px;
}
.rw-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255,255,255,.64);
  font-size: 12px;
  font-weight: 650;
  transition: color .2s, transform .2s;
}
.rw-back svg { transform: rotate(180deg); }
.rw-back:hover { color: #fff; transform: translateX(-3px); }
.rw-eyebrow { display: block; color: #9dcef6; }
.rw-hero h1 {
  max-width: 630px;
  margin-top: 18px;
  font-size: clamp(42px, 4.4vw, 66px);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .98;
}
.rw-hero h1 span {
  display: block;
  margin-top: 8px;
  color: transparent;
  background: linear-gradient(105deg, #fff 10%, #9dcef6 58%, #ffb557 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.rw-hero-text {
  max-width: 620px;
  margin-top: 27px !important;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.8;
}
.rw-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.rw-button {
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 780;
  line-height: 1;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.rw-button:hover { transform: translateY(-2px); }
.rw-button--primary { color: #0a2135; background: var(--rw-orange); box-shadow: 0 14px 32px rgba(255,138,0,.23); }
.rw-button--primary:hover { color: #071b2e; background: #ff9f2f; box-shadow: 0 18px 36px rgba(255,138,0,.3); }
.rw-button--ghost { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.07); backdrop-filter: blur(10px); }
.rw-button--ghost:hover { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.12); }
.rw-hero-product { position: relative; min-width: 0; }
.rw-product-window {
  position: relative;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 20px;
  background: rgba(255,255,255,.1);
  box-shadow: 0 35px 80px rgba(0,0,0,.4);

  backdrop-filter: blur(14px);
}
.rw-product-window img { width: 100%; height: auto; border-radius: 12px; background: #fff; }
.rw-window-bar {
  height: 36px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rw-window-bar > span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.28); }
.rw-window-bar > span:first-child { background: var(--rw-orange); }
.rw-window-bar strong { margin-left: 8px; color: rgba(255,255,255,.62); font-family: var(--mono); font-size: 8px; font-weight: 650; letter-spacing: .08em; }
/* Demos */
.rw-demo-section { scroll-margin-top: 72px; padding: 62px 0; color: #fff; background: linear-gradient(140deg, #071b2e, #0b3153); }
.rw-section-heading--light h2 { color: #fff; }
.rw-section-heading--light > p { color: rgba(255,255,255,.65); }
.rw-demo-section .rw-section-kicker { color: #79baf2; }
.rw-demo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.rw-demo-card { min-height: 225px; border: 1px solid rgba(255,255,255,.13); border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: .82fr 1.18fr; background: rgba(255,255,255,.055); box-shadow: 0 22px 50px rgba(0,0,0,.2); }
.rw-demo-visual { min-height: 100%; position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(150deg, rgba(31,120,199,.58), rgba(7,27,46,.8)); }
.rw-demo-visual::before,
.rw-demo-visual::after { content: ''; position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.rw-demo-visual::before { width: 210px; height: 210px; }
.rw-demo-visual::after { width: 130px; height: 130px; }
.rw-demo-index { position: absolute; top: 20px; left: 22px; color: rgba(255,255,255,.32); font-family: var(--mono); font-size: 32px; font-weight: 800; }
.rw-demo-pulse { z-index: 2; width: 68px; height: 68px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; display: grid; place-items: center; color: var(--rw-navy); background: var(--rw-orange); box-shadow: 0 0 0 12px rgba(255,138,0,.1); }
.rw-demo-pulse svg { width: 27px; height: 27px; }
.rw-demo-copy { padding: 34px 30px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.rw-demo-kicker { color: #78b9f1; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rw-demo-copy h3 { margin-top: 11px; font-size: 24px; font-weight: 820; letter-spacing: -.03em; }
.rw-demo-copy p { margin-top: 11px; color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.7; }
.rw-button--light { margin-top: 24px; min-height: 45px; padding: 11px 16px; color: #fff; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.09); }
.rw-demo-card:hover .rw-button--light { color: #fff; border-color: rgba(255,255,255,.36); background: rgba(255,255,255,.14); }

/* Comparison */
.rw-comparison-section { background: #fff; }
.rw-comparison-wrap { border: 1px solid var(--rw-line); border-radius: 20px; overflow: auto; box-shadow: 0 16px 45px rgba(7,27,46,.055); }
.rw-comparison-table { width: 100%; border-collapse: collapse; }
.rw-comparison-table thead { color: #fff; background: var(--rw-navy); }
.rw-comparison-table th,
.rw-comparison-table td { padding: 22px 24px; text-align: left; vertical-align: top; }
.rw-comparison-table thead th { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rw-comparison-table tbody th { width: 30%; color: var(--rw-ink); font-size: 13px; font-weight: 750; }
.rw-comparison-table tbody td { width: 35%; color: var(--rw-copy); font-size: 12px; line-height: 1.7; }
.rw-comparison-table tbody tr + tr { border-top: 1px solid var(--rw-line); }
.rw-comparison-table tbody tr:nth-child(even) { background: #f9fbfd; }

.rw-time-study {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  scroll-margin-top: 88px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--rw-line);
  border-radius: 20px;
  background: #f9fbfd;
}
.rw-time-study-heading { text-align: center; }
.rw-time-study-heading h3 { font-size: clamp(23px, 3vw, 32px); line-height: 1.2; }
.rw-time-study-heading svg { width: .85em; height: .85em; vertical-align: -.07em; color: var(--rw-blue); }
.rw-time-study-image { margin: 0 auto; width: min(100%, 420px); }
.rw-time-study-image img { width: 100%; height: auto; border-radius: 10px; }
.rw-time-comparisons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rw-time-group { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; }
.rw-time-group h4 { color: var(--rw-navy); font-size: 16px; line-height: 1.3; }
.rw-time-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rw-time-card { padding: 14px 16px; border: 1px solid var(--rw-line); border-radius: 12px; background: #fff; }
.rw-time-card--wizard { border-color: #c7dcf3; background: #eff6ff; }
.rw-time-card h5 { margin: 0 0 8px; font-size: 14px; line-height: 1.25; }
.rw-time-card p { color: var(--rw-copy); font-size: 13px; }
.rw-time-card .rw-time-number { color: var(--rw-navy); font-size: clamp(23px, 3vw, 32px); font-weight: 800; line-height: 1.2; }
.rw-time-card--wizard .rw-time-number { color: var(--rw-blue); }
.rw-time-study .rw-time-savings {
  padding: 10px 14px;
  border-radius: 9px;
  background: #08704c;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
}
.rw-time-savings strong { font-size: 18px; font-weight: 800; }
#rw-time-note { color: var(--rw-copy); font-size: 12px; }

@media (max-width: 850px) {
  .rw-time-comparisons { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 430px) {
  .rw-time-cards { grid-template-columns: minmax(0, 1fr); }
}
.rw-manual-mark,
.rw-product-mark { display: none; margin-bottom: 5px; font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.rw-manual-mark { color: #9f4141; }
.rw-product-mark { color: #08694b; }

/* Closing CTA */
.rw-closing-section { padding: 0 0 72px; background: #fff; }
.rw-closing-card { min-height: 330px; padding: 62px; border-radius: 28px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 55px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #08223a, #0e4a78); box-shadow: 0 30px 70px rgba(7,27,46,.18); }
.rw-closing-card > * { position: relative; z-index: 2; }
.rw-closing-card .rw-section-kicker { color: #8bc9fb; }
.rw-closing-card h2 { max-width: 760px; font-size: clamp(32px, 4vw, 50px); }
.rw-closing-card p { max-width: 720px; margin-top: 18px; color: rgba(255,255,255,.66); font-size: 14px; line-height: 1.8; }
.rw-closing-glow { position: absolute; z-index: 0; width: 500px; height: 500px; right: -150px; top: -250px; border-radius: 50%; background: radial-gradient(circle, rgba(255,138,0,.22), transparent 67%); }
.rw-closing-actions { min-width: 210px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.rw-button--accent { width: 100%; color: var(--rw-navy); background: var(--rw-orange); box-shadow: 0 14px 32px rgba(255,138,0,.25); }
.rw-button--accent:hover { color: var(--rw-navy); background: #ffa12f; }
.rw-text-link { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.62); font-size: 11px; font-weight: 700; }
.rw-text-link:hover { color: #fff; }
.rw-text-link svg { width: 15px; transition: transform .2s; }
.rw-text-link:hover svg { transform: translateX(3px); }

@media (max-width: 1060px) {
  .rw-container { width: min(100% - 48px, 920px); }
  .rw-hero-layout { grid-template-columns: 1fr; gap: 62px; }
  .rw-hero-copy { max-width: 760px; }
  .rw-hero-product { width: min(850px, 100%); margin-inline: auto; }
  .rw-hero h1 { max-width: 780px; }
  .rw-demo-card { grid-template-columns: 1fr; }
  .rw-demo-visual { min-height: 180px; }
  .rw-closing-card { grid-template-columns: 1fr; }
  .rw-closing-actions { width: min(280px, 100%); align-items: flex-start; }
}

@media (max-width: 760px) {
  .rw-container { width: min(100% - 32px, 640px); }
  .rw-section { padding: 52px 0; }
  .rw-section-heading { margin-bottom: 38px; }
  .rw-hero { padding: 98px 0 44px; }
  .rw-hero h1 { font-size: clamp(36px, 9vw, 58px); }
  .rw-hero-text { font-size: 15px; }
  .rw-hero-actions { flex-direction: column; align-items: stretch; }
  .rw-button { width: 100%; }
  .rw-product-window { transform: none; border-radius: 14px; padding: 6px; }
  .rw-window-bar { height: 29px; }
  .rw-demo-section { padding: 52px 0; }
  .rw-demo-grid { grid-template-columns: 1fr; }
  .rw-demo-card { min-height: auto; }
  .rw-demo-copy { padding: 28px 24px; }
  .rw-button--light { width: auto; }
  .rw-closing-section { padding-bottom: 52px; }
  .rw-closing-card { min-height: 0; padding: 40px 24px; border-radius: 22px; }
}

@media (max-width: 430px) {
  .rw-demo-visual { min-height: 155px; }
  .rw-comparison-table th,
  .rw-comparison-table td { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .rw-page *,
  .rw-page *::before,
  .rw-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.rw-page a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 7px #175caa;
}
.rw-skip {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 110;
  padding: 10px 16px;
  background: #fff;
  color: #071b2e;
  transform: translateY(-160%);
}
.rw-skip:focus { transform: translateY(0); }
.rw-page { scroll-margin-top: 72px; }
.rw-product-image { display: block; border-radius: 12px; }
.rw-product-image span {
  display: block;
  padding: 8px;
  color: #dbeafe;
  font-size: 12px;
  text-align: center;
}
.rw-product-image:hover span { text-decoration: underline; }
.rw-demo-card:hover { border-color: #79baf2; }
.rw-demo-kicker { font-size: 11px; }

@media (max-width: 650px) {
  .rw-comparison-table,
  .rw-comparison-table tbody,
  .rw-comparison-table tr,
  .rw-comparison-table th,
  .rw-comparison-table td { display: block; width: auto; }
  .rw-comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .rw-comparison-table tbody th { padding: 16px 18px 4px; }
  .rw-comparison-table tbody td { padding: 9px 18px; font-size: 14px; }
  .rw-comparison-table tbody td:last-child { padding-bottom: 16px; }
  .rw-manual-mark, .rw-product-mark { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.room-wizard-page-active) { scroll-behavior: auto; }
}

/* Keep the video shortcuts available while scrolling. */
.rw-demo-shortcuts {
  bottom: calc(16px + env(safe-area-inset-bottom));
  max-height: 55vh;
  overflow-y: auto;
  padding: 7px;
}
.rw-demo-shortcuts .tool-demo-link { min-height: 48px; padding: 9px; }
.rw-demo-shortcuts .tool-demo-link:focus-visible { outline-offset: 1px; }

@media (max-width: 760px) {
  .room-wizard-page-active .footer { padding-bottom: calc(220px + env(safe-area-inset-bottom)); }
  .rw-demo-shortcuts {
    left: 8px;
    right: 8px;
    bottom: calc(4px + env(safe-area-inset-bottom));
    width: auto;
    grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
    gap: 5px;
  }
  .rw-demo-shortcuts .tool-demo-link { gap: 3px; font-size: 12px; padding-inline: 3px; }
  .rw-demo-shortcuts svg { width: 12px; }
}
