/* The Cybersecurity Career Roadmap: a free lead magnet, in the Dev visual language. */

.rm { --rm-card: #111113; }

/* ---------- Hero ---------- */
.rm-hero {
  position: relative;
  min-height: max(700px, 100svh);
  padding: 116px 0 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(50% 60% at 74% 46%, rgba(255, 107, 53, 0.22), transparent 70%),
    radial-gradient(35% 45% at 70% 70%, rgba(92, 225, 255, 0.1), transparent 70%),
    #000;
}

.rm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(55% 60% at 72% 50%, #000, transparent 75%);
  mask-image: radial-gradient(55% 60% at 72% 50%, #000, transparent 75%);
}

.rm-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 40px;
}

.rm-hero .dv-display { font-size: clamp(52px, 7vw, 104px); max-width: 10ch; }

.rm-specs {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0;
  animation: dv-fade 900ms ease 900ms forwards;
}

.rm-specs li {
  padding: 7px 13px;
  border: 1px solid var(--dv-line);
  border-radius: 999px;
  color: #d2d2d7;
  font-size: 13px;
  font-weight: 550;
}

.rm-specs li::before { content: "\2713"; margin-right: 7px; color: var(--dv-orange); font-weight: 700; }

/* The roadmap as a product: a floating, cursor-tilted document with paths in orbit. */
.rm-stage {
  position: relative;
  height: min(70vh, 620px);
  min-height: 460px;
  display: grid;
  place-items: center;
  perspective: 1400px;
  opacity: 0;
  animation: dv-fade 1200ms ease 400ms forwards;
}

.rm-book {
  --rx: 6deg;
  --ry: -24deg;
  position: relative;
  width: min(300px, 62vw);
  aspect-ratio: 300 / 410;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  animation: rm-float 7s ease-in-out infinite;
}

@keyframes rm-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

.rm-book__face,
.rm-book__back,
.rm-book__spine,
.rm-book__edge {
  position: absolute;
  backface-visibility: hidden;
}

.rm-book__face {
  inset: 0;
  padding: 26px 24px;
  border-radius: 6px 14px 14px 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateZ(9px);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(255, 107, 53, 0.55), transparent 60%),
    radial-gradient(80% 50% at 0% 100%, rgba(92, 225, 255, 0.22), transparent 60%),
    linear-gradient(160deg, #1b1c21, #08080a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.rm-book__face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 45%, transparent 60%);
  transform: translateX(-120%);
  animation: rm-sheen 6s ease-in-out 1.6s infinite;
}

@keyframes rm-sheen {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.rm-book__face svg { width: 38px; height: 46px; }

.rm-book__kicker {
  margin-top: 18px;
  color: #ffb08f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rm-book__title {
  margin-top: 10px;
  color: #fff;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.03em;
}

.rm-book__title em {
  display: block;
  margin-top: 6px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 0.82em;
  font-style: italic;
  font-weight: 400;
  color: #ffcf9f;
  letter-spacing: 0;
}

.rm-book__doors {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.rm-book__doors i {
  height: 46px;
  border-radius: 14px 14px 3px 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.rm-book__doors i:nth-child(3) {
  border-color: rgba(255, 107, 53, 0.8);
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.45), rgba(255, 107, 53, 0.08));
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.45);
}

.rm-book__meta {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10.5px;
  font-weight: 600;
}

.rm-book__back {
  inset: 0;
  border-radius: 14px 6px 6px 14px;
  background: #0d0d10;
  transform: rotateY(180deg) translateZ(9px);
}

.rm-book__spine {
  top: 0;
  left: 0;
  width: 18px;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #2c2d33, #141519);
  transform: rotateY(-90deg) translateZ(9px) translateX(-9px);
  transform-origin: left center;
}

.rm-book__edge {
  top: 6px;
  right: 0;
  width: 18px;
  height: calc(100% - 12px);
  background: repeating-linear-gradient(90deg, #f1f1f4 0 1px, #c9c9cf 1px 2px);
  transform: rotateY(90deg) translateZ(-9px) translateX(9px);
  transform-origin: right center;
}

.rm-shadow {
  position: absolute;
  bottom: 9%;
  left: 50%;
  width: min(300px, 60vw);
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), transparent);
  transform: translateX(-50%);
  animation: rm-shadow 7s ease-in-out infinite;
}

