/* =========================================================================
   Design tokens
   Color   — ink-900 #0B121C (bg) · ink-800 #121B27 (panel) · ink-700 #1B2733 (input/card)
             brass-500 #B98D3E (accent) · brass-300 #E3C688 (accent light)
             paper-100 #F3EFE6 (text) · slate-400 #93A1AF (muted text)
             success #4C9A6A · error #C4574F
   Type    — Vazirmatn (Persian, all weights) · Space Mono (numerals / price ticker)
   Layout  — centered plaque hero · borderless info panel + single heavy form card
   ========================================================================= */

:root {
    --ink-900: #0B121C;
    --ink-800: #121B27;
    --ink-700: #1B2733;
    --ink-600: #24323F;
    --brass-500: #B98D3E;
    --brass-300: #E3C688;
    --paper-100: #F3EFE6;
    --slate-400: #93A1AF;
    --success: #4C9A6A;
    --error: #C4574F;

    --font-fa: 'Vazirmatn', sans-serif;
    --font-num: 'Space Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --container: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ink-900);
    color: var(--paper-100);
    font-family: var(--font-fa);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

button, input, textarea { font-family: inherit; }

:focus-visible {
    outline: 2px solid var(--brass-300);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- topbar ---------- */
.topbar {
    max-width: var(--container);
    margin: 0 auto;
    padding: 28px 24px 0;
}
.topbar__mark {
    font-size: 14px;
    color: var(--slate-400);
    letter-spacing: 0.02em;
}

/* ---------- hero / plaque ---------- */
.hero {
    display: flex;
    justify-content: center;
    padding: 56px 24px 40px;
}

.plaque {
    position: relative;
    width: 100%;
    max-width: 640px;
    text-align: center;
    padding: 56px 40px 44px;
    border: 1px solid var(--ink-600);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(185,141,62,0.06), transparent 55%);
}

.plaque__corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid var(--brass-500);
}
.plaque__corner--tl { top: -1px; right: -1px; border-left: none; border-bottom: none; border-top-right-radius: var(--radius-md); }
.plaque__corner--tr { top: -1px; left: -1px; border-right: none; border-bottom: none; border-top-left-radius: var(--radius-md); }
.plaque__corner--bl { bottom: -1px; right: -1px; border-left: none; border-top: none; border-bottom-right-radius: var(--radius-md); }
.plaque__corner--br { bottom: -1px; left: -1px; border-right: none; border-top: none; border-bottom-left-radius: var(--radius-md); }

.plaque__status {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--brass-300);
}

.plaque__domain {
    margin: 0;
    font-size: clamp(2.1rem, 6vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    direction: ltr;
    color: var(--paper-100);
}

.plaque__tagline {
    margin: 14px 0 0;
    color: var(--slate-400);
    font-size: 16px;
}

.plaque__price {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--ink-600);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 14px;
}

.plaque__price-number {
    font-family: var(--font-num);
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    font-weight: 700;
    color: var(--brass-300);
    direction: ltr;
}

.plaque__price-label {
    font-size: 13px;
    color: var(--slate-400);
    text-align: right;
    line-height: 1.5;
}

/* ---------- features strip ---------- */
.features {
    max-width: var(--container);
    margin: 0 auto;
    padding: 40px 24px;
    border-top: 1px solid var(--ink-700);
    border-bottom: 1px solid var(--ink-700);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.feature__icon {
    flex: none;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--brass-500);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-top: 2px;
}

.feature p {
    margin: 0;
    font-size: 14.5px;
    color: var(--slate-400);
}

/* ---------- offer section ---------- */
.offer {
    max-width: var(--container);
    margin: 0 auto;
    padding: 64px 24px 80px;
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 56px;
    align-items: start;
}

.offer__info h2 {
    margin: 0 0 10px;
    font-size: 1.7rem;
    font-weight: 700;
}

