:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-muted: #eef3eb;
  --text: #151816;
  --muted: #646b66;
  --line: #dfe5dc;
  --accent: #2f9e63;
  --accent-deep: #1b7a47;
  --cyan: #1e88a8;
  --amber: #f59e0b;
  --shadow: 0 18px 50px rgba(22, 35, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

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

a {
  color: var(--accent-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 244, 0.94);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent-deep);
}

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

.hero {
  padding: 72px 0 56px;
  overflow: hidden;
}

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

.eyebrow {
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  line-height: 1.18;
  margin: 0;
}

h1 {
  font-size: 3.25rem;
  font-weight: 800;
}

h2 {
  font-size: 2rem;
  font-weight: 760;
}

h3 {
  font-size: 1.12rem;
  font-weight: 740;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  margin: 20px 0 0;
  max-width: 690px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: white;
}

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

.hero-visual {
  position: relative;
  min-height: 520px;
}

.phone-frame {
  width: 278px;
  margin-left: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #111;
  padding: 7px;
}

.phone-frame.secondary {
  position: absolute;
  left: 0;
  bottom: 24px;
  width: 222px;
  transform: rotate(-3deg);
}

.phone-frame img {
  border-radius: 4px;
}

.app-icon-large {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(30, 136, 168, 0.22);
  margin-bottom: 22px;
}

.section {
  padding: 58px 0;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head p {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 680px;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.card p {
  color: var(--muted);
  margin: 10px 0 0;
}

.marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  margin-bottom: 16px;
  color: white;
  font-weight: 800;
}

.marker.green {
  background: var(--accent);
}

.marker.cyan {
  background: var(--cyan);
}

.marker.amber {
  background: var(--amber);
}

.screen-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.screen-shot {
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #111;
}

.app-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.app-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  text-decoration: none;
  color: var(--text);
}

.app-card img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
}

.app-card p {
  color: var(--muted);
  margin: 6px 0 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  padding: 54px 0 72px;
}

.toc {
  position: sticky;
  top: 84px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent-deep);
}

.doc {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 34px;
}

.doc h1 {
  font-size: 2.4rem;
}

.doc h2 {
  font-size: 1.35rem;
  margin-top: 34px;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc ul {
  padding-left: 1.2rem;
}

.note {
  border-left: 4px solid var(--amber);
  background: #fff8ea;
  padding: 14px 16px;
  color: #5c4104;
  margin: 22px 0;
}

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

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

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

@media (max-width: 920px) {
  .hero-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 470px;
  }

  .phone-frame {
    margin: 0 auto;
  }

  .phone-frame.secondary {
    left: 8%;
  }

  .toc {
    position: static;
  }

  .card-grid,
  .screen-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    width: min(100% - 28px, 1120px);
    align-items: flex-start;
  }

  .nav-links {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 0.88rem;
  }

  .wrap {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding: 44px 0 34px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.58rem;
  }

  .hero-visual {
    min-height: 400px;
  }

  .phone-frame {
    width: 232px;
  }

  .phone-frame.secondary {
    width: 178px;
    bottom: 8px;
  }

  .section {
    padding: 40px 0;
  }

  .section-head {
    display: block;
  }

  .app-card {
    grid-template-columns: 62px minmax(0, 1fr);
    padding: 14px;
  }

  .app-card img {
    width: 54px;
    height: 54px;
  }

  .doc {
    padding: 22px;
  }

  .doc h1 {
    font-size: 2rem;
  }
}
