/* RespireSoft Meet site: one stylesheet, token prefix --rs-, class prefix rs-.
   Flat on purpose: no gradients, no glow, no blur, no drop shadow. Depth is hairlines and surface steps.
   Brand colours only (Midnight, Respire Violet, White, Mist, Slate, Paper); derived tokens are marked. */

@font-face {
  font-family: "Sora";
  src: url("/brand/fonts/sora-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback so the swap does not move the page. */
@font-face {
  font-family: "Sora Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 106%;
  ascent-override: 94%;
  descent-override: 24%;
  line-gap-override: 0%;
}

:root {
  --rs-font: "Sora", "Sora Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rs-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* light */
  --rs-bg: #ffffff;
  --rs-bg-alt: #f5f6f8; /* Paper */
  --rs-card: #ffffff;
  --rs-line: #e3e5ea; /* derived from Slate */
  --rs-fg: #0d1117; /* Midnight */
  --rs-fg-2: #5b6270; /* Slate */
  --rs-accent: #785cff; /* Respire Violet */
  --rs-accent-ink: #5a3fe6; /* derived, 6.4:1 on white */
  --rs-accent-hover: #6847f0;
  --rs-on-accent: #ffffff;
  --rs-ok: #0e7a55;
  --rs-warn: #8a5a00;
  --rs-code-bg: #161b26; /* Night */
  --rs-code-fg: #e6e9f0;
  --rs-breath-o: 0.42;
  --rs-gutter: clamp(16px, 4vw, 64px);
  --rs-gap: 20px;
  --rs-gap-lg: 24px;
  --rs-sec: clamp(64px, 9vw, 128px);
  --rs-radius: 10px;
  --rs-head-h: 56px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --rs-bg: #0d1117; /* Midnight */
  --rs-bg-alt: #10151d; /* derived */
  --rs-card: #161b26; /* Night */
  --rs-line: rgba(163, 170, 184, 0.18); /* Mist */
  --rs-fg: #f5f6f8;
  --rs-fg-2: #a3aab8; /* Mist */
  --rs-accent-ink: #b7a8ff; /* Violet Soft */
  --rs-accent-hover: #6847f0; /* darker, so white stays readable */
  --rs-ok: #4cc9a0;
  --rs-warn: #e6b422;
  --rs-breath-o: 0.18;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --rs-bg: #0d1117;
    --rs-bg-alt: #10151d;
    --rs-card: #161b26;
    --rs-line: rgba(163, 170, 184, 0.18);
    --rs-fg: #f5f6f8;
    --rs-fg-2: #a3aab8;
    --rs-accent-ink: #b7a8ff;
    --rs-accent-hover: #6847f0; /* darker, so white stays readable */
    --rs-ok: #4cc9a0;
    --rs-warn: #e6b422;
    --rs-breath-o: 0.18;
    color-scheme: dark;
  }
}
@media (min-width: 900px) {
  :root { --rs-head-h: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--rs-head-h) + 16px); }
