:root {
  color-scheme: light;
  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-soft: #eef4ef;
  --ink: #111916;
  --muted: #65736d;
  --line: #dce5df;
  --accent: #87e64b;
  --accent-strong: #55ad24;
  --blue: #243b6b;
  --coral: #ff7f66;
  --shadow: 0 24px 70px rgb(22 40 30 / 14%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(246 248 245 / 86%);
  border-bottom: 1px solid rgb(220 229 223 / 78%);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgb(17 25 22 / 18%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

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

.hero {
  position: relative;
  padding: 84px 0 72px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 80%);
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgb(135 230 75 / 18%);
}

.hero h1,
.legal-hero h1,
.not-found h1 {
  margin: 22px 0 18px;
  font-size: clamp(44px, 8vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.app-store-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
}

.app-store-button {
  gap: 12px;
  padding: 10px 18px;
  background: #111916;
  color: #ffffff;
  box-shadow: 0 18px 42px rgb(17 25 22 / 24%);
}

.app-store-button svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.app-store-button small {
  display: block;
  font-size: 10px;
  line-height: 1;
  opacity: 0.78;
}

.app-store-button span {
  display: block;
  font-size: 20px;
  line-height: 1.05;
}

.secondary-button {
  padding: 0 20px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 78%);
  color: var(--ink);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 14px;
}

.hero-proof strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
}

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

.onboarding-stage {
  position: relative;
  min-height: 520px;
  border: 1px solid rgb(220 229 223 / 82%);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 68%), rgb(255 255 255 / 92%)),
    linear-gradient(145deg, #f5fbf2 0%, #eaf4f0 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.onboarding-backdrop {
  position: absolute;
  inset: -4% -10% auto auto;
  width: 78%;
  opacity: 0.95;
}

.onboarding-phone {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  width: min(300px, 72%);
  min-height: 392px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 34px 28px;
  border: 1px solid rgb(220 229 223 / 90%);
  border-radius: 34px;
  background: linear-gradient(180deg, #ffffff, #f8fbf7);
  box-shadow: 0 28px 70px rgb(17 25 22 / 18%);
  text-align: center;
  transform: translate(-50%, -48%);
}

.onboarding-app-icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  box-shadow: 0 18px 36px rgb(17 25 22 / 18%);
}

.onboarding-signature-line {
  width: 164px;
  height: 66px;
  margin: 34px 0 22px;
  border-bottom: 4px solid var(--ink);
  border-radius: 50%;
  transform: rotate(-5deg);
}

.onboarding-title {
  font-size: 24px;
  font-weight: 850;
}

.onboarding-phone p {
  max-width: 220px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.onboarding-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(290px, calc(100% - 34px));
  padding: 12px 14px;
  border: 1px solid rgb(220 229 223 / 88%);
  border-radius: 18px;
  background: rgb(255 255 255 / 88%);
  color: var(--ink);
  box-shadow: 0 16px 38px rgb(17 25 22 / 14%);
  backdrop-filter: blur(14px);
}

.onboarding-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.onboarding-card strong {
  display: block;
  font-size: 14px;
}

.onboarding-card small {
  color: var(--muted);
  font-size: 12px;
}

.card-save {
  left: 30px;
  top: 54px;
}

.card-valid {
  right: 28px;
  bottom: 48px;
}

.section {
  padding: 78px 0;
}

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

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

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

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

.feature-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgb(17 25 22 / 8%);
}

.feature-card img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.workflow-step {
  padding: 20px;
  border-left: 4px solid var(--accent);
  background: rgb(255 255 255 / 72%);
}

.workflow-step strong {
  color: var(--blue);
}

.workflow-step h3 {
  margin: 10px 0 8px;
  font-size: 20px;
}

.workflow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.legal-hero,
.not-found {
  padding: 74px 0 36px;
}

.legal-hero p,
.not-found p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 42px;
  padding-bottom: 80px;
}

.legal-aside {
  position: sticky;
  top: 102px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 76%);
}

.legal-aside a {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  text-decoration: none;
}

.legal-aside a:hover {
  color: var(--ink);
}

.legal-content {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgb(17 25 22 / 8%);
}

.legal-content section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0 0 14px;
  font-size: 25px;
}

.legal-content h3 {
  margin: 20px 0 8px;
  font-size: 18px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-content p {
  margin: 0 0 12px;
}

.legal-content ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.not-found-panel {
  max-width: 760px;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

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

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

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

  .hero {
    padding-top: 54px;
  }

  .hero-visual,
  .onboarding-stage {
    min-height: 420px;
  }

  .feature-grid,
  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 66px;
  }

  .nav-links {
    gap: 14px;
    font-size: 13px;
  }

  .hero h1,
  .legal-hero h1,
  .not-found h1 {
    font-size: 44px;
  }

  .hero-copy {
    font-size: 18px;
  }

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

  .app-store-button,
  .secondary-button {
    width: 100%;
  }

  .onboarding-phone {
    width: min(270px, 82%);
    min-height: 350px;
    padding: 28px 22px;
  }

  .onboarding-app-icon {
    width: 78px;
    height: 78px;
  }

  .onboarding-signature-line {
    width: 138px;
    height: 54px;
    margin: 28px 0 18px;
  }

  .card-save {
    left: 14px;
    top: 18px;
  }

  .card-valid {
    right: 14px;
    bottom: 18px;
  }

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

  .section {
    padding: 58px 0;
  }

  .legal-content,
  .not-found-panel {
    padding: 24px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
