/* ============================================================
   AUTHORS PAGE -- rv2 redesign
   Converted from the editorial (Instrument Serif / dark hero)
   design to the shared rv2 / LandingV2 system: Inter, light
   tint bands, eyebrow pills, rounded white cards, brand blue
   #00B4FF, orange #FFAA00 reserved for the main commit CTA,
   full dark mode via body.dark-mode. Class names kept (.authors-*)
   so the wizard markup stays stable; only the styling changes.
   Tokens resolve from brand-tokens.css with safe fallbacks.
   ============================================================ */

.authors-shell {
    --a-blue: var(--brand-primary, #00B4FF);
    --a-blue-deep: var(--brand-secondary, #0174B1);
    --a-tint: var(--brand-bg, #F6FBFF);
    --a-charcoal: var(--brand-charcoal, #222222);
    --a-orange: var(--brand-cta, #FFAA00);
    --a-gray: var(--brand-divider, #E0E0E0);
    --a-ink-60: #5A6472;
    --a-card: #FFFFFF;
    --a-pill-bg: #E6F4FF;
    --a-green: #19B36B;

    font-family: 'Inter', system-ui, sans-serif;
    color: var(--a-charcoal);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    padding: 96px 24px 64px;
    background: var(--a-tint);
}
.authors-shell *, .authors-shell *::before, .authors-shell *::after { box-sizing: border-box; }

/* ===== HERO ===== */
.authors-hero { background: none; padding: 8px 0 0; }
.authors-container { width: 100%; max-width: 1080px; margin: 0 auto; }
.authors-hero-card { text-align: center; max-width: 720px; margin: 0 auto; padding: 0 8px; }

.authors-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: var(--a-pill-bg); border: 0; color: var(--a-blue-deep);
    font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 18px;
}
.authors-hero-eyebrow svg { width: 13px; height: 13px; }

.authors-shell .authors-title {
    margin: 0 0 14px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(36px, 5.2vw, 52px);
    font-weight: 800; line-height: 1.05; letter-spacing: -0.035em;
    color: var(--a-charcoal);
}
.authors-title-accent { color: var(--a-blue); font-style: normal; }

.authors-shell .authors-subtitle {
    margin: 0 auto 24px !important;
    font-size: 17px; line-height: 1.55; color: var(--a-ink-60);
    font-weight: 400; max-width: 600px; text-align: center !important;
}

.authors-hero-highlights { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.authors-highlight {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px;
    background: var(--a-card); border: 1px solid var(--a-gray);
    color: var(--a-charcoal); font-size: 13px; font-weight: 600;
    box-shadow: 0 4px 14px rgba(2, 32, 71, 0.05);
}

/* ===== WIZARD SECTION ===== */
.authors-section { margin-top: 36px; }

.authors-card {
    max-width: 860px; margin: 0 auto;
    background: var(--a-card); border-radius: 22px;
    border: 1px solid var(--a-gray);
    box-shadow: 0 24px 60px rgba(2, 32, 71, 0.10);
    position: relative; overflow: hidden;
}
.authors-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--a-blue), var(--a-orange));
}
.authors-card-inner { padding: 2.5rem; }

/* ===== STEPPER ===== */
.authors-steps {
    display: grid; grid-template-columns: repeat(4, 1fr);
    align-items: start; position: relative;
    margin-bottom: 2rem; padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--a-gray);
}
.authors-steps::before {
    content: ''; position: absolute; top: 17px; left: 12.5%; right: 12.5%;
    height: 2px; background: var(--a-gray); border-radius: 999px; z-index: 0;
}
.authors-steps::after {
    content: ''; position: absolute; top: 17px; left: 12.5%;
    height: 2px; width: calc(25% * var(--active-step, 0));
    background: linear-gradient(90deg, var(--a-blue), var(--a-blue-deep));
    border-radius: 999px; z-index: 0;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.authors-step { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; position: relative; z-index: 1; }
.authors-step-index {
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
    background: #EEF2F7; color: #94A3B8; border: 2px solid var(--a-gray);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.authors-step-index svg { width: 16px; height: 16px; }
.authors-step-index.active { background: var(--a-blue); color: #fff; border-color: var(--a-blue); box-shadow: 0 0 0 4px rgba(0, 180, 255, 0.15); }
.authors-step-index.done { background: var(--a-green); color: #fff; border-color: var(--a-green); }
.authors-step-label { font-weight: 600; color: #94A3B8; font-size: 0.82rem; text-align: center; transition: color 0.3s ease; }
.authors-step:has(.authors-step-index.active) .authors-step-label { color: var(--a-charcoal); font-weight: 700; }
.authors-step:has(.authors-step-index.done) .authors-step-label { color: var(--a-ink-60); }

/* ===== HEADINGS ===== */
.authors-h2 { margin: 0.25rem 0 0.35rem; font-family: 'Inter', system-ui, sans-serif; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--a-charcoal); }
.authors-muted { margin: 0 0 1.25rem; color: var(--a-ink-60); font-size: 0.95rem; }

/* ===== CHOICE CARDS (Step 0) ===== */
.authors-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.authors-choice {
    position: relative; text-align: left; border-radius: 16px;
    border: 2px solid var(--a-gray); background: var(--a-card); padding: 1.5rem;
    cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(2, 32, 71, 0.04);
}
.authors-choice:hover { border-color: rgba(0, 180, 255, 0.4); box-shadow: 0 6px 18px rgba(2, 32, 71, 0.08); transform: translateY(-2px); }
.authors-choice.selected { border-color: var(--a-blue); background: rgba(0, 180, 255, 0.04); box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.12), 0 6px 18px rgba(2, 32, 71, 0.06); }
.authors-choice-ico { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px; background: var(--a-pill-bg); color: var(--a-blue); margin-bottom: 0.9rem; }
.authors-choice-ico svg { width: 22px; height: 22px; }
.authors-choice-badge {
    position: absolute; top: 1.1rem; right: 1.1rem;
    font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 4px 9px; border-radius: 999px;
}
.authors-choice-badge.recommended { background: var(--a-blue); color: #003B5C; }
.authors-choice-badge.selective { background: rgba(255, 170, 0, 0.16); color: #9A6700; }
.authors-choice-title { font-weight: 800; color: var(--a-charcoal); margin-bottom: 0.4rem; font-size: 1.05rem; }
.authors-choice-desc { color: var(--a-ink-60); line-height: 1.55; font-size: 0.92rem; }

/* ===== DETAILS / WHAT YOU GET ===== */
.authors-details { margin-top: 1.25rem; border-radius: 14px; border: 1px solid var(--a-gray); background: var(--a-tint); padding: 1.25rem 1.35rem; }
.authors-details-title { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--a-charcoal); margin-bottom: 0.6rem; }
.authors-details-title svg { width: 18px; height: 18px; color: var(--a-blue); }
.authors-details-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.25rem; color: #475569; }
.authors-details-list li { position: relative; padding-left: 1.6rem; line-height: 1.5; font-size: 0.92rem; }
.authors-details-list li::before {
    content: ''; position: absolute; left: 0; top: 2px; width: 16px; height: 16px;
    background: no-repeat center / contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4 10.5l3.5 3.5L16 6' stroke='%2319B36B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ===== FORM INPUTS (Step 1) ===== */
.authors-form { margin-top: 0.75rem; }
.authors-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.authors-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.85rem; }
.authors-label { font-weight: 700; color: var(--a-charcoal); font-size: 0.92rem; }
.authors-input, .authors-textarea {
    border-radius: 12px; border: 1.5px solid var(--a-gray); background: var(--a-card);
    padding: 0.75rem 0.9rem; font-size: 1rem; color: var(--a-charcoal); font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.authors-input:focus, .authors-textarea:focus { outline: 0; border-color: var(--a-blue); box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.12); }
.authors-select {
    width: 100%; height: 46px; border-radius: 12px; border: 1.5px solid var(--a-gray);
    background-color: var(--a-card); color: var(--a-charcoal); font-family: inherit; font-weight: 600;
    padding: 0.65rem 2.4rem 0.65rem 0.9rem;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 16px 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%235A6472' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.authors-select:focus { outline: none; box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.12); border-color: var(--a-blue); }

/* ===== FILE UPLOAD (Step 2) ===== */
.authors-file-selected { margin-top: 0.5rem; padding: 0.5rem 0.75rem; border-radius: 8px; background: rgba(25, 179, 107, 0.10); color: #137a48; font-size: 0.875rem; font-weight: 600; }

/* ===== REVIEW & SUBMIT (Step 3) ===== */
.authors-review { border-radius: 14px; border: 1px solid var(--a-gray); background: var(--a-tint); padding: 1.15rem 1.25rem; margin-bottom: 1.25rem; }
.authors-review-item { display: grid; grid-template-columns: 135px 1fr; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--a-gray); }
.authors-review-item:last-child { border-bottom: none; }
.authors-review-item strong { color: var(--a-charcoal); font-weight: 700; }
.authors-review-item span { color: #475569; }

/* ===== BUTTONS ===== */
.authors-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.authors-btn {
    appearance: none; border: 1.5px solid var(--a-gray); border-radius: 999px;
    padding: 0.7rem 1.5rem; background: var(--a-card); color: #334155;
    font-family: inherit; font-weight: 700; cursor: pointer; transition: all 0.2s ease;
}
.authors-btn:hover { background: #F1F5F9; border-color: #cbd5e1; }
.authors-btn.primary {
    background: var(--a-orange); border: none; color: #1F1300;
    box-shadow: 0 8px 20px rgba(255, 170, 0, 0.28); padding: 0.7rem 2rem;
}
.authors-btn.primary:hover { box-shadow: 0 10px 24px rgba(255, 170, 0, 0.36); transform: translateY(-1px); }
.authors-btn.primary:active { transform: translateY(0); }
.authors-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ===== ALERTS & SUCCESS ===== */
.authors-alert { margin-top: 1rem; border-radius: 12px; background: rgba(220, 53, 69, 0.06); border: 1px solid rgba(220, 53, 69, 0.2); padding: 0.85rem 1rem; color: #b91c1c; font-weight: 700; font-size: 0.95rem; }
.authors-success { border-radius: 16px; background: rgba(25, 179, 107, 0.08); border: 1px solid rgba(25, 179, 107, 0.22); padding: 1.75rem; text-align: center; }
.authors-success-title { font-family: 'Inter', system-ui, sans-serif; font-weight: 800; color: #137a48; margin-bottom: 0.5rem; font-size: 1.4rem; letter-spacing: -0.02em; }
.authors-success-text { color: #1f6b46; font-weight: 500; line-height: 1.6; }

/* ===== HELP & LINKS ===== */
.authors-help { margin-top: 1.5rem; text-align: center; color: var(--a-ink-60); font-size: 0.9rem; }
.authors-link, .authors-link-btn {
    appearance: none; background: none; border: none; padding: 0;
    color: var(--a-blue-deep); font-weight: 700; text-decoration: none; cursor: pointer;
    font-size: inherit; font-family: inherit; transition: color 0.2s ease;
}
.authors-link:hover, .authors-link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===== EARNINGS RATES ===== */
.authors-rates-section { margin-top: 1.5rem; padding: 1.5rem; background: var(--a-tint); border-radius: 14px; border: 1px solid var(--a-gray); animation: authors-slidedown 0.3s ease-out; }
@keyframes authors-slidedown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.authors-rates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 1rem; }
.authors-rates-column { display: flex; flex-direction: column; gap: 1rem; }
.authors-rates-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 0.5rem; color: var(--a-charcoal); }
.authors-rates-card { border-radius: 12px; padding: 1rem; border: 1px solid var(--a-gray); background: var(--a-card); }
.authors-rates-subtitle { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.75rem; display: flex; align-items: center; gap: 0.5rem; color: var(--a-charcoal); }
.authors-rates-subtitle svg { width: 18px; height: 18px; }
.authors-rates-item { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0; font-size: 0.92rem; color: var(--a-ink-60); }
.authors-rates-item strong { color: var(--a-charcoal); font-weight: 800; }
.authors-rates-note { font-size: 0.82rem; color: var(--a-ink-60); font-style: italic; margin: 0; text-align: center; }

/* ===== ENTRANCE ANIMATIONS ===== */
@keyframes authors-reveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
    .authors-shell .authors-hero-eyebrow { animation: authors-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both; }
    .authors-shell .authors-title { animation: authors-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both; }
    .authors-shell .authors-subtitle { animation: authors-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
    .authors-shell .authors-hero-highlights { animation: authors-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both; }
    .authors-shell .authors-card { animation: authors-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.36s both; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .authors-shell { padding: 80px 18px 48px; }
    .authors-shell .authors-title { font-size: clamp(30px, 7vw, 40px); }
    .authors-card-inner { padding: 2rem 1.5rem; }
    .authors-choice-grid { grid-template-columns: 1fr; }
    .authors-row { grid-template-columns: 1fr; }
    .authors-review-item { grid-template-columns: 1fr; }
    .authors-details-list { grid-template-columns: 1fr; }
    .authors-steps::before, .authors-steps::after { display: none; }
}
@media (max-width: 560px) {
    .authors-shell { padding: 76px 14px 40px; }
    .authors-shell .authors-title { font-size: 28px; }
    .authors-shell .authors-subtitle { font-size: 0.95rem; }
    .authors-hero-eyebrow { font-size: 11px; }
    .authors-highlight { font-size: 12px; padding: 6px 12px; }
    .authors-card { border-radius: 18px; }
    .authors-card-inner { padding: 1.5rem 1.15rem; }
    .authors-step-index { width: 28px; height: 28px; font-size: 0.75rem; }
    .authors-step-label { font-size: 0.72rem; }
    .authors-steps { gap: 0.25rem; }
    .authors-h2 { font-size: 1.3rem; }
    .authors-btn { padding: 0.85rem 1.5rem; font-size: 0.95rem; min-height: 48px; }
    .authors-input, .authors-textarea, .authors-select { font-size: 16px; padding: 0.85rem 1rem; min-height: 48px; }
    .authors-select { padding-right: 2.4rem; }
    .authors-rates-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   DARK MODE -- token overrides on the shell scope
   ============================================================ */
body.dark-mode .authors-shell {
    --a-tint: #15181D; --a-charcoal: #E8EAED; --a-ink-60: #9AA6B2;
    --a-gray: #2C313A; --a-card: #1C2026; --a-blue: var(--brand-primary-light, #4DB8FF);
    --a-blue-deep: #7FCBFF;
    --a-pill-bg: #14283A;
    background: #0F1216;
}
body.dark-mode .authors-shell .authors-title { color: #F5F5F5; }
body.dark-mode .authors-shell .authors-choice-badge.selective { background: rgba(255, 170, 0, 0.18); color: #FFC24D; }
body.dark-mode .authors-shell .authors-step-index { background: rgba(255, 255, 255, 0.06); color: #94A3B8; }
body.dark-mode .authors-shell .authors-details-list { color: #94A3B8; }
body.dark-mode .authors-shell .authors-review-item span { color: #94A3B8; }
body.dark-mode .authors-shell .authors-rates-item { color: #9AA6B2; }
body.dark-mode .authors-shell .authors-btn { color: #E2E8F0; }
body.dark-mode .authors-shell .authors-btn:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255,255,255,0.18); }
body.dark-mode .authors-shell .authors-btn.primary { color: #1F1300; }
body.dark-mode .authors-shell .authors-success-title { color: #34d399; }
body.dark-mode .authors-shell .authors-success-text { color: #6ee7b7; }
body.dark-mode .authors-shell .authors-file-selected { background: rgba(25, 179, 107, 0.14); color: #34d399; }
body.dark-mode .authors-shell .authors-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%239AA6B2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
