:root {
  color-scheme: light dark;
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-soft: #eef4ef;
  --ink: #17211c;
  --muted: #607068;
  --line: #d6dfd8;
  --accent: #f5b82e;
  --accent-ink: #221707;
  --link: #17685d;
  --shadow: 0 18px 48px rgba(21, 32, 28, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1512;
    --surface: #151d19;
    --surface-soft: #18251f;
    --ink: #f4f6f1;
    --muted: #b3c0b8;
    --line: #2a372f;
    --link: #77decf;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

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

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

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 800;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.language-switcher select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
}

.hero,
.section {
  padding: 64px 0;
}

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

.hero.compact {
  padding: 48px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 48px;
  align-items: center;
}

.hero-icon {
  width: 192px;
  height: 192px;
  border-radius: 40px;
  box-shadow: var(--shadow);
}

.product-visual {
  display: grid;
  justify-items: end;
  gap: 18px;
}

.product-visual .hero-icon {
  margin-inline-end: 18px;
}

.feature-graphic {
  width: min(360px, 100%);
  height: auto;
  aspect-ratio: 1024 / 500;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li,
.button {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.03;
}

h2 {
  margin-bottom: 18px;
  font-size: 1.75rem;
  line-height: 1.2;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.16rem;
}

.app-card,
.content-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}

.content-section p:last-child,
.content-section .list:last-child,
.content-section .faq-list:last-child {
  margin-bottom: 0;
}

.app-card {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.hero-grid > *,
.split > *,
.app-card > * {
  min-width: 0;
}

.app-card img {
  border-radius: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  max-width: 100%;
}

.actions.stacked {
  align-items: flex-start;
  flex-direction: column;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 800;
  line-height: 1.2;
  padding: 0 18px;
  text-align: center;
  white-space: normal;
}

.button:hover {
  color: var(--bg);
  text-decoration: none;
}

.button.secondary,
.button.disabled {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button.disabled {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.list + p,
p + .list {
  margin-top: 12px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list article {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.faq-list article:first-child {
  border-top: 0;
  padding-top: 0;
}

.faq-list p {
  color: var(--muted);
}

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

.screenshots {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.screenshots figure {
  margin: 0;
}

.screenshots img {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 0;
}

.meta-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px 14px;
}

.meta-list dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.meta-list dd {
  margin: 0;
}

.legal-body .content-section + .content-section {
  margin-top: 16px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.fallback-page {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 24px;
  text-align: center;
}

.fallback-page h1 {
  margin-inline: auto;
}

@media (max-width: 760px) {
  .nav,
  .nav-links,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    padding: 16px 0;
  }

  .hero-grid,
  .split,
  .app-card {
    grid-template-columns: 1fr;
  }

  .hero,
  .section {
    padding: 44px 0;
  }

  h1 {
    font-size: clamp(2.15rem, 10vw, 2.65rem);
  }

  .hero-icon {
    width: 144px;
    height: 144px;
    border-radius: 30px;
  }

  .product-visual {
    justify-items: start;
  }

  .feature-graphic {
    width: 100%;
  }

  .screenshots {
    grid-template-columns: repeat(5, 210px);
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
