:root {
  --bg: #f6f3ee;
  --surface: #fcfaf7;
  --surface-2: #f0ebe4;
  --surface-3: #e7e1d9;
  --text: #1f1c17;
  --muted: #6d675f;
  --border: rgba(31, 28, 23, 0.12);
  --primary: #0f766e;
  --primary-dark: #0a5c56;
  --success: #3f7a38;
  --warning: #b77716;
  --danger: #b4463d;
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.05);
  --shadow-md: 0 12px 30px rgba(17, 17, 17, 0.08);
  --shadow-lg: 0 24px 60px rgba(17, 17, 17, 0.12);
  --container: 72rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --text-xs: 0.78rem;
  --text-sm: 0.92rem;
  --text-base: 1rem;
  --text-lg: 1.15rem;
  --text-xl: clamp(1.8rem, 3vw, 2.5rem);
  --text-hero: clamp(2.6rem, 6vw, 4.8rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 30%),
    var(--bg);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: var(--text);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-tight {
  padding: 2rem 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(252, 250, 247, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-menu a:not(.button) {
  color: var(--muted);
  font-size: var(--text-sm);
}

.nav-menu a:not(.button):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.22rem;
}

.nav-toggle span {
  width: 1.1rem;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: 0.2s ease;
}

.button-primary {
  color: white;
  background: var(--primary);
  box-shadow: var(--shadow-sm);
}

.button-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.button-secondary {
  background: transparent;
  border-color: var(--border);
}

.button-secondary:hover {
  background: var(--surface);
  border-color: rgba(31, 28, 23, 0.22);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.hero h1,
.section-head h2,
.cta-copy h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 12ch;
  font-size: var(--text-hero);
}

.hero-text,
.section-text,
.cta-copy p,
.panel-copy p,
.feature-card p,
.step-card p,
.stat-card span {
  color: var(--muted);
}

.hero-text {
  max-width: 58ch;
  margin: var(--space-5) 0 0;
  font-size: var(--text-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: var(--space-8);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: var(--space-8) 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: var(--text-sm);
}

.hero-panel {
  background: rgba(252, 250, 247, 0.84);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.window-bar p {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 600;
}

.dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
}

.dot-red { background: #ea6b5e; }
.dot-yellow { background: #e8b04f; }
.dot-green { background: #62b572; }

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}

.preview-card {
  padding: 1rem;
  border-radius: 1.1rem;
  background: white;
  border: 1px solid rgba(31, 28, 23, 0.08);
  box-shadow: var(--shadow-sm);
}

.preview-card h2 {
  margin: 0.35rem 0;
  font-size: 1rem;
  line-height: 1.25;
}

.preview-card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

.preview-label {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
}

.is-overdue .preview-label {
  color: var(--danger);
}

.is-warning .preview-label {
  color: var(--warning);
}

.is-done .preview-label {
  color: var(--success);
}

.stats-grid,
.feature-grid,
.steps-grid {
  display: grid;
  gap: 1rem;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card,
.feature-card,
.step-card,
.tab-panel,
.cta-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(252, 250, 247, 0.85);
  box-shadow: var(--shadow-sm);
}

.stat-card {
  padding: 1.5rem 1rem;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: var(--text-xl);
  max-width: 14ch;
}

.section-text {
  margin-top: 1rem;
  max-width: 56ch;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.step-card {
  padding: 1.5rem;
}

.feature-card h3,
.step-card h3,
.panel-copy h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-number {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tab {
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.tab:hover {
  background: var(--surface);
  color: var(--text);
}

.tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.tab-panel {
  padding: 1.5rem;
  min-height: 11rem;
}

.cta-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-row p,
.footer-links a {
  color: var(--muted);
  font-size: var(--text-sm);
}

@media (max-width: 1024px) {
  .hero-grid,
  .cta-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .preview-grid,
  .feature-grid,
  .steps-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero-text {
    font-size: 1rem;
  }

  .button,
  .tab {
    width: 100%;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
    flex-direction: column;
  }
}