:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --ink: #141414;
  --text: #343230;
  --muted: #6f6b65;
  --line: #dedbd4;
  --line-strong: #c9c4ba;
  --accent: #ffd52e;
  --accent-ink: #5d4300;
  --soft: #f2f0ea;
  --radius: 14px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page {
  width: min(1080px, calc(100% - 60px));
  margin: 0 auto;
}

.doc-page {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

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

.brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.footer a:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 560;
}

.button.primary {
  border-color: transparent;
  background: var(--accent);
  color: #17130a;
}

.button:hover {
  border-color: #ada79d;
}

.button.primary:hover {
  background: #f0c20d;
}

.doc {
  border-top: 1px solid var(--line);
  padding: 48px 0 72px;
}

.doc h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 690;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.lead {
  max-width: 56ch;
  margin: 16px 0 0;
  color: var(--text);
  font-size: 18px;
}

.updated {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.notice {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--text);
  font-size: 15px;
}

.plans {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.plan {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan strong {
  color: var(--ink);
  font-size: 18px;
}

.price {
  color: var(--ink);
  font-weight: 650;
}

.was {
  margin-left: 8px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: line-through;
}

.doc .section {
  margin-top: 32px;
}

.doc .section h2,
.release h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.doc .section p,
.doc .section li,
.release li {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.doc .section p + p {
  margin-top: 10px;
}

.doc .section ul,
.release ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 1.2em;
}

.doc .section a,
.release a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.doc .section a:hover,
.release a:hover {
  color: var(--accent-ink);
}

.release {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.release + .release {
  margin-top: 18px;
}

.release header {
  margin-bottom: 16px;
}

.release-section + .release-section {
  margin-top: 18px;
}

.release-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}

.release ul {
  list-style: none;
  padding-left: 0;
}

.release li {
  position: relative;
  padding-left: 18px;
}

.release li::before {
  position: absolute;
  top: 0.72em;
  left: 4px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--muted);
  content: "";
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 14px;
}

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

@media (max-width: 820px) {
  .page {
    width: min(100% - 32px, 1120px);
  }
}

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

  .doc-page {
    width: min(100% - 32px, 720px);
  }

  .nav {
    padding: 16px 0;
  }

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

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