:root {
  color-scheme: dark;
  --bg: #0c1117;
  --surface: #121923;
  --surface-strong: #182230;
  --ink: #f4f7f3;
  --muted: #a7b3c2;
  --line: #263344;
  --brand: #42c98d;
  --brand-dark: #7ae0b4;
  --button-bg: #33b57a;
  --button-hover: #279765;
  --button-text: #07110c;
  --accent: #f1c84b;
  --soft: #182b25;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f8faf7;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #151a21;
  --muted: #657080;
  --line: #dfe7dc;
  --brand: #1f7a5a;
  --brand-dark: #145a42;
  --button-bg: #1f7a5a;
  --button-hover: #145a42;
  --button-text: #ffffff;
  --accent: #f1c84b;
  --soft: #eef5ef;
  --shadow: 0 24px 80px rgba(32, 42, 53, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

button {
  font: inherit;
}

.site-header {
  width: min(1160px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  font-size: 20px;
  font-weight: 800;
}

.nav,
.footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover,
.footer a:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--button-text);
  padding: 0 18px;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(33, 192, 127, 0.2);
}

.button:hover {
  background: var(--button-hover);
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.theme-toggle {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}

.theme-toggle:hover {
  border-color: var(--brand);
}

.hero {
  width: min(1160px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 56px;
  padding: 36px 0 68px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.hero-text {
  max-width: 590px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.product-preview {
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.preview-topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
}

.preview-topbar span:first-child {
  width: 74px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef6b51 0 26%, var(--accent) 26% 58%, #4cae79 58%);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 18px;
  padding: 20px;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.calendar > div {
  min-height: 42px;
  border-radius: 8px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar .slot {
  min-height: 118px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 12px;
  color: var(--ink);
  font-weight: 750;
}

.calendar .active {
  background: color-mix(in srgb, var(--brand) 18%, var(--soft));
  outline: 2px solid color-mix(in srgb, var(--brand) 28%, transparent);
}

.queue {
  display: grid;
  align-content: start;
  gap: 12px;
}

.queue-title {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.queue-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-strong);
}

.queue-item span {
  color: var(--muted);
  font-size: 14px;
}

.queue-item strong {
  font-size: 15px;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  border-top: 1px solid var(--line);
}

.split p,
.pricing p,
.contact p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.feature-grid article {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.feature-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.steps {
  border-top: 1px solid var(--line);
}

.steps ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  color: var(--muted);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.pricing,
.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
}

.pricing div,
.contact div {
  max-width: 720px;
}

.contact-panel {
  width: min(360px, 100%);
  display: grid;
  gap: 12px;
}

.contact-panel a {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.contact-panel a:hover {
  border-color: var(--brand);
}

.contact-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-panel strong {
  font-size: 18px;
}

.footer {
  width: min(1160px, calc(100% - 32px));
  min-height: 86px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer span {
  color: var(--ink);
  font-weight: 800;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 88px;
}

.legal-hero {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-size: clamp(42px, 6vw, 68px);
}

.legal-hero p:last-child {
  color: var(--muted);
  font-size: 16px;
}

.legal-content {
  padding-top: 34px;
}

.legal-content h2 {
  margin: 42px 0 12px;
  font-size: 26px;
  line-height: 1.15;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.legal-content a {
  color: var(--brand-dark);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content ul,
.legal-content ol {
  display: grid;
  gap: 8px;
  padding-left: 24px;
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 52px;
  }

  .product-preview {
    min-height: 0;
  }

  .preview-grid,
  .split,
  .pricing,
  .contact {
    grid-template-columns: 1fr;
  }

  .preview-grid {
    display: grid;
  }

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

@media (max-width: 620px) {
  .button {
    width: 100%;
  }

  .site-header .button {
    width: auto;
  }

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

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

  .calendar .slot {
    min-height: 82px;
  }

  .section {
    padding: 58px 0;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 0;
  }

  .footer nav {
    flex-wrap: wrap;
  }
}
