/* 帳號保衛戰 base styles. Calm on purpose: no countdowns, flashing or alarm colours (spec 12.1). */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--table) radial-gradient(circle at 20% 0, var(--table-light) 0, transparent 55%) no-repeat;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--blue); }
h1, h2 { line-height: 1.25; margin: 0 0 8px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.disclaimer { background: var(--ink); color: #f4f1e8; font-size: 13px; text-align: center; padding: 6px var(--gutter); }

.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 900; font-size: 20px; }
.logo-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border: var(--border); border-radius: 10px; background: var(--gold); box-shadow: var(--shadow-sm); font-size: 18px; }
.head-link { color: #e8f3ef; font-size: 14px; text-decoration: none; }
.head-link:hover { text-decoration: underline; }

.card { position: relative; background: var(--surface); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 22px; }
.pin { position: absolute; top: -13px; right: 16px; background: var(--blue); color: #fff; border: var(--border); border-radius: 8px; font-size: 13px; font-weight: 800; padding: 2px 10px; transform: rotate(3deg); }

.btn { display: inline-block; font: inherit; font-weight: 800; color: var(--ink); text-decoration: none; background: var(--surface); border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 10px 16px; cursor: pointer; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn-primary { background: var(--coral); color: #fff; }
.btn[disabled] { background: #efe2bf; color: var(--muted); box-shadow: none; border-style: dashed; cursor: not-allowed; transform: none; }

/* home */
.hero { background: var(--paper); margin-top: 8px; padding: 24px 22px; }
.eyebrow { margin: 0; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.hero h1 { font-size: clamp(34px, 7vw, 52px); font-weight: 900; letter-spacing: .02em; margin: 4px 0 0; }
.hero-sub { margin: 0 0 12px; font-size: 20px; font-weight: 800; color: var(--coral); }
.lead { margin: 0 0 18px; font-size: 16px; }
.lead p { margin: 0 0 8px; }
.lead p:last-child { margin-bottom: 0; font-weight: 800; }
.share-hero h1 { font-size: clamp(30px, 6vw, 44px); margin: 4px 0 10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 22px; }
.step { background: var(--paper); padding-top: 26px; }
.step h2 { font-size: 19px; font-weight: 900; }
.step p { margin: 0 0 10px; font-size: 15px; }
.step-no { position: absolute; top: -16px; left: 16px; display: grid; place-items: center; width: 34px; height: 34px; border: var(--border); border-radius: 50%; background: var(--gold); font-weight: 900; box-shadow: var(--shadow-sm); }
.cells { list-style: none; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin: 0; padding: 0; }
.cells li { height: 18px; border: 2px solid var(--ink); border-radius: 5px; background: var(--surface); }
.step .cells li:nth-child(-n+4) { background: var(--mint); }
.step .cells li:nth-child(5) { background: var(--coral); }
.coins { display: flex; gap: 6px; }
.coin { width: 30px; height: 30px; border: 3px solid var(--ink); border-radius: 50%; background: var(--gold); box-shadow: inset 0 -4px 0 var(--gold-dark), 2px 2px 0 var(--ink); }
.coin.used { background: #efe2bf; box-shadow: none; opacity: .6; }

.accounts h2, .promise h2 { font-size: 19px; font-weight: 900; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips li { display: flex; align-items: center; gap: 8px; border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--paper); padding: 6px 10px; box-shadow: var(--shadow-sm); }
.chips .svc-ic { width: 36px; height: 36px; flex: none; }
.chips b { display: block; font-size: 15px; }
.chips small { color: var(--muted); font-size: 12px; }
.note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.promise ul { margin: 0; padding-left: 20px; }
.promise li { margin: 6px 0; }

.error-page { margin-top: 16px; }
.detail { white-space: pre-wrap; background: var(--paper); padding: 10px; border-radius: 8px; font-size: 13px; }

.site-foot { color: #dcebe6; font-size: 13px; padding: 10px 0 36px; }
.site-foot .wrap { display: flex; flex-direction: column; gap: 4px; }
.site-foot a { color: #fff; }
.site-foot .ver { color: #a9cbc1; }

@media (max-width: 600px) {
  .hero { padding: 20px 16px; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
}

/* about & privacy */
.about h1 { font-size: 28px; font-weight: 900; }
.about h2 { font-size: 22px; font-weight: 900; }
.about h3 { font-size: 16px; margin: 16px 0 6px; }
.about ul { margin: 0; padding-left: 20px; }
.about li { margin: 4px 0; }
.sources { padding-left: 22px; }
.sources li { margin: 12px 0; }
.sources p { margin: 2px 0; }
.sources .src { font-size: 14px; }
.sources .used { font-size: 13px; color: var(--muted); }
