/* ============================================================
   wizard.css -- Quiz + Result page styles
   ============================================================ */

/* -- Hero (homepage only) -- */
.hero {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 6rem 1.5rem 5rem;
    overflow: hidden;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
}

.hero-content {
    max-width: 540px;
    position: relative;
    z-index: 2;
}

.hero-visual {
    position: relative;
    z-index: 1;
    margin-left: -80px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
    mask-image: linear-gradient(to right, transparent 0%, black 25%);
}

.hero-visual img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero-content { max-width: 640px; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--green-700);
    background: var(--green-50);
    border: 1px solid var(--green-100);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-primary);
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(180deg, var(--green-600), var(--green-700));
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 1px 3px rgba(4,120,87,0.3);
    text-decoration: none;
}
.hero-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(4,120,87,0.25);
    text-decoration: none;
    color: #fff;
}
.hero-cta:active { transform: translateY(0); }

.hero-meta {
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* -- Wizard section -- */
.wizard-section { padding: 5rem 1.5rem 4rem; }

.wizard-container {
    max-width: 720px;
    margin: 0 auto;
}

.wizard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.wizard-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.375rem;
}

.wizard-header p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

/* Progress */
.wizard-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 3rem;
}

.wizard-progress-step {
    flex: 1;
    height: 3px;
    background: var(--gray-200);
    border-radius: 2px;
    transition: background 0.3s;
}
.wizard-progress-step.active,
.wizard-progress-step.completed { background: var(--green-600); }

/* Step */
.wizard-step {
    display: none;
    animation: wFadeUp 0.2s ease-out;
}
.wizard-step.active { display: block; }

@keyframes wFadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-step-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-faint);
    margin-bottom: 0.375rem;
}

.wizard-step-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

/* Options */
.wizard-options { display: grid; gap: 10px; }

.wizard-options--2col { grid-template-columns: 1fr 1fr; }

@media (max-width: 540px) {
    .wizard-options--2col { grid-template-columns: 1fr; }
}

.wizard-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    user-select: none;
    -webkit-user-select: none;
    min-height: 48px;
}
.wizard-option:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}
.wizard-option.selected {
    border-color: var(--green-600);
    background: var(--green-50);
    box-shadow: 0 0 0 1px var(--green-600);
}

.wizard-option-radio {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
}
.wizard-option.selected .wizard-option-radio { border-color: var(--green-600); }
.wizard-option.selected .wizard-option-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--green-600);
    border-radius: 50%;
}

.wizard-option-check {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s;
}
.wizard-option.selected .wizard-option-check {
    border-color: var(--green-600);
    background: var(--green-600);
}
.wizard-option.selected .wizard-option-check::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}

.wizard-option-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.35;
}

.wizard-option-desc {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 2px;
    line-height: 1.4;
}

/* Wizard nav */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.75rem;
}

.wizard-btn {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    cursor: pointer;
    transition: all 0.15s;
}

.wizard-btn--back {
    background: none;
    color: var(--color-text-muted);
    padding-left: 0;
}
.wizard-btn--back:hover { color: var(--color-text); }

.wizard-btn--next {
    background: var(--gray-950);
    color: #fff;
    margin-left: auto;
}
.wizard-btn--next:hover { background: var(--gray-800); }
.wizard-btn--next:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.wizard-btn--submit {
    background: linear-gradient(180deg, var(--green-600), var(--green-700));
    color: #fff;
    margin-left: auto;
    padding: 0.625rem 1.25rem;
    box-shadow: 0 1px 3px rgba(4,120,87,0.25);
}
.wizard-btn--submit:hover { box-shadow: 0 3px 8px rgba(4,120,87,0.2); }
.wizard-btn--submit:disabled { opacity: 0.35; cursor: not-allowed; }

/* Blog notice */
.wizard-notice {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    color: #92400e;
    line-height: 1.5;
    display: none;
}
.wizard-notice.show { display: block; }

/* ============================================================
   RESULT PAGE
   ============================================================ */
.result-page {
    background: var(--color-surface) url('/assets/bg-cloud-network.png') no-repeat center center;
    background-size: cover;
    padding: 3rem 1.5rem;
    min-height: 60vh;
}

.result-container {
    max-width: 760px;
    margin: 0 auto;
}

.result-header {
    margin-bottom: 2rem;
}

.result-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.025em;
    margin-bottom: 0.375rem;
}

.result-header p {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* Winner card */
.result-winner {
    background: var(--color-surface);
    border: 2px solid var(--green-600);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.result-winner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green-700);
    background: var(--green-50);
    border: 1px solid var(--green-100);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.result-winner-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.result-winner-logo {
    height: 24px;
    width: auto;
    margin-bottom: 1rem;
}

.result-winner-reason {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.result-winner-plan {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.result-plan-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    font-feature-settings: 'tnum' 1;
}

.result-plan-name {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Runner-up cards */
.result-runners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    margin-bottom: 2rem;
}

@media (max-width: 540px) {
    .result-runners { grid-template-columns: 1fr; }
}

.result-runner {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.result-runner-rank {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-faint);
    margin-bottom: 0.5rem;
}

.result-runner-name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.375rem;
}

.result-runner-reason {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.result-runner-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    font-feature-settings: 'tnum' 1;
}

/* Comparison table on result */
.result-compare {
    margin-bottom: 2rem;
}

.result-compare h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Deep dive links */
.result-deepdive {
    padding: 1.25rem 1.5rem;
    background: var(--gray-50);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.result-deepdive h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.result-deepdive-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.result-deepdive-links a {
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Trust signals */
.result-trust {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    border-top: 1px solid var(--color-border);
    padding-top: 1.25rem;
}

/* No results / retake */
.result-retake {
    text-align: center;
    padding: 3rem 1rem;
}

.result-retake p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}
