/* /start — public order page. Matches main site aesthetic. */

:root {
    --start-bg: #050505;
    --start-text: #EBEBEB;
    --start-dim: rgba(235, 235, 235, 0.5);
    --start-muted: rgba(235, 235, 235, 0.25);
    --start-emerald: #10b981;
    --start-emerald-glow: rgba(16, 185, 129, 0.14);
    --start-border: rgba(255, 255, 255, 0.08);
    --start-border-hover: rgba(16, 185, 129, 0.35);
    --start-surface: #0a0a0a;
    --start-danger: #ef4444;
    --start-warning: #f59e0b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--start-bg);
    color: var(--start-text);
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

.start-shell {
    min-height: 100vh;
    max-width: 640px;
    margin: 0 auto;
    padding: 64px 24px 96px;
}

/* Hero */
.start-hero { margin-bottom: 48px; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--start-dim);
    text-decoration: none;
    font-family: 'Space Grotesk', monospace;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 40px;
    transition: color 0.2s;
}
.back-link:hover { color: var(--start-text); }
.back-link img { display: block; }

.start-hero h1 {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 700;
    font-size: clamp(40px, 6vw, 60px);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0 0 16px;
}

.start-sub {
    color: var(--start-dim);
    font-size: 17px;
    margin: 0;
    max-width: 520px;
}

/* Sections */
.form-section {
    padding: 28px 0;
    border-top: 1px solid var(--start-border);
}
.form-section:first-of-type { border-top: none; padding-top: 0; }

.section-label {
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--start-muted);
    margin: 0 0 20px;
}

/* Fields */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}
.field-row .field { margin-bottom: 0; }

.field label {
    display: block;
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--start-dim);
    margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    background: var(--start-surface);
    border: 1px solid var(--start-border);
    border-radius: 12px;
    color: var(--start-text);
    font-family: inherit;
    font-size: 16px; /* >=16px prevents iOS auto-zoom */
    line-height: 1.4;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 96px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--start-border-hover);
    box-shadow: 0 0 0 3px var(--start-emerald-glow);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--start-muted); }

/* Domain live status */
.domain-field { position: relative; }

.domain-status {
    min-height: 20px;
    margin-top: 10px;
    font-family: 'Space Grotesk', monospace;
    font-size: 13px;
    letter-spacing: 0.01em;
}
.domain-status.ok { color: var(--start-emerald); }
.domain-status.err { color: var(--start-danger); }
.domain-status.warn { color: var(--start-warning); }
.domain-status.checking { color: var(--start-dim); }

/* Form-level error */
.form-error {
    min-height: 0;
    margin: 16px 0 0;
    color: var(--start-danger);
    font-size: 14px;
}
.form-error:empty { margin: 0; }

/* Submit */
.submit-btn {
    width: 100%;
    min-height: 52px;
    margin-top: 32px;
    padding: 14px 24px;
    background: var(--start-emerald);
    color: #000;
    border: none;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.submit-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.28);
}
.submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.submit-note {
    margin: 14px 0 0;
    color: var(--start-muted);
    font-size: 12px;
    font-family: 'Space Grotesk', monospace;
    letter-spacing: 0.03em;
    text-align: center;
}

/* reCAPTCHA badge */
.grecaptcha-badge { visibility: hidden; }

/* Mobile */
@media (max-width: 720px) {
    .start-shell { padding: 40px 20px 72px; }
    .start-hero h1 { font-size: clamp(32px, 8vw, 44px); }
    .start-sub { font-size: 16px; }
    .field-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
