:root {
  color-scheme: light;
  --paper: #fafbf8;
  --ink: #192421;
  --muted: #44544c;
  --brand: #20584a;
  --brand-hover: #164438;
  --rule: #d7e0d9;
  --panel: #e0ebe4;
  --width: 70rem;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 1rem; line-height: 1.6; }
p, h1, h2, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 0.19em; }
a:hover { color: var(--brand-hover); }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid #226c5d; outline-offset: 4px; }

.wrap {
  width: min(var(--width), calc(100% - 4rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset: 0 auto auto 1rem;
  z-index: 1;
  padding: 0.55rem 0.85rem;
  background: var(--paper);
  transform: translateY(-125%);
}
.skip-link:focus { transform: none; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand img { width: 2.65rem; height: 2.65rem; }

.site-header nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.925rem;
  font-weight: 650;
}
.nav-detail { color: var(--muted); text-decoration: none; }
.nav-detail:hover { text-decoration: underline; }

.button {
  display: inline-block;
  padding: 0.75rem 1.12rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  background: var(--brand);
  color: white;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--brand-hover); color: white; }
.button-small { padding: 0.44rem 0.85rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.8rem, 5.2vw, 5rem);
  align-items: center;
  padding-block: clamp(3.25rem, 8vw, 6rem);
}

h1, h2 {
  font-weight: 700;
  letter-spacing: -0.048em;
  line-height: 1.09;
}

h1 { max-width: 13em; font-size: clamp(2.625rem, 4.4vw, 3.65rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }

.hero-copy p:not(.requirements) {
  max-width: 30em;
  margin-top: 1.2rem;
  margin-bottom: 1.55rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
}

.requirements {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-demo {
  display: grid;
  align-items: center;
  padding: clamp(1.1rem, 3vw, 2.15rem);
  background: var(--panel);
  border: 1px solid #d2e1d6;
  border-radius: 0.65rem;
}

.app-window {
  width: 100%;
  border-radius: 0.55rem;
  box-shadow: 0 9px 24px #16282023, 0 1px 3px #16282022;
}

.section { scroll-margin-top: 1rem; }
.section-review { background: #eef3ee; border-block: 1px solid #e0e8e0; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6.3rem);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.feature-history { grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr); }
.feature-visual figcaption { margin-top: 0.8rem; color: var(--muted); font-size: 0.84rem; }
.feature-copy p { margin-top: 1rem; max-width: 33em; color: var(--muted); }

.text-button {
  padding: 0;
  border: 0;
  margin-top: 1.2rem;
  background: none;
  color: var(--brand);
  font-weight: 700;
  text-decoration-line: underline;
  text-underline-offset: 0.19em;
  cursor: pointer;
}
.text-button:hover { color: var(--brand-hover); }

.questions {
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 6vw, 5rem);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--rule);
}

details { border-bottom: 1px solid var(--rule); }
details:first-child { border-top: 1px solid var(--rule); }

summary {
  position: relative;
  padding-block: 0.83rem;
  padding-inline-end: 1.75rem;
  list-style: none;
  font-weight: 700;
  cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
summary::after { position: absolute; inset-inline-end: 0.15rem; content: "+"; color: var(--brand); }
details[open] summary::after { content: "−"; }
details p { max-width: 44em; padding-bottom: 1rem; color: var(--muted); }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a { font-weight: 650; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 51rem) {
  .wrap { width: calc(100% - 3rem); }
  .site-header nav { gap: 1rem; }
  .hero, .feature, .feature-history { grid-template-columns: minmax(0, 1fr); }
  .hero-demo { max-width: 37rem; }
  .section-review .feature-copy { grid-row: 1; }
  .feature-visual { max-width: 39rem; }
  .questions { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 30rem) {
  .wrap { width: calc(100% - 2rem); }
  .site-header { min-height: 4.25rem; }
  .site-header .nav-detail { display: none; }
  .brand img { width: 2.25rem; height: 2.25rem; }
  h1 { font-size: clamp(2.35rem, 10vw, 2.85rem); }
  .hero { padding-top: 2.55rem; }
  .site-footer { flex-wrap: wrap; justify-content: flex-start; column-gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
