/* EXP001 (Flo x Exponent) landing page. Designed for mobile; wider screens get a centred column. */

:root {
    --flo-pink: #f0507a;
    --flo-pink-dark: #d93a64;
    --flo-pink-soft: #fff1f4;
    --hero-bg: #f7f4fc; /* matches the top edge of the hero artwork */
    --exponent-teal: #2e7d79;
    --ink: #1c1b29;
    --ink-muted: #6b6a7a;
    --line: #ebe8ef;
    --surface: #ffffff;
    --surface-soft: #faf8fb;
    --success: #22a06b;
    --error: #d6293e;
    --radius: 14px;
    --radius-pill: 999px;
    --page-width: 480px;
    --gutter: 20px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: #f2f0f5;
    -webkit-font-smoothing: antialiased;
}

body.form-open {
    overflow: hidden;
}

a {
    color: var(--flo-pink-dark);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

[v-cloak] {
    display: none;
}

.page {
    max-width: var(--page-width);
    margin: 0 auto;
    background: var(--surface);
    min-height: 100vh;
    padding-bottom: 110px; /* room for the fixed button bar */
}

/* Top bar: contact line (+ language picker when configured) */
.topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px var(--gutter);
    background: var(--surface);
    font-size: 13px;
}

.topbar-contact a {
    color: inherit;
    text-decoration: none;
}

.topbar select {
    font: inherit;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 4px 10px;
    background: var(--surface);
}

/* Buttons */
.btn-primary,
.form-modal .btn.btn-primary {
    display: block;
    width: 100%;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--flo-pink);
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 16px;
    padding: 15px 20px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(240, 80, 122, 0.28);
    transition: background-color 0.15s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--flo-pink-dark);
}

.btn-primary:focus-visible,
.chip:focus-visible,
.link-button:focus-visible,
.faq-item summary:focus-visible {
    outline: 3px solid rgba(240, 80, 122, 0.4);
    outline-offset: 2px;
}

.link-button {
    display: block;
    margin: 16px auto 0;
    border: 0;
    background: none;
    color: var(--flo-pink-dark);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

/* 1. Hero */
.hero {
    text-align: center;
    padding: 28px var(--gutter) 0;
    background: var(--hero-bg);
    overflow: hidden;
}

.hero-logo {
    display: block;
    width: 200px;
    max-width: 60%;
    height: auto;
    margin: 0 auto 20px;
    mix-blend-mode: multiply; /* the supplied logo has a white background */
}

.hero-title {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 16px;
}

.hero-instructions {
    color: var(--ink-muted);
    font-size: 16px;
    margin-bottom: 24px;
}

.hero-instructions strong {
    color: var(--ink);
}

/* Artwork runs edge to edge and is cut off at the bottom of the hero, as in the mockup */
.hero-image {
    display: block;
    width: calc(100% + 2 * var(--gutter));
    max-width: none;
    height: auto;
    margin: 0 calc(-1 * var(--gutter));
}

.tagline-heading {
    text-align: center;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    padding: 28px var(--gutter) 20px;
}

/* 2. Key facts */
.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 var(--gutter);
}

.fact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 6px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 12px;
    color: var(--ink-muted);
}

.fact-icon {
    font-size: 20px;
    margin-bottom: 6px;
}

.fact strong {
    color: var(--ink);
    font-size: 15px;
}

/* Sections */
.section {
    padding: 32px var(--gutter) 0;
}

.section h2 {
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 16px;
}

.card {
    margin: 32px var(--gutter) 0;
    padding: 24px 20px;
    background: var(--flo-pink-soft);
    border-radius: 20px;
}

/* 3. How it works: the approved copy is HTML (h3 + ol/ul), styled as numbered steps */
.how-steps h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 20px 0 12px;
}

.how-steps h3:first-child {
    margin-top: 0;
}

.how-steps ol,
.how-steps ul {
    list-style: none;
}

.how-steps ol {
    counter-reset: step;
}

.how-steps li {
    position: relative;
    padding: 4px 0 14px 44px;
    min-height: 44px;
}

.how-steps ol li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--flo-pink);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-steps ul li::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--flo-pink);
}

.how-steps p {
    color: var(--ink-muted);
    font-size: 14px;
}

/* 4. Eligibility checklist */
.checklist {
    list-style: none;
    margin-bottom: 22px;
}

.checklist li {
    position: relative;
    padding: 6px 0 6px 32px;
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* 5. Who's running the study */
.running-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.running-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--ink-muted);
}

.running-card strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.brand-flo {
    color: var(--flo-pink);
}

.brand-exponent {
    color: var(--exponent-teal);
}

/* 6. Grouped FAQ */
.faq-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.chip {
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    padding: 6px 14px;
    cursor: pointer;
}

