/* Product skin. Red and black, loaded after the existing sheets. No inline styles. */

body.rl {
  background: #070708;
}

/* ---------- public nav ---------- */
body.rl .site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 7, 8, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}
body.rl .head-row { min-height: 64px; }
body.rl .nav-links a {
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
body.rl .brand-word { letter-spacing: -0.03em; }

/* ---------- homepage hero ---------- */
body.home .hero {
  padding-top: clamp(48px, 8vw, 92px);
  padding-bottom: 12px;
}
body.home .hero-bg {
  background:
    radial-gradient(720px 280px at 50% -10%, rgba(229, 38, 47, 0.22), transparent 70%),
    #070708;
}
body.home .hero-bg::after { opacity: 0.28; }
body.home .hero h1 {
  max-width: 14ch;
  font-family: var(--display, inherit);
  font-weight: 800;
  font-size: clamp(3.1rem, 7.4vw, 6.1rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  background: none;
  -webkit-text-fill-color: #f6f4f1;
  color: #f6f4f1;
}
body.home .hero h1 .hl {
  background: none;
  -webkit-text-fill-color: #e5262f;
  color: #e5262f;
}
body.home .hero-sub { max-width: 46ch; color: #b9b6b1; }
body.home .hero .btn,
body.home .cta-band .btn { border-radius: 999px; }
body.home .hero .btn-primary {
  background: #e5262f;
  color: #fff;
  border-color: #e5262f;
  box-shadow: 0 10px 30px -16px rgba(229, 38, 47, 0.9);
}
body.home .rl-line {
  background: transparent;
  color: #f6f4f1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}
body.home .rl-line:hover { border-color: #e5262f; color: #fff; }
body.home .hero-fine { color: #8d8a86; }

.rl-eye {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  color: #d7d3cc;
  font: 500 0.82rem/1.3 var(--sans, sans-serif);
  letter-spacing: 0.01em;
}
.rl-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5262f;
  box-shadow: 0 0 0 0 rgba(229, 38, 47, 0.7);
  animation: rl-pulse 2.4s ease-out infinite;
}
@keyframes rl-pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 38, 47, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(229, 38, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 38, 47, 0); }
}
.rl-assures {
  margin: 22px 0 0;
  max-width: 62ch;
  color: #8d8a86;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}
.rl-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
}
.rl-stats li { display: flex; flex-direction: column; gap: 2px; min-width: 7.5rem; }
.rl-stats strong {
  color: #f6f4f1;
  font: 700 1.05rem/1.1 var(--display, sans-serif);
  letter-spacing: -0.03em;
}
.rl-stats span { color: #8d8a86; font-size: 0.78rem; }
.rl-stats .ok { color: #ff5a62; }
.rl-jump {
  display: inline-flex;
  margin-top: 28px;
  color: #b9b6b1;
  text-decoration: none;
  font-size: 0.88rem;
}
.rl-jump i {
  display: inline-block;
  margin-left: 6px;
  animation: rl-bob 1.8s ease-in-out infinite;
}
@keyframes rl-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.rl-marquee {
  margin-top: 42px;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.rl-marquee-track {
  display: flex;
  width: max-content;
  animation: rl-marquee 32s linear infinite;
}
.rl-marquee span {
  padding: 12px 28px;
  color: #8d8a86;
  font: 600 0.78rem/1 var(--mono, ui-monospace, monospace);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@keyframes rl-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- live editor frame ---------- */
.rl-stage { padding-top: clamp(56px, 8vw, 96px); }
.rl-stage h2 { max-width: 18ch; }
.rl-frame {
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #0c0c0e;
  box-shadow: 0 30px 80px -36px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(229, 38, 47, 0.18);
  overflow: hidden;
}
.rl-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #101012;
}
.rl-dots { display: inline-flex; gap: 6px; }
.rl-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a2a2e;
}
.rl-dots i:first-child { background: #e5262f; }
.rl-title {
  color: #b9b6b1;
  font: 500 0.78rem/1 var(--mono, ui-monospace, monospace);
}
.rl-status {
  margin-left: auto;
  color: #f6f4f1;
  font: 500 0.75rem/1 var(--mono, ui-monospace, monospace);
}
.rl-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #e5262f;
  vertical-align: 1px;
  animation: rl-pulse 2.4s ease-out infinite;
}
.rl-ide {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 210px;
  min-height: 196px;
}
.rl-tree {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #09090b;
}
.rl-tree li {
  padding: 8px 14px;
  color: #8d8a86;
  font: 500 0.8rem/1.3 var(--mono, ui-monospace, monospace);
  border-left: 2px solid transparent;
}
.rl-tree li.is-on {
  color: #f6f4f1;
  background: rgba(229, 38, 47, 0.1);
  border-left-color: #e5262f;
}
.rl-code {
  margin: 0;
  padding: 16px 8px 16px 0;
  overflow: auto;
}
.rl-code ol {
  list-style: decimal inside;
  margin: 0;
  padding: 0 12px;
  min-height: 8.5rem;
}
.rl-code li {
  margin: 0;
  padding: 2px 8px;
  color: #d7d3cc;
  font: 500 0.84rem/1.7 var(--mono, ui-monospace, monospace);
  white-space: pre;
}
.rl-code .rl-add { color: #d7ffe4; background: rgba(63, 185, 80, 0.14); }
.rl-code .rl-del { color: #ffb3b6; background: rgba(229, 38, 47, 0.16); }
.rl-caret::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 1px;
  background: #e5262f;
  vertical-align: text-bottom;
  animation: rl-blink 1s steps(1) infinite;
}
@keyframes rl-blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.rl-log {
  margin: 0;
  padding: 14px 14px 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: #09090b;
}
.rl-log ul { list-style: none; margin: 0; padding: 0; }
.rl-kicker {
  margin: 0 0 10px;
  color: #e5262f;
  font: 700 0.72rem/1 var(--mono, ui-monospace, monospace);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.rl-log li {
  margin: 0 0 8px;
  color: #b9b6b1;
  font-size: 0.8rem;
  line-height: 1.35;
  animation: rl-rise 0.35s ease both;
}
.rl-caption {
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8d8a86;
  font-size: 0.78rem;
}

/* ---------- routes, steps, video ---------- */
.rl-routes { padding-top: clamp(64px, 8vw, 100px); }
.rl-route-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.rl-route-list li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.rl-route-list a {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 18px 4px;
  color: inherit;
  text-decoration: none;
}
.rl-route-list a:hover b { color: #ff5a62; }
.rl-route-list b {
  font: 700 1.35rem/1.1 var(--display, sans-serif);
  letter-spacing: -0.03em;
}
.rl-route-list span { color: #b9b6b1; }
.rl-route-list em {
  color: #8d8a86;
  font-style: normal;
  font: 500 0.78rem/1 var(--mono, ui-monospace, monospace);
}
.rl-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 28px 0 0;
  padding: 0;
}
.rl-steps li {
  padding-top: 14px;
  border-top: 2px solid #e5262f;
}
.rl-steps strong {
  display: block;
  margin-bottom: 8px;
  font: 700 0.78rem/1 var(--mono, ui-monospace, monospace);
  letter-spacing: 0.14em;
  color: #e5262f;
}
.rl-steps h3 { margin: 0 0 8px; font-size: 1.35rem; letter-spacing: -0.03em; }
.rl-steps p { margin: 0; color: #b9b6b1; }

.rl-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}
.rl-video-price { color: #f6f4f1; font-weight: 600; }
.rl-studio {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #0c0c0e;
  overflow: hidden;
}
.rl-studio-bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  color: #b9b6b1;
  font: 500 0.75rem/1 var(--mono, ui-monospace, monospace);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.rl-rec { color: #ff5a62; }
.rl-rec::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #e5262f;
  animation: rl-pulse 2.4s ease-out infinite;
}
.rl-film-window { overflow: hidden; height: 168px; }
.rl-film-track {
  display: flex;
  width: 200%;
  height: 100%;
  animation: rl-film 14s linear infinite;
}
.rl-film-track span { flex: 1; display: block; }
.rl-f1 { background: linear-gradient(160deg, #1a0506 0%, #070708 55%, #e5262f 56%, #070708 57%); }
.rl-f2 { background: linear-gradient(180deg, #070708, #3d0a0e 70%, #070708); }
.rl-f3 { background: repeating-linear-gradient(90deg, #070708 0 18px, #140406 18px 19px); }
.rl-f4 { background: radial-gradient(circle at 30% 40%, #e5262f, #070708 55%); }
@keyframes rl-film { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rl-play {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}
.rl-play i {
  display: block;
  height: 100%;
  width: 35%;
  background: #e5262f;
  animation: rl-play 4.5s ease-in-out infinite;
}
@keyframes rl-play {
  0% { transform: translateX(0); }
  100% { transform: translateX(185%); }
}

/* ---------- flatten the old card grids on the homepage ---------- */
body.home .strip { padding-top: 18px; }
body.home .bento,
body.home .modes,
body.home .learn-grid { gap: 0; }
body.home .card,
body.home .modes article,
body.home .learn-grid article {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
body.home .card:hover,
body.home .modes article:hover { transform: none; box-shadow: none; }
body.home .card-wide,
body.home .card-rev {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #0c0c0e;
  margin-bottom: 12px;
}
body.home .tier,
body.home .price-card,
body.home .faq-list > div {
  background: #0c0c0e;
  border-color: rgba(255, 255, 255, 0.1);
}
body.home .price-pop {
  background: linear-gradient(180deg, rgba(229, 38, 47, 0.16), #0c0c0e 42%);
}
body.home .sec h2 { max-width: 20ch; letter-spacing: -0.04em; }
body.home .cta-band {
  background: #0c0c0e;
  border-color: rgba(229, 38, 47, 0.45);
  box-shadow: none;
}

@supports (animation-timeline: view()) {
  body.home .sec,
  body.home .rl-stage,
  body.home .rl-routes {
    animation: rl-rise 1s linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}
@keyframes rl-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- signed-in product chrome ---------- */
body.app-body { background: #070708; }
body.app-body .side {
  background: #070708;
  border-right-color: rgba(255, 255, 255, 0.08);
}
body.app-body .side-link[aria-current='page'] {
  background: rgba(229, 38, 47, 0.12);
  border-left: 2px solid #e5262f;
}
body.app-body .shell-main { background: #0a0a0c; }
body.app-body .panel,
body.app-body .card,
body.app-body .stat {
  background: #101012;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  animation: rl-rise 0.55s ease both;
}
body.app-body .stat-row { gap: 10px; }
body.app-body .stat b,
body.app-body .big { letter-spacing: -0.04em; }
body.app-body .bar i,
body.app-body .bar > i { background: #e5262f; }
body.app-body .tile,
body.app-body .quick a {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #101012;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
body.app-body .tile:hover,
body.app-body .quick a:hover {
  border-color: rgba(229, 38, 47, 0.55);
  transform: translateY(-2px);
}

/* assistant */
body.workspace .app-grid {
  background: #070708;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
}
body.workspace .app-rail { background: #09090b; }
body.workspace .log {
  background:
    linear-gradient(180deg, rgba(229, 38, 47, 0.05), transparent 90px),
    #0c0c0e;
}
body.workspace .composer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #101012;
}
body.workspace #status:not(:empty)::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #e5262f;
  animation: rl-pulse 2.4s ease-out infinite;
}

/* website builder */
body.workspace .ed {
  background: #070708;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}
body.workspace .ed-bar {
  background: #101012;
  border-bottom: 1px solid rgba(229, 38, 47, 0.28);
}
body.workspace .ed-files,
body.workspace .ed-projects { background: #09090b; }
body.workspace .code-area,
body.workspace .ed-surface { background: #070708; }
body.workspace .file-list li.is-active,
body.workspace .proj-list [aria-current='true'] {
  box-shadow: inset 2px 0 0 #e5262f;
}

/* projects table */
#projects .t { border-collapse: collapse; width: 100%; }
#projects .t th {
  color: #8d8a86;
  font: 600 0.72rem/1 var(--mono, ui-monospace, monospace);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
}
#projects .t tr { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
#projects .t tbody tr { transition: background 0.2s ease; }
#projects .t tbody tr:hover { background: rgba(229, 38, 47, 0.08); }

/* video studio */
#video-app .split { gap: 16px; align-items: stretch; }
#video-app .panel h2 { letter-spacing: -0.03em; }
#video-app .vq li,
#video-app .vgrid article,
#video-app .vgrid .empty {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #101012;
}
#video-app .bar-lg i { background: linear-gradient(90deg, #9f1820, #ff5a62); }

/* admin */
body.app-body .bars .bar i { background: #e5262f; }
body.app-body .inbox li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  animation: rl-rise 0.45s ease both;
}

@media (max-width: 900px) {
  .rl-ide { grid-template-columns: 1fr; }
  .rl-tree {
    display: flex;
    gap: 0;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
  }
  .rl-tree li { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .rl-tree li.is-on { border-bottom-color: #e5262f; }
  .rl-log { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .rl-route-list a,
  .rl-steps,
  .rl-video-grid { grid-template-columns: 1fr; }
  .rl-route-list em { display: none; }
  body.home .hero h1 { max-width: 10ch; }
}

@media (prefers-reduced-motion: reduce) {
  .rl-pulse,
  .rl-marquee-track,
  .rl-caret::after,
  .rl-film-track,
  .rl-play i,
  .rl-jump i,
  .rl-status::before,
  .rl-rec::before,
  body.home .sec,
  body.app-body .panel,
  body.app-body .card,
  body.app-body .stat,
  body.app-body .inbox li {
    animation: none !important;
  }
  body.app-body .tile:hover,
  body.app-body .quick a:hover { transform: none; }
}
