:root {
  color-scheme: light;
  --bg: #f5f8f6;
  --surface: #ffffff;
  --surface-soft: #eef6f3;
  --text: #17211f;
  --muted: #5a6865;
  --line: #cddbd7;
  --primary: #087f73;
  --primary-dark: #05685f;
  --teal-soft: #d8f0ea;
  --warning: #b33b2e;
  --amber: #b66b00;
  --violet: #7147d8;
  --shadow: 0 18px 60px rgba(19, 52, 47, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(8, 127, 115, 0.35);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px max(20px, calc((100% - 1180px) / 2));
  background: rgba(245, 248, 246, 0.94);
  border-bottom: 1px solid rgba(205, 219, 215, 0.82);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.top-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  color: var(--muted);
  font-size: 15px;
}

.top-nav a,
.text-link {
  text-decoration: none;
}

.top-nav a:hover,
.text-link:hover {
  color: var(--primary-dark);
}

.header-action,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 750;
  text-decoration: none;
}

.header-action,
.button-primary {
  background: var(--primary);
  color: #ffffff;
}

.header-action:hover,
.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero {
  min-height: 76vh;
  display: grid;
  align-items: end;
  padding: 118px max(20px, calc((100% - 1180px) / 2)) 76px;
  background-color: #0f2724;
  background-image:
    linear-gradient(90deg, rgba(7, 21, 19, 0.88), rgba(7, 21, 19, 0.62), rgba(7, 21, 19, 0.16)),
    url("/assets/app-desktop.png");
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #7ee0d2;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 64px;
  line-height: 1;
}

h2 {
  max-width: 820px;
  margin: 0;
  font-size: 38px;
  line-height: 1.12;
}

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

p {
  margin: 0;
}

.hero-lead {
  max-width: 680px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 21px;
}

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

.section {
  padding: 68px max(20px, calc((100% - 1180px) / 2));
}

.section-tight {
  padding-top: 52px;
}

.section-head {
  margin-bottom: 24px;
}

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

.feature,
.journal-card {
  min-height: 196px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.feature p,
.journal-card p,
.product-copy p,
.cta-band p {
  margin-top: 12px;
  color: var(--muted);
}

.feature-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--primary-dark);
  font-weight: 900;
}

.feature-mark.warning {
  background: #ffe5e1;
  color: var(--warning);
}

.feature-mark.amber {
  background: #fff0d6;
  color: var(--amber);
}

.feature-mark.violet {
  background: #eee8ff;
  color: var(--violet);
}

.product-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 32px;
  align-items: center;
  background: #e9f3ef;
}

.product-copy {
  max-width: 440px;
}

.product-shot {
  display: block;
  min-width: 0;
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--primary-dark);
  font-weight: 800;
}

.journal-card {
  text-decoration: none;
  transition:
    border-color 0.16s ease,
    transform 0.16s ease;
}

.journal-card:hover {
  border-color: rgba(8, 127, 115, 0.48);
  transform: translateY(-2px);
}

.journal-card span {
  display: block;
  margin-bottom: 24px;
  color: var(--primary);
  font-weight: 900;
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px max(20px, calc((100% - 1180px) / 2));
  color: var(--muted);
  font-size: 14px;
}

.content-page {
  padding: 64px max(20px, calc((100% - 920px) / 2));
}

.content-page h1 {
  color: var(--text);
  font-size: 52px;
}

.content-lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 20px;
}

.content-block {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}

.content-block + .content-block {
  margin-top: 16px;
}

.content-block ul,
.content-block ol {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.content-block li + li {
  margin-top: 8px;
}

.note {
  border-left: 4px solid var(--primary);
  background: var(--surface-soft);
}

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

  .top-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 72vh;
    padding-top: 84px;
    padding-bottom: 52px;
    background-image:
      linear-gradient(180deg, rgba(7, 21, 19, 0.82), rgba(7, 21, 19, 0.7)),
      url("/assets/app-mobile.png");
  }

  h1,
  .content-page h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-lead,
  .content-lead {
    font-size: 18px;
  }

  .feature-grid,
  .journal-grid,
  .product-section,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 12px;
  }

  .header-action {
    padding-inline: 12px;
    font-size: 14px;
  }

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

  .button {
    width: 100%;
  }
}
