:root {
  --navy: #26384a;
  --navy-dark: #172536;
  --teal: #287f82;
  --ink: #1e2a35;
  --muted: #63717d;
  --line: #dbe3e8;
  --bg: #f6f8fa;
  --warm: #f2b84b;
}
* { box-sizing: border-box; }
body { margin: 0; font: 400 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--navy); }
.top { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 18px; }
.brand { display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 750; font-size: 20px; color: var(--navy); text-decoration: none; max-width: 620px; margin: 0 auto; letter-spacing: -.025em; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--navy); color: var(--warm); font-weight: 800; font-size: 15px; }
.quiz, .doc, .home { flex: 1; width: 100%; max-width: 620px; margin: 0 auto; padding: 22px 18px 36px; }
.home { max-width: 980px; display: grid; align-content: center; gap: 22px; }
.home-hero { max-width: 640px; margin: 0 auto; text-align: center; }
.home-hero h1 { font-size: clamp(34px, 7vw, 54px); margin: 0 0 14px; color: var(--navy-dark); letter-spacing: -.045em; line-height: 1.05; }
.home-hero p { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 19px; }
.trade-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 760px; width: 100%; margin: 0 auto; }
.trade-card { display: flex; flex-direction: column; gap: 9px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; box-shadow: 0 8px 24px rgba(28,45,62,.06); transition: transform .15s, box-shadow .15s; }
.trade-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(28,45,62,.11); }
.trade-card strong { color: var(--navy-dark); font-size: 21px; }
.trade-card span { color: var(--muted); }
.card-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: #eaf2f3; color: var(--teal); font-size: 22px; font-weight: 800; }
.home-note { text-align: center; color: var(--muted); font-size: 14px; margin: 0; }
.progress { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.bar { flex: 1; height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 20%; background: var(--teal); border-radius: 8px; transition: width .25s; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
h1 { font-size: 31px; line-height: 1.1; margin: 0 0 9px; color: var(--navy-dark); text-align: center; letter-spacing: -.025em; }
.sub { text-align: center; color: var(--muted); margin: 0 0 22px; }
.q { display: block; width: 100%; font-size: 23px; font-weight: 750; line-height: 1.2; margin: 9px 0 17px; padding: 0; text-align: center; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.tile, .choice { position: relative; cursor: pointer; background: #fff; border: 2px solid var(--line); border-radius: 13px; transition: border-color .15s, box-shadow .15s; }
.tile { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 16px 13px; font-weight: 650; }
.tile .tile-symbol { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; background: #edf4f4; color: var(--teal); font-weight: 800; font-size: 17px; }
.tile input, .choice input { position: absolute; opacity: 0; pointer-events: none; }
.tile:hover, .choice:hover { border-color: #a7c4c7; }
.tile:has(input:checked), .choice:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(40,127,130,.15); }
.tile:has(input:focus-visible), .choice:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }
.choices { display: grid; gap: 11px; }
.choice { display: block; padding: 18px; font-size: 18px; font-weight: 650; }
.note { text-align: center; color: var(--muted); font-size: 15px; margin: 17px 0 0; }
.big, .field input, .field textarea { width: 100%; font: inherit; font-size: 18px; padding: 15px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.big { text-align: center; font-size: 24px; letter-spacing: 2px; margin-bottom: 14px; }
.field { display: grid; gap: 6px; font-weight: 650; font-size: 15px; margin-bottom: 12px; }
.field textarea { font-size: 16px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--teal); }
.opt { color: var(--muted); font-weight: 400; }
.hp { position: absolute; left: -9999px; }
.btn { display: block; width: 100%; background: var(--teal); color: #fff; border: 0; border-radius: 10px; padding: 18px; font: inherit; font-size: 19px; font-weight: 750; cursor: pointer; text-align: center; text-decoration: none; }
.btn:hover { background: var(--navy); }
.btn:disabled { opacity: .6; cursor: wait; }
.back { background: none; border: 0; color: var(--muted); font: inherit; font-size: 15px; margin-top: 16px; padding: 8px 0; cursor: pointer; }
.consent { font-size: 12.5px; line-height: 1.45; color: var(--muted); margin: 12px 0 0; }
.status { color: #b42318; font-size: 15px; margin: 10px 0 0; }
.done { text-align: center; padding-top: 40px; }
.done .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--teal); margin: 0 auto 18px; position: relative; }
.done .tick::after { content: ""; position: absolute; left: 26px; top: 14px; width: 16px; height: 32px; border: solid #fff; border-width: 0 5px 5px 0; transform: rotate(45deg); }
.done p { color: var(--muted); }
.doc h1 { text-align: left; }
.doc h2 { font-size: 20px; margin: 26px 0 6px; color: var(--navy-dark); }
.foot { padding: 20px 18px 28px; text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); background: #fff; }
.foot p { max-width: 620px; margin: 0 auto 8px; }
.foot nav { display: flex; gap: 18px; justify-content: center; }
.checking { text-align: center; padding: 54px 0 36px; }
.checking p { font-size: 20px; font-weight: 650; margin: 16px 0 0; }
.spin { display: inline-block; width: 40px; height: 40px; border: 4px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) { .trade-grid { grid-template-columns: 1fr; } .home { align-content: start; padding-top: 48px; } .tile { padding: 14px 10px; } }
