:root {
  color-scheme: light;
  --ink: #182321;
  --muted: #5c6864;
  --line: #dde4df;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --accent: #f3b541;
  --accent-strong: #d88b19;
  --green: #224c43;
  --green-soft: #e8f2ec;
  --blue: #2f6fbd;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(24, 35, 33, 0.14);
}

nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

nav a {
  text-decoration: none;
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: 40px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 600px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
  font-weight: 560;
}

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

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(34, 76, 67, 0.22);
}

.primary-button.disabled,
.primary-button[aria-disabled="true"] {
  background: #87928e;
  cursor: not-allowed;
  box-shadow: none;
}

.release-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.book-window {
  height: 430px;
  border: 1px solid rgba(24, 35, 33, 0.12);
  border-radius: 18px;
  background: #3f372a;
  box-shadow: 0 30px 90px rgba(24, 35, 33, 0.18);
  overflow: hidden;
}

.window-controls {
  display: flex;
  gap: 9px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.window-controls i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
}

.window-controls i:first-child {
  background: #f35f5f;
}

.window-controls i:last-child {
  background: #53c66b;
}

.book-page {
  padding: 52px 48px;
  color: #f7f1e5;
  font-family: Georgia, "Times New Roman", serif;
}

.line {
  max-width: 540px;
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1.42;
}

.line.strong {
  font-weight: 700;
}

.tools {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  font-family: var(--font, Inter, sans-serif);
}

.tools span {
  padding: 8px 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  font-size: 14px;
  font-weight: 750;
}

.side-panel {
  position: absolute;
  right: -22px;
  bottom: 18px;
  width: 260px;
  padding: 24px;
  border: 1px solid rgba(34, 76, 67, 0.13);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 28px 70px rgba(24, 35, 33, 0.18);
}

.side-panel img {
  border-radius: 13px;
}

.side-panel p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 650;
}

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

.feature-grid article {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

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

.feature-grid h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.feature-grid p,
.workflow li {
  color: var(--muted);
  line-height: 1.7;
  font-weight: 560;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 50px;
  align-items: start;
  padding: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7e6;
}

.workflow h2 {
  margin: 0;
  font-size: 38px;
}

.workflow ol {
  margin: 0;
  padding-left: 24px;
}

.workflow li + li {
  margin-top: 14px;
}

.download-page {
  min-height: calc(100vh - 176px);
}

.download-panel {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 52px 0 34px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.download-panel img {
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(24, 35, 33, 0.16);
}

.download-panel h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 56px);
}

.download-panel p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 560;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  text-decoration: none;
}

.legal-page {
  max-width: 820px;
  padding: 52px 0 90px;
}

.legal-page h1 {
  font-size: 44px;
}

.legal-page h2 {
  margin-top: 34px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.8;
}

.support-panel {
  max-width: 760px;
  padding: 52px 0 90px;
}

.support-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

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

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

  .side-panel {
    right: 18px;
  }

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

  .workflow {
    grid-template-columns: 1fr;
    padding: 34px;
  }

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

@media (max-width: 560px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 18px;
  }

  .book-window {
    height: 390px;
  }

  .book-page {
    padding: 36px 28px;
  }

  .line {
    font-size: 23px;
  }

  .side-panel {
    left: 18px;
    right: 18px;
    bottom: -6px;
    width: auto;
  }

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