/* RoZur — rozur.xyz
 *
 * The site uses Roblox's own palette, like the extension: white and
 * #F7F7F8 surfaces, #202227 text, #335FFF for the one action that matters
 * (installing). It follows the system's light or dark setting the same way
 * the extension follows Roblox's theme. No gradients, no glow, no capitals.
 *
 * Figtree is self-hosted (SIL OFL, fonts/OFL.txt): no third-party requests.
 */

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --paper:   #ffffff;
  --panel:   #f7f7f8;
  --panel-2: #eeeff1;
  --line:    #e4e5e9;
  --line-2:  #d5d7dd;
  --ink:     #202227;
  --ink-2:   #494d5a;
  --ink-3:   #5f6475;

  --blue:       #335fff;
  --blue-hover: #2b52e6;
  --on-blue:    #ffffff;
  --link:       #1446ff;
  --control:       rgba(27, 37, 75, 0.08);
  --control-hover: rgba(27, 37, 75, 0.14);

  --gain:      #00734a;
  --gain-wash: rgba(0, 176, 111, 0.12);
  --loss:      #c62828;
  --loss-wash: rgba(255, 91, 91, 0.12);
  --plus:      #1446ff;
  --plus-wash: rgba(51, 95, 255, 0.10);
  --pro:       #8a5a00;
  --pro-wash:  rgba(255, 176, 32, 0.18);

  --font: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --code: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;

  --r:  8px;
  --r2: 12px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #121215;
    --panel:   #191a1f;
    --panel-2: #22242a;
    --line:    #2a2c33;
    --line-2:  #3a3d46;
    --ink:     #f7f7f8;
    --ink-2:   #d5d7dd;
    --ink-3:   #b0b3be;

    --link:          #8aa4ff;
    --control:       rgba(208, 217, 251, 0.12);
    --control-hover: rgba(208, 217, 251, 0.20);

    --gain:      #2fc98a;
    --gain-wash: rgba(0, 176, 111, 0.16);
    --loss:      #ff7a7a;
    --loss-wash: rgba(255, 91, 91, 0.16);
    --plus:      #8aa4ff;
    --plus-wash: rgba(51, 95, 255, 0.20);
    --pro:       #ffc04d;
    --pro-wash:  rgba(255, 176, 32, 0.16);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
b, strong { font-weight: 600; color: var(--ink); }
img { display: block; max-width: 100%; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

code {
  font-family: var(--code);
  font-size: 0.875em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--panel-2);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ── Buttons — Roblox's: a solid blue one, and the grey control ─────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r);
  background: var(--control);
  color: var(--ink);
  font: 600 15px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { background: var(--control-hover); text-decoration: none; }
.btn--lg { min-height: 48px; padding: 0 24px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--blue); color: var(--on-blue); }
.btn--primary:hover { background: var(--blue-hover); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); }

