/* RootCall shared design foundation. Page styles load after this file and may override tokens. */
:root {
  --rc-green: #0d3d2f;
  --rc-green-700: #0b3629;
  --rc-green-600: #124b39;
  --rc-green-500: #1a5c46;
  --rc-accent: #2d7a5f;
  --rc-mint: #4ade80;
  --rc-ivory: #f9f6f3;
  --rc-ink: #16201b;
  --rc-muted: #5b6b64;
  --rc-line: #e7e2db;
  --rc-danger: #b42318;
  --rc-success: #10b981;
  --rc-radius: 16px;
  --rc-radius-sm: 10px;
  --rc-shadow-sm: 0 1px 2px rgba(13, 61, 47, .06), 0 1px 3px rgba(13, 61, 47, .08);
  --rc-shadow-lg: 0 24px 60px -12px rgba(13, 61, 47, .25);
  --rc-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Type scale: never go below --rc-text-xs for readable content. */
  --rc-text-xs: .75rem;
  --rc-text-sm: .875rem;
  --rc-text-md: 1rem;
  --rc-text-lg: 1.25rem;
  --rc-text-xl: 1.75rem;
  --rc-text-2xl: 2.25rem;
}

:focus-visible {
  outline: 3px solid var(--rc-accent);
  outline-offset: 2px;
}
[tabindex="-1"]:focus { outline: none; }

.rc-skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--rc-radius-sm);
  background: var(--rc-green);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.rc-skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Document pages (privacy, terms) and status pages (404) */
.rc-page {
  margin: 0;
  min-height: 100vh;
  background: var(--rc-ivory);
  color: var(--rc-ink);
  font-family: var(--rc-font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.rc-page a { color: var(--rc-accent); text-underline-offset: 3px; }
.rc-page a:hover { color: var(--rc-green); }

.rc-header {
  background: linear-gradient(160deg, var(--rc-green), var(--rc-green-600));
  color: #fff;
}
.rc-header-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rc-header a { color: #fff; text-decoration: none; }
.rc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}
.rc-brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--rc-mint);
  color: var(--rc-green);
  font-weight: 900;
}
.rc-header nav { display: flex; gap: 20px; font-size: var(--rc-text-sm); }
.rc-header nav a { opacity: .85; }
.rc-header nav a:hover, .rc-header nav a[aria-current="page"] { opacity: 1; text-decoration: underline; }

.rc-doc {
  max-width: 880px;
  margin: 32px auto 48px;
  padding: 36px clamp(20px, 5vw, 48px);
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: var(--rc-radius);
  box-shadow: var(--rc-shadow-sm);
}
.rc-doc h1 { margin: 0 0 4px; color: var(--rc-green); font-size: var(--rc-text-xl); line-height: 1.2; }
.rc-doc h2 { margin: 28px 0 8px; color: var(--rc-green); font-size: var(--rc-text-lg); }
.rc-doc .rc-meta { margin: 0 0 20px; color: var(--rc-muted); font-size: var(--rc-text-sm); }
.rc-doc ul { padding-left: 22px; }

.rc-footer {
  max-width: 880px;
  margin: 0 auto 40px;
  padding: 0 24px;
  color: var(--rc-muted);
  font-size: var(--rc-text-sm);
  text-align: center;
}

.rc-status {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.rc-status-card {
  max-width: 520px;
  padding: 40px clamp(24px, 5vw, 44px);
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: var(--rc-radius);
  box-shadow: var(--rc-shadow-lg);
  text-align: center;
}
.rc-status-code {
  margin: 0;
  color: var(--rc-accent);
  font-size: var(--rc-text-xs);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rc-status-card h1 { margin: 8px 0; color: var(--rc-green); font-size: var(--rc-text-xl); }
.rc-status-card p { color: var(--rc-muted); }
.rc-button {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--rc-green);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}
.rc-button:hover { background: var(--rc-green-600); }
