:root {
  color-scheme: light dark;
  --bg: #f7f7f5; --surface: #fff; --text: #1d1d1b; --muted: #6b6b66; --line: #e2e1dc;
  --accent: #2f5fd0; --accent-text: #fff; --bad: #b3261e; --ok: #2e7d4f; --note-bg: #ecebe7;
  font-family: system-ui, -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px; line-height: 1.6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615; --surface: #1f1f1d; --text: #ecebe6; --muted: #a2a19b; --line: #34332f;
    --accent: #8aa9f5; --accent-text: #161615; --bad: #f08a80; --ok: #7cc79a; --note-bg: #2b2a27;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--accent); }
.box { max-width: 420px; margin: 48px auto; padding: 32px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 480px) { .box { margin: 0; min-height: 100vh; border: 0; border-radius: 0; padding: 24px 16px; } }
.brand { display: inline-block; margin-bottom: 20px; font-weight: 700; color: var(--text); text-decoration: none; }
h1 { font-size: 24px; margin: 0 0 20px; }
h2 { font-size: 18px; margin: 0 0 8px; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
label small { font-size: 12px; }
input[type=email], input[type=password] { font: inherit; color: var(--text); background: var(--bg); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
label.check { display: flex; gap: 8px; align-items: flex-start; color: var(--text); }
label.check input { margin-top: 5px; }
button, .button { font: inherit; font-weight: 600; padding: 10px 16px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-text); cursor: pointer; text-align: center; text-decoration: none; display: inline-block; }
button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
button:disabled { opacity: .6; cursor: wait; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.form-error { color: var(--bad); margin: 0; min-height: 1.6em; font-size: 14px; }
.form-error:empty { min-height: 0; }
.form-status { color: var(--ok); margin: 8px 0 0; font-size: 14px; }
.panel { margin-top: 8px; }
.panel[hidden], form[hidden] { display: none; }
.note { background: var(--note-bg); padding: 12px 14px; border-radius: 8px; }
.muted { color: var(--muted); }
.links { margin-top: 24px; font-size: 14px; color: var(--muted); }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.box.wide { max-width: 960px; }
fieldset.cycle { display: flex; gap: 16px; align-items: center; border: 0; padding: 0; margin: 0 0 20px; }
fieldset.cycle legend { float: left; margin-right: 8px; color: var(--muted); font-size: 14px; }
fieldset.cycle label { display: flex; gap: 6px; align-items: center; color: var(--text); font-size: 16px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.tier { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.tier h2, .tier p { margin: 0; }
.tier ul { margin: 0; padding-left: 20px; flex: 1; }
.price { font-size: 28px; font-weight: 700; }
.price .muted { font-size: 14px; font-weight: 400; }
.small { font-size: 13px; }
footer.site { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.legal h2 { margin-top: 28px; }
.legal ol { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--muted); font-weight: 600; white-space: nowrap; }
