/* ============================================
   Ana Carrasco - Scorecard Landing Page
   Palette: sage green, warm cream, soft gold
   ============================================ */

:root {
    --sage: #7c956b;
    --sage-light: #a3b896;
    --sage-dark: #5a7049;
    --cream: #faf6f0;
    --cream-dark: #f0e8da;
    --gold: #c9a84c;
    --gold-light: #e8d591;
    --charcoal: #2d2d2d;
    --gray: #6b6b6b;
    --gray-light: #a0a0a0;
    --white: #ffffff;
    --red-soft: #c75c5c;
    --orange-soft: #d4914e;
    --green-soft: #7c956b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    line-height: 1.2;
}

/* ============= HERO ============= */

.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--sage-light);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--charcoal);
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-areas {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.area-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--cream-dark);
    border-radius: 24px;
    font-size: 0.9rem;
    color: var(--charcoal);
    font-weight: 500;
}

.area-icon {
    font-size: 1rem;
}

.hero-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--gray-light);
}

/* ============= BUTTONS ============= */

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: var(--sage);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    background: var(--sage-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 149, 107, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--sage);
    border: 2px solid var(--sage);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--sage);
    color: var(--white);
}

.cta-center {
    text-align: center;
    margin-top: 40px;
}

/* ============= CREDIBILITY ============= */

.credibility {
    padding: 60px 0;
    background: var(--white);
}

.cred-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.cred-stat {
    text-align: center;
    padding: 24px 16px;
}

.cred-stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage);
}

.cred-number {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: 2.2rem;
    color: var(--sage-dark);
    margin-bottom: 4px;
}

.cred-label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.4;
    margin-bottom: 8px;
}

.cred-source {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-light);
    font-style: italic;
}

/* ============= ABOUT ============= */

.about {
    padding: 80px 0;
    background: var(--cream);
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--charcoal);
}

.about-text p {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-text strong {
    color: var(--charcoal);
}

/* ============= HOW IT WORKS ============= */

.how-it-works {
    padding: 80px 0;
    background: var(--white);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    text-align: center;
    padding: 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: var(--sage);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
}

.step h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--charcoal);
}

.step p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.5;
}

/* ============= QUIZ ============= */

.quiz-section {
    padding: 40px 0 80px;
    background: var(--cream);
    min-height: 100vh;
}

.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.quiz-progress {
    height: 6px;
    background: var(--cream-dark);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.quiz-progress-bar {
    height: 100%;
    background: var(--sage);
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 0%;
}

.quiz-progress-text {
    font-size: 0.8rem;
    color: var(--gray-light);
    text-align: right;
    margin-bottom: 32px;
}

/* Quiz questions */
.quiz-question {
    animation: fadeIn 0.3s ease;
}

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

.quiz-question h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--charcoal);
    line-height: 1.4;
}

.quiz-question p.quiz-hint {
    font-size: 0.85rem;
    color: var(--gray-light);
    margin-top: -16px;
    margin-bottom: 20px;
}

/* Yes/No buttons */
.quiz-yesno {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.quiz-yesno button {
    padding: 16px;
    border: 2px solid var(--cream-dark);
    border-radius: 10px;
    background: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--charcoal);
}

.quiz-yesno button:hover {
    border-color: var(--sage);
    background: var(--cream);
}

.quiz-yesno button.selected {
    border-color: var(--sage);
    background: var(--sage);
    color: var(--white);
}

/* Multiple choice */
.quiz-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-choices button {
    padding: 14px 20px;
    border: 2px solid var(--cream-dark);
    border-radius: 10px;
    background: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    color: var(--charcoal);
}

.quiz-choices button:hover {
    border-color: var(--sage);
    background: var(--cream);
}

.quiz-choices button.selected {
    border-color: var(--sage);
    background: var(--sage);
    color: var(--white);
}

/* Text input */
.quiz-input input,
.quiz-input textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--cream-dark);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: var(--charcoal);
    background: var(--white);
    transition: border-color 0.2s ease;
}

.quiz-input input:focus,
.quiz-input textarea:focus {
    outline: none;
    border-color: var(--sage);
}

.quiz-input textarea {
    min-height: 100px;
    resize: vertical;
}

.quiz-input label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 6px;
    font-weight: 500;
}

.quiz-input + .quiz-input {
    margin-top: 16px;
}

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

.quiz-nav .btn-back {
    padding: 10px 20px;
    border: none;
    background: none;
    color: var(--gray);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s;
}

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

/* ============= RESULTS ============= */

.results-section {
    padding: 60px 0 80px;
    background: var(--cream);
    min-height: 100vh;
}

.results-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.results-container h2 {
    font-size: 1.8rem;
    margin-bottom: 32px;
}

.score-display {
    margin: 0 auto 24px;
    width: 200px;
    height: 200px;
    position: relative;
}

.score-circle {
    position: relative;
}

.score-circle svg {
    width: 200px;
    height: 200px;
}

.score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-family: 'DM Serif Display', serif;
    font-size: 3.5rem;
    color: var(--sage-dark);
}

.score-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 60%);
    font-size: 0.85rem;
    color: var(--gray-light);
}

.score-level {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--sage);
    margin-bottom: 12px;
}

.score-summary {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Insights */
.insights {
    text-align: left;
    margin-bottom: 40px;
}

.insight {
    padding: 20px;
    background: var(--cream);
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid var(--sage);
}

.insight.weak {
    border-left-color: var(--orange-soft);
}

.insight.strong {
    border-left-color: var(--green-soft);
}

.insight h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.insight p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Results CTA */
.results-cta {
    padding: 32px;
    background: var(--cream);
    border-radius: 16px;
    margin-bottom: 32px;
}

.results-cta h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.results-cta p {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Share */
.results-share {
    padding-top: 24px;
    border-top: 1px solid var(--cream-dark);
}

.results-share p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.85;
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.copy {
    background: var(--cream-dark);
    color: var(--charcoal);
}

/* ============= FOOTER ============= */

footer {
    padding: 40px 0;
    text-align: center;
    background: var(--charcoal);
    color: var(--gray-light);
    font-size: 0.9rem;
}

footer a {
    color: var(--sage-light);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-sub {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--gray);
}

/* ============= RESPONSIVE ============= */

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .cred-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .quiz-container {
        padding: 24px;
        border-radius: 12px;
    }

    .quiz-yesno {
        grid-template-columns: 1fr;
    }

    .results-container {
        padding: 32px 24px;
    }

    .results-cta {
        padding: 24px;
    }
}
