@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

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

:root {
    --rose:       #E8637A;
    --rose-dark:  #C94560;
    --rose-light: #FCE8EC;
    --rose-pale:  #FDF3F5;
    --blush:      #F5D0D8;
    --taupe:      #8B7B8B;
    --charcoal:   #2D2229;
    --mid:        #6B5B6E;
    --soft-white: #FDFBFC;
    --border:     #EDD8DD;
    --shadow:     rgba(232, 99, 122, 0.15);
    --shadow-deep: rgba(45, 34, 41, 0.12);
    --success:    #6BAB8E;
    --ff-display: 'Playfair Display', Georgia, serif;
    --ff-body:    'DM Sans', sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-body);
    background: var(--soft-white);
    color: var(--charcoal);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ─── BACKGROUND DECORATION ─── */
body::before {
    content: '';
    position: fixed;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--blush) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    bottom: -150px;
    left: -150px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #E8D5F0 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* ─── LAYOUT ─── */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px 60px;
}

.container {
    width: 100%;
    max-width: 520px;
}

/* ─── TRUST BAR ─── */
.trust-bar {
    width: 100%;
    background: var(--charcoal);
    color: rgba(255,255,255,0.85);
    text-align: center;
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 36px;
}
.trust-bar span {
    color: var(--rose);
    font-weight: 600;
}

/* ─── HEADER ─── */
.header {
    text-align: center;
    margin-bottom: 32px;
    animation: fadeUp 0.6s ease both;
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--rose-light);
    color: var(--rose-dark);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
}
.logo-badge::before {
    content: '✦';
    font-size: 0.6rem;
}

.header h1 {
    font-family: var(--ff-display);
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.25;
    margin-bottom: 12px;
}

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

.header .subtitle {
    font-size: 1rem;
    color: var(--mid);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 18px;
}

.social-proof {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 0.82rem;
    color: var(--taupe);
    box-shadow: 0 2px 12px var(--shadow);
}
.social-proof .avatars {
    display: flex;
}
.social-proof .av {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid white;
    margin-right: -6px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}
.av-1 { background: #E8637A; }
.av-2 { background: #B57BAE; }
.av-3 { background: #7BB5C4; }
.social-proof strong { color: var(--charcoal); font-weight: 600; }

/* ─── PROGRESS BAR ─── */
.progress-wrap {
    margin-bottom: 28px;
    animation: fadeUp 0.6s 0.1s ease both;
}
.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--taupe);
    margin-bottom: 8px;
    font-weight: 500;
}
.progress-track {
    height: 6px;
    background: var(--blush);
    border-radius: 100px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--rose), var(--rose-dark));
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── CARD ─── */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 4px 24px var(--shadow-deep);
    animation: fadeUp 0.6s 0.15s ease both;
}

/* ─── FORM ─── */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 7px;
    letter-spacing: 0.01em;
}
.form-group label .req {
    color: var(--rose);
    margin-left: 2px;
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: var(--ff-body);
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--rose-pale);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.select-wrap {
    position: relative;
}
.select-wrap::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--rose);
    pointer-events: none;
}

.form-group select:focus,
.form-group input:focus {
    border-color: var(--rose);
    background: white;
    box-shadow: 0 0 0 3px rgba(232, 99, 122, 0.12);
}

/* ─── MICRO COPY ─── */
.micro-copy {
    background: var(--rose-pale);
    border-left: 3px solid var(--rose);
    border-radius: 0 10px 10px 0;
    padding: 14px 16px;
    margin: 20px 0;
    font-size: 0.82rem;
    color: var(--mid);
    line-height: 1.6;
}
.micro-copy p + p { margin-top: 6px; }
.micro-copy strong { color: var(--charcoal); }

