:root {
  --ink: #18241f;
  --muted: #65746d;
  --line: #dce3dd;
  --paper: #fbfcf9;
  --soft: #edf4ef;
  --green: #0d5b36;
  --green-2: #42a040;
  --blue: #285d7f;
  --white: #ffffff;
  color-scheme: light;
  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;
  background: var(--paper);
  color: var(--ink);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.brand img {
  display: block;
  width: 106px;
  height: auto;
}

.nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a,
.header-action,
.primary-action,
.secondary-action,
.link-row a {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.nav a:hover,
.link-row a:hover {
  color: var(--green);
}

.header-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-size: 14px;
  font-weight: 750;
}

.header-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
  background: var(--soft);
}

.hero {
  position: relative;
  min-height: 78svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(20px, 6vw, 76px) 64px;
  background: #f7f9f5;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, #f7f9f5 92%, transparent), color-mix(in srgb, #f7f9f5 74%, transparent)),
    url("assets/icon.png") right clamp(-80px, -3vw, 18px) center / min(58vw, 620px) auto no-repeat;
  opacity: 0.92;
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(68px, 14vw, 168px);
  line-height: 0.86;
  font-weight: 850;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  max-width: 760px;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 600px;
  color: #34463d;
  font-size: clamp(18px, 2.6vw, 25px);
  line-height: 1.65;
  font-weight: 550;
}

.hero-actions,
.link-row,
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-action {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(13, 91, 54, 0.22);
}

.primary-action:hover {
  transform: translateY(-1px);
  background: #084a2b;
}

.secondary-action {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--white) 78%, transparent);
  color: var(--ink);
}

.band {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 6vw, 76px);
}

.section-inner {
  width: min(1140px, 100%);
  margin: 0 auto;
}

.intro {
  padding: 34px clamp(20px, 6vw, 76px);
}

.intro-grid,
.split,
.app-grid,
.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 7vw, 86px);
  align-items: center;
}

.intro h2 {
  font-size: clamp(18px, 2vw, 28px);
}

.intro p,
.app-copy p,
.text-stack p,
.feature-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

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

.section-heading h2 {
  white-space: nowrap;
  max-width: none;
}

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

.feature-card {
  min-height: 246px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--green);
  font-weight: 900;
}

.app-section {
  background: #eef5f8;
  border-block: 1px solid #d7e5eb;
}

.app-copy p {
  max-width: 560px;
}

.app-preview {
  display: grid;
  justify-items: center;
}

.phone-frame {
  width: min(360px, 100%);
  aspect-ratio: 9 / 16;
  padding: 20px;
  border: 1px solid #d2d9d6;
  border-radius: 34px;
  background: var(--paper);
  box-shadow: 0 28px 60px rgba(28, 51, 44, 0.18);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-weight: 850;
}

.phone-top img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.record-list {
  display: grid;
  gap: 12px;
}

.record-item {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.record-item.strong {
  background: #e6f1ea;
  border-color: #c8dacd;
}

.record-item span {
  font-weight: 800;
}

.record-item small {
  color: var(--muted);
}

.sync-pill {
  margin-top: 22px;
  padding: 13px 15px;
  border-radius: 999px;
  background: #dcecf1;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.pedigree-section {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.pedigree-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.pedigree-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.pedigree-copy strong {
  color: var(--ink);
}

.pedigree-points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.pedigree-points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.pedigree-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--soft);
  box-shadow: inset 0 0 0 2px var(--green-2);
}

.pedigree-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pedigree-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pedigree-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.pedigree-figure {
  margin: 0;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 24px 50px rgba(28, 51, 44, 0.1);
}

.pedigree-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.pedigree-caption {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.quiet-section {
  background: var(--paper);
}

.download-section {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.download-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.store-link {
  display: grid;
  min-width: 172px;
  min-height: 58px;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(24, 36, 31, 0.16);
}

.store-link span {
  font-size: 11px;
  line-height: 1.1;
  opacity: 0.78;
}

.store-link strong {
  font-size: 20px;
  line-height: 1.15;
}

.store-link:hover {
  transform: translateY(-1px);
  background: #0f1714;
}

.store-link.coming-soon {
  background: #2a3a34;
  cursor: default;
}

.store-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green);
  font-weight: 800;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 28px clamp(20px, 6vw, 76px);
}

.footer-inner {
  width: min(1140px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.footer img {
  width: 94px;
  height: auto;
}

.footer p {
  margin: 0;
}

@media (max-width: 880px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 74svh;
    padding-top: 104px;
  }

  .hero-bg {
    background:
      linear-gradient(0deg, color-mix(in srgb, #f7f9f5 94%, transparent), color-mix(in srgb, #f7f9f5 72%, transparent)),
      url("assets/icon.png") right -96px bottom 8px / 360px auto no-repeat;
  }

  .intro-grid,
  .split,
  .app-grid,
  .download-grid,
  .pedigree-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .section-heading h2 {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand img {
    width: 92px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 14px;
  }

  .hero {
    min-height: 72svh;
    padding-inline: 18px;
  }

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

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

  .primary-action,
  .secondary-action {
    width: 100%;
  }

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

  .feature-card {
    min-height: auto;
  }

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