:root {
  color-scheme: light;
  --ink: #101314;
  --muted: #566068;
  --paper: #f7f6f2;
  --panel: #ffffff;
  --line: #d8ddd8;
  --green: #286a47;
  --mint: #dff1e7;
  --blue: #235c8f;
  --sky: #dbeeff;
  --coral: #b64f3d;
  --gold: #b88322;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 18px clamp(20px, 5vw, 72px);
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 750;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  background: var(--mint);
  border: 1px solid rgba(16, 19, 20, 0.14);
  border-radius: 8px;
  display: grid;
  height: 34px;
  place-items: center;
  width: 34px;
}

.brand-mark img {
  display: block;
  height: 22px;
  width: 22px;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.nav-links a {
  color: rgba(16, 19, 20, 0.78);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

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

.hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(247, 246, 242, 0.96) 0%, rgba(247, 246, 242, 0.82) 44%, rgba(247, 246, 242, 0.3) 100%),
    url("/assets/app-screenshot.png") right center / min(62rem, 82vw) auto no-repeat,
    var(--paper);
  display: grid;
  min-height: min(780px, 82svh);
  overflow: hidden;
  padding: 112px clamp(20px, 5vw, 72px) 54px;
  position: relative;
}

.hero-inner {
  max-width: 720px;
  min-width: 0;
  width: min(100%, 720px);
}

.eyebrow {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3rem, 8vw, 6.8rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 22px;
}

.hero-copy {
  color: #263036;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  max-width: min(100%, 620px);
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 750;
  min-height: 44px;
  padding: 10px 15px;
  text-decoration: none;
}

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

.button.secondary {
  background: rgba(255, 255, 255, 0.64);
}

.endpoint {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #2f383c;
  display: inline-block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.91rem;
  margin-top: 18px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 11px 13px;
  white-space: normal;
  word-break: break-word;
}

.band {
  border-top: 1px solid var(--line);
  padding: 54px clamp(20px, 5vw, 72px);
}

.band.light {
  background: #fff;
}

.section-head {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  margin: 0;
  max-width: 760px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
  max-width: 520px;
}

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

.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 168px;
  padding: 20px;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.feature p {
  color: var(--muted);
  margin-bottom: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 8px 12px;
}

.pill.green {
  background: var(--mint);
  color: var(--green);
}

.pill.blue {
  background: var(--sky);
  color: var(--blue);
}

.pill.coral {
  background: #f6ded7;
  color: var(--coral);
}

.pill.gold {
  background: #f7ebd1;
  color: #6f4e13;
}

.split {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.copy h2,
.legal-main h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
}

.copy p,
.copy li,
.legal-main p,
.legal-main li {
  color: #394247;
  font-size: 1.04rem;
}

.copy ul,
.legal-main ul {
  padding-left: 1.25rem;
}

.screenshot-frame {
  margin: 0;
}

.screenshot-frame img {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(35, 92, 143, 0.18);
  display: block;
  height: auto;
  width: 100%;
}

.caption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 72px);
}

.site-footer a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.legal-page .site-header {
  background: rgba(247, 246, 242, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
}

.legal-main {
  margin: 0 auto;
  max-width: 940px;
  padding: 62px clamp(20px, 5vw, 72px);
}

.legal-main section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 28px;
}

.legal-main h2 {
  font-size: 1.45rem;
}

.legal-main pre {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
  padding: 14px;
}

.legal-main code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.muted {
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(247, 246, 242, 0.94), rgba(247, 246, 242, 0.82)),
      url("/assets/app-screenshot.png") center 112px / min(42rem, 92vw) auto no-repeat,
      var(--paper);
    padding-top: 330px;
  }

  .section-head,
  .split {
    display: block;
  }

  .section-head p,
  .screenshot-frame {
    margin-top: 16px;
  }

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

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    gap: 12px;
    justify-content: flex-start;
  }

  .hero {
    min-height: 84svh;
    padding-bottom: 34px;
    padding-top: 420px;
  }

  .button {
    width: min(100%, 340px);
    justify-content: center;
  }

  .endpoint {
    display: block;
    width: min(100%, 340px);
  }

  .hero-inner {
    width: min(100%, 340px);
  }

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

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