body {
  margin: 0;
  background: var(--rs-bg);
  color: var(--rs-fg);
  font: 400 16px/1.65 var(--rs-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
@media (min-width: 1024px) { body { font-size: 17px; } }
img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--rs-accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--rs-accent); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
.rs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rs-skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100; background: var(--rs-accent); color: var(--rs-on-accent); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.rs-skip:focus { top: 12px; text-decoration: none; }

/* ---------- type ---------- */
.rs-display, .rs-h1, .rs-h2, .rs-h3 { font-family: var(--rs-font); color: var(--rs-fg); text-wrap: balance; }
.rs-display { font-size: clamp(40px, 2.2rem + 2.6vw, 76px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.rs-h1 { font-size: clamp(34px, 1.9rem + 1.6vw, 60px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.rs-h2 { font-size: clamp(26px, 1.4rem + 1.1vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.rs-h3 { font-size: clamp(19px, 1.1rem + 0.35vw, 24px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.rs-lead { font-size: clamp(17px, 1rem + 0.35vw, 22px); line-height: 1.55; color: var(--rs-fg-2); max-width: 60ch; }
.rs-small { font-size: 14px; color: var(--rs-fg-2); }
@media (min-width: 1700px) { .rs-small { font-size: 15px; } }
.rs-label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--rs-accent-ink); }
@media (min-width: 1700px) { .rs-label { font-size: 13px; } }
.rs-text { max-width: 72ch; }
.rs-text > * + * { margin-top: 1em; }
.rs-num { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.rs-wrap { width: 100%; padding-inline: var(--rs-gutter); }
.rs-section { padding-block: var(--rs-sec); position: relative; }
.rs-section--alt { background: var(--rs-bg-alt); }
.rs-section--tight { padding-block: clamp(40px, 6vw, 80px); }
.rs-section__head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 76ch; }
.rs-section__head .rs-lead { margin-top: 4px; }
.rs-stack > * + * { margin-top: var(--rs-gap-lg); }
main { display: block; min-height: 50vh; }

/* ---------- buttons ---------- */
.rs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--rs-radius);
  font: 600 16px/1.2 var(--rs-font); text-decoration: none !important; white-space: nowrap;
  border: 1px solid transparent; background: transparent; color: var(--rs-fg);
  transition: background-color 0.18s ease-out, border-color 0.18s ease-out, color 0.18s ease-out;
}
.rs-btn--primary { background: var(--rs-accent); color: var(--rs-on-accent); }
.rs-btn--primary:hover { background: var(--rs-accent-hover); }
.rs-btn--secondary { border-color: var(--rs-line); }
.rs-btn--secondary:hover { border-color: var(--rs-accent); }
.rs-btn--ghost { padding-inline: 12px; }
.rs-btn--ghost:hover { background: var(--rs-bg-alt); }
.rs-btn--sm { min-height: 40px; padding: 8px 16px; }
.rs-btn svg { width: 18px; height: 18px; }
.rs-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.rs-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
@media (max-width: 899px), (pointer: coarse) { .rs-link, .rs-card__more a, .rs-crumbs a { min-height: 44px; } .rs-copy { min-height: 44px; } .rs-footer li a { min-height: 44px; } }
.rs-link svg { width: 16px; height: 16px; transition: transform 0.18s ease-out; }
.rs-link:hover svg { transform: translateX(3px); }

.rs-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- header ---------- */
.rs-header { position: sticky; top: 0; z-index: 50; background: var(--rs-bg); border-bottom: 1px solid var(--rs-line); }
.rs-header__bar { display: flex; align-items: center; gap: 12px; height: var(--rs-head-h); padding-inline: var(--rs-gutter); }
.rs-lockup { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--rs-fg); text-decoration: none !important; flex: none; }
.rs-lockup img { height: 22px; width: auto; }
@media (min-width: 900px) { .rs-lockup { gap: 12px; } .rs-lockup img { height: 28px; } .rs-header__bar { gap: 24px; } }
/* Meet word: its capital height equals the logo's capital height (logo height x 0.46). Sora cap height is 0.7em. */
.rs-lockup__rule { width: 1px; align-self: stretch; margin-block: 12px; background: var(--rs-line); }
.rs-lockup__word { font: 600 14.5px/1 var(--rs-font); letter-spacing: -0.01em; }
@media (min-width: 900px) { .rs-lockup__word { font-size: 18.4px; } }
.rs-logo--dark { display: none; }
:root[data-theme="dark"] .rs-logo--light { display: none; }
:root[data-theme="dark"] .rs-logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .rs-logo--light { display: none; }
  :root:not([data-theme]) .rs-logo--dark { display: block; }
}
.rs-nav { display: none; align-items: stretch; gap: 4px; height: 100%; margin-inline-start: 8px; }
.rs-nav a { display: inline-flex; align-items: center; padding-inline: 12px; color: var(--rs-fg-2); font-weight: 500; font-size: 15px; position: relative; text-decoration: none !important; transition: color 0.18s ease-out; }
.rs-nav a:hover { color: var(--rs-fg); }
.rs-nav a[aria-current] { color: var(--rs-fg); }
.rs-nav a[aria-current]::after { content: ""; position: absolute; inset-inline: 12px; bottom: -1px; height: 2px; background: var(--rs-accent); }
.rs-header__end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.rs-header__end .rs-btn--ghost, .rs-header__end .rs-btn--sm { display: none; }
.rs-iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--rs-radius); border: 0; background: transparent; color: var(--rs-fg); }
.rs-iconbtn:hover { background: var(--rs-bg-alt); }
.rs-theme .rs-i-moon { display: none; }
:root[data-theme="dark"] .rs-theme .rs-i-sun { display: none; }
:root[data-theme="dark"] .rs-theme .rs-i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .rs-theme .rs-i-sun { display: none; }
  :root:not([data-theme]) .rs-theme .rs-i-moon { display: block; }
}
.rs-menu-btn .rs-i-x { display: none; }
.rs-menu-btn[aria-expanded="true"] .rs-i-x { display: block; }
.rs-menu-btn[aria-expanded="true"] .rs-i-menu { display: none; }
@media (min-width: 900px) {
  .rs-nav { display: flex; }
  .rs-header__end .rs-btn--ghost, .rs-header__end .rs-btn--sm { display: inline-flex; }
  .rs-menu-btn { display: none; }
}
.rs-sheet { position: fixed; inset: var(--rs-head-h) 0 0 0; z-index: 49; background: var(--rs-bg); padding: 12px var(--rs-gutter) 24px; display: none; flex-direction: column; overflow-y: auto; }
.rs-sheet[data-open] { display: flex; }
.rs-sheet a:not(.rs-btn) { display: flex; align-items: center; min-height: 52px; font: 600 19px var(--rs-font); color: var(--rs-fg); border-bottom: 1px solid var(--rs-line); text-decoration: none; }
.rs-sheet a[aria-current] { color: var(--rs-accent-ink); }
.rs-sheet .rs-btn { margin-top: 20px; width: 100%; }
@media (min-width: 900px) { .rs-sheet { display: none !important; } }
body[data-sheet] { overflow: hidden; }

