:root {
  --navy: #131338;
  --yellow: #febb00;
  --yellow-hover: #e5a800;
  --coral: #ff5d44;
  --gray-muted: #9b9da0;
  --surface: #ffffff;
  --background: #fafafa;
  --border: #e8e8ec;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --container: 1100px;
  --container-narrow: 720px;
  --shadow: 0 4px 24px rgba(19, 19, 56, 0.08);
  --shadow-lg: 0 8px 40px rgba(19, 19, 56, 0.1);
  --screenshot-width: 2880;
  --screenshot-height: 1758;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--navy);
  background: var(--background);
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.site-logo img {
  height: 2rem;
  width: auto;
  aspect-ratio: 140 / 51;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav__link {
  display: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-muted);
  border-radius: var(--radius);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav__link:hover {
  color: var(--navy);
  background: rgba(19, 19, 56, 0.04);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--lg {
  min-height: 2.75rem;
  padding: 0 1.25rem;
  font-size: 0.9375rem;
}

.btn--ghost {
  color: var(--navy);
}

.btn--ghost:hover {
  background: rgba(19, 19, 56, 0.06);
}

.btn--primary {
  background: var(--yellow);
  color: var(--navy);
}

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

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}

.btn--outline:hover {
  background: var(--surface);
  border-color: var(--gray-muted);
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section--surface {
  background: var(--surface);
}

.section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section__lead {
  margin: 0;
  font-size: 1.125rem;
  color: var(--gray-muted);
  line-height: 1.6;
}

.section__lead--center {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-muted);
}

/* Changelog */

.changelog-lead {
  margin-bottom: 2.5rem;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.changelog-entry {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.changelog-entry:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.changelog-entry__date {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-muted);
}

.changelog-entry__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.changelog-entry__items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.changelog-entry__items li {
  color: var(--navy);
  line-height: 1.55;
}

.changelog-empty {
  margin: 0;
  color: var(--gray-muted);
}

.changelog-more {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.changelog-more[hidden] {
  display: none;
}

.site-nav__link[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}

/* Hero */

.hero {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero__content {
  text-align: center;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__subtitle {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--gray-muted);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--gray-muted);
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hero__trust li::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

/* Browser frame */

.browser-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.browser-frame--hero {
  max-width: 100%;
  margin: 0 auto;
}

.browser-frame__chrome {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.browser-frame__dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: #e0e0e5;
  flex-shrink: 0;
}

.browser-frame__url {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-frame__media {
  aspect-ratio: var(--screenshot-width) / var(--screenshot-height);
  background: #f4f4f7;
  overflow: hidden;
}

.browser-frame__media .screenshot {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  vertical-align: top;
}

/* Screenshot placeholders (unused when PNGs are wired) */

.screenshot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  aspect-ratio: 2880 / 1758;
  background:
    linear-gradient(135deg, rgba(254, 187, 0, 0.06) 0%, transparent 50%),
    linear-gradient(225deg, rgba(255, 93, 68, 0.04) 0%, transparent 50%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(19, 19, 56, 0.02) 8px,
      rgba(19, 19, 56, 0.02) 9px
    ),
    #f4f4f7;
}

.screenshot-placeholder__label {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-muted);
  background: rgba(255, 255, 255, 0.85);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Feature grid */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
  border-color: rgba(254, 187, 0, 0.4);
  box-shadow: var(--shadow);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: rgba(254, 187, 0, 0.12);
  color: var(--navy);
}

.feature-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.feature-card__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-muted);
  line-height: 1.55;
}

.feature-footnote {
  margin: 2rem 0 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--gray-muted);
  line-height: 1.55;
}

/* Workflow */

.workflow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem 0.25rem;
}

.workflow__step {
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.workflow__step--accent {
  background: rgba(254, 187, 0, 0.15);
  border-color: rgba(254, 187, 0, 0.35);
}

.workflow__arrow {
  font-size: 0.75rem;
  color: var(--gray-muted);
  user-select: none;
}

.workflow__label {
  white-space: nowrap;
}

/* Screenshot gallery */

.screenshot-gallery {
  max-width: 100%;
  margin: 0 auto;
}

.screenshot-tabs {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 1rem;
  min-height: 2.375rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screenshot-tabs::-webkit-scrollbar {
  display: none;
}

.screenshot-tab {
  flex-shrink: 0;
  padding: 0.5rem 0.875rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.screenshot-tab:hover {
  color: var(--navy);
  border-color: var(--gray-muted);
}

.screenshot-tab.is-active {
  color: var(--navy);
  background: rgba(254, 187, 0, 0.15);
  border-color: rgba(254, 187, 0, 0.45);
}

.screenshot-panels {
  display: grid;
  grid-template-areas: "panel";
}

.screenshot-panel {
  grid-area: panel;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.screenshot-panel.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.screenshot-caption {
  margin: 1rem 0 0;
  min-height: 3.1rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--gray-muted);
  line-height: 1.55;
}

/* Setup steps */

.setup-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: setup;
}

.setup-step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.setup-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 50%;
}

.setup-step__title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.setup-step__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-muted);
  line-height: 1.55;
}

/* CTA band */

.cta-band {
  background: var(--navy);
  color: var(--surface);
}

.cta-band__inner {
  text-align: center;
}

.cta-band__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cta-band__text {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

/* Footer */

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--gray-muted);
}

.site-footer__nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
}

.site-footer__nav a {
  color: var(--gray-muted);
  transition: color 0.15s ease;
}

.site-footer__nav a:hover {
  color: var(--navy);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--gray-muted);
}

/* Responsive */

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

  .setup-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .site-nav__link {
    display: inline-flex;
  }

  .site-nav {
    gap: 0.5rem;
  }

  .hero {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
  }

  .section {
    padding: 5.5rem 0;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .site-header__inner {
    min-height: 3.5rem;
  }

  .site-logo img {
    height: 1.625rem;
  }

  .btn {
    min-height: 2.25rem;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
  }

  .btn--lg {
    min-height: 2.5rem;
    padding: 0 1rem;
    font-size: 0.875rem;
  }

  .hero {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .workflow__arrow {
    display: none;
  }

  .workflow {
    gap: 0.5rem;
  }
}
