:root {
  color-scheme: light;
  --bg: #f4f4f5;
  --card: #ffffff;
  --text: #18181b;
  --muted: #52525b;
  --subtle: #71717a;
  --border: #e4e4e7;
  --border-soft: rgba(228, 228, 231, 0.8);
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--violet-600);
  text-decoration: none;
}

a:hover {
  color: var(--violet-700);
  text-decoration: underline;
}

/* Header — matches frontend Header.tsx */
.site-header {
  display: flex;
  height: 4rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  background: var(--bg);
}

@media (min-width: 1024px) {
  .site-header {
    padding: 0 1.5rem;
  }
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.header-brand:hover {
  text-decoration: none;
}

.header-logo {
  height: 2rem;
  width: auto;
}

.header-tagline {
  display: none;
  height: 2rem;
  align-items: center;
  border-left: 1px solid var(--border);
  padding-left: 1rem;
}

@media (min-width: 640px) {
  .header-tagline {
    display: flex;
  }
}

.header-tagline p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.25;
  color: #4b5563;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 1rem;
  border-radius: 0.5rem;
  background: var(--violet-600);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--violet-700);
  color: #fff;
  text-decoration: none;
}

/* Layout */
.page-layout {
  padding: 0.75rem 1rem 2rem;
}

@media (min-width: 1024px) {
  .page-layout {
    padding: 1rem 1.25rem 3rem;
  }
}

.page-main {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .page-main {
    gap: 1.25rem;
  }
}

/* Floating panel — matches FloatingPanel.tsx */
.panel {
  border-radius: 1rem;
  border: 1px solid var(--border-soft);
  background: var(--card);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

@media (min-width: 1024px) {
  .panel {
    padding: 1.5rem;
  }
}

/* Hero */
.hero-panel {
  overflow: hidden;
  padding: 0;
}

.hero-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e4e4e7;
}

.hero-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-body {
  padding: 1.25rem;
}

@media (min-width: 1024px) {
  .hero-body {
    padding: 1.5rem;
  }
}

.hero-body h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .hero-body h1 {
    font-size: 2rem;
  }
}

.hero-lede {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 1.25rem;
  border-radius: 0.5rem;
  background: var(--violet-600);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: var(--violet-700);
  color: #fff;
  text-decoration: none;
}

/* Content */
.content-panel h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.content-panel h2:first-child {
  margin-top: 0;
}

.content-panel h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.content-panel p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.content-panel ul,
.content-panel ol {
  margin: 0 0 1rem;
  padding-left: 1.375rem;
  color: var(--muted);
}

.content-panel li {
  margin-bottom: 0.375rem;
}

.content-panel li strong {
  color: var(--text);
}

.related-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.related-links h2 {
  margin-top: 0;
  font-size: 1.125rem;
}

.related-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.related-links li {
  margin: 0;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item h3 {
  margin: 0 0 0.375rem;
}

.faq-item p {
  margin: 0;
}

/* Footer */
.site-footer {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  color: var(--subtle);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

.image-credit {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--subtle);
}

.image-credit a {
  color: var(--subtle);
}
