/* ============================================
   EKILI — Beta Testers Signup
   Reuses the landing-page palette and typography.
   ============================================ */

@font-face {
    font-family: 'Champagne';
    src: url('./fonts/champagne.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Champagne';
    src: url('./fonts/champagne-bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'NTVoice';
    src: url('./fonts/ntvoice.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

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

:root {
    --red: #FF4E42;
    --magenta: #FF7DFF;
    --pink-soft: #FFB3D9;
    --black: #1A1A1A;
    --white: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.97);
    --card-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Inter', 'NTVoice', system-ui, -apple-system, sans-serif;
    color: var(--white);
    background: var(--red) url('/assests/background.webp') center/cover no-repeat fixed;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- TOPBAR ---------- */
.topbar {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 28px 56px;
    gap: 24px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.brand {
    justify-self: start;
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    height: 56px;
    width: auto;
}

.tagline {
    justify-self: center;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.18em;
    color: var(--white);
    text-transform: uppercase;
    text-align: center;
}

/* ---------- PAGE LAYOUT ---------- */
.page {
    flex: 1;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 24px 32px 56px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

[hidden] {
    display: none !important;
}

/* ---------- THANK-YOU TAKEOVER ---------- */
.page.thanks-mode > *:not(#thanks-view) {
    display: none !important;
}

.card-thanks {
    margin: 80px auto;
    max-width: 720px;
    width: 100%;
    padding: 44px 48px;
}

.thanks-title {
    font-family: 'Champagne', 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(30px, 4.4vw, 44px);
    line-height: 1.1;
    color: var(--black);
    letter-spacing: -0.01em;
    margin-bottom: 22px;
}

.thanks-sparkle {
    font-family: 'Inter', sans-serif;
    margin-left: 6px;
}

.thanks-body {
    font-size: 17px;
    line-height: 1.6;
    color: #1f1f1f;
}

.thanks-body + .thanks-body {
    margin-top: 14px;
}

/* ---------- HERO ---------- */
.hero {
    text-align: center;
    padding: 16px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.hero-image {
    margin: 0;
    width: 100%;
    max-width: 820px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: var(--card-bg);
    line-height: 0;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.hero-title {
    font-family: 'Champagne', 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -0.01em;
    max-width: 760px;
}

.accent {
    font-family: 'eldwin-script', 'Caveat', cursive;
    font-weight: 400;
    font-size: 1.15em;
    line-height: 0.9;
    display: inline-block;
    padding: 0 0.05em;
    color: #f992ff;
}

.hero-body {
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.95);
    max-width: 640px;
}

.hero-cta {
    margin-top: 8px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--black);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.cta-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ---------- CARD (shared) ---------- */
.card {
    background: var(--card-bg);
    color: var(--black);
    border-radius: 24px;
    padding: 32px 36px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(6px);
}

.card-title {
    font-family: 'Champagne', 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.15;
    color: var(--black);
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.card-lead {
    font-size: 16px;
    line-height: 1.55;
    color: #333;
    margin-bottom: 24px;
}

.card-objective {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin-top: 18px;
    line-height: 1.5;
}

/* ---------- STORY GRID (problem + benefits) ---------- */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "ptext bimg"
        "pimg  btext";
    gap: 20px;
}

.story-cell--ptext { grid-area: ptext; }
.story-cell--bimg  { grid-area: bimg; }
.story-cell--pimg  { grid-area: pimg; }
.story-cell--btext { grid-area: btext; }

/* Text cells fill their grid row vertically */
.story-grid .card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-image {
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: #fff;
    line-height: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    transform-origin: center;
}

/* ---------- CHECK LIST ---------- */
.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-list li {
    position: relative;
    padding-left: 38px;
    font-size: 17px;
    line-height: 1.5;
    color: #1f1f1f;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--red);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

/* ---------- TAGLINE CARD ---------- */
.card-tagline {
    background: transparent;
    box-shadow: none;
    color: var(--white);
    text-align: center;
    padding: 12px 8px;
}

.big-line {
    font-family: 'Champagne', 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.25;
    color: var(--white);
}

.big-line + .big-line {
    margin-top: 6px;
    font-weight: 400;
}

/* ---------- FORM ---------- */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-intro {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 15px;
    color: #333;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    font-weight: 600;
    font-size: 15px;
    color: var(--black);
    display: inline-flex;
    gap: 4px;
    align-items: baseline;
}

.required {
    color: var(--red);
}

.field input[type="email"] {
    font-family: inherit;
    font-size: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid #e2e2e2;
    background: #fff;
    color: var(--black);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field input[type="email"]:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(255, 78, 66, 0.15);
}

.field-radio {
    border: 0;
    padding: 0;
}

.field-radio legend {
    margin-bottom: 12px;
    line-height: 1.4;
}

.radio {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid #e2e2e2;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    color: var(--black);
    transition: border-color 0.15s, background 0.15s;
}

.radio + .radio {
    margin-top: 8px;
}

.radio:hover {
    border-color: #c9c9c9;
}

.radio input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--red);
    flex-shrink: 0;
}

.radio:has(input:checked) {
    border-color: var(--red);
    background: rgba(255, 78, 66, 0.06);
}

.form-note {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.submit-btn {
    align-self: flex-start;
    min-width: 180px;
}

.form-status {
    font-size: 14px;
    line-height: 1.4;
    min-height: 20px;
}

.form-status.is-error {
    color: #b00020;
}

.form-status.is-success {
    color: #1a7d3a;
    font-weight: 600;
}

/* ---------- FOOTER ---------- */
.footer {
    text-align: center;
    padding: 32px 24px 40px;
    color: var(--white);
}

.footer-title {
    font-family: 'Champagne', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 16px;
}

.footer-socials {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s, transform 0.2s;
}

.footer-socials a:hover {
    background: var(--black);
    transform: translateY(-1px);
}

.footer-copy {
    font-size: 13px;
    opacity: 0.85;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
    body {
        background: var(--red) url('/assests/mobile-background.webp') center top/cover no-repeat fixed;
    }

    .topbar {
        padding: 20px 20px;
        grid-template-columns: auto 1fr auto;
        gap: 12px;
    }

    .tagline {
        font-size: 12px;
        letter-spacing: 0.14em;
    }

    .brand-logo {
        height: 44px;
    }

    .page {
        padding: 16px 16px 40px;
        gap: 20px;
    }

    .hero {
        padding: 8px 4px 4px;
        gap: 18px;
    }

    .hero-image {
        border-radius: 20px;
    }

    .hero-body {
        font-size: 15px;
    }

    .card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .card-thanks {
        margin: 32px auto;
        padding: 28px 24px;
    }

    .thanks-title {
        font-size: 26px;
        margin-bottom: 14px;
    }

    .thanks-body {
        font-size: 15px;
    }

    .card-title {
        font-size: 22px;
    }

    .story-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "ptext"
            "pimg"
            "bimg"
            "btext";
        gap: 16px;
    }

    .card-image {
        border-radius: 18px;
    }

    .check-list li {
        font-size: 15px;
        padding-left: 34px;
    }

    .submit-btn {
        align-self: stretch;
    }
}

@media (max-width: 420px) {
    .topbar {
        padding: 14px 14px;
    }

    .brand-logo {
        height: 36px;
    }

    .tagline {
        font-size: 10.5px;
        letter-spacing: 0.12em;
    }

    .hero-title {
        font-size: 22px;
    }

    .card {
        padding: 22px 16px;
    }
}
