@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --background: #f4f6f1;
  --surface: #ffffff;
  --surface-soft: #eef5ec;
  --ink: #151816;
  --muted: #657064;
  --line: #dce4da;
  --brand: #2e8d56;
  --brand-dark: #155d36;
  --accent: #b84d3a;
  --blue: #315d7d;
  --shadow: 0 18px 60px rgba(20, 36, 24, 0.14);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-140%);
  padding: 0.55rem 0.8rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: rgba(244, 246, 241, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(20, 36, 24, 0.06);
}

.nav {
  width: min(100% - 32px, var(--max-width));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 850;
  font-size: 1.05rem;
  white-space: nowrap;
}

.brand img {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
}

.brand span {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

.nav-links a,
.site-footer a {
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--brand-dark);
  text-decoration-line: underline;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 850;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 3px solid rgba(46, 141, 86, 0.32);
  outline-offset: 3px;
}

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(21, 24, 22, 0.16);
}

.button-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.button-secondary,
.button-small {
  background: rgba(255, 255, 255, 0.68);
}

.button-small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  min-height: min(860px, calc(100svh - 42px));
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: 118px max(24px, calc((100vw - var(--max-width)) / 2)) 54px;
  background: #f4f6f1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(590px, 100%);
}

.hero-shot {
  position: absolute;
  z-index: 1;
  right: max(-24px, calc((100vw - var(--max-width)) / 2 - 18px));
  bottom: -18%;
  width: min(50vw, 520px);
  min-width: 360px;
  filter: drop-shadow(0 30px 48px rgba(21, 24, 22, 0.22));
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.88;
  font-weight: 1000;
}

.kern-tt {
  display: inline-block;
  margin-right: 0.035em;
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 0.98;
  font-weight: 950;
}

h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.1;
  font-weight: 900;
}

.hero-subtitle {
  width: min(560px, 100%);
  margin: 28px 0 0;
  color: #334038;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.38;
  font-weight: 650;
}

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

.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.intro-band {
  border-block: 1px solid var(--line);
  background: #fff;
}

.intro-band p {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 28px 0;
  color: #2d372f;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.35;
  font-weight: 800;
  text-align: center;
}

.section {
  scroll-margin-top: 88px;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 128px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(240px, 0.45fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -22px;
}

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

.feature-card {
  min-height: 260px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(20, 36, 24, 0.07);
}

.feature-card:nth-child(2) .feature-icon {
  background: #f8ebe6;
  color: var(--accent);
}

.feature-card:nth-child(3) .feature-icon {
  background: #e8f0f5;
  color: var(--blue);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 950;
}

.feature-icon svg {
  width: 25px;
  height: 25px;
}

.feature-card p,
.download-copy p,
figcaption {
  color: var(--muted);
}

.screenshot-section {
  border-top: 1px solid var(--line);
}

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

.screenshot-card {
  margin: 0;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.screenshot-card img {
  width: 100%;
  border-radius: 6px;
  background: #eef1eb;
}

figcaption {
  margin: 14px 4px 2px;
  font-size: 0.98rem;
}

figcaption strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
}

.download-section {
  scroll-margin-top: 88px;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 310px);
  align-items: center;
  gap: 32px;
  padding: clamp(42px, 6vw, 70px);
  background: #162019;
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.download-section h2 {
  max-width: 720px;
}

.download-copy p:not(.eyebrow) {
  max-width: 660px;
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.78);
}

.download-copy .eyebrow {
  color: #9cd8ae;
}

.download-section .button-primary {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.download-section .button-primary:hover {
  background: #dff0e3;
  border-color: #dff0e3;
}

.download-section img {
  width: min(100%, 300px);
  justify-self: end;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.28));
}

.site-footer {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 24px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.policy-main {
  width: min(100% - 32px, 900px);
  margin: 0 auto;
  padding: 132px 0 64px;
}

.policy-content {
  padding: clamp(28px, 5vw, 54px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(20, 36, 24, 0.07);
}

.policy-content h1 {
  max-width: none;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.96;
}

.policy-content h2 {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1;
}

.policy-content h3 {
  margin-top: 30px;
}

.policy-content p,
.policy-content li {
  color: #334038;
}

.policy-content ul {
  padding-left: 1.2em;
}

.policy-content li + li {
  margin-top: 10px;
}

.policy-content a {
  color: var(--brand-dark);
  font-weight: 850;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.policy-effective {
  margin-top: 22px;
  color: var(--muted);
}

.policy-version {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding-top: 104px;
    padding-bottom: 0;
  }

  .hero-copy {
    order: 1;
    width: 100%;
  }

  .hero-shot {
    order: 2;
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(82vw, 390px);
    min-width: 0;
    margin: 24px auto -620px;
    transform: none;
  }

  .section {
    scroll-margin-top: 76px;
    padding: 36px 0;
  }

  .download-section {
    scroll-margin-top: 76px;
  }

  .section-heading {
    display: block;
  }

  .section-heading .eyebrow {
    margin-bottom: 12px;
  }

  .feature-grid,
  .screenshot-grid,
  .download-section {
    grid-template-columns: 1fr;
  }

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

  .feature-icon {
    margin-bottom: 22px;
  }

  .download-section img {
    width: min(58vw, 250px);
    justify-self: center;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .nav {
    width: min(100% - 24px, var(--max-width));
    min-height: 66px;
  }

  .brand span {
    line-height: 1.05;
  }

  .button-small {
    min-height: 38px;
    padding-inline: 12px;
  }

  .hero {
    padding-inline: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .nav .button {
    width: auto;
    flex: 0 0 auto;
  }

  .hero-shot {
    width: min(86vw, 356px);
    margin-bottom: -560px;
  }

  .section {
    padding: 28px 0;
  }

  .section,
  .download-section,
  .site-footer {
    width: min(100% - 24px, var(--max-width));
  }

  .intro-band p {
    width: min(100% - 24px, 920px);
    text-align: left;
  }

  .screenshot-card {
    padding: 10px;
  }

  .download-section {
    padding: 30px 20px;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .policy-main {
    width: min(100% - 24px, 900px);
    padding-top: 98px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
