:root {
  color-scheme: light dark;
  --bg: #f6f8f4;
  --surface: #ffffff;
  --surface-soft: #edf6ef;
  --text: #15231f;
  --muted: #60726b;
  --line: rgba(21, 35, 31, 0.13);
  --brand: #2f9e6d;
  --brand-strong: #1f7a55;
  --brand-blue: #3978c2;
  --accent: #d96b45;
  --yellow: #e2a834;
  --shadow: 0 24px 70px rgba(32, 66, 52, 0.13);
  --shell: 1180px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(237, 246, 239, 0.95) 0%, rgba(246, 248, 244, 0.9) 24rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 248, 244, 0.84);
  border-bottom: 1px solid rgba(21, 35, 31, 0.08);
  backdrop-filter: blur(18px);
}

.site-header-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(47, 158, 109, 0.28);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a.is-active {
  background: rgba(47, 158, 109, 0.12);
  color: var(--text);
}

.app-store-badge-link,
.app-store-badge-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.app-store-badge-shell.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.app-store-badge {
  width: 142px;
  height: auto;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
}

.button-secondary {
  background: rgba(57, 120, 194, 0.1);
  color: #245c9f;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(57, 120, 194, 0.17);
}

.button.is-disabled {
  cursor: default;
  opacity: 0.72;
}

.hero {
  padding: 72px 0 64px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: 58px;
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.08;
}

h1 {
  max-width: 11ch;
  font-size: 6.4rem;
}

h2 {
  font-size: 3.2rem;
}

h3 {
  font-size: 1.35rem;
}

.hero-summary {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

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

.hero-store-badge {
  flex: 0 0 auto;
}

.hero-points {
  display: grid;
  gap: 10px;
  max-width: 640px;
  margin: 32px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 24px;
}

.hero-points li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.hero-visual {
  position: relative;
  min-height: 500px;
  border-radius: 32px;
  background:
    linear-gradient(140deg, rgba(47, 158, 109, 0.17), rgba(57, 120, 194, 0.18)),
    var(--surface-soft);
  border: 1px solid rgba(47, 158, 109, 0.18);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-icon-stage {
  position: absolute;
  inset: 58px auto auto 50%;
  width: min(56%, 300px);
  transform: translateX(-50%);
}

.app-icon-large {
  width: 100%;
  border-radius: 28%;
  box-shadow: 0 28px 70px rgba(31, 122, 85, 0.32);
}

.metric-panel {
  position: absolute;
  display: grid;
  gap: 2px;
  min-width: 152px;
  padding: 17px 18px;
  border: 1px solid rgba(21, 35, 31, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.83);
  box-shadow: 0 18px 40px rgba(31, 77, 61, 0.14);
}

.metric-panel span,
.metric-panel small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.metric-panel strong {
  color: var(--text);
  font-size: 1.9rem;
  line-height: 1.1;
}

.metric-panel-primary {
  right: 34px;
  bottom: 44px;
}

.metric-panel-secondary {
  left: 32px;
  bottom: 110px;
}

.metric-panel-tertiary {
  top: 72px;
  right: 42px;
}

.intro-band,
.screenshots-section,
.feature-grid-section,
.news-preview-section,
.about-section,
.page-hero {
  padding: 72px 0;
}

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

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 52px;
  align-items: end;
}

.intro-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.screenshots-section {
  background: #10241e;
  color: #eff8f2;
  overflow: hidden;
}

.screenshots-section .section-kicker,
.screenshots-section h2 {
  color: #eff8f2;
}

.screenshots-heading {
  margin-bottom: 38px;
}

.screenshots-heading p:last-child {
  max-width: 560px;
  margin: 0;
  color: rgba(239, 248, 242, 0.74);
}

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

.screenshot-card {
  margin: 0;
}

.screenshot-card-lifted {
  margin-top: 46px;
}

.screenshot-phone {
  max-width: 360px;
  margin-inline: auto;
}

.screenshot-phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 856 / 1647;
  object-fit: contain;
}

