:root {
  --bg: #fbfcfb;
  --surface: #ffffff;
  --text: #101713;
  --muted: #4f5e55;
  --soft: #f3f7f4;
  --line: #dfe7e1;
  --green: #18820f;
  --green-dark: #0f6509;
  --green-soft: #eaf7e9;
  --shadow: 0 14px 42px rgba(18, 37, 28, 0.08);
  --max: 1160px;
  --radius: 8px;
}

* { 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;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  font-size: 18px;
}
.logo-mark {
  width: 44px;
  height: auto;
  display: block;
  box-shadow: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 13px;
}
.nav-links a:hover, .nav-contact { color: var(--green-dark); }
.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.mail-icon { font-size: 13px; color: var(--text); }

.hero { padding: 36px 0 34px; }
.hero-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.12fr;
  gap: 42px;
  align-items: center;
}
.hero-copy { max-width: 470px; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 5.8vw, 64px);
  line-height: 1.06;
  letter-spacing: 0;
}
h2 { font-size: 18px; line-height: 1.18; margin-bottom: 10px; }
h3 { font-size: 17px; line-height: 1.2; margin-bottom: 8px; }
.lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 540px;
  margin-bottom: 26px;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--green);
  border-radius: 4px;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 720;
}
.btn.primary {
  color: #fff;
  background: linear-gradient(180deg, #1a9410 0%, #126f0c 100%);
  box-shadow: 0 8px 18px rgba(24, 130, 15, 0.16);
}
.btn.secondary {
  color: var(--text);
  background: #fff;
}
.hero-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  box-shadow: var(--shadow);
  background: #eef2ef;
}
.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 365 / 240;
  object-fit: cover;
}

.section { padding: 30px 0; }
.compact-section { padding-top: 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feature-card {
  min-height: 150px;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(18, 37, 28, 0.04);
}
.feature-icon {
  min-height: 28px;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 25px;
  line-height: 1;
}
.svg-icon {
  width: 34px;
  height: 34px;
}
.svg-icon svg {
  width: 34px;
  height: 34px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.code-icon {
  font-size: 19px;
  font-weight: 760;
  letter-spacing: 0;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-section { padding: 54px 0 68px; }
.contact-card {
  max-width: 720px;
  padding: 34px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-card p:not(.eyebrow) {
  color: var(--muted);
  margin-left: auto;
  margin-right: auto;
  max-width: 560px;
}

.swap-hero { padding: 42px 0 20px; }
.swap-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 42px;
  align-items: center;
}
.swap-copy h1 {
  font-size: clamp(34px, 4.5vw, 44px);
  margin-bottom: 8px;
}
.swap-feature-list {
  display: grid;
  gap: 18px;
  margin-top: 30px;
  max-width: 470px;
}
.swap-feature-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
}
.swap-feature-list article > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--green);
  border: 1px solid #b9dbb7;
  border-radius: 8px;
  font-weight: 800;
}
.swap-feature-list .swap-svg-icon svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.swap-feature-list h2 {
  color: var(--green-dark);
  font-size: 15px;
  margin: 0 0 3px;
}
.swap-feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.swap-device-stack {
  margin: 0;
  display: flex;
  justify-content: flex-end;
  overflow: visible;
}
.swap-device-stack > img {
  display: block;
  width: min(100%, 580px);
  filter: drop-shadow(0 18px 28px rgba(18, 37, 28, 0.12));
}
.swap-screen-gallery {
  width: min(100%, 660px);
  min-height: 370px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}
.app-screen {
  position: relative;
  flex: 0 0 148px;
  height: 316px;
  overflow: hidden;
  border: 3px solid #101713;
  border-radius: 30px;
  background: #f4f4f4;
  box-shadow: 0 18px 30px rgba(16, 23, 19, 0.16);
}
.app-screen + .app-screen { margin-left: -34px; }
.app-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame-feed { z-index: 1; transform: translateY(12px); }
.frame-location { z-index: 2; transform: translateY(-4px); }
.frame-profile { z-index: 5; transform: translateY(-20px); }
.frame-report { z-index: 3; transform: translateY(0); }
.frame-permission { z-index: 1; transform: translateY(18px); }
.legal-strip { padding-top: 18px; }
.legal-links-row {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 14px;
}
.legal-links-row a {
  color: var(--green-dark);
  font-weight: 650;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.page-hero { padding: 28px 0 18px; }
.page-hero h1 {
  font-size: clamp(34px, 4vw, 42px);
  margin-bottom: 10px;
}
.breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb a { color: var(--green-dark); }
.legal-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 42px;
  align-items: start;
  padding-bottom: 70px;
}
.toc {
  position: sticky;
  top: 98px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.toc strong {
  display: block;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.toc a {
  display: block;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--text);
  font-size: 13px;
}
.toc a:hover,
.toc a:first-of-type {
  border-color: #a8cfa4;
  background: #f6fbf6;
  color: var(--green-dark);
}
.legal-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  max-width: 790px;
}
.legal-card h2 {
  margin: 26px 0 8px;
  font-size: 20px;
}
.legal-card p, .legal-card li {
  color: #303b34;
  font-size: 14px;
}
.legal-card ul { padding-left: 20px; }
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 26px;
  background: #fff;
  border: 1px solid var(--line);
}
.info-table th,
.info-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
.info-table th {
  width: 190px;
  color: var(--green-dark);
  background: #f7fbf7;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 22px 0;
  color: var(--muted);
  font-size: 13px;
}
.footer-row {
  display: flex;
  align-items: center;
  gap: 22px;
}
.footer-row a,
.footer-links a {
  color: var(--green-dark);
  font-weight: 650;
}
.footer-links {
  display: flex;
  gap: 18px;
}

@media (max-width: 920px) {
  .container { width: min(100% - 36px, var(--max)); }
  .nav { min-height: 68px; }
  .nav-links { gap: 16px; font-size: 12px; }
  .logo { font-size: 16px; }
  .logo-mark { width: 40px; }
  .hero { padding-top: 28px; }
  .hero-grid,
  .swap-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .home-hero .hero-grid {
    display: flex;
    flex-direction: column;
  }
  .home-hero .hero-copy { order: 1; }
  .home-hero .hero-photo { order: 2; }
  h1 { font-size: 32px; }
  .lead { font-size: 14px; }
  .btn { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .swap-device-stack { justify-content: center; }
  .swap-screen-gallery {
    width: 100%;
    min-height: 520px;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 12px 4px 22px;
    scroll-snap-type: x mandatory;
  }
  .app-screen {
    flex-basis: 188px;
    height: 396px;
    margin-left: 0;
    scroll-snap-align: center;
  }
  .app-screen + .app-screen { margin-left: 14px; }
  .frame-feed,
  .frame-location,
  .frame-profile,
  .frame-report,
  .frame-permission {
    transform: none;
  }
  .legal-links-row { flex-wrap: wrap; }
  .toc { position: static; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-divider { display: none; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--max)); }
  .site-header { position: static; }
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 0;
  }
  .nav-links {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .hero-copy { max-width: none; }
  .home-hero h1 { font-size: 30px; }
  .swap-copy h1 { font-size: 30px; }
  .hero-photo {
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(18, 37, 28, 0.08);
  }
  .hero-photo img { aspect-ratio: 365 / 150; }
  .swap-feature-list article { grid-template-columns: 36px 1fr; }
  .contact-card { padding: 26px 18px; }
  .page-hero { padding-top: 24px; }
}
