:root {
    --wrap: 720px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: #ffffff;
    color: #000000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    animation: fadePage 0.6s ease;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0,0,0,0.015) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0,0,0,0.015) 0%, transparent 50%);
}

@keyframes fadePage {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.page {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header ── */
.hd {
    padding-top: 20px;
    margin-bottom: 40px;
}

.hd-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-bottom: 2px solid #000;
    padding-bottom: 14px;
}

.hd-accent {
    width: 5px;
    flex-shrink: 0;
    background: #000;
    margin-right: 18px;
    transition: opacity 0.3s ease;
}

.hd:hover .hd-accent {
    opacity: 0.7;
}

.hd-inner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
}

.hd-logo {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-mark {
    display: inline-block;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.08); }
}

.hd-nav {
    display: flex;
    gap: 20px;
}

.hd-nav a {
    font-size: 0.875rem;
    color: #666;
    text-decoration: none;
    transition: color 0.15s;
}

.hd-nav a:hover { color: #000; }

/* ── Main ── */
main {
    flex: 1;
}

/* ── Section spacer ── */
.section {
    margin-top: 44px;
}

.section-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 18px;
}

/* ── Hero ── */
.hero {
    text-align: center;
    padding: 12px 0 4px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 14px;
    border: 1px solid #e5e5e5;
    padding: 3px 10px;
    border-radius: 4px;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero p {
    margin: 0 auto;
    max-width: 52ch;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── Panel ── */
.panel {
    background: #ffffff;
    border: 0.1px solid #f6f6f6;
    border-radius: 12px;
    padding: 32px 28px;
    margin: 0 auto;
    max-width: 480px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.panel-icon {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 10px;
    line-height: 1;
}

.panel h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.panel p {
    margin: 0 0 20px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.65;
}

.panel p:last-child { margin-bottom: 0; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 6px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    line-height: 1.4;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: #000;
    color: #fff;
}

.btn-primary:hover {
    background: #222;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: #fff;
    color: #000;
    border-color: #ccc;
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: #999;
}

.btn-full { width: 100%; }

/* ── Meta ── */
.meta {
    font-size: 0.78rem;
    color: #999;
    margin-top: 12px;
}

/* ── Countdown ── */
.countdown {
    font-size: 0.82rem;
    color: #999;
    margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
}

/* ── Divider ── */
.divider {
    border: 0;
    height: 1px;
    background: #e5e5e5;
    margin: 18px 0;
}

/* ── Steps grid ── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.step {
    border: 1.5px solid #000;
    border-radius: 10px;
    padding: 22px 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.step-num {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 8px;
}

.step h3 {
    margin: 0 0 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.step p {
    margin: 0;
    font-size: 0.84rem;
    color: #666;
    line-height: 1.6;
}

/* ── Content block ── */
.block {
    border: 1.5px solid #000;
    border-radius: 10px;
    padding: 26px 24px 18px;
}

.block h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 12px;
}

.block p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.7;
    margin: 0 0 14px;
}

.block p:last-child { margin-bottom: 0; }

/* ── Stats ── */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 32px 0;
}

.stat-item {
    border: 1.5px solid #000;
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
}

.stat-num {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.72rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Trust bar ── */
.trust-bar {
    text-align: center;
    margin-top: 36px;
    padding: 0;
}

.trust-bar p {
    font-size: 0.78rem;
    color: #999;
    margin: 0;
}

/* ── Error variant ── */
.panel-error {
    border-color: #d0312d;
}

.panel-error .panel-icon { color: #d0312d; }

/* ── Steps indicator ── */
.steps-indicator {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0 auto 36px;
    max-width: 420px;
    width: 100%;
}

.step-pt {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-pt-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e5e5e5;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #bbb;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.step-pt.active .step-pt-circle {
    border-color: #000;
    background: #000;
    color: #fff;
}

.step-pt.done .step-pt-circle {
    border-color: #000;
    background: #000;
    color: #fff;
}

.step-pt-label {
    font-size: 0.7rem;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.3s ease;
}

.step-pt.active .step-pt-label,
.step-pt.done .step-pt-label {
    color: #000;
}

.steps-indicator .step-pt + .step-pt::before {
    content: '';
    position: absolute;
    top: 16px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: #e5e5e5;
    z-index: 0;
    transform: translateY(-50%);
}

.steps-indicator .step-pt.done + .step-pt::before,
.steps-indicator .step-pt.active + .step-pt::before {
    background: #000;
}

/* ── Spinner ── */
.spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 2.5px solid #e5e5e5;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Processing page ── */
.processing {
    text-align: center;
    padding: 40px 0;
}

.processing .spinner {
    margin-bottom: 20px;
}

.processing h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.processing p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 4px;
}

/* ── Footer ── */
.ft {
    margin-top: 60px;
    padding: 32px 0 24px;
    border-top: 1.5px solid #000;
    transition: border-color 0.3s ease;
}

.ft-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.ft-brand {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.ft-desc {
    margin: 0;
    font-size: 0.84rem;
    color: #666;
    max-width: 28ch;
    line-height: 1.5;
}

.ft-cols {
    display: flex;
    gap: 36px;
}

.ft-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 12px;
}

.ft-link {
    display: block;
    font-size: 0.84rem;
    color: #666;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s, padding-left 0.2s;
}

.ft-link:hover {
    color: #000;
    padding-left: 3px;
}

.ft-bar {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
    font-size: 0.76rem;
    color: #999;
}

/* ── Utility ── */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .page { padding: 0 16px; }
    .hd { padding-top: 14px; margin-bottom: 28px; }
    .hd-bar { padding-bottom: 10px; }
    .hd-accent { width: 4px; margin-right: 12px; }
    .hd-nav { gap: 14px; }
    .hd-nav a { font-size: 0.8rem; }
    .hero h1 { font-size: 1.3rem; }
    .panel { padding: 24px 20px; }
    .steps { grid-template-columns: 1fr; gap: 10px; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ft-inner { flex-direction: column; gap: 24px; }
    .ft-cols { gap: 24px; }
}
