/* ReRoots public pages: brand tokens from docs/identite/CHARTE.md. Self-hosted font, no third party. */
@font-face {
  font-family: "Urbanist";
  src: url("/reroots/assets/urbanist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --rr-lime: #95EC0F;
  --rr-forest: #639500;
  --rr-bg: #1A1A1A;
  --rr-surface: #303030;
  --rr-surface-2: #46484A;
  --rr-text: #FFFFFF;
  --rr-text-muted: #C4C4C4;
  --rr-on-accent: #1A1A1A;
  --rr-warn: #FFA270;
  --rr-warn-bg: #3A2A1E;
  --rr-radius: 16px;
  --rr-font: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--rr-bg);
  color: var(--rr-text);
  font-family: var(--rr-font);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--rr-lime); text-underline-offset: 3px; }
a:hover { color: #B8F55A; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--rr-lime); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--rr-lime); color: var(--rr-on-accent); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }

.top { border-bottom: 1px solid var(--rr-surface); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--rr-text); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 36px; height: 36px; }
.top nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.top nav a { color: var(--rr-text-muted); text-decoration: none; padding: 10px 0; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--rr-lime); }

main { padding: 40px 0 64px; }

h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.1; margin: 0 0 16px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 4vw, 30px); line-height: 1.2; margin: 0 0 12px; font-weight: 700; }
h3 { font-size: 19px; margin: 24px 0 8px; font-weight: 700; }
p, li { color: var(--rr-text-muted); }
p { margin: 0 0 14px; }
strong { color: var(--rr-text); }
ul { padding-left: 22px; margin: 0 0 14px; }
li { margin: 4px 0; }

.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--rr-text); max-width: 680px; }
.eyebrow { color: var(--rr-lime); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; margin-bottom: 10px; }

section { margin-top: 56px; }
section:first-of-type { margin-top: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.card { background: var(--rr-surface); border-radius: var(--rr-radius); padding: 20px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.after-grid { margin-top: 16px; }
.price { font-size: 36px; font-weight: 800; color: var(--rr-text); line-height: 1.1; }
.price small { font-size: 17px; font-weight: 600; color: var(--rr-text-muted); }
.tag { display: inline-block; background: var(--rr-lime); color: var(--rr-on-accent); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }

.sms { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.sms figure { margin: 0; }
.sms img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--rr-surface-2); display: block; }
.sms figcaption { font-size: 14px; color: var(--rr-text-muted); margin-top: 8px; }
blockquote { margin: 16px 0; padding: 14px 16px; background: var(--rr-surface); border-radius: 12px; color: var(--rr-text); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 16px 0; }
.facts dt { color: var(--rr-text); font-weight: 700; }
.facts dd { margin: 0; color: var(--rr-text-muted); }

.placeholder { background: var(--rr-warn-bg); color: var(--rr-warn); border-radius: 6px; padding: 1px 6px; font-weight: 700; }

.draft { background: var(--rr-warn-bg); color: var(--rr-warn); border: 1px solid var(--rr-warn); border-radius: 12px; padding: 12px 16px; font-weight: 700; margin: 0 0 24px; }

.legal { max-width: 760px; }
.legal h2 { margin-top: 40px; }
.legal .updated { font-size: 15px; }
.toc { background: var(--rr-surface); border-radius: var(--rr-radius); padding: 16px 20px; margin: 24px 0; }
.toc ol { margin: 0; padding-left: 20px; }

table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 15px; }
.table-scroll { overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rr-surface-2); color: var(--rr-text-muted); }
th { color: var(--rr-text); font-weight: 700; }

.foot { border-top: 1px solid var(--rr-surface); padding: 28px 0 40px; font-size: 15px; }
.foot .wrap { display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }

@media (max-width: 720px) {
  main { padding-top: 28px; }
  .sms { grid-template-columns: 1fr; }
  .sms figure { max-width: 300px; }
  .facts { grid-template-columns: 1fr; }
  .facts dd { margin-bottom: 8px; }
  .top nav { margin-left: 0; width: 100%; gap: 14px; }
  .foot nav { margin-left: 0; }
}
