:root {
  --blue: #4a6cf7;
  --navy: #1a2a8a;
  --bg: #f4f6fd;
  --text: #1b1f33;
  --muted: #5b6280;
  --ok: #17845a;
  --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; padding-bottom: 80px; }
a { color: var(--navy); }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }

.hero { background: linear-gradient(160deg, var(--navy), var(--blue)); color: #fff; padding: 40px 0 56px; border-bottom-left-radius: 50% 30px; border-bottom-right-radius: 50% 30px; }
.hero a { color: #fff; }
.brand { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .85; margin: 0 0 8px; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1; margin: 0 0 16px; text-transform: uppercase; font-weight: 900; }
h1 span { color: #b9c7ff; }
.lead { max-width: 640px; font-size: 1.1rem; margin: 0; }

.card { background: #fff; border: 2px solid #dfe5fb; border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
h2 { color: var(--navy); margin: 0 0 12px; }

.household { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.household label { display: flex; flex-direction: column; font-weight: 600; font-size: .95rem; }
.household input, .household select { margin-top: 4px; padding: 10px; font-size: 1rem; border: 2px solid #cfd7f6; border-radius: 10px; }
.tips ol { margin: 0; padding-left: 20px; }

.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; }
.list-head h2 { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
button { font: inherit; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--navy); background: var(--navy); color: #fff; cursor: pointer; }
button.ghost { background: transparent; color: var(--navy); }
.hint { color: var(--muted); }

.category { border-color: var(--blue); }
.category h3 { margin: 0 0 4px; color: var(--navy); }
.guidance { color: var(--muted); margin: 0 0 12px; font-size: .95rem; }
.category ul { list-style: none; margin: 0; padding: 0; }
.category li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #eef1fb; }
.category li input { width: 22px; height: 22px; accent-color: var(--ok); flex-shrink: 0; }
.category li label { flex: 1; display: flex; flex-direction: column; cursor: pointer; }
.category li .meta { color: var(--muted); font-size: .9rem; }
.category li.have .name { text-decoration: line-through; color: var(--muted); }
.opt { font-style: normal; font-size: .75rem; background: #eef1fb; color: var(--muted); padding: 1px 6px; border-radius: 6px; }
.buy { white-space: nowrap; text-decoration: none; background: #ffb400; color: #111; font-weight: 600; padding: 8px 14px; border-radius: 999px; font-size: .9rem; }
.buy:hover { background: #ffa000; }
.category li.have .buy { opacity: .4; }

.summary { position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy); color: #fff; padding: 12px 0; box-shadow: 0 -4px 16px rgba(0,0,0,.15); }
.summary-inner { display: flex; align-items: center; gap: 16px; }
#progress-pct { font-weight: 800; font-size: 1.2rem; }
.bar { flex: 1; height: 10px; background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; }
#progress-bar { height: 100%; width: 0; background: #7ee2b0; transition: width .3s; }

.footer { color: var(--muted); font-size: .85rem; padding-top: 8px; padding-bottom: 24px; }

@media (max-width: 560px) {
  .category li { flex-wrap: wrap; }
  .buy { margin-left: 34px; }
  .summary-inner { font-size: .9rem; gap: 10px; }
}
@media print {
  .hero { background: none; color: #000; border: 0; padding: 0; }
  .hero a, h1 span { color: #000; }
  .actions, .summary, .buy, .tips { display: none; }
  .card { break-inside: avoid; border-width: 1px; }
  body { background: #fff; padding: 0; }
}