@keyframes rm-shadow {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.9; }
  50% { transform: translateX(-50%) scale(0.88); opacity: 0.6; }
}

.rm-orbit {
  position: absolute;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #e8e8ed;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  animation: rm-drift var(--t, 8s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.rm-orbit::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--c, var(--dv-orange));
  box-shadow: 0 0 10px var(--c, var(--dv-orange));
  vertical-align: 1px;
}

@keyframes rm-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(var(--dx, 6px), var(--dy, -12px)); }
}

/* ---------- Chaos to order ---------- */
.rm-chaos__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.rm-board {
  position: relative;
  height: 440px;
  border: 1px solid var(--dv-line);
  border-radius: 28px;
  background: linear-gradient(170deg, #141416, #0a0a0c);
  overflow: hidden;
}

.rm-noise {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 9px 14px;
  border: 1px solid rgba(255, 105, 97, 0.35);
  border-radius: 999px;
  background: rgba(255, 69, 58, 0.08);
  color: #ffb3ad;
  font-size: 13.5px;
  font-weight: 550;
  white-space: nowrap;
  transform: rotate(var(--r));
  transition: transform 900ms var(--dv-ease), opacity 700ms ease;
  transition-delay: calc(var(--i) * 60ms);
}

.rm-noise::before { content: "\2715"; margin-right: 8px; font-size: 11px; }

.rm-steps {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 34px;
  list-style: none;
  display: grid;
  align-content: center;
  gap: 12px;
}

.rm-steps li {
  padding: 16px 18px;
  border: 1px solid var(--dv-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 800ms var(--dv-ease);
  transition-delay: calc(500ms + var(--i) * 140ms);
}

.rm-steps b {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dv-orange);
  color: #1a0f0a;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex: 0 0 auto;
}

.rm-steps span { display: block; color: var(--dv-soft); font-size: 13.5px; font-weight: 500; }

.rm-board.is-ordered .rm-noise {
  opacity: 0;
  transform: translateY(160px) rotate(calc(var(--r) * 3)) scale(0.8);
}

.rm-board.is-ordered .rm-steps li { opacity: 1; transform: none; }

/* ---------- Five doors ---------- */
.rm-doors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.rm-door {
  border: 1px solid var(--dv-line);
  border-radius: 24px;
  background: var(--rm-card);
  overflow: hidden;
  transition: transform 260ms var(--dv-ease), border-color 260ms ease;
}

.rm-door:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.24); }

.rm-door__frame {
  position: relative;
  height: 190px;
  margin: 14px 14px 0;
  border-radius: 80px 80px 12px 12px;
  overflow: hidden;
  perspective: 700px;
  background:
    radial-gradient(70% 60% at 50% 60%, var(--c), transparent 70%),
    #050506;
}

.rm-door__light {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
}

.rm-door__light svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 14px var(--c));
}

.rm-door__panel {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 84%, rgba(0, 0, 0, 0.25)),
    linear-gradient(160deg, #2a2b31, #16171b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform-origin: left center;
  transition: transform 1100ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rm-door__panel::before {
  content: "";
  position: absolute;
  inset: 18px 16px;
  border-radius: 64px 64px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rm-door__panel::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 52%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dv-orange);
  box-shadow: 0 0 10px var(--dv-orange);
}

.rm-door.is-open .rm-door__panel,
.rm-door:hover .rm-door__panel,
.rm-door:focus-within .rm-door__panel { transform: rotateY(-72deg); }

.rm-door__copy { padding: 20px 20px 24px; }

