:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d2125;
  --muted: #5b636b;
  --line: #e3e1db;
  --accent: #1f5fae;
  --accent-ink: #ffffff;
  --accent-soft: #e8f0fa;
  --note: #fff6e0;
  --note-line: #e9c46a;
  --tip: #e9f6ee;
  --tip-line: #7cc49a;
  --radius: 10px;
  --max: 760px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181b;
    --surface: #1d2126;
    --text: #e8eaec;
    --muted: #a3abb3;
    --line: #2e343a;
    --accent: #6ea8ff;
    --accent-ink: #0d1520;
    --accent-soft: #1b2a3d;
    --note: #2e2717;
    --note-line: #8a6d24;
    --tip: #17291f;
    --tip-line: #3d7a55;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 700; text-decoration: none; color: var(--text); letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
header.site nav a:hover { color: var(--text); }
main { padding: 28px 0 48px; }
h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 23px; line-height: 1.3; margin: 36px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 19px; margin: 24px 0 8px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.lead { font-size: 19px; color: var(--text); }
ol.steps { padding-left: 1.4em; }
ol.steps li { margin: 8px 0; padding-left: 4px; }
code, kbd {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em;
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 1px 5px;
}
kbd { border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.note, .tip { border-left: 4px solid var(--note-line); background: var(--note); padding: 10px 14px; border-radius: 6px; margin: 16px 0; }
.tip { border-left-color: var(--tip-line); background: var(--tip); }
details { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 10px 0; background: var(--surface); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 2px; }
ul.sources { font-size: 15px; color: var(--muted); }

/* One-click box */
.cta {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: var(--accent-soft);
}
.cta .cta-title { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.cta p { margin: 0 0 12px; color: var(--text); }
.cta .price { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.btn {
  display: inline-block;
  border: 0;
  border-radius: 9px;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

/* Home */
.hero { padding: 12px 0 8px; }
.hero p { font-size: 19px; color: var(--muted); }
.features { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 20px 0; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.feature strong { display: block; margin-bottom: 4px; }
.plans { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 16px 0; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.plan .amount { font-size: 26px; font-weight: 700; }
.plan ul { padding-left: 1.2em; margin: 8px 0 14px; }
ul.guides { list-style: none; padding: 0; }
ul.guides li { margin: 8px 0; }

/* Modal */
dialog {
  width: min(520px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: var(--surface);
  color: var(--text);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
dialog h2 { margin-top: 0; font-size: 21px; }
dialog label, .form label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: 15px; }
dialog input[type=email], dialog select, .form input[type=email] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
  color: var(--text);
}
dialog .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); }
dialog .check input { margin-top: 4px; }
dialog .actions, .form .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.form { max-width: 420px; margin: 20px 0 28px; }
dialog .small { font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin-top: 12px; font-weight: 600; }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 20px 0 32px; }
footer.site a { color: var(--muted); }
footer.site p { margin: 6px 0; }