/* ─── BUTTONS ─── */
.btn-primary {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
    color: white;
    font-family: var(--ff-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(232, 99, 122, 0.4);
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: center;
    text-decoration: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(232, 99, 122, 0.5);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-hint {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--taupe);
    margin-top: 10px;
}

/* ─── RESULT PAGE ─── */
.result-header {
    text-align: center;
    margin-bottom: 24px;
    animation: fadeUp 0.5s ease both;
}
.result-header h2 {
    font-family: var(--ff-display);
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
    line-height: 1.3;
}
.result-header p {
    font-size: 0.92rem;
    color: var(--mid);
}

/* Result cards */
.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.result-card {
    background: var(--rose-pale);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
}
.result-card .rc-label {
    font-size: 0.72rem;
    color: var(--taupe);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.result-card .rc-value {
    font-family: var(--ff-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.1;
}
.result-card .rc-unit {
    font-size: 0.75rem;
    color: var(--taupe);
    font-family: var(--ff-body);
    font-weight: 400;
}
.result-card.highlight {
    background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
    border-color: transparent;
    grid-column: 1 / -1;
}
.result-card.highlight .rc-label { color: rgba(255,255,255,0.75); }
.result-card.highlight .rc-value { color: white; font-size: 2rem; }
.result-card.highlight .rc-unit  { color: rgba(255,255,255,0.75); }

.result-meta {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--mid);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.result-meta .meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.result-meta .meta-row span:last-child {
    font-weight: 600;
    color: var(--charcoal);
}

/* ─── BLUR OVERLAY ─── */
.lock-container {
    position: relative;
    margin-top: 4px;
}
.lock-content {
    filter: blur(7px);
    user-select: none;
    pointer-events: none;
    transition: filter 0.5s ease;
}
.lock-content.unlocked {
    filter: none;
    pointer-events: auto;
}

.lock-overlay {
    position: absolute;
    inset: -16px;
    background: rgba(253, 243, 245, 0.6);
    backdrop-filter: blur(2px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    transition: opacity 0.4s ease;
    z-index: 10;
}
.lock-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.lock-icon {
    width: 52px;
    height: 52px;
    background: white;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
    box-shadow: 0 4px 20px var(--shadow);
}

.lock-overlay h3 {
    font-family: var(--ff-display);
    font-size: 1.25rem;
    color: var(--charcoal);
    margin-bottom: 8px;
}
.lock-overlay p {
    font-size: 0.85rem;
    color: var(--mid);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ─── EMAIL FORM ─── */
.email-form {
    width: 100%;
}
.email-form input[type="email"] {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: var(--ff-body);
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--rose-pale);
    outline: none;
    margin-bottom: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.email-form input[type="email"]:focus {
    border-color: var(--rose);
    background: white;
    box-shadow: 0 0 0 3px rgba(232, 99, 122, 0.12);
}

.checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    cursor: pointer;
}
.checkbox-wrap input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--rose);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.checkbox-wrap span {
    font-size: 0.78rem;
    color: var(--taupe);
    line-height: 1.4;
}

/* ─── SUCCESS STATE ─── */
.success-banner {
    display: none;
    background: linear-gradient(135deg, #6BAB8E, #4D8A6F);
    color: white;
    border-radius: 14px;
    padding: 18px 20px;
    text-align: center;
    margin-bottom: 20px;
    animation: fadeUp 0.4s ease both;
}
.success-banner.show { display: block; }
.success-banner .check { font-size: 1.5rem; margin-bottom: 6px; }
.success-banner p { font-size: 0.88rem; opacity: 0.9; margin-top: 4px; }
.success-banner strong { font-size: 1rem; }

/* ─── ERRORS ─── */
.error-box {
    background: #FFF0F3;
    border: 1px solid #F5C0CA;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #C94560;
}
.error-box ul { padding-left: 16px; }
.error-box li { margin-top: 4px; }

/* ─── BACK LINK ─── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--taupe);
    font-size: 0.82rem;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s;
}
.back-link:hover { color: var(--rose); }

/* ─── FOOTER ─── */
.footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--taupe);
    opacity: 0.7;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── LOADING SPINNER ─── */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── RESPONSIVE ─── */
@media (max-width: 480px) {
    .card { padding: 24px 18px; }
    .result-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
