
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
    color: #0f172a;
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.app {
    max-width: 480px; margin: 0 auto; min-height: 100vh;
    display: flex; flex-direction: column;
    padding: 16px 20px 32px;
}
.brand {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 14px;
}
.brand .logo {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
    color: #0f172a;
}
.brand .logo .mark {
    width: 28px; height: 28px; border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    display: grid; place-items: center; color: #fff;
}
.brand .logo .mark svg { width: 16px; height: 16px; }
.brand .meta { font-size: 12px; color: #64748b; }

.progress { width: 100%; height: 4px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, #2563eb, #06b6d4); transition: width .35s ease; }

.stage { flex: 1; display: flex; flex-direction: column; padding: 24px 0 16px; }
.stage h1 {
    font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700;
    margin-bottom: 12px;
}
.stage p.lead { color: #475569; font-size: 15px; margin-bottom: 24px; }
.stage .hint { color: #64748b; font-size: 13px; margin-top: 12px; }

.options { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.option {
    display: flex; align-items: center; gap: 12px;
    background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 14px;
    padding: 14px 16px; cursor: pointer; transition: all 0.18s ease;
    font-size: 15.5px; font-weight: 500; color: #0f172a;
    -webkit-tap-highlight-color: transparent;
    text-align: left; width: 100%;
}
.option:hover, .option:focus { border-color: #94a3b8; transform: translateY(-1px); box-shadow: 0 6px 14px -10px rgba(15, 23, 42, 0.25); }
.option:active { transform: translateY(0); }
.option input[type=radio] { display: none; }
.option .ico {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
    background: #f1f5f9; display: grid; place-items: center; color: #475569;
}
.option .ico svg { width: 20px; height: 20px; }
.option.selected, .option:has(input:checked) {
    border-color: #2563eb; background: #eff6ff;
}
.option.selected .ico, .option:has(input:checked) .ico {
    background: #2563eb; color: #ffffff;
}

.btn {
    width: 100%; padding: 16px 20px; border-radius: 14px; border: none;
    font: inherit; font-size: 16px; font-weight: 600;
    cursor: pointer; transition: all 0.18s ease;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    -webkit-tap-highlight-color: transparent;
}
.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 8px 16px -8px rgba(37, 99, 235, 0.45);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(37, 99, 235, 0.6); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; transform: none; }

.field {
    display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px;
}
.field label { font-size: 13px; font-weight: 600; color: #334155; }
.field input {
    border: 1.5px solid #e2e8f0; background: #ffffff; border-radius: 12px;
    padding: 14px 16px; font: inherit; font-size: 15.5px; color: #0f172a;
    -webkit-appearance: none; appearance: none;
}
.field input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }

.consent {
    display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px;
    background: #f8fafc; border-radius: 12px; margin-bottom: 18px;
    color: #475569; font-size: 12.5px;
}
.consent input { margin-top: 3px; transform: scale(1.1); accent-color: #2563eb; }

.error { color: #dc2626; font-size: 13px; min-height: 18px; margin-top: 4px; display: none; }
.error[data-show=true] { display: block; }

.thanks {
    text-align: center; padding: 40px 16px;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.thanks .icon-circle {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    display: grid; place-items: center; color: #fff;
    box-shadow: 0 12px 24px -12px rgba(22, 163, 74, 0.5);
}
.thanks .icon-circle svg { width: 40px; height: 40px; }
.thanks h1 { font-size: 28px; }
.thanks p { color: #475569; font-size: 15.5px; max-width: 360px; }
.thanks ul { text-align: left; color: #334155; font-size: 14px; line-height: 1.8; padding: 16px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; max-width: 360px; width: 100%; }
.thanks ul li { padding-left: 24px; position: relative; }
.thanks ul li::before {
    content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 14px;
    background: linear-gradient(135deg, #2563eb, #06b6d4); border-radius: 50%;
}

.welcome {
    flex: 1; display: flex; flex-direction: column; justify-content: space-between;
    padding: 32px 0 16px;
}
.welcome .hero {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
    padding: 24px 0;
}
.welcome .hero .badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #eff6ff; color: #1d4ed8; font-size: 13px; font-weight: 600;
    padding: 8px 14px; border-radius: 999px;
}
.welcome .hero .badge svg { width: 14px; height: 14px; }
.welcome .hero h1 { font-size: 32px; line-height: 1.15; letter-spacing: -0.022em; }
.welcome .hero p { color: #475569; font-size: 16px; max-width: 360px; }
.welcome .hero .visual {
    width: 200px; height: 200px; border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #06b6d4 60%, #10b981);
    display: grid; place-items: center; color: #ffffff;
    box-shadow: 0 24px 48px -20px rgba(37, 99, 235, 0.35);
}
.welcome .hero .visual svg { width: 96px; height: 96px; }
.welcome .stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 24px 0;
    text-align: center;
}
.welcome .stats .stat {
    background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 8px;
}
.welcome .stats .stat .num { font-size: 18px; font-weight: 700; color: #0f172a; letter-spacing: -0.01em; }
.welcome .stats .stat .lbl { font-size: 11.5px; color: #64748b; margin-top: 2px; }

.legal { font-size: 11.5px; color: #94a3b8; text-align: center; margin-top: 16px; }
.legal a { color: #64748b; text-decoration: underline; }
