/* FigureRecord legal site — matches app DesignSystem */
:root {
  --ink: #061815;
  --moss: #0c4538;
  --moss-light: rgba(12, 69, 56, 0.14);
  --brass: #8f6b1f;
  --brass-light: rgba(143, 107, 31, 0.16);
  --page: #e4dfd4;
  --card: #ffffff;
  --stroke: #bfb6a3;
  --text: #0a1412;
  --text-secondary: #3d4a46;
  --text-tertiary: #667370;
  --shadow: 0 10px 40px rgba(6, 24, 21, 0.1);
  --radius: 16px;
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--moss);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brass);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 24, 21, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--moss), #0a5a49);
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Hero */
.hero {
  background: linear-gradient(165deg, var(--ink) 0%, var(--moss) 55%, #0a5a49 100%);
  color: #fff;
  padding: 56px 24px 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(143, 107, 31, 0.25), transparent),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
}

.hero-lead {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
  line-height: 1.6;
}

.hero-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Layout */
.page-body {
  max-width: 1100px;
  margin: -32px auto 0;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .page-body {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding-top: 32px;
  }

  .toc-card {
    position: static !important;
  }
}

/* TOC */
.toc-card {
  position: sticky;
  top: 88px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.toc-card h2 {
  margin: 0 0 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.toc-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-card li {
  margin: 0;
}

.toc-card a {
  display: block;
  padding: 8px 10px;
  margin: 2px 0;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
}

.toc-card a:hover {
  background: var(--moss-light);
  color: var(--moss);
}

/* Content */
.content-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 40px 44px;
  box-shadow: var(--shadow);
}

@media (max-width: 600px) {
  .content-card {
    padding: 28px 22px;
  }
}

.content-card section {
  margin-bottom: 40px;
  scroll-margin-top: 100px;
}

.content-card section:last-child {
  margin-bottom: 0;
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--moss-light);
}

.content-card h3 {
  margin: 24px 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--moss);
}

.content-card p,
.content-card li {
  color: var(--text-secondary);
}

.content-card ul,
.content-card ol {
  padding-left: 1.25rem;
  margin: 12px 0;
}

.content-card li {
  margin-bottom: 8px;
}

.callout {
  background: var(--moss-light);
  border-left: 4px solid var(--moss);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
}

.callout p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.callout-brass {
  background: var(--brass-light);
  border-left-color: var(--brass);
}

/* Support page extras */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.contact-card {
  background: var(--page);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 24, 21, 0.08);
}

.contact-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--moss);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--ink);
}

.contact-card p {
  margin: 0;
  font-size: 0.95rem;
}

.contact-card a {
  font-weight: 600;
}

.faq-item {
  border-bottom: 1px solid var(--stroke);
  padding: 20px 0;
}

.faq-item:first-of-type {
  padding-top: 0;
}

.faq-item h3 {
  margin-top: 0;
}

/* Footer */
.site-footer {
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 32px 24px 48px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  border-top: 1px solid var(--stroke);
}

.site-footer a {
  font-weight: 500;
}

/* Landing index */
.landing-cards {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.landing-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 36px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: block;
}

.landing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(6, 24, 21, 0.12);
  border-color: var(--moss);
}

.landing-card h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  color: var(--ink);
}

.landing-card p {
  margin: 0;
  color: var(--text-secondary);
}

.landing-card .arrow {
  margin-top: 20px;
  color: var(--moss);
  font-weight: 600;
  font-size: 0.95rem;
}