.rm-door__copy span {
  color: var(--dv-mute);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rm-door__copy h3 { margin: 6px 0 8px; font-size: 21px; line-height: 1.1; letter-spacing: -0.01em; }
.rm-door__copy p { margin: 0; color: var(--dv-soft); font-size: 14.5px; line-height: 1.5; }

.rm-doors__cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- What's inside: the page fan ---------- */
.rm-inside__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.rm-fan {
  position: relative;
  height: 460px;
  perspective: 1200px;
}

.rm-page {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 196px;
  height: 272px;
  margin: -136px 0 0 -98px;
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(170deg, #fbfbfd, #e9e9ee);
  color: #1d1d1f;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  transform: rotate(0deg) translate(0, 0);
  transition: transform 1100ms var(--dv-ease), box-shadow 300ms ease;
  transition-delay: calc(var(--i) * 70ms);
}

.rm-page b {
  display: block;
  color: #c2410c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rm-page strong { display: block; margin-top: 8px; font-size: 19px; line-height: 1.1; letter-spacing: -0.01em; }

.rm-page i {
  display: block;
  height: 7px;
  margin-top: 10px;
  border-radius: 4px;
  background: #d9d9de;
}

.rm-page i:nth-of-type(1) { margin-top: 18px; width: 92%; }
.rm-page i:nth-of-type(2) { width: 76%; }
.rm-page i:nth-of-type(3) { width: 84%; }
.rm-page i:nth-of-type(4) { width: 60%; background: #ffd2bd; }

.rm-fan.is-fanned .rm-page { transform: rotate(var(--rot)) translate(var(--tx), var(--ty)); }
.rm-fan.is-fanned .rm-page:hover { transform: rotate(var(--rot)) translate(var(--tx), calc(var(--ty) - 22px)); box-shadow: 0 40px 80px -20px rgba(255, 107, 53, 0.55); z-index: 9; }

.rm-inside-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--dv-line);
}

.rm-inside-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--dv-line);
}

