/* Recs website — the light scope of the Recs design system (the same palette
   as the welcome screen). Tokens mirror .claude/skills/recs-design/tokens. */

@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@700&family=Instrument+Sans:wght@400;500;600;700&display=swap");

:root {
  --surface-base: #FFFFFF;
  --surface-overlay: #EFEFEF;
  --ink-primary: #0A0A0A;
  --ink-secondary: #6B6B6B;
  --ink-tertiary: #A0A0A0;
  --stroke: #E4E4E4;
  --accent: #7A6CFF;
  --accent-deep: #6053D9;
  --cta-bg: #0A0A0A;
  --cta-ink: #FFFFFF;
  --font-ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-wordmark: "Oswald", "Instrument Sans", sans-serif;
  --gutter: 20px;
  --ease-spring: cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--surface-base);
  color: var(--ink-primary);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* The "Recs" wordmark: Oswald 700, all caps, −2% tracking — the one place
   Oswald and capitals are allowed. */
.wordmark {
  display: inline-block;
  font-family: var(--font-wordmark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink-primary);
}

.page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header {
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: 8px;
}

.site-header .wordmark {
  font-size: 32px;
}

/* Primary CTA: the pill, dark ink on white in the app, inverted here on the
   light ground exactly as the welcome screen does it. */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 200ms var(--ease-spring), opacity 200ms ease;
}

.cta:hover {
  opacity: 0.86;
}

.cta:active {
  transform: scale(0.98);
}

.site-footer {
  padding: 32px 0 max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--stroke);
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 12px;
}

.site-footer a {
  color: var(--ink-primary);
  font-weight: 500;
  padding: 6px 0;
}

.site-footer a:hover {
  opacity: 0.7;
}

.site-footer p {
  margin: 0;
}

/* Legal documents. */
.doc {
  padding: 28px 0 56px;
  max-width: 680px;
}

.doc h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 12px;
}

.doc .effective {
  color: var(--ink-secondary);
  font-size: 15px;
  margin: 0 0 32px;
}

.doc h2 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 36px 0 10px;
}

.doc p {
  margin: 0 0 16px;
}

.doc p a,
.doc td a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 15px;
  line-height: 1.45;
}

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

.doc th {
  font-weight: 600;
  color: var(--ink-secondary);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* On a phone each processor becomes its own card-like block. */
@media (max-width: 600px) {
  .doc thead {
    display: none;
  }

  .doc table,
  .doc tbody,
  .doc tr,
  .doc td {
    display: block;
    width: 100%;
  }

  .doc tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--stroke);
  }

  .doc td {
    padding: 2px 0;
    border: 0;
  }

  .doc td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink-secondary);
    margin-top: 6px;
  }

  .doc td:first-child {
    font-weight: 600;
  }

  .doc td:first-child::before {
    display: none;
  }
}

.doc .back {
  display: inline-block;
  margin-top: 40px;
  color: var(--ink-secondary);
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
