/* CSS Styles for balancedwithabby.com/energy-audit-quiz.html */

:root {
    --rose: #c6898c;
    --teal: #527a77;
    --charcoal: #5c5852;
    --thyme: #728a7e;
    --mist: #8FB5B0;
    --wine: #6B1F3A;
    --cream: #F2F0EB;
    --cream-dark: #e8e4dc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jost', sans-serif;
    background-color: var(--cream);
    color: var(--charcoal);
    min-height: 100vh;
    overflow-x: hidden;
}

/* TEXTURE OVERLAY */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('/static/img/noise-energy.svg');
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    position: relative;
    z-index: 1;
}

/* HEADER */
.header {
    text-align: center;
    padding: 60px 0 48px;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.1s;
}

.header-eyebrow {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--thyme);
    margin-bottom: 20px;
}

.header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(42px, 8vw, 68px);
    font-weight: 300;
    line-height: 1.05;
    color: var(--teal);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.header h1 em {
    font-style: italic;
    color: var(--rose);
}

.header-desc {
    font-size: 15px;
    line-height: 1.75;
    color: var(--charcoal);
    max-width: 480px;
    margin: 0 auto;
    font-weight: 300;
}

/* DIVIDER */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--mist);
    opacity: 0.5;
}

.divider-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--rose);
    opacity: 0.6;
}

/* PROGRESS */
.progress-wrap {
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.3s;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-section {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 500;
}

.progress-count {
    font-size: 12px;
    color: var(--thyme);
    font-weight: 300;
}

.progress-bar {
    height: 2px;
    background: var(--cream-dark);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--mist));
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* QUESTION CARD */
.question-card {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(82, 122, 119, 0.12);
    border-radius: 2px;
    padding: 40px 40px 36px;
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.5s ease forwards;
    transition: opacity 0.3s ease;
}

@media (max-width: 520px) {
    .question-card {
        padding: 28px 20px 24px;
    }
}

.question-category {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rose);
    border-bottom: 1px solid var(--rose);
    padding-bottom: 2px;
    margin-bottom: 20px;
    font-weight: 500;
}

.question-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 400;
    line-height: 1.4;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.question-sub {
    font-size: 13px;
    color: var(--thyme);
    font-weight: 300;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* OPTIONS */
.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid rgba(82, 122, 119, 0.18);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    text-align: left;
    width: 100%;
    font-family: 'Jost', sans-serif;
}

.option:hover {
    border-color: var(--teal);
    background: rgba(82, 122, 119, 0.04);
}

.option.selected {
    border-color: var(--teal);
    background: rgba(82, 122, 119, 0.08);
}

.option-marker {
    width: 20px;
    height: 20px;
    border: 1px solid var(--mist);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.option.selected .option-marker {
    border-color: var(--teal);
    background: var(--teal);
}

.option.selected .option-marker::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cream);
}

.option-text {
    font-size: 14px;
    line-height: 1.55;
    color: var(--charcoal);
    font-weight: 300;
}

.option-score {
    display: none;
}

/* NAVIGATION */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

.btn-back {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--thyme);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s;
}

.btn-back:hover {
    color: var(--charcoal);
}

.btn-back.hidden {
    visibility: hidden;
}

.btn-next {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cream);
    background: var(--teal);
    border: none;
    cursor: pointer;
    padding: 13px 28px;
    border-radius: 1px;
    transition: all 0.2s ease;
    opacity: 0.4;
    pointer-events: none;
}

.btn-next.active {
    opacity: 1;
    pointer-events: all;
}

.btn-next.active:hover {
    background: var(--charcoal);
}

/* INTRO SCREEN */
#intro-screen {
    text-align: center;
}

.intro-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin: 32px 0 40px;
    text-align: left;
}

.intro-area {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(82, 122, 119, 0.12);
    padding: 16px;
    border-radius: 2px;
}

.intro-area-icon {
    font-size: 18px;
    margin-bottom: 8px;
}

.intro-area-name {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 4px;
}

.intro-area-desc {
    font-size: 12px;
    color: var(--thyme);
    font-weight: 300;
    line-height: 1.5;
}

.intro-text {
    font-size: 14px;
    color: var(--charcoal);
    font-weight: 300;
    line-height: 1.75;
    text-align: center;
    margin-bottom: 28px;
}

.btn-start {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream);
    background: var(--teal);
    border: none;
    cursor: pointer;
    padding: 16px 44px;
    border-radius: 1px;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-start:hover {
    background: var(--charcoal);
}

.intro-note {
    margin-top: 16px;
    font-size: 12px;
    color: var(--thyme);
    font-weight: 300;
}

/* RESULTS SCREEN */
#results-screen {
    display: none;
}

.results-header {
    text-align: center;
    padding: 20px 0 36px;
}

