/* UTMory — brand: Deep Night Blue / Burgundy / Coral on Off White, set in Nunito. */

@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  /* Brand palette */
  --night: #0f2744;
  --burgundy: #7b1f2a;
  --coral: #ff6b6b;
  --blush: #fadbd8;
  --mist: #e8eef0;
  --offwhite: #fafbfc;

  /* Roles */
  --paper: var(--offwhite);
  --surface: #ffffff;
  --ink: var(--night);
  --ink-soft: #4a5b72;
  --line: var(--mist);
  --line-strong: #cdd8dd;
  --accent: var(--burgundy);
  --cta: var(--coral);
  --on-cta: var(--night);          /* navy on coral keeps AA contrast; white on coral does not */
  --tint: var(--blush);
  --hero-card: var(--night);
  --on-hero-card: #ffffff;
  --danger: #b3261e;
  --ok: #17794f;

  /* Channel group dots */
  --g-ad: #2b5c94;
  --g-social: var(--burgundy);
  --g-message: var(--coral);
  --g-partner: #6e839b;
  --g-web: #a45a74;
  --g-print: #8a94a3;

  --sans: 'Nunito', 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --radius: 18px;
  --radius-sm: 12px;
  --gutter: 16px;
  --shadow: 0 1px 2px rgb(15 39 68 / 0.06), 0 8px 24px rgb(15 39 68 / 0.07);
}

:root { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.18; letter-spacing: -0.015em; font-weight: 900; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 780px; }

/* ---------- brand lockup ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: auto; height: 40px; }
.brand-word { font: 900 1.5rem/1 var(--sans); letter-spacing: -0.03em; }
.brand-word i { font-style: normal; color: var(--accent); }

/* ---------- header / footer ---------- */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.head-nav { display: flex; gap: 6px; align-items: center; }
.nav-link { display: none; padding: 8px 12px; text-decoration: none; font-weight: 700; color: var(--ink-soft); border-radius: 999px; }
.nav-link:hover { color: var(--ink); background: var(--line); }
@media (min-width: 760px) { .nav-link { display: inline-block; } }

.site-foot { margin-top: 96px; padding: 40px 0 56px; border-top: 1px solid var(--line); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.foot-tag { margin-top: 10px; color: var(--ink-soft); font-weight: 700; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; color: var(--ink-soft); font-weight: 700; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-note { margin-top: 28px; color: var(--ink-soft); font-size: 0.85rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink);
  font-weight: 800; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 120ms, background-color 120ms;
}
.btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--coral)); }
.btn-cta { background: var(--cta); border-color: var(--cta); color: var(--on-cta); }
.btn-cta:hover { background: color-mix(in srgb, var(--cta) 88%, white); }
.btn-ghost { border-color: var(--line-strong); font-weight: 700; }
.btn-small { min-height: 36px; padding: 0 16px; font-size: 0.9rem; }
.btn-large { min-height: 54px; padding: 0 32px; font-size: 1.05rem; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { display: grid; gap: 28px; padding: 24px 0 8px; align-items: center; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.15fr 0.85fr; gap: 48px; padding-top: 40px; } }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.2rem); letter-spacing: -0.03em; line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede { margin-top: 20px; max-width: 30em; color: var(--ink-soft); font-size: 1.1rem; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; padding: 0; list-style: none; color: var(--ink-soft); font-weight: 700; font-size: 0.95rem; }
.hero-proof li::before { content: '✓'; color: var(--ok); margin-right: 6px; font-weight: 900; }

.hero-art { position: relative; justify-self: center; width: min(78vw, 360px); aspect-ratio: 1; }
.hero-art::before { content: ''; position: absolute; inset: 6% 0 0 6%; background: var(--tint); border-radius: 50%; }
.hero-art img { position: absolute; left: 6%; bottom: 0; width: 88%; filter: drop-shadow(0 12px 18px rgb(15 39 68 / 0.18)); }

/* ---------- the maker (tool) ---------- */
.maker {
  margin-top: 40px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 28px; padding: 24px var(--gutter) 28px; box-shadow: var(--shadow);
}
@media (min-width: 640px) { .maker { padding: 36px 40px 38px; } }
.maker-title { font-size: 1.35rem; margin-bottom: 4px; }
.maker-sub { color: var(--ink-soft); font-weight: 600; margin-bottom: 24px; }

.step { margin-bottom: 28px; }
.step-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.02rem; margin-bottom: 10px; }
.step-no {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font: 900 0.8rem/1 var(--sans);
}
.optional { font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); }

.field {
  width: 100%; min-height: 54px; padding: 0 18px;
  background: var(--paper); border: 2px solid var(--line); border-radius: 14px; font-weight: 600;
}
.field.mono { font-family: var(--mono); font-size: 0.95rem; font-weight: 500; }
.field:hover { border-color: var(--line-strong); }
.field:focus { outline: none; border-color: var(--ink); background: var(--surface); }
.hint { margin-top: 8px; font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; }
.field-row { display: grid; gap: 10px; }
@media (min-width: 640px) { .field-row.two { grid-template-columns: 1fr 1fr; } }

/* channel chips */
.group { margin-top: 16px; }
.group-name { font-size: 0.85rem; font-weight: 800; color: var(--ink-soft); margin-bottom: 8px; }
.tapes { display: flex; flex-wrap: wrap; gap: 8px; }
.tape {
  --c: var(--g-ad);
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 16px 0 12px;
  border: 2px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-weight: 800; font-size: 0.95rem; cursor: pointer;
  transition: border-color 120ms, background-color 120ms, transform 120ms;
}
.tape::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.tape:hover { border-color: var(--c); }
.tape[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tape[aria-pressed='true']::before { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 45%, transparent); }
.t-ad { --c: var(--g-ad); }
.t-social { --c: var(--g-social); }
.t-message { --c: var(--g-message); }
.t-partner { --c: var(--g-partner); }
.t-web { --c: var(--g-web); }
.t-print { --c: var(--g-print); }
.t-custom { --c: var(--ink-soft); }
.extra { margin-top: 16px; }
.channel-note { margin-top: 14px; padding: 10px 14px; background: var(--tint); border-radius: 12px; color: var(--ink); }

.submit-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.msg-error { color: var(--danger); font-weight: 800; margin-top: 14px; }
.msg-error:empty { display: none; }
.quota { color: var(--ink-soft); font-size: 0.92rem; margin-top: 16px; font-weight: 600; }
.quota a { font-weight: 900; color: var(--accent); }

/* result: the finished link */
.result { margin-top: 24px; }
.label {
  --on: #ffffff;
  background: var(--hero-card); color: var(--on-hero-card);
  padding: 24px 28px; border-radius: 22px;
}
.label-url { font: 900 clamp(1.4rem, 5.6vw, 2.3rem)/1.15 var(--sans); letter-spacing: -0.02em; word-break: break-all; }
.label-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.label .btn { border-color: rgb(255 255 255 / 0.55); color: #fff; }
.label .btn:hover { background: rgb(255 255 255 / 0.12); }
.label .btn-solid { background: var(--coral); border-color: var(--coral); color: var(--night); }
.label .btn-solid:hover { background: #ff8686; }
@media (prefers-reduced-motion: no-preference) {
  .label.print { animation: rise 360ms cubic-bezier(0.2, 0.7, 0.2, 1); }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
.parts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.part { display: inline-flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; min-width: 0; }
.part small { color: var(--ink-soft); font-size: 0.74rem; line-height: 1.3; font-weight: 700; }
.part b { font: 700 0.95rem/1.4 var(--mono); word-break: break-all; }
.ga4 { margin-top: 14px; font-weight: 800; }
.ga4 .badge { display: inline-block; background: var(--tint); color: var(--accent); border-radius: 999px; padding: 2px 12px; margin-left: 6px; }
.ga4 .warn { display: block; color: var(--danger); margin-top: 6px; font-weight: 700; font-size: 0.92rem; }
.full-url { margin-top: 14px; }
.full-url summary { cursor: pointer; font-weight: 800; }
.full-url code { display: block; margin-top: 10px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font: 500 0.85rem/1.6 var(--mono); word-break: break-all; }
.qr-box { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.qr-box canvas { width: 176px; height: 176px; background: #fff; border: 1px solid var(--line); border-radius: 14px; image-rendering: pixelated; }

/* ---------- landing sections ---------- */
.section { margin-top: 104px; }
.section-head { max-width: 46em; }
.section-head h2 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); }
.section-head p { margin-top: 12px; color: var(--ink-soft); font-weight: 600; font-size: 1.05rem; }

/* how it works: a real sequence */
.steps { display: grid; gap: 28px; margin-top: 40px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.how { position: relative; padding-top: 4px; }
.how-no { font: 900 4.2rem/1 var(--sans); color: var(--coral); letter-spacing: -0.04em; }
.how h3 { font-size: 1.25rem; margin-top: 8px; }
.how p { margin-top: 8px; color: var(--ink-soft); font-weight: 600; }
@media (min-width: 760px) { .how:not(:last-child)::after { content: ''; position: absolute; top: 34px; left: calc(4.2rem + 18px); right: -16px; border-top: 3px dotted var(--line-strong); } }

/* messy vs standard */
.compare { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.report { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.report h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.report .tag { font-size: 0.78rem; font-weight: 800; border-radius: 999px; padding: 2px 10px; }
.report.bad .tag { background: #fde3e1; color: #9a1f17; }
.report.good .tag { background: #d9f2e6; color: #0d5d3a; }
.report table { margin-top: 14px; min-width: 0; }
.report th, .report td { padding: 9px 4px; }
.report td:last-child, .report th:last-child { text-align: right; }
.report td.mono { font: 600 0.88rem var(--mono); }
.report .note { margin-top: 12px; font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }
.report .strike td { opacity: 0.85; }
.report .total td { font-weight: 900; border-top: 2px solid var(--line-strong); }

/* features */
.features { display: grid; gap: 14px; margin-top: 40px; }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.feature:nth-child(1) { background: var(--tint); border-color: transparent; }
.feature svg { flex: none; width: 40px; height: 40px; color: var(--accent); }
.feature h3 { font-size: 1.12rem; }
.feature p { margin-top: 6px; color: var(--ink-soft); font-weight: 600; font-size: 0.97rem; }

/* plans */
.plans { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.plan.featured { background: var(--hero-card); color: var(--on-hero-card); border-color: transparent; }
.plan h3 { font-size: 1.3rem; }
.plan .sub { margin-top: 4px; font-weight: 700; opacity: 0.75; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; font-weight: 700; }
.plan li::before { content: '✓'; margin-right: 10px; font-weight: 900; color: var(--ok); }
.plan.featured li::before { color: var(--coral); }

/* referral strip */
.strip { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; padding: 28px 32px; border-radius: 26px; background: var(--tint); }
.strip h2 { font-size: 1.5rem; }
.strip p { margin-top: 6px; font-weight: 700; color: var(--ink-soft); max-width: 36em; }

/* reference table */
.table-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
th { font-size: 0.82rem; font-weight: 800; color: var(--ink-soft); }
tr:last-child td { border-bottom: 0; }
td.mono { font: 600 0.9rem/1.5 var(--mono); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; background: var(--c, var(--ink-soft)); }
.ref-note { margin-top: 12px; font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }

/* faq accordion */
.qa { margin-top: 28px; display: grid; gap: 10px; }
.qa details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; }
.qa summary { cursor: pointer; padding: 16px 0; font-weight: 800; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font-weight: 900; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.qa details[open] summary::after { content: '–'; }
.qa details p { padding: 0 0 18px; color: var(--ink-soft); font-weight: 600; max-width: 40em; }

.cta-end { margin-top: 96px; text-align: center; padding: 56px 24px; border-radius: 32px; background: var(--hero-card); color: var(--on-hero-card); }
.cta-end h2 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); }
.cta-end p { margin: 12px auto 28px; max-width: 30em; opacity: 0.8; font-weight: 600; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--night); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 800;
  opacity: 0; pointer-events: none; transition: opacity 160ms; z-index: 50; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; }

/* ---------- login / simple pages ---------- */
.narrow { max-width: 480px; margin: 24px auto 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 32px 28px; box-shadow: var(--shadow); }
.panel h1 { font-size: 1.7rem; }
.panel p { color: var(--ink-soft); margin-top: 8px; font-weight: 600; }
.panel-art { width: 84px; margin-bottom: 14px; }
.stack > * + * { margin-top: 16px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 0.9rem; font-weight: 700; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.faq h1 { font-size: 2.2rem; }
.faq h2 { font-size: 1.15rem; margin-top: 32px; }
.faq p { margin-top: 6px; color: var(--ink-soft); max-width: 40em; font-weight: 600; }

/* ---------- notice pages (404 / warning) ---------- */
.notice-page { display: grid; place-items: center; min-height: 100vh; }
.notice { max-width: 480px; padding: 32px var(--gutter); }
.notice-art { width: 120px; margin-bottom: 8px; }
.notice h1 { font-size: 1.9rem; margin-top: 8px; }
.notice p { margin-top: 12px; color: var(--ink-soft); font-weight: 600; }
.notice-mark { font: 900 3.4rem/1 var(--sans); color: var(--coral); letter-spacing: -0.04em; }
.notice-mark.warn { color: var(--danger); }
.notice .btn { margin-top: 24px; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- dashboard ---------- */
.dash-grid { display: grid; gap: 16px; margin-top: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.card h2 { font-size: 1.1rem; }
.ref-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.ref-row code { flex: 1 1 260px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font: 600 0.85rem var(--mono); word-break: break-all; }
.dash-title { font-size: 1.9rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; align-items: center; }
.toolbar .field { min-height: 46px; flex: 1 1 200px; }
.toolbar select.field { flex: 0 1 200px; }
.campaign { margin-top: 24px; }
.campaign-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.campaign-head h3 { font-size: 1.1rem; }
.campaign-head span { color: var(--ink-soft); font-size: 0.9rem; font-weight: 700; }
.link-list { margin-top: 10px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.link-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.link-row:last-child { border-bottom: 0; }
@media (min-width: 720px) { .link-row { grid-template-columns: minmax(0, 1.4fr) auto 80px auto; align-items: center; gap: 16px; } }
.link-short { font: 800 1rem/1.3 var(--sans); word-break: break-all; }
.link-dest { display: block; color: var(--ink-soft); font: 600 0.8rem/1.4 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; --c: var(--g-ad); background: var(--tint); color: var(--ink); padding: 3px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 800; white-space: nowrap; }
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.clicks { font: 900 1.05rem var(--sans); text-align: right; }
.clicks small { display: block; font: 700 0.72rem var(--sans); color: var(--ink-soft); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.status-tag { font-size: 0.8rem; color: var(--danger); font-weight: 800; }
.empty { margin-top: 28px; padding: 36px 24px; border: 2px dashed var(--line-strong); border-radius: 24px; text-align: center; color: var(--ink-soft); font-weight: 700; }
.empty img { width: 96px; margin: 0 auto 10px; }

dialog { border: 0; border-radius: 26px; background: var(--surface); color: var(--ink); padding: 0; width: min(660px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 24px 60px rgb(15 39 68 / 0.35); }
dialog::backdrop { background: rgb(15 39 68 / 0.6); }
.dlg { padding: 24px; }
.dlg-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.dlg-head h2 { font: 900 1.15rem/1.3 var(--sans); word-break: break-all; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.kpi { background: var(--paper); border-radius: 16px; padding: 14px 16px; }
.kpi b { display: block; font: 900 2rem/1.1 var(--sans); }
.kpi small { color: var(--ink-soft); font-weight: 700; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; margin-top: 20px; }
.bar { flex: 1; min-width: 2px; background: var(--coral); border-radius: 4px 4px 0 0; }
.bar.zero { background: var(--line-strong); height: 3px !important; }
.axis { display: flex; justify-content: space-between; font: 600 0.75rem var(--mono); color: var(--ink-soft); margin-top: 6px; }
.breakdown { display: grid; gap: 20px; margin-top: 22px; }
@media (min-width: 560px) { .breakdown { grid-template-columns: 1fr 1fr; } }
.breakdown h3 { font-size: 0.95rem; }
.brow { display: grid; grid-template-columns: 70px 1fr 48px; gap: 8px; align-items: center; margin-top: 8px; font-size: 0.9rem; font-weight: 700; }
.brow i { display: block; height: 10px; background: var(--ink); border-radius: 999px; }
.brow span:last-child { text-align: right; font-family: var(--mono); }
.note { color: var(--ink-soft); font-size: 0.85rem; margin-top: 14px; font-weight: 600; }
.account-zone { margin-top: 56px; }
.account-zone .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-weight: 600; }

/* ---------- guide / article pages ---------- */
.prose-page { max-width: 780px; margin: 8px auto 0; }
.crumbs { font-size: 0.88rem; font-weight: 700; color: var(--ink-soft); margin: 8px 0 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); letter-spacing: -0.02em; }
.prose .meta { margin-top: 10px; color: var(--ink-soft); font-size: 0.9rem; font-weight: 700; }
.prose h2 { font-size: 1.5rem; margin-top: 52px; }
.prose h3 { font-size: 1.15rem; margin-top: 28px; }
.prose p, .prose li { color: var(--ink); font-weight: 500; font-size: 1.04rem; line-height: 1.9; }
.prose p { margin-top: 16px; max-width: 42em; }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 1.4em; max-width: 42em; }
.prose li { margin-top: 8px; }
.prose a { color: var(--accent); font-weight: 800; }
.prose code { font: 600 0.88em var(--mono); background: var(--mist); padding: 2px 7px; border-radius: 6px; word-break: break-word; }
.prose pre { margin: 18px 0 0; padding: 16px 18px; background: var(--night); color: #fff; border-radius: 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: 0.88rem; line-height: 1.7; white-space: pre; }
.prose .note { background: var(--tint); border-radius: 14px; padding: 12px 16px; font-size: 0.93rem; max-width: none; }
.prose .table-wrap { margin-top: 18px; }
.prose table { min-width: 520px; }
.prose td, .prose th { vertical-align: top; font-size: 0.96rem; }
.prose .callout { margin-top: 52px; padding: 28px; border-radius: 24px; background: var(--hero-card); color: var(--on-hero-card); }
.prose .callout h2 { margin-top: 0; font-size: 1.35rem; color: inherit; }
.prose .callout p { color: inherit; opacity: 0.85; }
.prose .callout .btn { margin-top: 18px; }
.guide-list { display: grid; gap: 14px; margin-top: 28px; }
.guide-item { display: block; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; text-decoration: none; color: var(--ink); }
.guide-item:hover { border-color: var(--ink); }
.guide-item h2 { margin: 0; font-size: 1.2rem; color: var(--ink); }
.guide-item p { margin-top: 6px; color: var(--ink-soft); font-size: 0.98rem; }
