/*
  RMLABS website
  White-first Apple-inspired static layout with a dark-mode toggle.
*/

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --ink: #0b1020;
  --muted: #5d6678;
  --dim: #687386;
  --line: rgba(15, 23, 42, 0.11);
  --line-strong: rgba(15, 23, 42, 0.18);
  --brand: #1155ff;
  --brand-2: #6d28d9;
  --green: #128f61;
  --amber: #aa6a00;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
  --radius: 18px;
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070911;
  --bg-soft: #10131d;
  --surface: rgba(16, 19, 29, 0.84);
  --surface-solid: #10131d;
  --ink: #f7f8fc;
  --muted: #b8c0d2;
  --dim: #7f889b;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --brand: #77a5ff;
  --brand-2: #b197ff;
  --green: #78e5aa;
  --amber: #ffd37a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(17, 85, 255, 0.11), transparent 34rem),
    var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 800;
}

.skip-link:focus {
  top: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(22px) saturate(160%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
  padding: 4px 8px;
  border-radius: 14px;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.brand .logo {
  width: 168px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
}

.brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:root[data-theme="dark"] .brand .logo {
  filter: drop-shadow(0 8px 24px rgba(98, 123, 255, 0.24));
}

:root[data-theme="dark"] .brand {
  color: #0b1020;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle,
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle {
  display: none;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .sun {
  display: block;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 99px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 32px rgba(17, 85, 255, 0.22);
}

.btn-ghost,
.btn-dark {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-dark:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: color-mix(in srgb, var(--brand) 8%, var(--surface-solid));
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.section {
  padding: clamp(70px, 9vw, 128px) 0;
}

.section.alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.stack {
  display: grid;
  gap: 18px;
}

.split,
.split.reverse {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1fr);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.center {
  text-align: center;
}

.narrow {
  max-width: 780px;
}

.narrow.center {
  margin-inline: auto;
}

.mt-12 { margin-top: 12px; }
.mt-18 { margin-top: 18px; }
.mt-28 { margin-top: 28px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 8.6vw, 6.8rem);
  font-weight: 850;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  font-weight: 820;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
}

h4 {
  color: var(--dim);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.center .lead,
.hero .lead {
  margin-inline: auto;
}

.soft {
  color: var(--muted);
}

.dim {
  color: var(--dim);
}

.gradient-text {
  color: var(--brand);
  background: linear-gradient(110deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow,
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.eyebrow.green,
.eyebrow.blue {
  color: var(--brand);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.status.live {
  color: #06633f;
  background: #e9fbf2;
  border-color: rgba(18, 143, 97, 0.22);
}

:root[data-theme="dark"] .status.live {
  color: #9df2c3;
  background: rgba(120, 229, 170, 0.11);
}

.status.soon {
  color: #7a4a00;
  background: #fff4dc;
  border-color: rgba(170, 106, 0, 0.2);
}

:root[data-theme="dark"] .status.soon {
  color: #ffd37a;
  background: rgba(255, 211, 122, 0.1);
}

.hero {
  padding: clamp(58px, 8vw, 100px) 0 clamp(54px, 7vw, 96px);
}

.hero .split {
  grid-template-columns: 1fr;
  text-align: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.hero-logo {
  width: min(520px, 82vw);
  height: auto;
  margin: 0 auto 8px;
  border-radius: 24px;
}

:root[data-theme="dark"] .hero-logo {
  background: #fff;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  max-width: 1040px;
}

.hero-media {
  position: relative;
  width: min(100%, 980px);
  min-height: 520px;
  margin: 16px auto 0;
}

.hero-shot {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shot.large {
  left: 50%;
  top: 0;
  width: min(38%, 360px);
  aspect-ratio: 0.62;
  transform: translateX(-50%);
  z-index: 3;
}

.hero-shot.wide {
  left: 0;
  bottom: 42px;
  width: min(58%, 560px);
  aspect-ratio: 16 / 8.2;
  z-index: 2;
}

.hero-shot.small {
  right: 0;
  bottom: 0;
  width: min(33%, 310px);
  aspect-ratio: 0.72;
  z-index: 1;
}

.hero-label {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 5;
  padding: 7px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid) 86%, transparent);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.product-hero .trust-strip,
.stack .trust-strip {
  justify-content: flex-start;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 750;
}

.product-card,
.feature-card,
.stat-card,
.faq details,
.note-card,
.cta-band,
.media-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.product-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  min-height: 100%;
  padding: 20px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.product-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 9%, transparent);
}

.product-icon svg {
  width: 26px;
  height: 26px;
}

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card p,
.feature-card p,
.note-card p {
  color: var(--muted);
}

.product-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: var(--brand);
  font-weight: 850;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
}

.feature-card,
.stat-card,
.note-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 9%, transparent);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.stat-card strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  line-height: 1;
}

.media-frame {
  overflow: hidden;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame.tall {
  max-width: 420px;
  margin-inline: auto;
  aspect-ratio: 0.62;
}

.media-frame.wide {
  aspect-ratio: 16 / 9;
}

.media-grid {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 18px;
  align-items: center;
}

.mini-stack {
  display: grid;
  gap: 18px;
}

.product-card:has(.status.soon) img,
.media-frame img[src*="scrollguard"],
.media-frame img[src*="task-planner"],
.hero-shot img[src*="scrollguard"],
.hero-shot img[src*="task-planner"] {
  filter: blur(1.5px) saturate(0.86);
  transform: scale(1.018);
}

.product-card:has(.status.soon) .product-image::after {
  content: "Coming Soon";
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(11, 16, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.spec-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.spec-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  color: var(--muted);
}

.check {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.check::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg) translateY(-1px);
}

.product-hero {
  padding: clamp(62px, 9vw, 126px) 0;
}

.product-hero h1 {
  max-width: 900px;
  font-size: clamp(2.7rem, 6vw, 5.35rem);
}

.cta-band {
  padding: clamp(34px, 5vw, 64px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, transparent), transparent 56%),
    var(--surface-solid);
}

.cta-band .btn-row {
  justify-content: flex-start;
  margin-top: 24px;
}

.center .cta-band .btn-row,
.cta-band.center .btn-row {
  justify-content: center;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 0 20px;
  box-shadow: none;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--brand);
  font-size: 1.25rem;
  font-weight: 800;
}

.faq details[open] summary::after {
  content: "-";
}

.faq details p {
  padding: 0 0 18px;
  color: var(--muted);
}

.notify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.notify-form input {
  flex: 1 1 260px;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: var(--bg);
}

.notify-form input:focus {
  outline: 4px solid color-mix(in srgb, var(--brand) 16%, transparent);
  border-color: color-mix(in srgb, var(--brand) 52%, var(--line));
}

.form-note {
  margin-top: 10px;
  color: var(--dim);
  font-size: 0.9rem;
}

.product-hero .btn-row,
.stack .btn-row {
  justify-content: flex-start;
}

.hero .btn-row,
.center .btn-row,
.cta-band.center .btn-row {
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 46px 0 28px;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 30px;
}

.footer-grid p {
  max-width: 360px;
  margin-top: 12px;
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.92rem;
}

.reveal {
  opacity: 1;
  transform: none;
  animation: fade-up 0.55s ease both;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 470px;
  }

  .hero-shot.large {
    width: 42%;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .brand {
    min-width: 132px;
  }

  .brand .logo {
    width: 138px;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    display: grid;
    gap: 6px;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(20px);
    transform: translateY(-125%);
    transition: transform 0.22s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    justify-content: center;
    min-height: 46px;
  }

  .nav-actions .btn {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 390px;
  }

  .hero-shot.large {
    width: 58%;
  }

  .hero-shot.wide {
    width: 78%;
    bottom: 82px;
  }

  .hero-shot.small {
    width: 42%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .btn-row,
  .btn-row .btn,
  .notify-form .btn {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 16vw, 4.3rem);
  }

  .hero-media {
    min-height: 330px;
  }

  .hero-shot.large {
    width: 52%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
