/* Policyhold dark semantic tokens (static landing) */
:root {
  --surface: oklch(0.16 0.006 286);
  --surface-raised: oklch(0.2 0.008 286);
  --surface-overlay: oklch(0.24 0.01 286);
  --text-primary: oklch(0.93 0.004 286);
  --text-secondary: oklch(0.72 0.008 286);
  --text-muted: oklch(0.58 0.01 286);
  --text-disabled: oklch(0.45 0.01 286);
  --border: oklch(0.93 0.004 286 / 12%);
  --border-strong: oklch(0.93 0.004 286 / 20%);
  --border-focus: oklch(0.72 0.02 286);
  --interactive: oklch(0.88 0.006 286);
  --interactive-hover: oklch(0.93 0.004 286);
  --interactive-active: oklch(0.97 0.003 286);
  --primary-foreground: oklch(0.21 0.006 286);
  --risk-high: oklch(0.55 0.2 25);
  --risk-medium: oklch(0.72 0.14 85);
  --risk-low: oklch(0.58 0.14 145);
  --status-active: oklch(0.55 0.14 145);
  --status-pending: oklch(0.72 0.12 85);
  --status-blocked: oklch(0.55 0.2 25);
  --radius-lg: 0.5rem;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.06);
  --shadow-md: 0 2px 8px oklch(0 0 0 / 0.08);
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 3.5rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

/* Layout */
.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

.section {
  padding-block: 4rem;
}

@media (min-width: 640px) {
  .section {
    padding-block: 5rem;
  }
}

/* Typography */
.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-title {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.hero-title .block {
  display: block;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.25rem;
  }
}

.section-title {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 3.5rem;
  border-bottom: 1px solid var(--border);
  background-color: oklch(0.16 0.006 286 / 90%);
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.wordmark img {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
  white-space: nowrap;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--interactive);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: var(--interactive-hover);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-outline:hover {
  background-color: var(--surface-overlay);
}

.btn-arrow::after {
  content: "→";
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 3.5rem;
  background-color: var(--surface);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 4rem;
}

@media (min-width: 640px) {
  .hero-content {
    padding-block: 5rem;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding-block: 6rem;
  }
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-copy {
  min-width: 0;
}

.hero-subhead {
  margin: 1.25rem 0 0;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }
}

/* Preview card */
.preview-card {
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preview-body {
  padding: 1rem;
}

.preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.preview-row:last-child {
  border-bottom: none;
}

.preview-vendor {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.preview-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-lg);
  background-color: var(--surface-overlay);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.preview-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.preview-status {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.status-active {
  color: var(--status-active);
  background-color: oklch(0.58 0.14 145 / 15%);
}

.status-pending {
  color: var(--status-pending);
  background-color: oklch(0.72 0.12 85 / 15%);
}

.status-blocked {
  color: var(--status-blocked);
  background-color: oklch(0.55 0.2 25 / 15%);
}

/* Features */
.features {
  border-top: 1px solid var(--border);
  background-color: var(--surface);
  scroll-margin-top: 3.5rem;
}

.features-intro {
  max-width: 48rem;
}

.features-intro .section-label {
  display: block;
}

.features-intro .section-title {
  margin-top: 1rem;
}

.features-intro .body-lg {
  margin-top: 1rem;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 0;
}

.card-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background-color: var(--surface-overlay);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

.card-body {
  padding: 0.75rem 1.25rem 1.25rem;
  flex: 1;
}

.card-body p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Closing CTA */
.closing-cta {
  background-color: var(--surface);
  text-align: center;
}

.closing-cta .body-lg {
  max-width: 42rem;
  margin-inline: auto;
  margin-top: 1rem;
}

.closing-cta .section-title {
  margin-top: 0.75rem;
}

.closing-cta .btn {
  margin-top: 2rem;
}

.closing-footnote {
  max-width: 36rem;
  margin: 1rem auto 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background-color: var(--surface);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-tagline {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Legal / Privacy */
.legal-page {
  padding-top: 3.5rem;
}

.legal-header {
  max-width: 48rem;
  margin-inline: auto;
  padding-block: 3rem 2rem;
  text-align: center;
}

.legal-header h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.legal-header .body-lg {
  margin-top: 1rem;
}

.legal-meta {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-content {
  max-width: 48rem;
  margin-inline: auto;
  padding-bottom: 4rem;
}

.legal-content p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-content a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--interactive-hover);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-back:hover {
  color: var(--text-primary);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
