:root {
  color-scheme: light;
  --bg: #faf8f6;
  --surface: #ffffff;
  --surface-muted: #edf4f7;
  --text: #20272b;
  --muted: #667178;
  --primary: #dd6e42;
  --primary-dark: #9f4324;
  --secondary: #c0d6df;
  --accent: #2f6f7e;
  --border: #e8ded8;
  --shadow: 0 22px 60px rgba(32, 39, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 246, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
}

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

.nav-links a,
.site-footer a {
  text-decoration: none;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--primary);
}

.language-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 3px;
}

.language-toggle button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  padding: 7px 10px;
}

.language-toggle button.active {
  background: var(--primary);
  color: #fff;
}

.hero,
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 84px 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 82px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: 60px;
  line-height: 1.02;
}

h2 {
  margin-bottom: 14px;
  font-size: 40px;
  line-height: 1.12;
}

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

.hero-text,
.section-heading p,
.feature-grid p,
.pricing-grid p,
.preview-notes p,
.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 800;
  padding: 0 18px;
  text-decoration: none;
}

.primary-action {
  background: var(--primary);
  color: #fff;
}

.secondary-action {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary-dark);
}

.hero-checklist {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.hero-checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.hero-checklist li::before {
  position: absolute;
  top: 0.5em;
  left: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(221, 110, 66, 0.14);
  content: "";
}

.hero-metrics {
  display: grid;
  max-width: 640px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.hero-metrics div,
.feature-grid article,
.pricing-grid article,
.preview-notes,
.legal-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.hero-metrics div {
  padding: 16px;
}

.hero-metrics dt {
  font-size: 24px;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.phone-frame {
  position: relative;
  overflow: hidden;
  border: 10px solid #20272b;
  border-radius: 34px;
  background: #20272b;
  box-shadow: var(--shadow);
}

.phone-frame.large {
  width: min(100%, 330px);
  height: 640px;
}

.phone-frame.hero-demo {
  width: min(100%, 360px);
  height: 690px;
  justify-self: end;
}

.phone-speaker {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 2;
  width: 84px;
  height: 5px;
  border-radius: 999px;
  background: #445056;
  transform: translateX(-50%);
}

.phone-screen,
.phone-frame iframe {
  width: 100%;
  min-height: 640px;
  border: 0;
  border-radius: 24px;
  background: var(--bg);
}

.phone-frame.large iframe {
  height: 100%;
}

.phone-frame.hero-demo iframe {
  height: 100%;
  min-height: 0;
}

.mock-screen {
  padding: 48px 18px 20px;
}

.mock-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  font-weight: 900;
}

.mock-card {
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.mock-card small {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
}

.mock-progress {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-muted);
}

.mock-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.mock-grid span {
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 18px 10px;
  text-align: center;
  font-weight: 800;
}

.mock-card.compact strong {
  font-size: 15px;
}

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

.feature-grid,
.pricing-grid,
.track-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article,
.pricing-grid article,
.track-grid article {
  padding: 22px;
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--accent);
  font-weight: 900;
}

.preview-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.track-section {
  padding-top: 34px;
}

.track-grid article {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fdfcfb;
}

.track-grid strong {
  color: var(--primary-dark);
  font-size: 22px;
}

.track-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.preview-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.preview-notes {
  padding: 24px;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-actions .primary-action,
.preview-actions .secondary-action {
  min-height: 44px;
  font-size: 14px;
}

.primary-action.disabled {
  cursor: not-allowed;
  opacity: 0.62;
  pointer-events: none;
}

.preview-notes code {
  display: block;
  overflow: auto;
  border-radius: 8px;
  background: #20272b;
  color: #fff5ef;
  padding: 14px;
}

.pricing-grid article.highlight {
  border-color: rgba(221, 110, 66, 0.45);
  background: #fff4ef;
}

.pricing-grid strong {
  display: block;
  margin-bottom: 14px;
  font-size: 24px;
}

.legal-cta-section {
  padding-top: 34px;
}

.legal-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 28px;
}

.legal-cta h2 {
  max-width: 720px;
}

.legal-cta p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 24px;
}

.legal-page h1 {
  font-size: 44px;
}

.legal-card {
  margin-top: 18px;
  padding: 22px;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

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

  .hero,
  .preview-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 36px;
    padding-top: 48px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .phone-frame {
    max-width: 360px;
    margin: 0 auto;
  }

  .phone-frame.hero-demo {
    justify-self: center;
  }

  .feature-grid,
  .pricing-grid,
  .track-grid {
    grid-template-columns: 1fr 1fr;
  }

  .legal-cta {
    grid-template-columns: 1fr;
  }

  .legal-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer {
    padding-inline: 16px;
  }

  .hero,
  .section,
  .legal-page {
    padding-inline: 16px;
  }

  h1 {
    font-size: 36px;
  }

  .hero-metrics,
  .feature-grid,
  .pricing-grid,
  .track-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions a,
  .legal-links a,
  .site-footer,
  .site-footer nav {
    width: 100%;
  }

  .site-footer,
  .site-footer nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .phone-frame.large {
    height: 610px;
  }
}