.rm-inside-list b { grid-row: span 2; color: var(--dv-orange); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rm-inside-list strong { font-size: 19px; font-weight: 650; }
.rm-inside-list span { color: var(--dv-soft); font-size: 15px; line-height: 1.5; }

/* ---------- Proof ---------- */
.rm-proof {
  padding: clamp(100px, 13vw, 160px) 0;
  text-align: center;
  background:
    radial-gradient(45% 55% at 50% 50%, rgba(255, 107, 53, 0.12), transparent 70%),
    #000;
}

.rm-stars { color: #ffb84d; font-size: 18px; letter-spacing: 6px; }

.rm-proof blockquote {
  margin: 22px auto 0;
  max-width: 22ch;
  font-size: clamp(30px, 4.4vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.rm-proof cite { display: block; margin-top: 26px; color: var(--dv-soft); font-size: 15px; font-style: normal; }

/* ---------- Next step ---------- */
.rm-next {
  margin-top: clamp(56px, 8vw, 90px);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--dv-line);
  border-radius: 28px;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(255, 107, 53, 0.2), transparent 60%),
    var(--rm-card);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  text-align: left;
}

.rm-next span { color: var(--dv-orange); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.rm-next h3 { margin: 8px 0 6px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -0.02em; }
.rm-next p { margin: 0; color: var(--dv-soft); }

/* ---------- Gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.66);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 0s linear 260ms;
}

.gate.open { opacity: 1; visibility: visible; transition: opacity 260ms ease, visibility 0s; }

.gate-card {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 36px 30px 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(255, 107, 53, 0.22), transparent 60%),
    #111113;
  color: #f5f5f7;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8);
  transform: translateY(16px) scale(0.98);
  transition: transform 360ms var(--dv-ease);
}

.gate.open .gate-card { transform: none; }

.gate-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.gate-close:hover { background: rgba(255, 255, 255, 0.16); }

.gate-eyebrow { color: var(--dv-orange); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.gate-h { margin: 10px 0 8px; font-size: 32px; line-height: 1.05; letter-spacing: -0.02em; }
.gate-s { margin: 0 0 22px; color: var(--dv-soft); font-size: 15px; line-height: 1.5; }

.gate-field { margin-bottom: 12px; }

.gate-input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: #0a0a0c;
  color: #fff;
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.gate-input::placeholder { color: #8e8e93; }
.gate-input:focus { border-color: var(--dv-orange); box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.18); }
.gate-input.invalid { border-color: #ff6961; }
.gate-hint { display: none; margin-top: 6px; color: #ff8a80; font-size: 13px; }
.gate-field.invalid .gate-hint { display: block; }

.gate-consent {
  margin: 6px 0 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--dv-soft);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.gate-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.gate-box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  display: grid;
  place-items: center;
}

.gate-consent input:checked + .gate-box { border-color: var(--dv-orange); background: var(--dv-orange); }
.gate-consent input:checked + .gate-box::after { content: "\2713"; color: #1a0f0a; font-size: 13px; font-weight: 800; }
.gate-consent input:focus-visible + .gate-box { outline: 3px solid var(--dv-orange); outline-offset: 2px; }
.gate-consent a { color: #ff9a6c; text-decoration: underline; }

.gate-cta {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--dv-orange);
  color: #1a0f0a;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.gate-cta:hover { background: #ff875c; }
.gate-cta:disabled { opacity: 0.7; }
.gate-error { display: none; margin: 12px 0 0; color: #ff8a80; font-size: 13px; }
.gate.error .gate-error { display: block; }
.gate-foot { margin: 14px 0 0; color: var(--dv-mute); font-size: 12.5px; text-align: center; }

.gate-success { display: none; text-align: center; padding: 10px 0; }
.gate.success .gate-form { display: none; }
.gate.success .gate-success { display: block; }

.gate-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.16);
  color: #4be27a;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
}

.gate-success-h { margin: 0; font-size: 28px; }
.gate-success-s { margin: 10px 0 22px; color: var(--dv-soft); font-size: 15px; line-height: 1.5; }
.gate-success-s a { color: #ff9a6c; font-weight: 600; }

/* ---------- Phone sticky bar ---------- */
.rm-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 900;
  padding: 10px 10px 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(22, 22, 24, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(140%);
  transition: transform 360ms var(--dv-ease);
}

.rm-bar.is-shown { transform: none; }
.rm-bar p { margin: 0; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.2; }
.rm-bar p span { display: block; color: var(--dv-mute); font-size: 12px; font-weight: 500; }

.rm-bar button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--dv-orange);
  color: #1a0f0a;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}

button.dv-btn { font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; background: transparent; }
button.dv-btn--primary { background: var(--dv-orange); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .rm-doors { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1000px) {
  .rm-hero__grid,
  .rm-chaos__grid,
  .rm-inside__grid { grid-template-columns: minmax(0, 1fr); }
  .rm-stage { order: -1; height: 460px; min-height: 0; }
}

@media (max-width: 760px) {
  .rm-hero { min-height: 0; padding: 72px 0 48px; }
  .rm-hero .dv-actions .dv-btn { width: 100%; }
  .rm-stage { height: 330px; margin: 0 -22px; }
  .rm-book { width: min(214px, 56vw); }
  .rm-book__title { font-size: 22px; }
  .rm-book__face { padding: 20px 18px; }
  .rm-book__doors i { height: 32px; }
  .rm-hero .dv-display { font-size: clamp(44px, 12vw, 56px); }
  .rm-orbit { font-size: 11.5px; padding: 6px 11px; }
  .rm-doors { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rm-door__frame { height: 140px; margin: 10px 10px 0; }
  .rm-door__copy { padding: 14px 14px 18px; }
  .rm-door__copy h3 { font-size: 17px; }
  .rm-door__copy p { font-size: 13px; }
  .rm-board { height: 420px; }
  .rm-fan { height: 360px; }
  .rm-page { width: 170px; height: 236px; margin: -118px 0 0 -85px; padding: 14px; }
  .rm-page strong { font-size: 16px; }
  .rm-next { grid-template-columns: 1fr; }
  .rm-bar { display: flex; }
  .cwj-footer { padding-bottom: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .rm-book,
  .rm-shadow,
  .rm-orbit,
  .rm-book__face::after { animation: none; }
  .rm-stage,
  .rm-specs { opacity: 1; animation: none; }
  .rm-noise { display: none; }
  .rm-steps li { opacity: 1; transform: none; transition: none; }
  .rm-door__panel { transform: rotateY(-72deg); transition: none; }
  .rm-page { transition: none; }
}

.rm .dv-lede.rm-static { opacity: 1; animation: none; }

/* The download dialog and the phone bar sit outside <main class="dev">, where the colour tokens live.
   Without these their buttons rendered dark on dark: the sign-up button was invisible. */
.gate,
.rm-bar {
  --dv-ink: #f5f5f7;
  --dv-soft: #a1a1a6;
  --dv-mute: #86868b;
  --dv-orange: #ff6b35;
  --dv-line: rgba(255, 255, 255, 0.1);
  --dv-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* After the download. The dialog sits outside the page's colour scope, so its button
   takes its colours directly (it used to render dark on dark). The quiz stays as the quieter second choice. */
.gate-success .dv-btn--primary { border-color: #ff6b35; background: #ff6b35; color: #1a0f0a; }
.gate-success .dv-btn--primary:hover { border-color: #ff875c; background: #ff875c; }
.gate-success-alt { display: block; margin-top: 14px; color: #a1a1a6; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }
