/* getlicense.org — soft, light UI (2026-10-09 redesign) */
:root {
  --bg: #f6f8fb;
  --bg-tint: #eef3fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e6eaf1;
  --line-2: #eef1f6;
  --ink: #2f3a4d;
  --sub: #667185;
  --mute: #9aa3b2;
  --accent: #5f82c8;
  --accent-hover: #5577bd;
  --accent-ink: #4a6bb0;
  --accent-tint: #eef3fc;
  --accent-line: #dbe5f7;
  --ok: #3f9a7c;
  --ok-tint: #e9f6f0;
  --err: #b85c5c;
  --err-tint: #fbf0f0;
  --err-line: #f1d6d6;
  --shadow: 0 1px 2px rgba(40, 55, 90, .04), 0 8px 24px rgba(40, 55, 90, .05);
  --radius: 16px;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171b22; --bg-tint: #1b2029; --surface: #1f242d; --surface-2: #242a34;
    --line: #2e3542; --line-2: #2a303c; --ink: #e3e7ee; --sub: #a3acbb; --mute: #7c8596;
    --accent: #7f9edb; --accent-hover: #8eabe2; --accent-ink: #a9c0ee; --accent-tint: #232c3d; --accent-line: #33405a;
    --ok: #74c4a6; --ok-tint: #1f312b; --err: #e19a9a; --err-tint: #352325; --err-line: #4a2e31;
    --shadow: 0 1px 2px rgba(0,0,0,.2), 0 8px 24px rgba(0,0,0,.18);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic UI', 'Segoe UI', -apple-system, sans-serif;
  background: var(--bg);
  background-image: linear-gradient(180deg, var(--bg-tint) 0, var(--bg) 420px);
  background-repeat: no-repeat;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); }
img { max-width: 100%; }