.results-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 300;
    color: var(--teal);
    line-height: 1.1;
    margin-bottom: 12px;
}

.results-header h2 em {
    color: var(--rose);
    font-style: italic;
}

.results-header p {
    font-size: 14px;
    color: var(--thyme);
    font-weight: 300;
    line-height: 1.7;
    max-width: 460px;
    margin: 0 auto;
}

/* SCORE BARS */
.score-section {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(82, 122, 119, 0.12);
    padding: 32px;
    margin-bottom: 20px;
    border-radius: 2px;
}

@media (max-width: 520px) {
    .score-section {
        padding: 22px 18px;
    }
}

.score-row {
    margin-bottom: 24px;
}

.score-row:last-child {
    margin-bottom: 0;
}

.score-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.score-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--charcoal);
    font-weight: 500;
}

.score-status {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 1px;
}

.score-status.draining {
    color: var(--wine);
    background: rgba(107, 31, 58, 0.08);
}

.score-status.depleted {
    color: var(--rose);
    background: rgba(198, 137, 140, 0.12);
}

.score-status.building {
    color: var(--thyme);
    background: rgba(114, 138, 126, 0.1);
}

.score-status.thriving {
    color: var(--teal);
    background: rgba(82, 122, 119, 0.1);
}

.score-bar-track {
    height: 4px;
    background: var(--cream-dark);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.score-bar-fill {
    height: 100%;
    border-radius: 2px;
    width: 0;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-bar-fill.draining {
    background: var(--wine);
}

.score-bar-fill.depleted {
    background: var(--rose);
}

.score-bar-fill.building {
    background: var(--thyme);
}

.score-bar-fill.thriving {
    background: linear-gradient(90deg, var(--teal), var(--mist));
}

.score-insight {
    font-size: 13px;
    color: var(--thyme);
    font-weight: 300;
    line-height: 1.6;
}

/* RESULT TYPE BANNER */
.result-type {
    text-align: center;
    background: rgba(82, 122, 119, 0.06);
    border: 1px solid rgba(82, 122, 119, 0.15);
    padding: 32px;
    margin-bottom: 20px;
    border-radius: 2px;
}

.result-type-eyebrow {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--thyme);
    margin-bottom: 10px;
}

.result-type-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(24px, 5vw, 38px);
    font-weight: 400;
    color: var(--teal);
    margin-bottom: 12px;
    line-height: 1.2;
}

.result-type-desc {
    font-size: 14px;
    color: var(--charcoal);
    font-weight: 300;
    line-height: 1.75;
    max-width: 500px;
    margin: 0 auto;
}

/* HTMA BRIDGE */
.htma-bridge {
    background: linear-gradient(135deg, rgba(107, 31, 58, 0.05) 0%, rgba(82, 122, 119, 0.06) 100%);
    border: 1px solid rgba(107, 31, 58, 0.15);
    padding: 36px;
    margin-bottom: 20px;
    border-radius: 2px;
    text-align: center;
}

@media (max-width: 520px) {
    .htma-bridge {
        padding: 24px 18px;
    }
}

.htma-eyebrow {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 14px;
}

.htma-bridge h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 14px;
    line-height: 1.3;
}

.htma-bridge h3 em {
    font-style: italic;
    color: var(--wine);
}

.htma-bridge p {
    font-size: 14px;
    color: var(--charcoal);
    font-weight: 300;
    line-height: 1.75;
    max-width: 480px;
    margin: 0 auto 24px;
}

.htma-minerals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.htma-mineral {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
    border: 1px solid rgba(82, 122, 119, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 400;
}

.btn-htma {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream);
    background: var(--wine);
    border: none;
    cursor: pointer;
    padding: 15px 36px;
    border-radius: 1px;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    margin-bottom: 10px;
}

.btn-htma:hover {
    background: var(--charcoal);
}

.htma-note {
    font-size: 12px;
    color: var(--thyme);
    font-weight: 300;
}

/* STRENGTHS & DRAINS */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 500px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

.insight-box {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(82, 122, 119, 0.12);
    padding: 24px;
    border-radius: 2px;
}

.insight-box-label {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 500;
}

.insight-box-label.strength {
    color: var(--teal);
}

.insight-box-label.drain {
    color: var(--rose);
}

.insight-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.insight-list li {
    font-size: 13px;
    color: var(--charcoal);
    font-weight: 300;
    line-height: 1.5;
    padding-left: 16px;
    position: relative;
}

.insight-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--mist);
    font-size: 11px;
}

/* FOOTER NOTE */
.footer-note {
    text-align: center;
    padding: 24px 0;
    font-size: 12px;
    color: var(--thyme);
    font-weight: 300;
    line-height: 1.7;
    border-top: 1px solid rgba(82, 122, 119, 0.12);
    margin-top: 20px;
}

