/* rolestash.com. Brand tokens are from brand/README.md. No external requests. */

@font-face {
  font-family: 'Inter';
  src: url('/assets/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --spruce: #0b5d52;
  --spruce-hover: #084a41;
  --amber: #f4b63f;
  --cream: #fff7e6;
  --mint: #cfe6df;

  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --line: #e7e3da;
  --ink: #10231f;
  --muted: #4c5b57;
  --accent: var(--spruce);
  --accent-hover: var(--spruce-hover);
  --accent-ink: #ffffff;
  --accent-soft: #e7f3ef;
  --shadow: 0 1px 2px rgb(16 35 31 / 6%), 0 12px 32px -12px rgb(16 35 31 / 18%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f0e;
    --surface: #131a18;
    --surface-2: #19221f;
    --line: #25302d;
    --ink: #eef3f1;
    --muted: #a3b3ae;
    --accent: #5cc4ad;
    --accent-hover: #7fd1be;
    --accent-ink: #06201b;
    --accent-soft: #0d2b26;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 16px 40px -16px rgb(0 0 0 / 60%);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    400 17px/1.6 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: saturate(1.4) blur(10px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand img {
  height: 32px;
  width: auto;
}

.logo-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .logo-light {
    display: none;
  }
  .logo-dark {
    display: block;
  }
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

@media (max-width: 560px) {
  .nav .hide-sm {
    display: none;
  }
}

/* Buttons & badges */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

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

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

/* Hero */
.hero {
  padding: 72px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 20px auto 16px;
  max-width: 14ch;
  font-weight: 750;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto 28px;
}

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

.fine {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.shot {
  margin: 48px auto 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--surface);
}

/* Sections */
section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 40px;
}

.section-head h2,
.prose h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  font-weight: 720;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.alt {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.card h3 {
  margin: 12px 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

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

.steps {
  counter-reset: step;
}

.steps .card h3::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--amber);
  color: #3a2605;
  font-size: 15px;
}

.promise {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  align-items: center;
}

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

.promise li {
  padding-left: 32px;
  position: relative;
}

.promise li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230b5d52' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/14px no-repeat;
}

/* Pricing */
.plans {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  max-width: 820px;
  margin: 0 auto;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.plan.pro {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.plan h3 {
  margin: 0;
  font-size: 20px;
}

.price {
  font-size: 44px;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 8px 0 0;
}

.price small {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.plan .note {
  color: var(--muted);
  font-size: 15px;
  margin: 4px 0 20px;
}

.plan ul {
  margin: 0 0 8px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 16px;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

summary::after {
  content: '+';
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

details[open] summary::after {
  content: '–';
}

details p {
  color: var(--muted);
  margin: 10px 0 0;
}

/* Legal / prose pages */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 0 72px;
}

.prose .updated {
  color: var(--muted);
  font-size: 15px;
  margin-top: 0;
}

.prose h2 {
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 36px 0 8px;
}

.prose h3 {
  font-size: 18px;
  margin: 24px 0 6px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.callout {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--muted);
}

.pill-tag {
  margin-left: 4px;
  padding: 1px 8px;
  font-size: 12px;
  vertical-align: 2px;
}

.pill-tag::before {
  display: none;
}

.promise-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  font-weight: 720;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.center {
  text-align: center;
}

kbd {
  font:
    600 13px/1 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-2);
}

@media (prefers-color-scheme: dark) {
  .promise li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%235cc4ad' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}
