:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --text: #141824;
    --muted: #5c6478;
    --line: #e4e7f0;
    --accent: #2563eb;
    --accent-soft: #e8efff;
    --success: #0d9488;
    --danger: #dc2626;
    --radius: 16px;
    --shadow: 0 18px 50px rgba(20, 24, 36, 0.08);
    --font: "DM Sans", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}

.bg-pattern {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(37, 99, 235, 0.12), transparent 60%),
        radial-gradient(700px 380px at 88% 0%, rgba(13, 148, 136, 0.1), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 38%);
    z-index: 0;
}

.shell {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3rem;
}

.hero {
    margin-bottom: 1.75rem;
}

.eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.5rem;
    font-weight: 600;
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    line-height: 1.15;
    margin: 0 0 0.75rem;
    font-weight: 700;
}

.lede {
    margin: 0;
    color: var(--muted);
    max-width: 52ch;
    font-size: 1.05rem;
}

.lede strong {
    color: var(--text);
    font-weight: 600;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    padding: 1.5rem 1.35rem 1.35rem;
    margin-bottom: 2rem;
}

.field-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
}

.field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
}

.field-row input {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.75rem 0.95rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    font: inherit;
    background: #fafbff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field-row input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 1.15rem;
    border-radius: 12px;
    font: inherit;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s;
}

.btn:active {
    transform: translateY(1px);
}

.btn.primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.btn.primary:hover {
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.btn.secondary {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
}

.btn.secondary:hover {
    background: #f3f6ff;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.hint {
    margin: 0.65rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.steps {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 1.1rem;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
}

.step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.step p {
    margin: 0 0 0.6rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.progress {
    height: 6px;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
    max-width: 280px;
}

.progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: inherit;
    transition: width 0.35s ease;
}

.error {
    margin-top: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: #fef2f2;
    color: var(--danger);
    font-size: 0.9rem;
}

.info-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.info {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem 1.2rem;
}

.info.muted {
    background: rgba(255, 255, 255, 0.65);
}

.info h2 {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
}

.info ol,
.info ul {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.info li + li {
    margin-top: 0.35rem;
}

.foot {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.dot {
    opacity: 0.45;
}

.hidden {
    display: none !important;
}

@media (min-width: 640px) {
    .card {
        padding: 1.75rem 1.6rem 1.5rem;
    }
}
