:root {
  --bg: #f4f1ea;
  --ink: #1a1814;
  --muted: #5c574e;
  --line: #e4dfd4;
  --card: #fffcf7;
  --accent: #1a1814;
  --accent-ink: #fff;
  --soft: #ece7dc;
  --wash: #e7e2d8;
  --ok: #0f6b45;
  --warn: #9a3412;
  --danger: #b42318;
  --shadow: 0 24px 60px rgba(26, 24, 20, 0.06);
  --max: 1120px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", Consolas, "Sarasa Mono SC", ui-monospace, monospace;
}
body[data-product="memo"] { --accent: #0f766e; --soft: #e5f4f1; --wash: #d5efe9; }
body[data-product="lumen"] { --accent: #b45309; --soft: #fff3df; --wash: #fde7c2; }
body[data-product="ime"] { --accent: #6d28d9; --soft: #f3eeff; --wash: #e4dcff; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(880px 380px at 100% -8%, var(--wash), transparent 62%),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 8px 24px 72px; }
h1, h2, h3 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 0 0 14px; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.45rem, 2vw, 1.9rem); margin: 0 0 12px; letter-spacing: -0.02em; }
h3 { margin: 0 0 8px; font-size: 1.05rem; }
p { margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 40rem; }
.muted { color: var(--muted); }
.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 241, 234, 0.9);
  border-bottom: 1px solid rgba(228, 223, 212, 0.95);
  backdrop-filter: blur(16px);
}
.inner { max-width: var(--max); margin: 0 auto; padding: 14px 24px; }
.site-header .inner { display: flex; align-items: center; gap: 18px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.header-cta { margin-left: auto; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.secondary { background: transparent; color: var(--ink); border-color: #cfc8ba; }
.btn.secondary:hover { background: #fff; filter: none; }
.btn:disabled { opacity: 0.55; cursor: wait; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 32px;
  align-items: stretch;
  padding: 54px 0 10px;
}
.hero-side { display: grid; gap: 12px; align-content: end; }
.stat, .card, .product-card, .band {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.stat { padding: 16px 18px; }
.stat b { display: block; }
.stat span { color: var(--muted); font-size: 0.92rem; }
.section { margin-top: 72px; }
.grid-3, .grid-2, .steps, .product-grid { display: grid; gap: 14px; }
.grid-3, .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 20px; }
.feature p, .product-card p { color: var(--muted); margin: 0; }
.product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 230px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.product-card:hover { text-decoration: none; border-color: var(--accent); }
.product-card .go { margin-top: auto; color: var(--accent); font-weight: 700; }
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 18px 0 0; counter-reset: step; }
.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.steps strong { display: block; }
.steps span, .steps p { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.82rem; color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--ok); font-weight: 700; }
td.no { color: var(--muted); }
td.soon, .soon { color: var(--warn); font-weight: 700; }
.hero:has(> :only-child) { grid-template-columns: 1fr; }
.split .section { margin-top: 28px; }
.btn.secondary.is-on, .btn.secondary.is-on:hover { background: var(--ink); color: #fff; filter: none; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 8px 0 0; color: var(--muted); }
.band {
  margin-top: 72px;
  padding: 32px;
  background: var(--ink);
  color: #f7f4ee;
  border: 0;
}
.band p { color: #d6d3cd; }
.band .btn { background: #fff; color: var(--ink); }
.band .btn.secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 28px; align-items: start; }
.buy-card { position: sticky; top: 86px; }
.price { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -0.03em; font-size: 2rem; margin: 0; }
.price-meta { color: var(--muted); margin: 4px 0 14px; }
label { display: block; font-weight: 700; font-size: 0.86rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d9d2c5;
  background: #fff;
  margin-bottom: 12px;
}
textarea { min-height: 88px; resize: vertical; }
.hint { color: var(--muted); font-size: 0.92rem; }
form .hint, .buy-card .hint { margin-top: -6px; margin-bottom: 12px; font-size: 0.82rem; }
.callout, .badge {
  border-radius: 12px;
  padding: 12px 14px;
}
.callout { background: #fff6e8; border: 1px solid #f3d7a1; color: #7c2d12; margin: 0 0 16px; }
.badge { display: inline-block; background: #fff4d6; color: #92400e; font-size: 0.78rem; font-weight: 700; }
.ok { color: var(--ok); }
.error { color: var(--danger); }
.prose h2 { margin-top: 28px; font-size: 1.25rem; }
.prose li { margin: 6px 0; }
.version { font-size: 2rem; margin: 0 0 8px; font-weight: 700; }
.notes { white-space: pre-wrap; color: var(--muted); }
.checksum { margin-top: 16px; }
.checksum code, code.inline {
  font-family: var(--mono);
  font-size: 0.82rem;
}
.checksum code {
  display: block;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg);
  word-break: break-all;
}
.site-footer { border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 22px; padding-top: 8px; }
.foot-label { margin: 0 0 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.site-footer a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.site-footer a:hover { color: var(--ink); }
.legal-note { color: var(--muted); font-size: 0.8rem; margin: 8px 0 0; }
body.pay { display: grid; place-items: center; padding: 32px 16px; }
.pay-card { width: min(460px, 100%); }
.pay-meta { display: grid; gap: 8px; margin: 8px 0 16px; }
.pay-meta div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.pay-meta dt { color: var(--muted); }
.pay-meta dd { margin: 0; text-align: right; word-break: break-all; }
.pay-meta .price { font-size: 1.2rem; }
.pay-card .btn { width: 100%; }
body.desk table button, body.desk .row-actions a {
  border: 1px solid #d9d2c5;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}
body.desk td { word-break: break-word; }
body.desk td:first-child { font-family: var(--mono); font-size: 0.75rem; }
.btn.is-on { background: var(--ink); color: #fff; border-color: transparent; }
@media (max-width: 900px) {
  .hero, .split, .grid-3, .grid-2, .product-grid, .steps, .foot-grid { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .site-header .inner { flex-wrap: wrap; }
  .header-cta { margin-left: 0; }
  .nav-links { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
