@import url('https://fonts.cdnfonts.com/css/aileron');

:root {
  --green: #70ad47;
  --teal: #01637e;
  --coral: #df5239;
  --yellow: #f7bd58;
  --bg: #f7f7f2;
  --ink: #1e2b30;
  --muted: #5d6b70;
  --card: #ffffff;
  --line: #e1e4dc;
  --sweet: #dff0d3;
  --crowded: #f9d9d3;
  --rising: #fdeccb;
  --fade: #d3e7ef;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Aileron', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
}
#app { max-width: 880px; margin: 0 auto; padding: 20px 16px 48px; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 12px; color: var(--teal); }
h2 { font-size: 1.35rem; margin: 28px 0 10px; color: var(--teal); }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: .92rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal); margin-bottom: 14px; font-size: .95rem; letter-spacing: .02em; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); display: inline-block; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.progress > i { display: block; height: 100%; background: var(--green); width: 0; transition: width .3s; }
.step-label { font-size: .8rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }

button, .btn {
  font-family: inherit; font-size: 1rem; font-weight: 700; border: 0; cursor: pointer;
  border-radius: 12px; padding: 14px 22px; min-height: 48px; text-decoration: none; display: inline-block; text-align: center;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { filter: brightness(.95); }
.btn-primary[disabled] { background: #c9ced0; cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--teal); border: 2px solid var(--teal); }
.btn-ghost { background: transparent; color: var(--teal); text-decoration: underline; padding: 8px 4px; min-height: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; }

label { display: block; font-weight: 700; margin: 14px 0 6px; font-size: .95rem; }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; font-family: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #c8cdc4; border-radius: 10px; background: #fff;
}
input:focus, textarea:focus, button:focus-visible { outline: 3px solid rgba(1, 99, 126, .35); outline-offset: 1px; }
.field-error { color: var(--coral); font-size: .85rem; margin-top: 4px; min-height: 1em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row label.opt { font-weight: 600; display: flex; align-items: center; gap: 8px; border: 1.5px solid #c8cdc4; border-radius: 10px; padding: 10px 14px; cursor: pointer; margin: 0; background: #fff; }
.radio-row input { accent-color: var(--teal); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .88rem; margin-top: 16px; }
.consent input { margin-top: 4px; accent-color: var(--teal); }

.status-grid { display: grid; gap: 12px; }
.status-card { text-align: left; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; width: 100%; color: var(--ink); font-weight: 500; }
.status-card strong { display: block; color: var(--teal); font-size: 1.05rem; margin-bottom: 4px; }
.status-card:hover, .status-card.sel { border-color: var(--green); background: #f3f9ee; }

.chip-group { margin: 6px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-weight: 600; font-size: .92rem; padding: 10px 14px; border-radius: 99px; border: 1.5px solid #c8cdc4; background: #fff; color: var(--ink); min-height: 44px; }
.chip.sel { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip.dim { opacity: .45; }
.counter { font-size: .88rem; color: var(--muted); margin-top: 8px; }

.quad-wrap { position: relative; padding-left: 26px; padding-bottom: 26px; }
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q { border-radius: 14px; padding: 14px; min-height: 140px; }
.q h3 { margin-bottom: 2px; }
.q small { display: block; color: #4a5a5f; margin-bottom: 8px; font-size: .78rem; }
.q ul { margin: 0; padding-left: 18px; font-size: .92rem; }
.q.sweet { background: var(--sweet); border: 2px solid var(--green); }
.q.crowded { background: var(--crowded); border: 2px solid var(--coral); }
.q.rising { background: var(--rising); border: 2px solid var(--yellow); }
.q.fade { background: var(--fade); border: 2px solid var(--teal); }
.axis-y { position: absolute; left: 0; top: 0; bottom: 26px; width: 22px; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: .75rem; color: var(--muted); letter-spacing: .05em; }
.axis-x { position: absolute; left: 26px; right: 0; bottom: 0; text-align: center; font-size: .75rem; color: var(--muted); letter-spacing: .05em; }
.disclaimer { font-size: .82rem; color: var(--muted); background: #fff; border-left: 4px solid var(--yellow); padding: 8px 12px; border-radius: 6px; margin: 12px 0; }

.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }
.badge.sweet { background: var(--sweet); color: #3e6b1f; }
.badge.crowded { background: var(--crowded); color: #9b2f1b; }
.badge.rising { background: var(--rising); color: #8a5d00; }
.badge.fade { background: var(--fade); color: var(--teal); }
.badge.explore { background: #eee; color: #555; }
.why-card .meta { margin: 8px 0 0; font-size: .9rem; }
.why-card .meta b { color: var(--teal); }

table.bridge { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.bridge th, table.bridge td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.bridge th { color: var(--teal); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tag { display: inline-block; background: #eef6e8; color: #3e6b1f; border-radius: 99px; padding: 4px 10px; font-size: .82rem; margin: 0 6px 6px 0; font-weight: 600; }
.tag.need { background: var(--rising); color: #8a5d00; }
.level { margin: 6px 0; font-size: .9rem; }
.level b { color: var(--teal); }

.stars { display: flex; gap: 8px; }
.star { width: 48px; height: 48px; border-radius: 12px; border: 2px solid #c8cdc4; background: #fff; font-size: 1.15rem; padding: 0; }
.star.sel { background: var(--yellow); border-color: var(--yellow); }
.coupon-box { text-align: center; background: #fff; border: 2px dashed var(--green); border-radius: var(--radius); padding: 22px; margin: 16px 0; }
.coupon-code { font-size: 1.8rem; font-weight: 800; letter-spacing: .08em; color: var(--teal); margin: 8px 0; word-break: break-all; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--teal); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: .9rem; z-index: 5; }
.print-only { display: none; }

@media (max-width: 640px) {
  h1 { font-size: 1.5rem; }
  .two-col { grid-template-columns: 1fr; }
  .quad { gap: 8px; }
  .q { min-height: 120px; padding: 10px; }
  .q ul { padding-left: 16px; font-size: .85rem; }
  table.bridge th:nth-child(2), table.bridge td:nth-child(2) { display: none; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  #app { max-width: none; padding: 0; }
  .no-print, .progress, .actions, .brand .dot { display: none !important; }
  .print-only { display: block; }
  .card { break-inside: avoid; border: 1px solid #ccc; }
  .q, .why-card { break-inside: avoid; }
  #app { display: none !important; }
  #print-root { display: block !important; }
  h2 { break-after: avoid; }
}
#print-root { display: none; }
