:root {
  color-scheme: light dark;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-muted: #eef7f5;
  --text: #111827;
  --muted: #526171;
  --subtle: #6b7280;
  --border: #d9e2e7;
  --primary: #0f766e;
  --primary-strong: #0b5f59;
  --accent: #2563eb;
  --warm: #c2410c;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  --radius: 8px;
  --max: 1180px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg: #090d12;
    --surface: #111820;
    --surface-strong: #18212b;
    --surface-muted: #102a29;
    --text: #f5f7fb;
    --muted: #bac5d2;
    --subtle: #93a0ad;
    --border: #263341;
    --primary: #34d399;
    --primary-strong: #6ee7b7;
    --accent: #60a5fa;
    --warm: #fb923c;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
    --soft-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  }
}

html[data-theme="dark"] {
  --bg: #090d12;
  --surface: #111820;
  --surface-strong: #18212b;
  --surface-muted: #102a29;
  --text: #f5f7fb;
  --muted: #bac5d2;
  --subtle: #93a0ad;
  --border: #263341;
  --primary: #34d399;
  --primary-strong: #6ee7b7;
  --accent: #60a5fa;
  --warm: #fb923c;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
  --soft-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-muted: #eef7f5;
  --text: #111827;
  --muted: #526171;
  --subtle: #6b7280;
  --border: #d9e2e7;
  --primary: #0f766e;
  --primary-strong: #0b5f59;
  --accent: #2563eb;
  --warm: #c2410c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-muted) 55%, transparent), transparent 42%),
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 6%, transparent) 0 1px, transparent 1px 100%);
  background-size: auto, 48px 48px;
  pointer-events: none;
}

a {
  color: inherit;
}

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

svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  text-decoration: none;
  transition: transform 180ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 18px 0;
}

.nav-shell {
  width: min(var(--max), calc(100vw - 36px));
  min-height: 68px;
  margin: 0 auto;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  text-decoration: none;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-tagline {
  font-size: 12px;
  color: var(--muted);
}

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

.nav-links a {
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--text);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-muted) 62%, transparent);
}

.segmented button {
  min-width: 42px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.icon-segmented button {
  min-width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.segmented button:hover {
  color: var(--text);
}

.segmented button[aria-pressed="true"] {
  background: var(--surface-strong);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
}

.section {
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.hero {
  min-height: min(760px, calc(100vh - 150px));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
  gap: 54px;
  padding-top: 58px;
  padding-bottom: 54px;
}

.hero-copy {
  animation: riseIn 260ms ease-out both;
}

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

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0;
}

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

.hero-lede {
  max-width: 660px;
  margin-bottom: 30px;
  font-size: 21px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

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

.button.primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 26px color-mix(in srgb, var(--primary) 30%, transparent);
}

.button.primary:hover {
  background: var(--primary-strong);
}

.button.secondary {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.button.secondary:hover {
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
  color: var(--primary);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--muted);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
}

.trust-row svg {
  color: var(--primary);
}

.hero-media {
  min-width: 0;
}

.device-stack {
  min-height: 560px;
  position: relative;
  display: grid;
  place-items: center;
  animation: riseIn 280ms ease-out 80ms both;
}

.phone-frame {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-phone {
  width: min(360px, 70vw);
  aspect-ratio: 1320 / 2868;
  position: relative;
  z-index: 2;
}

.side-phone {
  width: min(245px, 48vw);
  aspect-ratio: 1320 / 2868;
  position: absolute;
  right: 0;
  bottom: 28px;
  z-index: 1;
  opacity: 0.96;
}

.device-stack:hover .hero-phone {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
}

.device-stack:hover .side-phone {
  transform: translate(6px, -3px);
}

.intro-band,
.privacy-section,
.workflow-section,
.download-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 46px;
  padding: 46px;
}

.intro-copy p:last-child,
.section-head p:last-child,
.workflow-copy p:last-child,
.privacy-grid p:last-child,
.download-panel p:last-child {
  margin-bottom: 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.compact {
  margin-bottom: 0;
}

.section-head p {
  font-size: 18px;
}

.toolkit-section {
  padding-top: 84px;
}

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

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

.program-card,
.feature-card,
.privacy-grid article,
.todo-config-card,
.health-metric-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.program-card:hover,
.feature-card:hover,
.privacy-grid article:hover,
.todo-config-card:hover,
.health-metric-card:hover,
.shot-card:hover,
.workflow-list li:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 36%, var(--border));
  box-shadow: var(--shadow);
}

.program-card {
  min-height: 280px;
  padding: 28px;
}

.program-card h3 {
  font-size: 24px;
}

.program-index {
  width: 42px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 58px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.todo-program {
  border-top: 4px solid var(--accent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 46%),
    var(--surface);
}

.health-program {
  border-top: 4px solid var(--warm);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--warm) 10%, transparent), transparent 46%),
    var(--surface);
}

