:root {
  color-scheme: light;
  --cream: #f6f1e8;
  --paper: #fffcf6;
  --sage: #6f9a8d;
  --ground: #2f5f52;
  --breath: #8db7c7;
  --amber: #d79a63;
  --ink: #202623;
  --muted: #56645d;
  --line: #ded8cd;
  --wash: #eef6f4;
  --danger: #b94b4b;
  --max: 1120px;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--ground);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #21483e;
}

a:focus-visible,
button:focus-visible {
  outline: 4px solid rgba(141, 183, 199, 0.72);
  outline-offset: 4px;
}

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 252, 246, 0.92);
  border-bottom: 1px solid rgba(222, 216, 205, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
  letter-spacing: 0;
}

.mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  font-weight: 650;
}

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

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

.hero {
  position: relative;
  min-height: 74svh;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255,252,246,0.99) 0%, rgba(255,252,246,0.98) 54%, rgba(255,252,246,0.66) 74%, rgba(255,252,246,0.18) 100%), url("assets/screenshots/lento-acute.png");
  background-size: cover, auto 112%;
  background-position: center, right -150px top 46%;
  background-repeat: no-repeat;
}

.hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 38px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--ground);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(42px, 5.8vw, 70px);
  font-weight: 820;
  text-wrap: balance;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
}

h3 {
  margin: 0 0 10px;
  font-size: 23px;
  font-weight: 760;
}

.lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.hero .lead[lang] {
  max-width: 620px;
  margin-top: 22px;
  font-size: 18px;
}

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

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 760;
  text-decoration: none;
}

.button {
  background: var(--ground);
  color: var(--paper);
}

.button:hover {
  color: var(--paper);
  background: #244b41;
}

.button-secondary {
  color: var(--ground);
  border: 1px solid rgba(47, 95, 82, 0.3);
  background: rgba(255, 252, 246, 0.72);
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.section.compact {
  padding: 54px 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 54px;
  align-items: start;
}

.intro-text {
  color: var(--muted);
  font-size: 19px;
}

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

.feature,
.note,
.legal-card,
.screenshot-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 246, 0.78);
}

.feature {
  padding: 22px;
}

.feature p,
.legal-card p,
.note p {
  margin: 0;
  color: var(--muted);
}

.feature-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--ground);
}

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

.screenshot-frame {
  overflow: hidden;
  background: var(--paper);
}

.screenshot-frame img {
  width: 100%;
  height: auto;
}

.caption {
  margin: 10px 14px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.band {
  background: var(--wash);
  border-block: 1px solid rgba(141, 183, 199, 0.32);
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  padding: 16px 18px;
  border: 1px solid rgba(47, 95, 82, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 252, 246, 0.76);
  color: var(--muted);
}

.checks strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.note {
  padding: 24px;
}

.note.warning {
  border-color: rgba(185, 75, 75, 0.36);
  background: #fff8f5;
}

.note.warning strong {
  color: var(--danger);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 246, 0.82);
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.toc a:hover {
  color: var(--ground);
}

.legal-page {
  background: var(--paper);
}

.legal-hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 48px;
}

.legal-hero h1 {
  max-width: 840px;
  font-size: clamp(38px, 6vw, 68px);
}

.legal-card {
  padding: 30px;
  margin-bottom: 18px;
}

.legal-card ul,
.legal-card ol {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-card strong {
  color: var(--ink);
}

.zh-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 4px solid var(--breath);
  background: rgba(141, 183, 199, 0.14);
  color: #394942;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

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

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

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

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 76svh;
  }

  .hero::before {
    background-image: linear-gradient(180deg, rgba(255,252,246,0.98) 0%, rgba(255,252,246,0.9) 52%, rgba(255,252,246,0.35) 100%), url("assets/screenshots/lento-acute.png");
    background-size: cover, 94% auto;
    background-position: center, right -160px bottom -180px;
  }

  .hero-inner {
    padding: 76px 0 70px;
  }

  .lead {
    font-size: 19px;
  }

  .two-column,
  .legal-layout,
  .feature-grid,
  .checks {
    grid-template-columns: 1fr;
  }

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

  .toc {
    position: static;
  }

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

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

  .nav,
  .hero-inner,
  .section,
  .legal-hero,
  .footer-inner {
    width: auto;
    margin-left: 16px;
    margin-right: 16px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(31px, 8.5vw, 34px);
    line-height: 1.12;
  }

  .hero .lead {
    max-width: 100%;
  }

  .hero .lead[lang] {
    font-size: 16px;
  }

  .section {
    padding: 64px 0;
  }

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

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

  .button,
  .button-secondary {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