/* ---------- header ---------- */
.site-header {
  background: rgba(255, 255, 255, .7);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-2);
  position: sticky; top: 0; z-index: 10;
}
@media (prefers-color-scheme: dark) { .site-header { background: rgba(23, 27, 34, .75); } }
.header-inner {
  max-width: 1040px; margin: 0 auto; padding: 0 24px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.header-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.header-sep { width: 1px; height: 18px; background: var(--line); }
.header-sub { font-size: .78rem; color: var(--sub); letter-spacing: .02em; }
@media (prefers-color-scheme: dark) { .header-brand svg path[fill="#5E5E5E"] { fill: #cfd5df; } }

/* ---------- home ---------- */
.home { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 64px 24px 72px;
  display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: start; }
.home-intro { padding-top: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 600;
  letter-spacing: .06em; color: var(--accent-ink); background: var(--accent-tint);
  border: 1px solid var(--accent-line); padding: 4px 12px; border-radius: 999px; }
.home-intro h1 { font-size: 1.85rem; line-height: 1.45; font-weight: 700; margin: 18px 0 12px; letter-spacing: .01em; }
.home-intro .lead { color: var(--sub); font-size: .95rem; margin: 0 0 26px; max-width: 30em; }
.app-icons { display: flex; gap: 10px; margin-bottom: 34px; }
.app-icons span { width: 46px; height: 46px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.app-icons img { width: 26px; height: 26px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .n { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--accent-line); color: var(--accent-ink); font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.steps b { display: block; font-size: .9rem; font-weight: 600; }
.steps small { display: block; font-size: .8rem; color: var(--sub); line-height: 1.6; }

/* ---------- card / form ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 32px; box-shadow: var(--shadow); }
.card h2 { font-size: 1.12rem; font-weight: 700; margin: 0 0 4px; }
.card-desc { font-size: .84rem; color: var(--sub); margin: 0 0 24px; }
.input-label { display: flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 600; color: var(--sub); margin-bottom: 8px; }
.input-label svg { width: 15px; height: 15px; }
.key-input { width: 100%; font-family: var(--mono); font-size: .98rem; letter-spacing: .06em; text-align: center;
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 12px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.key-input::placeholder { color: var(--mute); opacity: .7; }
.key-input:focus { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.btn-primary { width: 100%; margin-top: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: none; border-radius: 12px; padding: 13px 18px;
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; transition: background .15s, transform .1s; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(.985); }
.btn-primary:disabled { opacity: .7; cursor: default; }
@media (prefers-color-scheme: dark) { .btn-primary { color: #141821; } }
.spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.error-box { display: none; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 11px 13px;
  font-size: .82rem; color: var(--err); background: var(--err-tint); border: 1px solid var(--err-line); border-radius: 10px; }
.error-box.show { display: flex; }
.error-box svg, .info-box svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }
.info-box { display: flex; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2);
  font-size: .78rem; color: var(--sub); line-height: 1.65; }
.info-box svg { color: var(--mute); }

.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: .74rem; color: var(--mute); justify-content: center; }
.trust span { display: inline-flex; align-items: center; gap: 5px; }
.trust svg { width: 13px; height: 13px; color: var(--ok); }

/* ---------- A8 風 charity box ---------- */
.boxTop.topCharity { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative; }
.boxTop.topCharity .topTtl { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: linear-gradient(180deg, #fff7f3 0%, #fff1ea 100%); border-bottom: 1px solid #f3dccd; overflow: hidden; }
.boxTop.topCharity .topTtl::before { content: ""; position: absolute; inset: 0; background-image: url("/images/charity/bg-floral.svg"); background-repeat: repeat; background-size: 140px 140px; opacity: .55; pointer-events: none; }
.boxTop.topCharity .topTtl > * { position: relative; z-index: 1; }
.boxTop.topCharity .topTtl h3 { margin: 0; font-size: .92rem; font-weight: 700; color: #7a3b22; letter-spacing: .02em; display: flex; flex-direction: column; gap: 2px; }
.boxTop.topCharity .topTtl h3 small { font-size: .68rem; font-weight: 400; color: #a66b4a; letter-spacing: .04em; }
.boxTop.topCharity .donationAmount .txtBold small { font-size: .68rem; font-weight: 400; color: var(--mute); letter-spacing: .02em; }
.boxTop.topCharity .topTtl .link { font-size: .76rem; color: #c9472b; text-decoration: none; padding: 4px 10px; border: 1px solid #e8bca6; border-radius: 999px; background: #fff; white-space: nowrap; transition: background .15s, color .15s; }
.boxTop.topCharity .topTtl .link:hover { background: #c9472b; color: #fff; border-color: #c9472b; }
.boxTop.topCharity .topContent { padding: 14px 16px 16px; }
.boxTop.topCharity .topContent p { margin: 0 0 10px; font-size: .78rem; line-height: 1.75; color: var(--sub); }
.boxTop.topCharity .topContent p:last-child { margin-bottom: 0; }
.boxTop.topCharity .txtRed { color: #c9472b; }
.boxTop.topCharity .txtBold { font-weight: 700; color: var(--ink); }
.boxTop.topCharity .txtL { font-size: 1.95rem; }
.boxTop.topCharity .txtS { font-size: .7rem; color: var(--mute); line-height: 1.6; }
.boxTop.topCharity .txtRight { text-align: right; }
.boxTop.topCharity .donationAmount { position: relative; margin: 14px 0 10px; padding: 16px; background: #fff8f3; border: 1px dashed #e8bca6; border-radius: 10px; text-align: center; overflow: hidden; }
.boxTop.topCharity .donationAmount::before { content: ""; position: absolute; inset: 0; background-image: url("/images/charity/bg-floral.svg"); background-repeat: repeat; background-size: 140px 140px; opacity: .4; pointer-events: none; }
.boxTop.topCharity .donationAmount > * { position: relative; z-index: 1; }
.boxTop.topCharity .donationAmount .txtBold { font-size: .8rem; margin-bottom: 4px; }
.boxTop.topCharity .donationAmount .amount { margin: 0; font-size: 1rem; color: var(--sub); font-weight: 600; letter-spacing: .02em; }
.boxTop.topCharity .donationAmount .amount .txtL { line-height: 1; font-variant-numeric: tabular-nums; margin-right: 2px; }
.boxTop.topCharity .topCharityPartners { margin: 14px 0 0; }
.boxTop.topCharity .partnersLbl { margin: 0 0 8px; font-size: .7rem; font-weight: 700; color: var(--mute); letter-spacing: .06em; text-transform: uppercase; }
.boxTop.topCharity .partnersRow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.boxTop.topCharity .partnerLogo { display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 3; padding: 10px; background: #fff; border: 1px solid #f3dccd; border-radius: 8px; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.boxTop.topCharity .partnerLogo:hover { border-color: #c9472b; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(201, 71, 43, .12); }
.boxTop.topCharity .partnerLogo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
@media (prefers-color-scheme: dark) {
  .boxTop.topCharity .topTtl { background: linear-gradient(180deg, #2a1f17 0%, #241b14 100%); border-bottom-color: #4a3220; }
  .boxTop.topCharity .topTtl h3 { color: #f0cfb5; }
  .boxTop.topCharity .topTtl h3 small { color: #c99477; }
  .boxTop.topCharity .topTtl .link { background: #241b14; color: #ea8168; border-color: #4a3220; }
  .boxTop.topCharity .topTtl .link:hover { background: #c9472b; color: #fff; }
  .boxTop.topCharity .donationAmount { background: #241b14; border-color: #4a3220; }
  .boxTop.topCharity .txtRed { color: #ea8168; }
  .boxTop.topCharity .partnerLogo { background: #fdfdfd; border-color: #4a3220; }
  .boxTop.topCharity .topTtl::before { opacity: .18; }
  .boxTop.topCharity .donationAmount::before { opacity: .14; }
}

/* ---------- /charity/top page ---------- */
.charity-page { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 48px 24px 72px; }
.charity-back { margin-bottom: 18px; }
.charity-back a { color: var(--sub); text-decoration: none; font-size: .82rem; }
.charity-back a:hover { color: var(--accent-ink); }
.charity-page h1 { font-size: 1.5rem; margin: 0 0 10px; letter-spacing: .01em; }
.charity-page .lead { color: var(--sub); font-size: .9rem; line-height: 1.75; margin: 0 0 26px; }
.charity-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 24px; }
.charity-stats .stat { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.charity-stats .stat .lbl { font-size: .72rem; color: var(--mute); margin-bottom: 6px; letter-spacing: .04em; }
.charity-stats .stat .val { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.charity-stats .stat.give .val { color: #c9472b; }
.charity-stats .stat.keep .val { color: var(--ink); }
.charity-pledge-bar { display: flex; height: 10px; margin: 0 0 24px; border-radius: 999px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-2); }
.charity-pledge-bar .seg-keep { background: #d4b891; }
.charity-pledge-bar .seg-give { background: linear-gradient(90deg, #e8785a 0%, #c9472b 100%); }
.charity-page h2 { font-size: 1.05rem; margin: 28px 0 12px; }
.charity-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.charity-table th, .charity-table td { padding: 10px 14px; font-size: .82rem; text-align: left; border-bottom: 1px solid var(--line-2); }
.charity-table th { background: var(--surface-2); font-weight: 600; color: var(--sub); font-size: .74rem; letter-spacing: .04em; }
.charity-table tr:last-child td { border-bottom: 0; }
.charity-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.charity-table .num.give { color: #c9472b; font-weight: 600; }
.charity-empty { padding: 36px 20px; text-align: center; color: var(--mute); font-size: .85rem; background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; }

/* ---------- organisation grid ---------- */
.charity-orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 0 0 24px; }
.charity-org { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.charity-org:hover { border-color: var(--accent-line); transform: translateY(-1px); box-shadow: var(--shadow); }
.charity-org-logo { aspect-ratio: 5 / 3; display: flex; align-items: center; justify-content: center; background: #fdfdfd; border-bottom: 1px solid var(--line-2); padding: 10px; overflow: hidden; }
.charity-org-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.charity-org-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px dashed; padding: 10px; }
.charity-org-ph-name { font-size: .78rem; font-weight: 700; line-height: 1.45; text-align: center; letter-spacing: .02em; word-break: keep-all; overflow-wrap: anywhere; }
.charity-org-meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.charity-org-tag { align-self: flex-start; font-size: .66rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .04em; }
.charity-org-name { font-size: .78rem; line-height: 1.5; color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
@media (prefers-color-scheme: dark) {
  .charity-org-logo { background: #1b1e22; }
}

@media (max-width: 560px) {
  .charity-stats { grid-template-columns: 1fr; }
  .boxTop.topCharity .donationAmount .txtL { font-size: 1.65rem; }
  .charity-orgs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .charity-org-ph-name { font-size: .72rem; }
  .charity-org-name { font-size: .74rem; }
}

/* ---------- footer ---------- */
.site-footer { text-align: center; padding: 28px 20px 36px; font-size: .78rem; color: var(--mute); border-top: 1px solid var(--line-2); }
.site-footer a { color: var(--sub); text-decoration: none; }
.site-footer a:hover { color: var(--accent-ink); }
.footer-dot { margin: 0 10px; }
.site-footer .copyright { margin-top: 6px; font-size: .72rem; }

/* ---------- download page ---------- */
.dl2 { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 48px 24px 72px; }
.dl2-confirm { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--ok);
  background: var(--ok-tint); padding: 6px 14px 6px 8px; border-radius: 999px; margin-bottom: 18px; }
.dl2-confirm .ck { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.dl2-confirm .ck svg { width: 13px; height: 13px; stroke: var(--ok); }
.dl2-prodcard { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; box-shadow: var(--shadow); }
.dl2-eyebrow { font-size: .7rem; font-weight: 600; letter-spacing: .1em; color: var(--mute); }
.dl2-prodname { font-size: 1.3rem; font-weight: 700; margin-top: 4px; }
.dl2-keybox { margin-top: 18px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 12px 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dl2-keybox .lbl { font-size: .66rem; font-weight: 600; letter-spacing: .08em; color: var(--mute); }
.dl2-keybox .val { font-family: var(--mono); font-weight: 500; font-size: .92rem; letter-spacing: .04em; color: var(--accent-ink); word-break: break-all; }
.dl2-copy { margin-left: auto; background: var(--accent-tint); color: var(--accent-ink); border: 1px solid var(--accent-line);
  border-radius: 9px; padding: 8px 14px; font: inherit; font-size: .76rem; font-weight: 600; cursor: pointer; transition: background .15s; }
.dl2-copy:hover { background: var(--accent-line); }
.dl2-h { font-size: 1rem; font-weight: 700; margin: 40px 0 2px; }
.dl2-hsub { font-size: .82rem; color: var(--sub); margin: 0 0 16px; }
.dl2-file { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 18px; margin-bottom: 12px; transition: border-color .15s, box-shadow .15s; }
.dl2-file:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.dl2-fico { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint); color: var(--accent-ink); }
.dl2-fico.iso { background: var(--surface-2); color: var(--sub); }
.dl2-fmain { min-width: 0; flex: 1; }
.dl2-ftitle { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; font-size: .9rem; }
.dl2-tag { font-size: .64rem; font-weight: 600; color: var(--ok); background: var(--ok-tint); padding: 1px 9px; border-radius: 999px; }
.dl2-fdesc { font-size: .78rem; color: var(--sub); line-height: 1.6; margin-top: 2px; }
.dl2-fmeta { font-size: .7rem; color: var(--mute); font-family: var(--mono); margin-top: 6px; word-break: break-all; }
.dl2-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: #fff;
  border-radius: 11px; padding: 10px 18px; font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s; }
.dl2-btn:hover { background: var(--accent-hover); }
@media (prefers-color-scheme: dark) { .dl2-btn { color: #141821; } }
.dl2-empty { border: 1px dashed var(--line); border-radius: 16px; padding: 28px; text-align: center; color: var(--sub); font-size: .84rem; background: var(--surface-2); }
.dl2-steps { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.dl2-step { display: flex; gap: 14px; padding: 0 0 16px; }
.dl2-step:last-child { padding-bottom: 0; }
.dl2-num { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--accent-tint); color: var(--accent-ink);
  font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dl2-step h4 { font-size: .88rem; font-weight: 600; margin: 3px 0 2px; }
.dl2-step p { font-size: .8rem; color: var(--sub); line-height: 1.65; margin: 0; }
.dl2-notes { margin-top: 28px; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.dl2-notes .nh { font-size: .78rem; font-weight: 600; color: var(--sub); margin-bottom: 6px; }
.dl2-notes ul { margin: 0; padding-left: 18px; }
.dl2-notes li { font-size: .78rem; color: var(--sub); line-height: 1.9; }
.dl2-reset { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; color: var(--sub); font-size: .8rem; font-weight: 500;
  text-decoration: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 16px; background: var(--surface); transition: color .15s, border-color .15s; }
.dl2-reset:hover { color: var(--accent-ink); border-color: var(--accent-line); }

/* ---------- legal ---------- */
.legal-container { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 44px 24px 72px; }
.legal-back a { font-size: .82rem; color: var(--sub); text-decoration: none; }
.legal-back a:hover { color: var(--accent-ink); }
.legal-container h1 { font-size: 1.5rem; margin: 16px 0 24px; }
.legal-section { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-bottom: 16px; }
.legal-section h2 { font-size: 1rem; margin: 0 0 10px; }
.legal-section p { font-size: .86rem; color: var(--sub); margin: 0 0 12px; }
.legal-highlight { font-size: .82rem; color: var(--accent-ink); background: var(--accent-tint); border-radius: 10px; padding: 11px 14px; }
.legal-trademark-list { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.legal-trademark-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: .82rem; border-bottom: 1px solid var(--line-2); }
.legal-trademark-item:last-child { border-bottom: none; }
.legal-tm-name { font-weight: 600; }
.legal-tm-owner { color: var(--mute); font-size: .76rem; }
.legal-updated { font-size: .76rem; color: var(--mute); margin-top: 20px; }

/* ---------- motion / responsive ---------- */
.fade-in { animation: fadeIn .45s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-in, .spinner { animation: none; } }

@media (max-width: 880px) {
  .home { grid-template-columns: 1fr; gap: 36px; padding: 32px 16px 56px; max-width: 520px; }
  .home-card { order: -1; }
  .home-intro { padding-top: 0; }
  .home-intro h1 { font-size: 1.4rem; }
}
@media (max-width: 540px) {
  .header-inner { padding: 0 16px; }
  .card { padding: 24px 20px; }
  .key-input { font-size: .86rem; letter-spacing: .02em; }
  .dl2, .legal-container { padding-left: 16px; padding-right: 16px; }
  .dl2-file { flex-wrap: wrap; }
  .dl2-btn { width: 100%; justify-content: center; }
}

/* ---------- header nav ---------- */
.header-nav { display: flex; gap: 4px; }
.header-nav a { font-size: .82rem; color: var(--sub); text-decoration: none; padding: 6px 12px; border-radius: 8px; }
.header-nav a:hover { color: var(--ink); background: var(--surface-2); }
.header-nav a.on { color: var(--accent-ink); background: var(--accent-tint); font-weight: 600; }
@media (max-width: 540px) {
  .header-sub, .header-sep { display: none; }
  .header-nav a { padding: 6px 9px; font-size: .78rem; }
}

/* ---------- CID portal ---------- */
.cid { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 56px 24px 72px;
  display: grid; grid-template-columns: 1fr 480px; gap: 56px; align-items: start; }
.cid-intro { padding-top: 12px; }
.cid-intro h1 { font-size: 1.85rem; line-height: 1.45; font-weight: 700; margin: 18px 0 12px; }
.cid-intro .lead { color: var(--sub); font-size: .95rem; margin: 0 0 30px; max-width: 30em; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  min-height: 150px; padding: 20px; border: 1.5px dashed var(--accent-line); border-radius: 14px; background: var(--surface-2);
  color: var(--sub); cursor: pointer; transition: border-color .15s, background .15s; outline: none; }
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--accent); background: var(--accent-tint); }
.drop svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 4px; }
.drop b { font-size: .88rem; color: var(--ink); font-weight: 600; }
.drop small { font-size: .74rem; color: var(--mute); }
.drop img { max-width: 100%; max-height: 180px; border-radius: 8px; margin-top: 10px; border: 1px solid var(--line); }
.drop.has svg { display: none; }
.ocr { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .78rem; color: var(--sub); }
.ocr .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1s ease-in-out infinite; flex-shrink: 0; }
.ocr.done { color: var(--ok); } .ocr.done .dot { background: var(--ok); animation: none; }
.ocr.fail { color: var(--err); } .ocr.fail .dot { background: var(--err); animation: none; }
@keyframes pulse { 50% { opacity: .3; } }
.iid-input { width: 100%; resize: vertical; font-family: var(--mono); font-size: .9rem; line-height: 1.7; letter-spacing: .03em;
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s; }
.iid-input::placeholder { color: var(--mute); opacity: .6; }
.iid-input:focus { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.iid-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: .74rem; color: var(--mute); }
.iid-meta .ok { color: var(--ok); font-weight: 600; }
.linkbtn { border: none; background: none; padding: 0; font: inherit; color: var(--sub); cursor: pointer; }
.linkbtn:hover { color: var(--accent-ink); }
.cid-result { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.cid-result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cid-result-head .dl2-confirm { margin: 0; }
.cid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cid-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, background .15s; }
.cid-cell:hover { border-color: var(--accent-line); background: var(--accent-tint); }
.cid-cell.copied { border-color: var(--ok); background: var(--ok-tint); }
.cid-cell span { font-size: .66rem; font-weight: 700; color: var(--mute); }
.cid-cell b { font-family: var(--mono); font-size: .98rem; font-weight: 500; color: var(--accent-ink); letter-spacing: .04em; }
.cid-tip { font-size: .74rem; color: var(--mute); margin: 10px 0 0; }
.cid-note { font-size: .74rem; color: var(--mute); text-align: center; margin: 14px 8px 0; line-height: 1.7; }
.cid-value { margin-top: 32px; padding: 20px; background: #fff8f3; border: 1px solid #f3dccd; border-radius: 14px; }
.cid-value h2 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 700; color: #7a3b22; display: flex; align-items: center; gap: 8px; }
.cid-value h2::before { content: ""; display: inline-block; width: 4px; height: 18px; background: #c9472b; border-radius: 2px; }
.cid-value > p { margin: 0 0 16px; font-size: .88rem; line-height: 1.75; color: var(--sub); }
.cid-value > p b { color: var(--ink); font-weight: 700; }
.cid-price { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.cid-price-item { padding: 14px 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; min-width: 0; }
.cid-price-lbl { font-size: .66rem; font-weight: 700; color: var(--mute); letter-spacing: .02em; white-space: nowrap; }
.cid-price-val { font-size: 1.05rem; font-weight: 700; color: var(--sub); font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.cid-price-unit { font-size: .68rem; font-weight: 500; color: var(--mute); white-space: nowrap; }
.cid-price-item.ours .cid-price-lbl { color: #ffd9c9; }
.cid-price-item.ours .cid-price-val { color: #fff; font-size: 1.3rem; }
.cid-price-item.ours .cid-price-unit { color: #ffd9c9; }
@media (max-width: 420px) {
  .cid-price-lbl, .cid-price-unit { white-space: normal; }
  .cid-price-val { font-size: .95rem; }
  .cid-price-item.ours .cid-price-val { font-size: 1.15rem; }
}
.cid-price-item.ours { background: linear-gradient(180deg, #c9472b 0%, #a63a22 100%); border-color: #a63a22; }
.cid-price-vs { color: #c9472b; display: flex; align-items: center; }
.cid-price-vs svg { width: 22px; height: 22px; }
.cid-reuse { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.cid-reuse h2 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.cid-reuse h2::before { content: ""; display: inline-block; width: 4px; height: 18px; background: #c9472b; border-radius: 2px; }
.cid-reuse > p { margin: 0 0 14px; font-size: .88rem; line-height: 1.75; color: var(--sub); }
.cid-reuse-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cid-reuse-list li { position: relative; padding: 10px 14px 10px 36px; background: #fff8f3; border: 1px solid #f3dccd; border-radius: 10px; font-size: .82rem; line-height: 1.7; color: var(--sub); }
.cid-reuse-list li::before { content: ""; position: absolute; left: 12px; top: 14px; width: 16px; height: 16px; border-radius: 50%; background: #c9472b url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 13l4 4L19 7'/></svg>") center/11px 11px no-repeat; }
.cid-reuse-list b { color: var(--ink); font-weight: 700; }
@media (prefers-color-scheme: dark) {
  .cid-reuse-list li { background: #241b14; border-color: #4a3220; }
  .cid-reuse h2::before { background: #ea8168; }
  .cid-reuse-list li::before { background-color: #ea8168; }
  .cid-value { background: #241b14; border-color: #4a3220; }
  .cid-value h2 { color: #f0cfb5; }
  .cid-value h2::before { background: #ea8168; }
  .cid-price-item { background: #1b1e22; border-color: var(--line); }
  .cid-price-item.ours { background: linear-gradient(180deg, #c9472b 0%, #a63a22 100%); }
  .cid-price-vs { color: #ea8168; }
}
@media (max-width: 880px) {
  .cid { grid-template-columns: 1fr; gap: 32px; padding: 28px 16px 56px; max-width: 560px; }
  .cid-intro h1 { font-size: 1.4rem; }
}
@media (max-width: 340px) { .cid-grid { grid-template-columns: repeat(2, 1fr); } }
.ocr[hidden], .drop img[hidden], .cid-result[hidden] { display: none; }
@media (max-width: 540px) { .site-footer { padding-bottom: 84px; } .cid-cell b { font-size: .9rem; } }

/* ---------- brand ---------- */
.gl-mark { display: block; flex-shrink: 0; }
.gl-word { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); margin-left: -2px; }
.gl-word span { font-weight: 500; color: var(--mute); }
.home-intro .steps a { color: var(--accent-ink); }

/* ---------- download page (dlx) ---------- */
.dlx { flex: 1; width: 100%; }
.dlx-hero { background: linear-gradient(135deg, #eaf1fc 0%, #f1eefa 55%, #f7f4ee 100%); border-bottom: 1px solid var(--line-2); }
@media (prefers-color-scheme: dark) { .dlx-hero { background: linear-gradient(135deg, #1d2534 0%, #221f2e 55%, #26231d 100%); } }
.dlx-hero-in { max-width: 1040px; margin: 0 auto; padding: 44px 24px 40px; display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: center; }
.dlx-ok { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; color: var(--ok);
  background: var(--surface); border: 1px solid var(--line); padding: 4px 12px 4px 9px; border-radius: 999px; }
.dlx-ok svg { width: 13px; height: 13px; }
.dlx-hero h1 { font-size: 2rem; font-weight: 700; line-height: 1.3; margin: 14px 0 6px; letter-spacing: -.005em; }
.dlx-hero-main > p { color: var(--sub); font-size: .9rem; margin: 0 0 20px; }
.dlx-key { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 8px 16px; box-shadow: var(--shadow); }
.dlx-key-lbl { font-size: .68rem; font-weight: 600; color: var(--mute); letter-spacing: .06em; }
.dlx-key code { font-family: var(--mono); font-size: 1rem; font-weight: 500; color: var(--accent-ink); letter-spacing: .05em; word-break: break-all; }
.dlx-key button { display: inline-flex; align-items: center; gap: 6px; border: none; background: var(--accent-tint); color: var(--accent-ink);
  border-radius: 9px; padding: 8px 13px; font: inherit; font-size: .76rem; font-weight: 600; cursor: pointer; }
.dlx-key button:hover { background: var(--accent-line); }
.dlx-key button.ok { background: var(--ok-tint); color: var(--ok); }
.dlx-key button svg { width: 14px; height: 14px; }
.dlx-progress { list-style: none; margin: 0; padding: 18px; background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: 16px; }
@media (prefers-color-scheme: dark) { .dlx-progress { background: rgba(31,36,45,.6); } }
.dlx-progress li { display: flex; align-items: center; gap: 12px; font-size: .84rem; color: var(--mute); position: relative; padding: 8px 0; }
.dlx-progress li + li::before { content: ''; position: absolute; left: 13px; top: -10px; height: 20px; width: 2px; background: var(--line); }
.dlx-progress li span { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; background: var(--surface); border: 1px solid var(--line); color: var(--mute); flex-shrink: 0; position: relative; z-index: 1; }
.dlx-progress li span svg { width: 13px; height: 13px; }
.dlx-progress li.done { color: var(--ok); } .dlx-progress li.done span { background: var(--ok-tint); border-color: transparent; color: var(--ok); }
.dlx-progress li.now { color: var(--ink); font-weight: 600; } .dlx-progress li.now span { background: var(--accent); border-color: var(--accent); color: #fff; }

.dlx-wrap { max-width: 1040px; margin: 0 auto; padding: 36px 24px 72px; display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.dlx-h { font-size: 1.05rem; font-weight: 700; margin: 0 0 14px; }
.dlx-main > .dlx-h:not(:first-child) { margin-top: 40px; }
.dlx-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.dlx-notice { display: flex; gap: 14px; margin-top: 20px; padding: 16px 18px; background: #fff8ec; border: 1px solid #f3d8a6; border-radius: 14px; }
.dlx-notice-ico { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #f6b73c; color: #fff; }
.dlx-notice-ico svg { width: 20px; height: 20px; }
.dlx-notice-body { flex: 1; min-width: 0; }
.dlx-notice-body b { display: block; font-size: .9rem; font-weight: 700; color: #7a5420; margin-bottom: 6px; }
.dlx-notice-body p { margin: 0 0 8px; font-size: .82rem; line-height: 1.75; color: var(--sub); }
.dlx-notice-body p:last-child { margin-bottom: 0; }
.dlx-notice-body a { color: #a66b1e; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; white-space: nowrap; }
.dlx-notice-body a:hover { color: #7a5420; }
.dlx-notice-ext { width: 11px; height: 11px; margin-left: 3px; vertical-align: -1px; display: inline-block; }
@media (prefers-color-scheme: dark) {
  .dlx-notice { background: #2a2114; border-color: #4a3a1f; }
  .dlx-notice-ico { background: #a67a28; }
  .dlx-notice-body b { color: #f0cf85; }
  .dlx-notice-body a { color: #e8b86a; }
  .dlx-notice-body a:hover { color: #f0cf85; }
}
.dlx-file { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.dlx-file:hover { border-color: var(--accent-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.dlx-file.rec { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-tint) 0, var(--surface) 90px); }
.dlx-file-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.dlx-file-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; }
.dlx-file-ico svg { width: 20px; height: 20px; }
.dlx-kind { font-family: var(--mono); font-size: .7rem; font-weight: 500; color: var(--sub); background: var(--surface-2); border: 1px solid var(--line-2); padding: 1px 8px; border-radius: 6px; }
.dlx-rec { margin-left: auto; font-size: .68rem; font-weight: 700; color: var(--ok); background: var(--ok-tint); padding: 2px 10px; border-radius: 999px; }
.dlx-file h3 { font-size: .98rem; font-weight: 700; margin: 0 0 4px; }
.dlx-file p { font-size: .8rem; color: var(--sub); line-height: 1.7; margin: 0 0 10px; flex: 1; }
.dlx-meta { font-family: var(--mono); font-size: .7rem; color: var(--mute); word-break: break-all; margin-bottom: 14px; }
.dlx-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; text-decoration: none;
  border-radius: 12px; padding: 11px; font-size: .86rem; font-weight: 600; transition: background .15s; }
.dlx-btn:hover { background: var(--accent-hover); }
.dlx-btn svg { width: 17px; height: 17px; }
.dlx-file:not(.rec) .dlx-btn { background: var(--surface); color: var(--accent-ink); border: 1px solid var(--accent-line); }
.dlx-file:not(.rec) .dlx-btn:hover { background: var(--accent-tint); }
@media (prefers-color-scheme: dark) { .dlx-file.rec .dlx-btn { color: #141821; } }
.dlx-empty { padding: 28px; text-align: center; font-size: .84rem; color: var(--sub); border: 1px dashed var(--line); border-radius: 16px; background: var(--surface-2); }

.dlx-timeline { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.dlx-timeline li { position: relative; padding: 0 0 22px 46px; counter-increment: st; }
.dlx-timeline li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent-ink); font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dlx-timeline li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 34px; bottom: 4px; width: 2px; background: var(--line); }
.dlx-timeline b { display: block; font-size: .92rem; margin: 3px 0 2px; }
.dlx-timeline p { margin: 0; font-size: .82rem; color: var(--sub); line-height: 1.75; }
.dlx-timeline a { color: var(--accent-ink); }

.dlx-story { margin-top: 26px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.dlx-story .dlx-h { margin-top: 0 !important; font-size: 1.15rem; }
.dlx-price { display: flex; align-items: stretch; gap: 10px; margin: 6px 0 22px; }
.dlx-price-item { flex: 1; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.dlx-price-item span { display: block; font-size: .72rem; color: var(--mute); margin-bottom: 4px; }
.dlx-price-item b { font-size: 1.25rem; font-weight: 700; color: var(--sub); text-decoration: line-through; text-decoration-color: rgba(184,92,92,.5); text-decoration-thickness: 2px; }
.dlx-price-item b small { font-size: .8rem; font-weight: 500; }
.dlx-price-item.ours { background: var(--ok-tint); border-color: transparent; }
.dlx-price-item.ours span { color: var(--ok); }
.dlx-price-item.ours b { color: var(--ok); text-decoration: none; font-size: 1.6rem; }
.dlx-price-vs { display: flex; align-items: center; color: var(--mute); }
.dlx-price-vs svg { width: 20px; height: 20px; }
.dlx-story p { font-size: .87rem; color: var(--sub); line-height: 1.95; margin: 0 0 12px; }
.dlx-story .dlx-fine { font-size: .76rem; color: var(--mute); margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line-2); }

.dlx-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.dlx-coffee { text-align: center; padding: 26px 22px 22px; border-radius: 22px; background: linear-gradient(180deg, #fbf3e8 0%, #fdfaf5 100%); border: 1px solid #f0e3cf; }
.dlx-cup { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; background: #fff; border: 1px solid #f0e3cf; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.dlx-coffee h3 { font-size: 1rem; line-height: 1.55; color: #5c4630; margin: 0 0 8px; }
.dlx-coffee p { font-size: .78rem; color: #846e55; line-height: 1.8; margin: 0 0 16px; text-align: left; }
.dlx-qr img, .dlx-qr-empty { width: 180px; height: 180px; margin: 0 auto; display: block; background: #fff; border: 1px solid #f0e3cf; border-radius: 16px; padding: 10px; object-fit: contain; }
.dlx-qr-empty { display: flex; align-items: center; justify-content: center; font-size: .78rem; color: #b8a58c; }
.dlx-paypay { margin-top: 12px; font-size: .74rem; color: #8a7358; }
.dlx-paypay b { color: #e0464b; letter-spacing: .02em; }
.dlx-pledge { margin-top: 18px; padding: 14px 14px 12px; background: #fffaf0; border: 1px solid #f0e3cf; border-radius: 14px; text-align: left; }
.dlx-pledge-ttl { font-size: .78rem; font-weight: 700; color: #5c4630; margin: 0 0 10px; letter-spacing: .02em; }
.dlx-pledge-rows { display: flex; flex-direction: column; gap: 6px; }
.dlx-pledge-row { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: #846e55; line-height: 1.5; }
.dlx-pledge-pct { flex-shrink: 0; min-width: 44px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: #b8956a; }
.dlx-pledge-row.donate .dlx-pledge-pct { color: #c9472b; }
.dlx-pledge-lbl { flex: 1; }
.dlx-pledge-bar { display: flex; height: 8px; margin: 12px 0 10px; border-radius: 999px; overflow: hidden; background: #f0e3cf; }
.dlx-pledge-bar-keep { background: #d4b891; }
.dlx-pledge-bar-give { background: linear-gradient(90deg, #e8785a 0%, #c9472b 100%); }
.dlx-pledge-note { margin: 0; font-size: .72rem; color: #a08b70; line-height: 1.6; text-align: center; }
@media (prefers-color-scheme: dark) {
  .dlx-coffee { background: linear-gradient(180deg, #2b261f 0%, #24211c 100%); border-color: #3d372b; }
  .dlx-cup { background: #1f1c18; border-color: #3d372b; }
  .dlx-coffee h3 { color: #ecdcc2; } .dlx-coffee p, .dlx-paypay { color: #c9b89c; }
  .dlx-pledge { background: #241f19; border-color: #3d372b; }
  .dlx-pledge-ttl { color: #ecdcc2; }
  .dlx-pledge-row { color: #c9b89c; }
  .dlx-pledge-pct { color: #d4b891; }
  .dlx-pledge-row.donate .dlx-pledge-pct { color: #ea8168; }
  .dlx-pledge-bar { background: #3d372b; }
  .dlx-pledge-note { color: #a08b70; }
}
.dlx-cid { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s; }
.dlx-cid:hover { border-color: var(--accent-line); background: var(--accent-tint); }
.dlx-cid-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-tint); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dlx-cid-ico svg { width: 19px; height: 19px; }
.dlx-cid > span:nth-child(2) { flex: 1; }
.dlx-cid b { display: block; font-size: .86rem; }
.dlx-cid small { display: block; font-size: .74rem; color: var(--sub); }
.dlx-cid > svg { width: 16px; height: 16px; color: var(--mute); }
.dlx-out { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: .78rem; color: var(--sub); text-decoration: none; padding: 8px; }
.dlx-out:hover { color: var(--accent-ink); }
.dlx-out svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .dlx-hero-in { grid-template-columns: 1fr; gap: 22px; padding: 30px 16px 28px; }
  .dlx-progress { display: flex; justify-content: space-between; padding: 12px 14px; }
  .dlx-progress li { flex-direction: column; gap: 6px; font-size: .7rem; text-align: center; padding: 0; flex: 1; }
  .dlx-progress li + li::before { display: none; }
  .dlx-hero h1 { font-size: 1.45rem; }
  .dlx-wrap { grid-template-columns: 1fr; padding: 26px 16px 56px; gap: 28px; }
  .dlx-side { position: static; }
}
@media (max-width: 540px) {
  .dlx-key { display: flex; padding: 10px 12px; gap: 8px; }
  .dlx-key code { font-size: .88rem; flex: 1 1 100%; order: 2; }
  .dlx-key-lbl { order: 1; flex: 1; }
  .dlx-key button { order: 1; }
  .dlx-story { padding: 20px; }
  .dlx-price { flex-direction: column; }
  .dlx-price-vs { justify-content: center; transform: rotate(90deg); }
}

/* ---------- narrow phones ---------- */
.header-nav a { white-space: nowrap; }
@media (max-width: 400px) {
  .header-inner { padding: 0 12px; }
  .gl-word { font-size: .98rem; }
  .gl-word span { display: none; }
  .header-nav { gap: 2px; }
  .header-nav a { padding: 6px 8px; font-size: .74rem; }
  .key-input { font-size: .8rem; letter-spacing: 0; padding: 14px 8px; }
  .card { padding: 22px 16px; }
  .home, .cid { padding-left: 12px; padding-right: 12px; }
  .dlx-key code { font-size: .82rem; letter-spacing: .02em; }
}