.btn-retake {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--thyme);
    background: none;
    border: 1px solid rgba(82, 122, 119, 0.25);
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 1px;
    transition: all 0.2s ease;
    margin-top: 12px;
    display: inline-block;
}

.btn-retake:hover {
    border-color: var(--teal);
    color: var(--teal);
}

/* EMAIL GATE */
#gate-screen {
    display: none;
}

.gate-card {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(82, 122, 119, 0.12);
    border-radius: 2px;
    padding: 48px 40px 40px;
    backdrop-filter: blur(4px);
    text-align: center;
    animation: fadeUp 0.5s ease forwards;
}

@media (max-width: 520px) {
    .gate-card {
        padding: 32px 20px 28px;
    }
}

.gate-eyebrow {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--thyme);
    margin-bottom: 16px;
}

.gate-card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(26px, 5vw, 38px);
    font-weight: 300;
    color: var(--teal);
    line-height: 1.2;
    margin-bottom: 14px;
}

.gate-card h2 em {
    font-style: italic;
    color: var(--rose);
}

.gate-card p {
    font-size: 14px;
    color: var(--charcoal);
    font-weight: 300;
    line-height: 1.75;
    max-width: 420px;
    margin: 0 auto 28px;
}

.gate-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
    margin: 0 auto 16px;
}

.gate-input {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--charcoal);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(82, 122, 119, 0.25);
    border-radius: 2px;
    padding: 13px 16px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s ease;
}

.gate-input::placeholder {
    color: var(--thyme);
    opacity: 0.7;
}

.gate-input:focus {
    border-color: var(--teal);
}

.btn-gate {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream);
    background: var(--teal);
    border: none;
    cursor: pointer;
    padding: 14px 32px;
    border-radius: 1px;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-gate:hover {
    background: var(--charcoal);
}

.btn-gate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gate-skip {
    font-size: 11px;
    color: var(--thyme);
    font-weight: 300;
    margin-top: 12px;
    display: block;
}

.gate-skip a {
    color: var(--thyme);
    text-decoration: underline;
    cursor: pointer;
    text-underline-offset: 2px;
}

.gate-skip a:hover {
    color: var(--charcoal);
}

.gate-privacy {
    font-size: 11px;
    color: var(--thyme);
    font-weight: 300;
    margin-top: 20px;
    opacity: 0.8;
}

.gate-error {
    font-size: 12px;
    color: var(--wine);
    margin-top: 8px;
    display: none;
}

/* EMAIL GATE */
.gate-card {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(82, 122, 119, 0.12);
    border-radius: 2px;
    padding: 48px 40px 40px;
    backdrop-filter: blur(4px);
    text-align: center;
    animation: fadeUp 0.5s ease forwards;
}

@media (max-width: 520px) {
    .gate-card {
        padding: 32px 20px 28px;
    }
}

.gate-eyebrow {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--thyme);
    margin-bottom: 16px;
}

.gate-card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(26px, 5vw, 38px);
    font-weight: 300;
    color: var(--teal);
    line-height: 1.2;
    margin-bottom: 14px;
}

.gate-card h2 em {
    font-style: italic;
    color: var(--rose);
}

.gate-card p {
    font-size: 14px;
    color: var(--charcoal);
    font-weight: 300;
    line-height: 1.75;
    max-width: 420px;
    margin: 0 auto 28px;
}

.gate-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
    margin: 0 auto 16px;
}

.gate-input {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--charcoal);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(82, 122, 119, 0.25);
    border-radius: 2px;
    padding: 13px 16px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s ease;
}

.gate-input::placeholder {
    color: var(--thyme);
    opacity: 0.7;
}

.gate-input:focus {
    border-color: var(--teal);
}

.btn-gate {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream);
    background: var(--teal);
    border: none;
    cursor: pointer;
    padding: 14px 32px;
    border-radius: 1px;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-gate:hover {
    background: var(--charcoal);
}

.btn-gate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gate-skip {
    font-size: 11px;
    color: var(--thyme);
    font-weight: 300;
    margin-top: 14px;
    display: block;
}

.gate-skip a {
    color: var(--thyme);
    text-decoration: underline;
    cursor: pointer;
    text-underline-offset: 2px;
}

.gate-skip a:hover {
    color: var(--charcoal);
}

.gate-privacy {
    font-size: 11px;
    color: var(--thyme);
    font-weight: 300;
    margin-top: 20px;
    opacity: 0.8;
}

.gate-error {
    font-size: 12px;
    color: var(--wine);
    margin-top: 4px;
    display: none;
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-enter {
    animation: fadeUp 0.45s ease forwards;
}

/* SCREEN MANAGEMENT */
#quiz-screen {
    display: none;
}