.screenshot-card figcaption {
  margin-top: 14px;
  color: rgba(239, 248, 242, 0.82);
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
}

.release-highlight-section,
.recap-section,
.story-section {
  padding: 86px 0;
}

.release-highlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 0.78fr));
  gap: 18px;
}

.release-highlight-copy {
  align-self: center;
  padding-right: 28px;
}

.release-highlight-copy p:last-child,
.feature-card p:last-child,
.story-panel p,
.recap-card p,
.privacy-card p,
.about-card p {
  color: var(--muted);
}

.release-highlight-card,
.feature-card,
.story-panel,
.recap-card,
.privacy-card,
.news-card,
.about-card,
.term-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(32, 66, 52, 0.08);
}

.release-highlight-card {
  min-height: 250px;
  padding: 24px;
  border-radius: var(--radius-md);
}

.feature-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 42px;
  border-radius: 999px;
  background: rgba(47, 158, 109, 0.13);
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

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

.feature-card {
  min-height: 310px;
  padding: 28px;
  border-radius: var(--radius-md);
}

.feature-card-dashboard {
  border-top: 5px solid var(--brand);
}

.feature-card-history {
  border-top: 5px solid var(--brand-blue);
}

.feature-card-stats {
  border-top: 5px solid var(--accent);
}

.story-section {
  background: #eaf3ee;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 20px;
}

.story-panel {
  min-height: 430px;
  padding: 34px;
  border-radius: var(--radius-lg);
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--text);
  list-style: none;
}

.detail-list li {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(47, 158, 109, 0.1);
}

.story-panel-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f7a55 0%, #3978c2 100%);
}

.route-card {
  width: min(100%, 390px);
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 70px rgba(15, 47, 36, 0.24);
}

.route-card p {
  margin: 0 0 6px;
  color: var(--brand-strong);
  font-weight: 900;
}

.route-card h3 {
  max-width: 12ch;
}

.route-line {
  position: relative;
  height: 160px;
  margin: 28px 0;
}

.route-line::before {
  position: absolute;
  inset: 26px 10px 18px;
  border: 8px solid var(--brand);
  border-right-color: var(--brand-blue);
  border-bottom-color: var(--accent);
  border-radius: 44% 56% 48% 52%;
  transform: rotate(-10deg);
  content: "";
}

.route-line::after {
  position: absolute;
  right: 54px;
  bottom: 20px;
  width: 18px;
  height: 18px;
  border: 4px solid #ffffff;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(217, 107, 69, 0.18);
  content: "";
}

.route-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.route-metrics span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(21, 35, 31, 0.06);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
}

.recap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 20px;
}

.recap-card,
.privacy-card {
  border-radius: var(--radius-lg);
  padding: 34px;
}

.recap-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(237, 246, 239, 0.94));
}

.recap-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.recap-pills span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(57, 120, 194, 0.11);
  color: #245c9f;
  font-size: 0.88rem;
  font-weight: 800;
}

.privacy-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

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