/* ---------- footer (Midnight in both themes) ---------- */
.rs-footer { position: relative; overflow: hidden; background: #0d1117; color: #a3aab8; border-top: 1px solid rgba(163, 170, 184, 0.18); padding: clamp(48px, 7vw, 96px) var(--rs-gutter) 32px; }
.rs-footer a { color: #d5d9e2; }
.rs-footer a:hover { color: #fff; }
.rs-footer__top { position: relative; display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .rs-footer__top { grid-template-columns: minmax(300px, 1.1fr) 3fr; gap: 64px; } }
.rs-footer__brand img { width: min(100%, 300px); height: auto; }
.rs-footer__brand p { margin-top: 20px; max-width: 34ch; color: #a3aab8; }
.rs-footer__cols { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.rs-footer h2 { font: 500 12px/1 var(--rs-font); text-transform: uppercase; letter-spacing: 0.12em; color: #b7a8ff; margin-bottom: 12px; }
.rs-footer li a { display: flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .rs-footer li a { min-height: 34px; } }
.rs-footer__base { position: relative; margin-top: clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 1px solid rgba(163, 170, 184, 0.18); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; font-size: 14px; }
.rs-footer .rs-breath { inset: auto 0 0 auto; width: 55%; height: 100%; opacity: 0.16; }

/* ---------- breath lines (the brand ornament; violet only, 45 degrees, never mirrored) ---------- */
.rs-breath { position: absolute; pointer-events: none; background: url("/brand/breath-lines.svg") right top / cover no-repeat; opacity: var(--rs-breath-o); -webkit-mask-image: linear-gradient(to left, #000 25%, transparent); mask-image: linear-gradient(to left, #000 25%, transparent); }
.rs-breath--hero { inset: 0 0 0 auto; width: min(70%, 960px); }
.rs-breath--edge { inset: 0 0 0 auto; width: min(45%, 640px); }
.rs-breath-bars { display: inline-flex; gap: 4px; align-items: flex-end; height: 18px; }
.rs-breath-bars i { display: block; width: 3px; height: 100%; background: var(--rs-accent); border-radius: 2px; transform-origin: bottom; animation: rs-breathe 8s ease-in-out infinite; }
.rs-breath-bars i:nth-child(2) { animation-delay: .25s; height: 70%; } .rs-breath-bars i:nth-child(3) { animation-delay: .5s; height: 85%; }
@keyframes rs-breathe { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }

/* ---------- breadcrumb, pill, note ---------- */
.rs-crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--rs-fg-2); margin-bottom: 20px; }
.rs-crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--rs-line); }
.rs-crumbs a { color: var(--rs-fg-2); }
.rs-crumbs [aria-current] { color: var(--rs-fg); }
.rs-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 4px 12px; border: 1px solid var(--rs-line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--rs-fg-2); }
.rs-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rs-warn); flex: none; }
.rs-pill--ok::before { background: var(--rs-ok); }
.rs-note { border: 1px solid var(--rs-line); border-inline-start: 3px solid var(--rs-accent); border-radius: var(--rs-radius); padding: 16px 20px; background: var(--rs-card); color: var(--rs-fg-2); }
.rs-note strong { color: var(--rs-fg); }
.rs-note > * + * { margin-top: 8px; }

/* ---------- hero ---------- */
.rs-hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 96px) clamp(48px, 7vw, 112px); border-bottom: 1px solid var(--rs-line); }
.rs-hero__grid { position: relative; display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .rs-hero__grid--media { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.rs-hero__copy { display: grid; gap: 20px; justify-items: start; }
.rs-hero__copy .rs-lead { margin-top: 0; }
.rs-hero__row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.rs-hero__facts { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--rs-fg-2); font-size: 14px; }
.rs-hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.rs-hero__facts li::before { content: ""; width: 6px; height: 6px; background: var(--rs-accent); border-radius: 50%; }
.rs-hero--text { padding-block: clamp(32px, 5vw, 72px) clamp(40px, 5vw, 80px); }
.rs-hero--text .rs-hero__copy { max-width: 76ch; }

/* ---------- fact strip ---------- */
.rs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-block: 1px solid var(--rs-line); }
.rs-facts > div { padding: 28px 24px 28px 0; display: grid; gap: 6px; align-content: start; }
@media (min-width: 640px) { .rs-facts > div { border-inline-start: 1px solid var(--rs-line); padding-inline-start: 24px; } .rs-facts > div:first-child { border-inline-start: 0; padding-inline-start: 0; } }
.rs-facts dt { font: 700 clamp(30px, 1.6rem + 1.4vw, 52px)/1 var(--rs-font); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.rs-facts dd { color: var(--rs-fg); font-weight: 500; }
.rs-facts small { color: var(--rs-fg-2); font-size: 14px; }

/* ---------- cards and grids ---------- */
.rs-grid { display: grid; gap: var(--rs-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.rs-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.rs-grid--6 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .rs-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rs-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1700px) { .rs-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.rs-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.rs-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--rs-line); border-radius: var(--rs-radius); background: var(--rs-card); transition: border-color 0.18s ease-out; container-type: inline-size; }
.rs-card:hover, .rs-card:focus-within { border-color: var(--rs-accent); }
.rs-card > .rs-icon { width: 28px; height: 28px; color: var(--rs-accent-ink); }
.rs-card p { color: var(--rs-fg-2); }
.rs-card__more { margin-top: auto; padding-top: 8px; }
.rs-card__more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.rs-card__more a::after { content: ""; position: absolute; inset: 0; } /* the whole card is the link */
.rs-card__more svg { width: 16px; height: 16px; }
.rs-card--price { gap: 16px; padding: 28px; }
.rs-price__amt { font: 700 clamp(36px, 2rem + 1.2vw, 52px)/1 var(--rs-font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rs-price__unit { color: var(--rs-fg-2); }
.rs-card ul.rs-checks { margin-top: 4px; }

.rs-checks { display: grid; gap: 10px; }
.rs-checks li { position: relative; padding-inline-start: 28px; }
.rs-checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.35em; width: 16px; height: 16px; background: var(--rs-accent); -webkit-mask: url("/brand/check.svg") center / contain no-repeat; mask: url("/brand/check.svg") center / contain no-repeat; }

/* ---------- split block ---------- */
.rs-split { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; grid-template-columns: minmax(0, 1fr); }
.rs-split + .rs-split { margin-top: clamp(56px, 8vw, 112px); }
@media (min-width: 1024px) { .rs-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .rs-split--flip > :first-child { order: 2; } }
.rs-split__copy { display: grid; gap: 16px; justify-items: start; }
.rs-split__copy p { color: var(--rs-fg-2); max-width: 60ch; }

/* ---------- screenshot figure ---------- */
.rs-shot { position: relative; }
.rs-shot picture, .rs-shot > img { display: block; }
.rs-shot img { width: 100%; height: auto; border: 1px solid var(--rs-line); border-radius: var(--rs-radius); background: var(--rs-bg-alt); }
.rs-shot figcaption { margin-top: 10px; font-size: 14px; color: var(--rs-fg-2); }
.rs-shot--ph { aspect-ratio: 16 / 10; border: 1px dashed var(--rs-line); border-radius: var(--rs-radius); display: grid; place-items: center; color: var(--rs-fg-2); background: var(--rs-bg-alt); }
.rs-shot [data-theme-img="dark"] { display: none; }
:root[data-theme="dark"] .rs-shot [data-theme-img="light"] { display: none; }
:root[data-theme="dark"] .rs-shot [data-theme-img="dark"] { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .rs-shot [data-theme-img="light"] { display: none; }
  :root:not([data-theme]) .rs-shot [data-theme-img="dark"] { display: block; }
}

/* ---------- steps ---------- */
.rs-steps { display: grid; gap: var(--rs-gap-lg); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); counter-reset: step; }
.rs-steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; padding-top: 20px; border-top: 1px solid var(--rs-line); }
.rs-steps li::before { content: counter(step, decimal-leading-zero); font: 700 clamp(32px, 2rem + 1vw, 48px)/1 var(--rs-font); color: var(--rs-accent-ink); letter-spacing: -0.03em; }
.rs-steps h3 { font: 600 19px/1.3 var(--rs-font); }
.rs-steps p { color: var(--rs-fg-2); }