.chip[aria-selected='true'] {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.faq-group {
    display: none;
}

.faq-group-title {
    display: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 20px 0 10px;
}

.faq[data-filter='0'] .faq-group[data-category='0'],
.faq[data-filter='1'] .faq-group[data-category='1'],
.faq[data-filter='2'] .faq-group[data-category='2'],
.faq[data-filter='3'] .faq-group[data-category='3'],
.faq[data-filter='4'] .faq-group[data-category='4'],
.faq[data-filter='5'] .faq-group[data-category='5'],
.faq[data-filter='all'] .faq-group {
    display: block;
}

.faq[data-filter='all'] .faq-group-title {
    display: block;
}

.faq[data-filter='all'] .js-faq-all {
    display: none;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 8px;
    background: var(--surface);
}

.faq-item summary {
    list-style: none;
    position: relative;
    padding: 14px 44px 14px 16px;
    font-weight: 500;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-muted);
    font-size: 20px;
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    padding: 0 16px 16px;
    color: var(--ink-muted);
    font-size: 14px;
}

.faq-answer p + p,
.faq-answer ul,
.faq-answer p + ul,
.faq-answer ul + p {
    margin-top: 10px;
}

.faq-answer ul {
    padding-left: 20px;
}

/* 7. Contact */
.contact {
    text-align: center;
    padding: 24px var(--gutter) 32px;
    color: var(--ink-muted);
    font-size: 14px;
}

.contact a {
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--ink);
    color: #cfcdd9;
    padding: 32px var(--gutter);
    font-size: 13px;
}

.footer a {
    color: #fff;
}

.footer .tagline {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 28px;
}

.footer .footer-heading {
    color: #fff;
    font-weight: 600;
    margin: 20px 0 8px;
}

.footer .footer-links {
    list-style: none;
}

.footer .footer-links li {
    padding: 3px 0;
}

.footer .copyright {
    margin-top: 24px;
    color: #8f8d9c;
}

/* 8. CTA bar: always visible at the bottom of the screen */
.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 28px var(--gutter) calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--surface) 40%);
    z-index: 50;
}

body.form-open .sticky-cta {
    display: none;
}

/* PII step: modal over the dimmed landing page */
.form-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

body.form-open .form-modal {
    display: flex;
}

.form-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 27, 41, 0.55);
}

.form-modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: var(--surface);
    border-radius: 24px;
    padding: 56px 24px 24px;
    box-shadow: 0 20px 50px rgba(28, 27, 41, 0.25);
    animation: modal-in 0.2s ease-out;
}

.form-modal-card:focus {
    outline: none;
}

@keyframes modal-in {
    from {
        transform: translateY(16px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

.close-button {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--ink);
    cursor: pointer;
}

.close-button:focus-visible {
    outline: 3px solid rgba(240, 80, 122, 0.4);
}

.form-modal-title,
.form-modal .formHeader {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.form-modal-text,
.form-modal .formDescription {
    color: var(--ink-muted);
    text-align: center;
    margin-bottom: 24px;
}

/* Form markup comes from the shared <x-forms.form/> component (Bootstrap class names). */
.form-modal .form-wrapper {
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}

.form-modal .form-group {
    margin-bottom: 18px;
}

.form-modal .row,
.form-modal .col {
    display: block;
}

.form-modal label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-muted);
    margin-bottom: 6px;
}

.form-modal .form-control,
.form-modal .iti__tel-input {
    display: block;
    width: 100%;
    font: inherit;
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: #f2f1f4;
    color: var(--ink);
}

.form-modal .form-control::placeholder {
    color: #9a98a6;
}

.form-modal #email {
    padding-left: 48px;
    background: #f2f1f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='4.5' width='20' height='15' rx='3' fill='%239a98a6'/%3E%3Cpath d='M3 6.5l9 6.5 9-6.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 16px center / 22px no-repeat;
}

.form-modal .form-control:focus,
.form-modal .iti__tel-input:focus {
    outline: none;
    background-color: var(--surface);
    border-color: var(--flo-pink);
    box-shadow: 0 0 0 3px rgba(240, 80, 122, 0.18);
}

.form-modal .form-control.is-invalid,
.form-modal .iti__tel-input.is-invalid {
    border-color: var(--error);
}

.form-modal .iti {
    display: block;
    width: 100%;
}

.form-modal label.mt-3 {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
    margin-top: 4px;
}

.form-modal input[type='checkbox'] {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 1px;
    accent-color: var(--flo-pink);
}

.form-modal .invalid-feedback {
    margin-top: 6px;
    font-size: 13px;
    color: var(--error);
}

.form-modal .btn.btn-primary {
    margin-top: 12px;
}

.form-modal .alert {
    text-align: center;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff4e5;
    color: #7a4b00;
}

/* Loader */
.loaderContainer {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.loader {
    width: 64px;
}

@media (prefers-reduced-motion: reduce) {
    .form-modal-card,
    .sticky-cta {
        animation: none;
        transition: none;
    }
}
