/*
 * Shared styles for the Unrol landing + legal pages.
 * Design tokens mirror apps/web/app/globals.css (DESIGN.md §4-5): warm near-white
 * page, dark text, one restrained accent; serif headings, sans UI text.
 */
:root {
  --page: hsl(40 30% 98%);
  --surface: hsl(40 20% 96%);
  --border: hsl(40 10% 88%);
  --foreground: hsl(30 10% 15%);
  --muted: hsl(30 6% 40%);
  --accent: hsl(18 72% 42%);
  --accent-foreground: hsl(40 30% 98%);
  --radius: 0.375rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: hsl(30 8% 10%);
    --surface: hsl(30 8% 14%);
    --border: hsl(30 6% 24%);
    --foreground: hsl(40 20% 92%);
    --muted: hsl(40 8% 65%);
    --accent: hsl(18 75% 58%);
    --accent-foreground: hsl(30 8% 10%);
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--foreground);
  font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
}
.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem; /* 16px side gutter */
}

/* Header */
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}
.wordmark {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--foreground);
  text-decoration: none;
}
.tag {
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

/* Hero */
.hero {
  padding: 2.5rem 0 1rem;
}
h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.lede {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 1rem 0 0;
  max-width: 34rem;
}

/* Paste → unroll mock */
.mock {
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem 1.25rem;
}
.mock .url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  color: var(--muted);
  word-break: break-all;
}
.mock .arrow {
  color: var(--accent);
  margin: 0.5rem 0;
  font-weight: 600;
}
.mock .out {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.05rem;
}

/* Sections / feature grid */
section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}
h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}
.card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
ol.steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
ol.steps li {
  margin: 0.4rem 0;
}
ol.steps strong {
  color: var(--foreground);
  font-weight: 600;
}
.note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Legal pages */
.page-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  margin: 1rem 0 0;
}
.banner {
  margin: 1rem 0 0;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}
.prose {
  margin-top: 2rem;
}
.prose section {
  padding: 0;
  border: 0;
  margin-bottom: 1.5rem;
}
.prose h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.prose p,
.prose li {
  color: var(--muted);
  font-size: 0.95rem;
}
.prose ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
.prose li {
  margin: 0.25rem 0;
}
.prose strong {
  color: var(--foreground);
}
.prose a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.back {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.9rem;
}

/* Footer */
footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.foot-links {
  margin-top: 0.5rem;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
