/* Rewild marketing site — shared styles.
 * Palette and faces mirror the app's generated light theme (rewild-app
 * src/design-system/tokens/theme.generated.css): canvas/surface/text/border and the
 * pine brand ramp are the app's own values, so the site and the app read as one thing.
 * Light-only on purpose: this is the app's shipping look.
 *
 * Fonts are SELF-HOSTED (latin subsets, downloaded from Google Fonts once) so no
 * visitor request ever reaches a third-party host — which is what lets the homepage
 * say "no trackers" about the site itself, not only about the app. */

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/SchibstedGrotesk-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Newsreader-500-italic.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --canvas: #f7f8f3;
  --surface: #fcfcfb;
  --text: #484943;
  --text-muted: #65655f;
  --border: #cbccc5;
  --border-subtle: #dcddd6;
  --brand: #165a45;
  --brand-hover: #0f4433;
  --brand-rest: #ebf3f1;
  --brand-text: #506b5f;
  --on-brand: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --measure: 40rem;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── header ─────────────────────────────────────────────────────────────── */

.site-header {
  padding: 1.5rem 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  color: var(--brand);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding-block: 4.5rem 3.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 auto 1.1rem;
  max-width: 46rem;
}

.hero h1 em {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--brand);
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 auto 2rem;
}

.badge {
  display: inline-block;
  background: var(--brand-rest);
  color: var(--brand);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ── sections ───────────────────────────────────────────────────────────── */

section.wrap {
  padding-block: 2.75rem;
}

.section-title {
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 0.4rem;
  text-align: center;
}

.section-sub {
  color: var(--text-muted);
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.2rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  color: var(--brand);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem 1.15rem 3.4rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.15rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

.promise {
  background: var(--brand);
  color: var(--on-brand);
  border-radius: var(--radius-lg);
  padding: 2.4rem 1.8rem;
  text-align: center;
}

.promise h2 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  letter-spacing: -0.015em;
}

.promise p {
  margin: 0 auto;
  max-width: 36rem;
  color: #dcebe5;
}

.promise a {
  color: var(--on-brand);
  font-weight: 600;
}

/* ── footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: 3rem;
  padding: 2.2rem 0 2.8rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  justify-content: space-between;
  align-items: baseline;
}

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

/* ── legal pages ────────────────────────────────────────────────────────── */

.legal {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 0 1rem;
}

.legal h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.3rem;
}

.legal .effective {
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 0.95rem;
}

.legal h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 2.2rem 0 0.5rem;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.35rem;
}

.legal p,
.legal li {
  color: var(--text);
}

.legal ul {
  padding-left: 1.3rem;
}

.legal a {
  color: var(--brand);
}

.legal .aside {
  background: var(--brand-rest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.97rem;
}
