:root {
  color-scheme: light dark;
  --bg: #f5faf7;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-soft: #eaf5ef;
  --text: #1b2b24;
  --muted: #617069;
  --primary: #317b60;
  --primary-strong: #205c47;
  --border: rgba(49, 123, 96, 0.17);
  --shadow: 0 20px 60px rgba(32, 92, 71, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(109, 194, 159, 0.15), transparent 30rem),
    radial-gradient(circle at 92% 24%, rgba(243, 182, 99, 0.11), transparent 26rem),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.site-header,
footer {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(32, 92, 71, 0.14);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #317b60, #65ad8d);
  box-shadow: 0 6px 16px rgba(32, 92, 71, 0.18);
  font-size: 17px;
  font-weight: 850;
}

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

nav a {
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--primary-strong);
  background: var(--surface-soft);
}

.home-main,
.document-main {
  width: min(960px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  max-width: 760px;
  margin: 76px auto 64px;
  text-align: center;
}

.app-icon {
  border-radius: 30px;
  box-shadow: 0 22px 50px rgba(32, 92, 71, 0.18);
}

.hub-main {
  max-width: 1040px;
}

.hub-hero {
  max-width: 780px;
  margin-bottom: 54px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 88px;
  scroll-margin-top: 24px;
}

.product-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(93, 175, 139, 0.16), transparent 18rem),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.product-card.minibook-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(100, 177, 151, 0.18), transparent 18rem),
    var(--surface);
}

.product-card.minitodo-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(38, 184, 111, 0.17), transparent 18rem),
    var(--surface);
}

.product-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}

.product-heading img {
  flex: 0 0 auto;
  border-radius: 21px;
  box-shadow: 0 14px 30px rgba(32, 92, 71, 0.16);
}

.product-heading h2 {
  margin: 1px 0 2px;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.product-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.product-heading .product-kicker {
  color: var(--primary);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-features {
  min-height: 76px;
  margin: 26px 0 24px;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.product-features li {
  position: relative;
  padding-left: 22px;
}

.product-features li + li {
  margin-top: 8px;
}

.product-features li::before {
  position: absolute;
  left: 0;
  color: var(--primary);
  content: "✓";
  font-weight: 800;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eyebrow {
  margin: 22px 0 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 620px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 740;
  text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

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

.button.primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 25px rgba(49, 123, 96, 0.22);
}

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

.button.secondary {
  color: var(--primary-strong);
  border-color: var(--border);
  background: var(--surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 88px;
}

.feature-card,
.document-card,
.faq details,
.contact-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.feature-card {
  padding: 24px;
  border-radius: 24px;
}

.feature-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  color: var(--primary-strong);
  background: var(--surface-soft);
  font-size: 19px;
  font-weight: 800;
}

.feature-card h2 {
  margin: 17px 0 5px;
  font-size: 18px;
}

.feature-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.document-main {
  max-width: 780px;
}

.document-heading {
  margin: 62px 0 30px;
}

.document-heading .eyebrow {
  margin-top: 0;
}

.document-heading h1 {
  font-size: clamp(36px, 6vw, 54px);
}

.document-heading > p:last-child,
.support-heading > p:nth-of-type(2) {
  margin: 12px 0 0;
  color: var(--muted);
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  margin-top: 20px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}

.language-switcher a {
  padding: 5px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a[aria-current="true"] {
  color: var(--primary-strong);
  background: var(--surface-soft);
}

.support-heading .hero-actions {
  justify-content: flex-start;
  margin-top: 22px;
}

.document-card {
  padding: clamp(24px, 5vw, 48px);
  border-radius: 28px;
}

.document-card .lead {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 17px;
}

.document-card section + section {
  margin-top: 34px;
}

.document-card h2 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 10px;
  font-size: 19px;
}

.document-card h2 span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--primary-strong);
  background: var(--surface-soft);
  font-size: 13px;
}

.document-card section p {
  margin: 0 0 0 41px;
  color: var(--muted);
}

.faq {
  margin: 38px 0 28px;
}

.faq > h2 {
  margin: 0 0 14px;
  font-size: 21px;
}

.faq details {
  margin-bottom: 10px;
  padding: 18px 20px;
  border-radius: 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 720;
}

.faq details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 25px;
  border-radius: 22px;
}

.contact-card .eyebrow {
  margin: 0 0 4px;
}

.contact-card h2 {
  margin: 0 0 4px;
  font-size: 21px;
}

.contact-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 72px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

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

.footer-links a {
  color: inherit;
}

@media (max-width: 700px) {
  .site-header {
    min-height: auto;
    padding: 16px 0;
  }

  .brand > span:not(.brand-mark) {
    display: none;
  }

  nav {
    gap: 2px;
  }

  nav a {
    padding: 8px 9px;
    font-size: 13px;
  }

  .hero {
    margin: 50px auto 48px;
  }

  .app-icon {
    width: 108px;
    height: 108px;
    border-radius: 25px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    margin-bottom: 58px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    margin-bottom: 58px;
  }

  .product-features {
    min-height: auto;
  }

  .document-heading {
    margin-top: 42px;
  }

  .document-card {
    border-radius: 22px;
  }

  .document-card section p {
    margin-left: 0;
  }

  .contact-card {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-actions {
    justify-content: flex-start;
  }

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101813;
    --surface: rgba(28, 41, 34, 0.9);
    --surface-soft: #263e33;
    --text: #e2eee7;
    --muted: #aabbb1;
    --primary: #86d1b0;
    --primary-strong: #a9e5ca;
    --border: rgba(151, 217, 187, 0.16);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  }

  .button.primary {
    color: #0b2c1f;
  }

  .brand-mark {
    color: #0b2c1f;
  }
}

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

  .button {
    transition: none;
  }
}