/* ---------- languages ---------- */
.rs-langs { display: grid; gap: 20px; }
.rs-langs h3 { font: 500 14px/1.4 var(--rs-font); color: var(--rs-fg-2); margin-bottom: 10px; }
.rs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border: 1px solid var(--rs-line); border-radius: 999px; font-size: 15px; background: var(--rs-card); }
.rs-chip--accent { border-color: var(--rs-accent); color: var(--rs-accent-ink); }

/* ---------- developer block and code ---------- */
.rs-dev { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .rs-dev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.rs-tabs { border: 1px solid var(--rs-line); border-radius: var(--rs-radius); overflow: hidden; background: var(--rs-code-bg); }
.rs-tabs__list { display: flex; flex-wrap: wrap; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid rgba(163, 170, 184, 0.18); }
.rs-tabs__list button { min-height: 44px; padding: 8px 14px; border: 0; background: transparent; color: #a3aab8; font: 500 14px var(--rs-font); border-bottom: 2px solid transparent; }
.rs-tabs__list button[aria-selected="true"] { color: #fff; border-bottom-color: var(--rs-accent); }
.rs-tabs__panel { position: relative; display: none; }
.rs-tabs__panel:first-of-type { display: block; }
.js .rs-tabs__panel { display: none; }
.js .rs-tabs__panel[data-on] { display: block; }
.rs-code { margin: 0; padding: 20px; background: var(--rs-code-bg); color: var(--rs-code-fg); font: 400 14px/1.7 var(--rs-mono); white-space: pre-wrap; overflow-wrap: anywhere; border-radius: var(--rs-radius); }
.rs-tabs .rs-code { border-radius: 0; }
.rs-code .k { color: #b7a8ff; } .rs-code .s { color: #4cc9a0; } .rs-code .c { color: #a3aab8; }
.rs-copy { position: absolute; top: 4px; inset-inline-end: 6px; min-height: 44px; padding: 4px 12px; border: 1px solid rgba(163, 170, 184, 0.3); border-radius: 8px; background: transparent; color: #d5d9e2; font-size: 13px; }
.rs-copy:hover { border-color: var(--rs-accent); }
.rs-dev__side { display: grid; gap: 20px; }

/* ---------- tables ---------- */
.rs-tablewrap { width: 100%; }
.rs-table, .rs-compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.rs-table th, .rs-table td, .rs-compare th, .rs-compare td { text-align: start; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--rs-line); }
.rs-table thead th, .rs-compare thead th { font: 500 12px/1.4 var(--rs-font); text-transform: uppercase; letter-spacing: 0.12em; color: var(--rs-accent-ink); background: var(--rs-bg-alt); }
.rs-table td.rs-num, .rs-table th.rs-num { text-align: end; }
@media (max-width: 767px) {
  .rs-table thead, .rs-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rs-table, .rs-table tbody, .rs-table tr, .rs-table td, .rs-compare, .rs-compare tbody, .rs-compare tr, .rs-compare td, .rs-compare th { display: block; width: 100%; }
  .rs-table tr, .rs-compare tr { border: 1px solid var(--rs-line); border-radius: var(--rs-radius); background: var(--rs-card); margin-bottom: 12px; padding: 8px 4px; }
  .rs-table td, .rs-compare td, .rs-compare tbody th { border: 0; padding: 8px 16px; text-align: start !important; }
  .rs-table td::before, .rs-compare td::before { content: attr(data-label); display: block; font: 500 12px/1.4 var(--rs-font); text-transform: uppercase; letter-spacing: 0.1em; color: var(--rs-fg-2); }
  .rs-table td:first-child, .rs-compare tbody th { font: 600 19px/1.3 var(--rs-font); }
  .rs-table td:first-child::before { display: none; }
}

/* ---------- FAQ ---------- */
.rs-faq { display: grid; gap: 0; border-top: 1px solid var(--rs-line); }
.rs-faq details { border-bottom: 1px solid var(--rs-line); }
.rs-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 16px; font: 600 clamp(17px, 1rem + .3vw, 20px)/1.35 var(--rs-font); cursor: pointer; list-style: none; }
.rs-faq summary::-webkit-details-marker { display: none; }
.rs-faq summary::after { content: ""; width: 20px; height: 20px; flex: none; background: var(--rs-fg-2); -webkit-mask: url("/brand/plus.svg") center / contain no-repeat; mask: url("/brand/plus.svg") center / contain no-repeat; transition: transform 0.18s ease-out; }
.rs-faq details[open] summary::after { transform: rotate(45deg); }
.rs-faq details > div { padding-bottom: 20px; color: var(--rs-fg-2); max-width: 72ch; }
.rs-faq details > div > * + * { margin-top: 0.8em; }

/* ---------- CTA band (Midnight in both themes) ---------- */
.rs-cta { position: relative; overflow: hidden; background: #0d1117; color: #f5f6f8; padding: clamp(56px, 8vw, 112px) var(--rs-gutter); }
.rs-cta__in { position: relative; display: grid; gap: 20px; justify-items: start; max-width: 76ch; }
.rs-cta .rs-h2 { color: #f5f6f8; }
.rs-cta p { color: #a3aab8; max-width: 56ch; }
.rs-cta .rs-btn--secondary { color: #f5f6f8; border-color: rgba(163, 170, 184, 0.4); }
.rs-cta .rs-breath { inset: 0 0 0 auto; width: min(50%, 720px); opacity: 0.16; }

/* ---------- related, prose, toc ---------- */
.rs-related h2 { margin-bottom: 20px; }
.rs-prose { max-width: 72ch; }
.rs-prose > * + * { margin-top: 1em; }
.rs-prose h2 { font: 700 clamp(22px, 1.2rem + .8vw, 30px)/1.2 var(--rs-font); margin-top: 2em; letter-spacing: -0.02em; }
.rs-prose h3 { font: 600 19px/1.3 var(--rs-font); margin-top: 1.6em; }
.rs-prose ul, .rs-prose ol { padding-inline-start: 1.4em; }
.rs-prose ul { list-style: disc; } .rs-prose ol { list-style: decimal; }
.rs-prose li + li { margin-top: .4em; }
.rs-prose code { font: 0.92em var(--rs-mono); background: var(--rs-bg-alt); padding: 2px 6px; border-radius: 6px; }
.rs-toc { font-size: 14px; display: grid; gap: 4px; }
.rs-toc a { color: var(--rs-fg-2); padding: 6px 0; display: block; }
.rs-toc a:hover { color: var(--rs-fg); }

/* ---------- form parts (for the calculator and sign-in screens: no native select, date or checkbox) ---------- */
.rs-field { display: grid; gap: 6px; }
.rs-field > label, .rs-field > .rs-field__label { font-weight: 500; font-size: 15px; }
.rs-input { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--rs-line); border-radius: var(--rs-radius); background: var(--rs-bg); color: var(--rs-fg); font: 400 16px var(--rs-font); }
.rs-input:hover { border-color: var(--rs-fg-2); }
.rs-stepper { display: inline-grid; grid-template-columns: 44px minmax(72px, 1fr) 44px; align-items: stretch; }
.rs-stepper button { border: 1px solid var(--rs-line); background: var(--rs-card); font-size: 20px; }
.rs-stepper button:first-child { border-radius: var(--rs-radius) 0 0 var(--rs-radius); } .rs-stepper button:last-child { border-radius: 0 var(--rs-radius) var(--rs-radius) 0; }
.rs-stepper .rs-input { border-radius: 0; text-align: center; border-inline: 0; font-variant-numeric: tabular-nums; }
.rs-switch { position: relative; width: 52px; height: 44px; border: 0; background: transparent; padding: 0; flex: none; }
.rs-switch::before { content: ""; position: absolute; inset-inline: 2px; top: 8px; height: 28px; border-radius: 999px; border: 1px solid var(--rs-line); background: var(--rs-bg-alt); transition: background-color .18s ease-out, border-color .18s ease-out; }
.rs-switch::after { content: ""; position: absolute; top: 12px; inset-inline-start: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--rs-fg-2); transition: transform .18s ease-out, background-color .18s ease-out; }
.rs-switch[aria-checked="true"]::before { background: var(--rs-accent); border-color: var(--rs-accent); }
.rs-switch[aria-checked="true"]::after { background: #fff; transform: translateX(20px); }
[dir="rtl"] .rs-switch[aria-checked="true"]::after { transform: translateX(-20px); }

/* ---------- 404 ---------- */
.rs-404 { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 120px); }
.rs-404__num { position: absolute; inset-inline-end: var(--rs-gutter); top: 0; font: 700 clamp(160px, 28vw, 440px)/1 var(--rs-font); letter-spacing: -0.05em; color: var(--rs-accent); opacity: 0.08; pointer-events: none; user-select: none; }
.rs-404__copy { position: relative; display: grid; gap: 16px; justify-items: start; margin-bottom: clamp(32px, 5vw, 64px); }
.rs-search { display: flex; gap: 8px; width: min(100%, 520px); }

/* ---------- motion ---------- */
.js .rs-reveal { opacity: 0; transform: translateY(8px); transition: opacity .2s ease-out, transform .2s ease-out; }
.js .rs-reveal.rs-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rs-reveal { opacity: 1; transform: none; transition: none; }
  .rs-breath-bars i { animation: none; }
  * { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .rs-btn--primary, .rs-card, .rs-note { border: 1px solid CanvasText; }
  .rs-breath { display: none; }
}
@media print { .rs-header, .rs-footer, .rs-cta, .rs-breath { display: none; } }

/* A split block whose screenshot is not captured yet: the text takes the full row. */
.rs-split--solo { grid-template-columns: minmax(0, 1fr); }
.rs-split--solo .rs-split__copy { max-width: 75ch; }