.offer__lead {
    margin: 0 0 32px;
    color: var(--slate-400);
    font-size: 15px;
}

.steps {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.steps__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.steps__index {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--brass-500);
    color: var(--brass-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-num);
    font-size: 14px;
}

.steps__item strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.steps__item p {
    margin: 0;
    font-size: 14px;
    color: var(--slate-400);
}

.offer__note {
    font-size: 13.5px;
    color: var(--slate-400);
    padding-top: 20px;
    border-top: 1px solid var(--ink-700);
}

/* ---------- form card ---------- */
.offer__card {
    background: var(--ink-800);
    border: 1px solid var(--ink-600);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: 0 24px 60px -30px rgba(0,0,0,0.6);
}

.progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
}
.progress__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ink-600);
    transition: background 0.25s ease;
}
.progress__dot--active { background: var(--brass-500); }
.progress__line {
    flex: 1;
    height: 1px;
    background: var(--ink-600);
}

.alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    line-height: 1.6;
}
.alert--error { background: rgba(196,87,79,0.12); color: #E6968F; border: 1px solid rgba(196,87,79,0.35); }
.alert--success { background: rgba(76,154,106,0.12); color: #9CD3B1; border: 1px solid rgba(76,154,106,0.35); }

.form-step__title {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 700;
}
.form-step__desc {
    margin: 0 0 22px;
    color: var(--slate-400);
    font-size: 14px;
}

.field {
    display: block;
    margin-bottom: 18px;
}
.field__label {
    display: block;
    margin-bottom: 8px;
    font-size: 13.5px;
    color: var(--slate-400);
}
.field__label em {
    color: var(--brass-300);
    font-style: normal;
    margin-right: 2px;
}
.field__label small { color: var(--slate-400); font-size: 12px; }

.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--ink-700);
    border: 1px solid var(--ink-600);
    border-radius: var(--radius-sm);
    color: var(--paper-100);
    font-size: 15px;
    transition: border-color 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #5D6B78; }
.field input:focus,
.field textarea:focus {
    border-color: var(--brass-500);
}
.field textarea { resize: vertical; min-height: 80px; }

.field--otp {
    letter-spacing: 0.6em;
    text-align: center;
    font-family: var(--font-num);
    font-size: 20px;
}

.btn {
    position: relative;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; }

.btn--primary {
    background: var(--brass-500);
    color: var(--ink-900);
}
.btn--primary:hover:not(:disabled) { background: var(--brass-300); }

.btn--ghost {
    background: transparent;
    border: 1px solid var(--ink-600);
    color: var(--paper-100);
    margin-top: 8px;
}
.btn--ghost:hover { border-color: var(--brass-500); }

.btn__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(11,18,28,0.35);
    border-top-color: var(--ink-900);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-step__footer {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.link-btn {
    background: none;
    border: none;
    color: var(--brass-300);
    font-size: 13.5px;
    cursor: pointer;
    padding: 4px 0;
}
.link-btn:hover { text-decoration: underline; }
.link-btn--muted { color: var(--slate-400); }
.link-btn:disabled { color: var(--slate-400); cursor: not-allowed; text-decoration: none; }

.muted { font-size: 12.5px; color: var(--slate-400); }

.form-step--success {
    text-align: center;
    padding: 12px 0 4px;
}
.success-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 18px;
    stroke: var(--success);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.form-step--success p { color: var(--slate-400); font-size: 14.5px; }

/* simple fade for step transitions (user-triggered only) */
.form-step {
    animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- footer ---------- */
.footer {
    max-width: var(--container);
    margin: 0 auto;
    padding: 24px 24px 48px;
    text-align: center;
}
.footer p {
    margin: 0;
    font-size: 12.5px;
    color: var(--slate-400);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .offer { grid-template-columns: 1fr; gap: 40px; }
    .features { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
    .plaque { padding: 40px 22px 32px; }
    .offer__card { padding: 24px; }
}