.todo-config-section {
  padding-top: 84px;
}

.todo-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.todo-config-card {
  padding: 24px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip-list span {
  max-width: 100%;
  border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-muted) 56%, var(--surface));
  color: var(--text);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.chip-list span:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 36%, var(--border));
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
}

.chip-list.compact span {
  color: var(--muted);
  font-weight: 650;
}

.health-detail-section {
  padding-top: 84px;
}

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

.health-metric-card {
  min-height: 250px;
  padding: 22px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-muted) 42%, transparent), transparent 58%),
    var(--surface);
}

.health-metric-card h3::before {
  content: "";
  display: block;
  width: 32px;
  height: 4px;
  margin-bottom: 38px;
  border-radius: 999px;
  background: var(--warm);
}

.health-metric-card:nth-child(2) h3::before {
  background: var(--primary);
}

.health-metric-card:nth-child(3) h3::before {
  background: var(--accent);
}

.health-metric-card:nth-child(4) h3::before {
  background: color-mix(in srgb, var(--primary) 62%, var(--warm));
}

.health-metric-card p {
  margin-bottom: 0;
}

.feature-card {
  min-height: 248px;
  padding: 22px;
}

.feature-card svg {
  width: 30px;
  height: 30px;
  margin-bottom: 38px;
  color: var(--primary);
}

.feature-card p,
.program-card p,
.privacy-grid p {
  margin-bottom: 0;
}

.workflow-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: 42px;
  padding: 46px;
}

.workflow-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-muted) 55%, transparent);
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.workflow-list span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

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

.shot-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  transition: transform 220ms ease;
}

.shot-card:hover img {
  transform: scale(1.015);
}

.shot-card figcaption {
  padding: 18px;
}

.shot-card h3 {
  font-size: 16px;
}

.shot-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.privacy-section {
  padding: 46px;
}

.privacy-grid {
  margin-top: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.privacy-grid article {
  padding: 22px;
  background: color-mix(in srgb, var(--surface-muted) 44%, var(--surface));
}

.download-section {
  padding-top: 80px;
}

.download-panel {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 34px;
}

.download-icon {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  box-shadow: 0 14px 26px rgba(15, 118, 110, 0.18);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 240ms ease-out, transform 240ms ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 1024px) {
  .nav-shell {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 2px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 34px;
  }

  h1 {
    font-size: 50px;
  }

  .device-stack {
    min-height: 500px;
  }

  .side-phone {
    right: 9%;
  }

  .intro-band,
  .workflow-section {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 720px) {
  .site-header {
    padding: 10px 10px 0;
  }

  .nav-shell,
  .section,
  .site-footer {
    width: min(100% - 20px, var(--max));
  }

  .brand {
    min-width: 0;
  }

  .brand-tagline {
    display: none;
  }

  .nav-controls {
    margin-left: auto;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
  }

  .nav-links a {
    padding: 8px 4px;
    text-align: center;
    white-space: normal;
    font-size: 13px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 30px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 29px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .button {
    width: 100%;
  }

  .trust-row {
    display: none;
  }

  .hero-phone {
    width: min(246px, 64vw);
  }

  .side-phone {
    width: min(164px, 42vw);
    right: 5%;
    bottom: 18px;
  }

  .device-stack {
    min-height: 370px;
  }

  .intro-band,
  .workflow-section,
  .privacy-section,
  .download-panel {
    padding: 24px;
  }

  .program-grid,
  .todo-config-grid,
  .feature-grid,
  .health-metric-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

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

  .program-index {
    margin-bottom: 34px;
  }

  .download-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

@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;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
