/* Policyhold campaign site — dark semantic tokens */
: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);
  --border: oklch(0.93 0.004 286 / 12%);
  --border-strong: oklch(0.93 0.004 286 / 20%);
  --border-focus: oklch(0.72 0.04 220);
  --interactive: oklch(0.88 0.006 286);
  --interactive-hover: oklch(0.93 0.004 286);
  --interactive-fg: oklch(0.16 0.006 286);
  --status-active: oklch(0.55 0.14 145);
  --status-pending: oklch(0.72 0.12 85);
  --status-expired: oklch(0.55 0.01 286);
  --risk-high: oklch(0.55 0.2 25);
  --risk-low: oklch(0.58 0.14 145);
  --radius-lg: 0.5rem;
  --radius-md: 0.375rem;
  --max-width: 72rem;
  --header-height: 3.5rem;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.25);
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

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

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--interactive);
  color: var(--interactive-fg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 1rem;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  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;
  }
}

.section--raised {
  background-color: var(--surface-raised);
  border-block: 1px solid var(--border);
}

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

/* Header */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background-color: oklch(0.16 0.006 286 / 90%);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 0.5rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

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

.wordmark__text {
  font-size: 1rem;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

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

  .menu-toggle {
    display: none;
  }
}

.site-nav a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  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, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

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

.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--lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
}

.header-cta {
  display: none;
}

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

/* Mobile menu */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-md);
}

.menu-toggle:hover {
  color: var(--text-primary);
}

.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-height);
  z-index: 40;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav li + li {
  margin-top: 0.25rem;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

.mobile-nav a:hover {
  color: var(--text-primary);
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 1rem;
}

/* Main offset for fixed header */
main {
  padding-top: var(--header-height);
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

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

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(0.72 0.04 220 / 8%) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.72 0.04 220 / 8%) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: 4rem;
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-block: 5rem 6rem;
  }
}

.hero h1 .block {
  display: block;
}

.hero h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

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

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

.hero__lead {
  margin: 1.25rem 0 0;
  max-width: 32rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

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

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    align-items: center;
  }
}

/* Product 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-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

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

.preview-card__live {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.preview-card__live-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: var(--status-active);
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.preview-table th,
.preview-table td {
  padding: 0.625rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.preview-table th {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.preview-table tr:last-child td {
  border-bottom: none;
}

.preview-table .vendor {
  color: var(--text-primary);
  font-weight: 500;
}

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

.status-pill {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  border-radius: 9999px;
}

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

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

.status-pill--expired {
  background-color: oklch(0.55 0.2 25 / 15%);
  color: var(--risk-high);
}

.expiry--urgent {
  color: var(--risk-high);
  font-weight: 500;
}

.expiry--ok {
  color: var(--risk-low);
  font-weight: 500;
}

.expiry-sub {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 400;
}

.preview-card__footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background-color: oklch(0.2 0.008 286 / 50%);
}

.preview-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.preview-field__label {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.preview-field__value {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 0.125rem;
}

.preview-field__value--mono {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
}

/* Typography sections */
.section h2 {
  margin: 1rem 0 0;
  max-width: 42rem;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section__lead {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Problem cards */
.card-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

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

.problem-card {
  padding: 1.25rem 0 0 1rem;
  border-left: 2px solid var(--border-strong);
}

.problem-card__punch {
  margin: 0;
  font-weight: 500;
  color: var(--text-primary);
}

.problem-card__detail {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Steps */
.steps-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

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

.step-card {
  padding: 1.5rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.section--raised .step-card {
  background-color: var(--surface-raised);
}

.step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

.step-card h3 {
  margin: 1rem 0 0;
  font-size: 1rem;
  font-weight: 600;
}

.step-card p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Audience */
.audience-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .audience-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.audience-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.audience-list svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--status-active);
  margin-top: 0.125rem;
}

/* CTA section */
.cta-section {
  text-align: center;
}

.cta-section .section-label {
  display: block;
}

.cta-section h2 {
  margin-inline: auto;
  max-width: 40rem;
}

.cta-section .section__lead {
  margin-inline: auto;
  max-width: 36rem;
}

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

.cta-section__note {
  margin: 1rem auto 0;
  max-width: 28rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 640px) {
  .site-footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

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

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.site-footer__links a:hover {
  color: var(--text-secondary);
}

.site-footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.site-footer__bottom p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Legal / utility pages */
.legal-page {
  padding-block: 3rem 4rem;
}

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

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

.legal-page__intro {
  margin: 2rem 0 0;
  max-width: 42rem;
  color: var(--text-secondary);
}

.legal-page section {
  margin-top: 2.5rem;
  max-width: 42rem;
}

.legal-page h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.legal-page p,
.legal-page ul {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

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

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

/* 404 */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height) - 8rem);
  text-align: center;
  padding-block: 4rem;
}

.error-page h1 {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
}

.error-page p {
  margin: 1rem 0 0;
  color: var(--text-secondary);
  max-width: 24rem;
}

.error-page .btn {
  margin-top: 1.5rem;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}