/* ── Navigation ────────────────────────────────────────────────────── */
.nav { border-bottom: 1px solid var(--line); }
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--wrap);
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}
.nav-brand img { border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a {
  padding: 8px 12px;
  border-radius: var(--r);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.nav-links > a:hover { background: var(--control); color: var(--ink); }
.nav-lang {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px;
  border-radius: var(--r);
  background: var(--control);
}
.nav-lang a {
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.nav-lang a[aria-current="true"] { background: var(--paper); color: var(--ink); }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero { padding: 80px 0 88px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 11ch;
}
.hero-lede {
  margin-top: 24px;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.55;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; color: var(--ink-3); font-size: 14px; }

/* The specimen: RoZur's Limiteds Market, as it looks in the extension. */
.panel {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r2);
  background: var(--panel);
  overflow: hidden;
}
.panel-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
}
.panel-title { font-size: 17px; font-weight: 800; }
.panel-sort { color: var(--ink-3); font-size: 13px; }
.panel-head,
.panel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px 68px 100px;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}
.panel-head {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
}
.panel-row { min-height: 58px; border-bottom: 1px solid var(--line); background: var(--paper); }
.panel-row:last-of-type { border-bottom: 0; }
.panel-name { min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.panel-abbr { display: block; color: var(--ink-3); font-size: 13px; font-weight: 400; }
.panel-num { text-align: right; color: var(--ink-2); font-size: 15px; }
.panel-num.is-value { color: var(--ink); font-size: 17px; font-weight: 800; }
.panel-delta { justify-self: end; }
.delta {
  display: inline-block;
  min-width: 52px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.delta.is-over { background: var(--loss-wash); color: var(--loss); }
.delta.is-deal { background: var(--gain-wash); color: var(--gain); }
.panel-foot {
  padding: 12px 20px 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
}

/* ── Sections ──────────────────────────────────────────────────────── */
.sec { padding: 88px 0; border-top: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.sec-head p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }

/* Where it shows up: one row per Roblox page. */
.where { margin: 0; border-bottom: 1px solid var(--line); }
.where-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.where dt h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.where dt span { display: block; margin-top: 4px; color: var(--ink-3); font-size: 14px; }
.where dd { margin: 0; }
.adds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.adds li { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.adds li b { color: var(--ink); }

.tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  vertical-align: 1px;
  white-space: nowrap;
}
.tag--plus { background: var(--plus-wash); color: var(--plus); }
.tag--pro  { background: var(--pro-wash);  color: var(--pro); }

/* Read-only: the one block that is about trust, not features. */
.trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  padding: 40px;
  border-radius: var(--r2);
  background: var(--panel);
}
.trust h2 {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.trust p { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.trust p + p { margin-top: 12px; }

/* ── Plans ─────────────────────────────────────────────────────────── */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r2);
  overflow: hidden;
}
.plan { display: flex; flex-direction: column; padding: 28px 28px 32px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan--featured { background: var(--panel); box-shadow: inset 0 3px 0 var(--blue); }
.plan-name { font-size: 18px; font-weight: 800; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: 12px; }
.plan-amt { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.plan-per { color: var(--ink-3); font-size: 16px; }
.plan-sub { margin-top: 8px; color: var(--ink-3); font-size: 14px; }
.plan-year { margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.plan-feats {
  flex: 1;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}
.plan-feats li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}
.plan-feats li + li { margin-top: 10px; }
.plan-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--ink-3);
}
.plan--featured .plan-feats li::before { background: var(--blue); }
.plan-note { margin-top: 20px; color: var(--ink-3); font-size: 14px; }

/* ── FAQ ───────────────────────────────────────────────────────────── */
.faq { max-width: 760px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--control);
  color: var(--ink-2);
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  text-align: center;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p {
  max-width: 64ch;
  padding: 0 0 24px;
  color: var(--ink-2);
  line-height: 1.65;
}

/* Discord: a single line with its button. */
.help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.help h2 { font-size: 22px; font-weight: 800; }
.help p { margin-top: 4px; color: var(--ink-2); }

/* ── Footer ────────────────────────────────────────────────────────── */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.foot-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal { max-width: 70ch; margin-top: 24px; color: var(--ink-3); font-size: 13px; line-height: 1.6; }

/* ── Text pages: privacy, support, plans, changelog ────────────────── */
/* Same left edge as the navigation; the text itself stays at a readable width. */
.prose { padding-top: 64px; padding-bottom: 96px; }
.prose > * { max-width: 720px; }
.prose h1 {
  font-size: clamp(2.2rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.prose-meta { margin-top: 12px; color: var(--ink-3); font-size: 15px; }
.prose h2 {
  margin-top: 48px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.prose h3 { margin-top: 28px; font-size: 18px; font-weight: 600; }
.prose p,
.prose li { color: var(--ink-2); line-height: 1.7; }
.prose p { margin-top: 14px; }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }

.note {
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: var(--r);
  background: var(--panel);
}
.note p { margin: 0; }
.note p + p { margin-top: 8px; }
.note--warn { box-shadow: inset 3px 0 0 var(--pro); }

.table,
.prose table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 15px;
}
.table th, .table td,
.prose table th, .prose table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  text-align: left;
  vertical-align: top;
}
.table th, .prose table th { color: var(--ink); font-weight: 600; background: var(--panel); }
.table-scroll { overflow-x: auto; }

/* Changelog */
.release { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.release-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.release-v { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.release-d { color: var(--ink-3); font-size: 15px; }
.pill {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--control);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}
.pill--new { background: var(--gain-wash); color: var(--gain); }
.release ul { margin-top: 16px; }

/* 404 */
.mid {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding-top: 48px;
  padding-bottom: 48px;
  text-align: center;
}
.mid h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; }
.mid p { margin: 12px 0 28px; color: var(--ink-2); }

/* ── Narrow screens ────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .where-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .trust { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 28px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .wrap, .nav-in { padding-left: 18px; padding-right: 18px; }
  .hide-sm { display: none; }
  .nav-links > a { padding: 8px 8px; }
  .sec { padding: 64px 0; }
  .hero-lede { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .adds { grid-template-columns: minmax(0, 1fr); }
  .panel-head, .panel-row { grid-template-columns: minmax(0, 1fr) 64px 60px; padding: 0 14px; }
  .panel-hide-sm { display: none; }
  .panel-bar, .panel-foot { padding-left: 14px; padding-right: 14px; }
  .plan { padding: 24px 20px 28px; }
  .faq summary { font-size: 17px; }
}

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