.text-link {
  color: var(--brand-strong);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

.list-grid {
  padding-bottom: 64px;
}

.news-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.news-card:hover,
.news-card:focus-visible,
.term-card:hover,
.term-card:focus-visible {
  border-color: rgba(47, 158, 109, 0.36);
  transform: translateY(-2px);
}

.news-card-date,
.page-meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.news-card h3,
.news-card p {
  margin: 0;
}

.news-card a {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.news-card p {
  color: var(--muted);
}

.about-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.about-icon {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  border-radius: 23%;
  box-shadow: 0 18px 38px rgba(47, 158, 109, 0.24);
}

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer {
  padding: 38px 0;
  background: var(--text);
  color: rgba(255, 255, 255, 0.74);
}

.site-footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer a {
  color: #ffffff;
}

.footer-brand,
.footer-copy {
  margin: 0;
}

.footer-brand {
  color: #ffffff;
  font-weight: 900;
}

.footer-copy {
  max-width: 360px;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 800;
}

.footer-links a {
  text-underline-offset: 4px;
}

.page-hero {
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.page-hero-shell {
  max-width: 820px;
  margin-left: max(20px, calc((100vw - var(--shell)) / 2));
  margin-right: auto;
}

.page-hero h1 {
  max-width: 14ch;
}

.page-hero p:last-child {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.15rem;
}

.prose {
  max-width: 820px;
  padding: 60px 0 80px;
}

.prose h2 {
  margin-top: 2.1em;
  font-size: 1.8rem;
}

.prose h3 {
  margin-top: 1.7em;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose a {
  color: var(--brand-strong);
  font-weight: 800;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-bottom: 70px;
}

.pagination-link {
  min-width: 92px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--brand-strong);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.pagination-link.is-disabled {
  color: var(--muted);
  opacity: 0.55;
}

.pagination-count {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

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

.term-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.term-card span,
.term-card strong {
  font-weight: 900;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07120f;
    --surface: #0f211b;
    --surface-soft: #102b23;
    --text: #eff8f2;
    --muted: #a9b9b1;
    --line: rgba(239, 248, 242, 0.13);
    --brand: #5cd295;
    --brand-strong: #7de5ae;
    --brand-blue: #7fb4ee;
    --accent: #ee916f;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  }

  body {
    background:
      linear-gradient(180deg, rgba(16, 43, 35, 0.92) 0%, rgba(7, 18, 15, 0.94) 24rem),
      var(--bg);
  }

  .site-header {
    background: rgba(7, 18, 15, 0.82);
    border-bottom-color: rgba(239, 248, 242, 0.1);
  }

  .button-secondary,
  .recap-pills span {
    color: #b9d8ff;
  }

  .metric-panel,
  .route-card {
    background: rgba(15, 33, 27, 0.9);
  }

  .story-section {
    background: #0b1a16;
  }

  .route-metrics span {
    background: rgba(239, 248, 242, 0.08);
  }

  .site-footer {
    background: #030907;
  }
}

@media (max-width: 960px) {
  .hero-shell,
  .intro-grid,
  .release-highlight-grid,
  .story-grid,
  .recap-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .hero-visual {
    min-height: 440px;
  }

  .release-highlight-copy {
    padding-right: 0;
  }

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

  .screenshot-card-lifted {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, var(--shell));
  }

  .site-header-shell,
  .site-footer-shell,
  .section-heading,
  .about-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-list {
    width: 100%;
  }

  .nav-list a {
    padding-inline: 10px;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero {
    padding-bottom: 44px;
  }

  .hero-visual {
    min-height: 410px;
  }

  .app-icon-stage {
    top: 42px;
    width: 210px;
  }

  .metric-panel {
    min-width: 132px;
    padding: 14px;
  }

  .metric-panel strong {
    font-size: 1.45rem;
  }

  .metric-panel-primary {
    right: 16px;
    bottom: 28px;
  }

  .metric-panel-secondary {
    left: 16px;
    bottom: 84px;
  }

  .metric-panel-tertiary {
    top: 72px;
    right: 16px;
  }

  .intro-band,
  .screenshots-section,
  .feature-grid-section,
  .news-preview-section,
  .about-section,
  .page-hero,
  .release-highlight-section,
  .recap-section,
  .story-section {
    padding-block: 52px;
  }

  .feature-grid,
  .screenshot-grid,
  .news-grid,
  .list-grid,
  .terms-grid {
    grid-template-columns: 1fr;
  }

  .story-panel,
  .recap-card,
  .privacy-card {
    padding: 24px;
  }

  .route-metrics {
    grid-template-columns: 1fr;
  }

  .page-hero-shell {
    margin-inline: auto;
  }

  .pagination {
    flex-wrap: wrap;
  }
}

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

  h1 {
    font-size: 3.35rem;
  }

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

  .app-store-badge {
    width: 134px;
  }
}
