/* RoleModel brand tokens used by this page. Values are copied from
   rolemodel-brand/tokens/brand.css (generated from tokens/brand.json). */
:root {
  --rm-blue: #3a70b3;
  --rm-dark-blue: #193c64;
  --rm-dark-blue-green: #04242b;
  /* Darkest Blue Green is not in brand.json; it is the RM-Website Framer token
     (rgb(1, 13, 15)). Used for the page so compositions sit above it. */
  --rm-darkest-blue-green: #02171c;
  --rm-blue-green: #27434d;
  --rm-light-purple: #a998c9;
  --rm-medium-green: #86c774;
  --rm-bright-yellow: #fcf496;

  --brand-blue: #2a83f7; /* the extension's own accent */

  --ink: #f4f8f9;
  --ink-dim: #a9bcc2;
  --ink-faint: #6f8890;
  --line: rgb(255 255 255 / 0.1);
  --line-soft: rgb(255 255 255 / 0.06);
  --surface: #06181d;
  --surface-2: #0a2027;

  --font: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur-base: 400ms;

  --measure: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none;
    transition: none;
  }
}

body {
  margin: 0;
  background: var(--rm-darkest-blue-green);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: min(var(--measure), calc(100% - 8rem));
  margin-inline: auto;
}

a {
  color: inherit;
}

/* ---------- type ---------- */

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}
h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.lede {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  color: var(--ink-dim);
  max-width: 46ch;
}

/* ---------- header ---------- */

header {
  position: fixed;
  inset: 10px 10px auto 10px;
  border-radius: 10px;
  z-index: 10;
  padding: 1.1rem 0;
  background: color-mix(in srgb, var(--rm-darkest-blue-green) 88%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-soft);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
header img {
  height: 40px;
  width: auto;
  display: block;
}
header nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.94rem;
}
header nav a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-enter);
}
header nav a:hover {
  color: var(--ink);
}
@media (max-width: 640px) {
  header nav .hide-sm {
    display: none;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.3rem;
  border-radius: 10px;
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition-property: background-color, border-color, color, scale;
  transition-duration: var(--dur-fast);
  transition-timing-function: var(--ease-enter);
}
.btn:active {
  scale: 0.96;
}
.btn-primary {
  background: var(--brand-blue);
  color: #fff;
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--brand-blue) 86%, #fff);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: rgb(255 255 255 / 0.28);
  background: rgb(255 255 255 / 0.04);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
/* The dot grid the extension itself draws, as the page's own backdrop. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse 50% 88% at 50% 50%, #000 65%, transparent 100%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
}
.hero-copy {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.shot {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: 14px;
  overflow: hidden;
  /* Neutral hairline so the image edge reads on any surface. */
  outline: 1px solid rgb(255 255 255 / 0.1);
  outline-offset: -1px;
  box-shadow: 0 30px 70px rgb(0 0 0 / 0.5);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- sections ---------- */

section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.section-head {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 2.75rem;
  max-width: 44rem;
}

.grid {
  display: grid;
  gap: 1rem;
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.card {
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.card p {
  color: var(--ink-dim);
  font-size: 0.97rem;
}
.card h3 {
  color: var(--ink);
  font-size: 1.27rem;
}
.card .n {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--rm-blue);
}

.frame-card {
  text-align: center;
}
.frame-card .art {
  display: grid;
  place-items: center;
  height: 92px;
  margin-bottom: 0.3rem;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--rm-medium-green);
}

/* ---------- install ---------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.6rem;
}

@media (width <= 768px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.9rem;
  align-items: baseline;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
}

@media (width <= 768px) {
  .step {
    grid-template-columns: 1fr;
  }
}

.step::before {
  content: counter(step);
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--rm-bright-yellow);
}
.step p {
  color: var(--ink-dim);
  font-size: 1rem;
}

code {
  font-family: var(--mono);
  font-size: 0.87em;
  padding: 0.15em 0.42em;
  border-radius: 5px;
  background: rgb(255 255 255 / 0.07);
}
pre {
  margin: 0;
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.87rem;
  line-height: 1.7;
  color: var(--ink-dim);
}
pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

kbd {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.2em 0.5em;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid var(--line);
  color: var(--ink);
}
.shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  font-size: 0.97rem;
}
.shortcut span {
  color: var(--ink-dim);
}

.note {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--rm-blue);
  background: rgb(58 112 179 / 0.08);
  font-size: 0.94rem;
  color: var(--ink-dim);
}

/* ---------- footer ---------- */

footer {
  padding: 3rem 0;
  border-top: 1px solid var(--line-soft);
}
footer .wrap {
  display: grid;
  justify-content: center;
  align-items: start;
  gap: 1.25rem;
}
footer img {
  height: auto;
  width: 80vw;
  opacity: 0.75;
}
footer p {
  color: var(--ink-faint);
  font-size: 0.88rem;
}
footer a {
  color: var(--ink-dim);
}

/* ---------- entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: reveal var(--dur-base) var(--ease-enter) forwards;
  }
  .reveal:nth-child(2) {
    animation-delay: 70ms;
  }
  .reveal:nth-child(3) {
    animation-delay: 140ms;
  }
  .reveal:nth-child(4) {
    animation-delay: 210ms;
  }
}
@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}
