/* ===================================
   AI VOICE COST CALCULATOR — LANDING
   Paid-campaign page. Mobile-first:
   most traffic arrives from Meta Ads
   on a phone.
   =================================== */

.landing-body {
    background: var(--color-dark);
    color: var(--color-beige);
    min-height: 100vh;
}

/* Top padding clears the navbar, which is absolutely positioned
   (~100px tall: 60px logo + 20px padding top and bottom). */
.landing {
    padding: 140px 0 64px;
}

.landing-inner {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   INTRO
   =================================== */
.landing-intro {
    text-align: center;
    margin-bottom: 44px;
}

.landing-intro .tag-wrapper {
    margin-bottom: 24px;
}

.landing-intro h1 {
    font-size: clamp(30px, 7vw, 46px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-beige);
    margin-bottom: 20px;
}

.landing-sub {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(245, 230, 211, 0.75);
    max-width: 520px;
    margin: 0 auto;
}

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

.landing-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.landing-form label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(245, 230, 211, 0.85);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Sentence-case helper under a label, for questions too long to read
   comfortably in the uppercase label style. */
.field-hint {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(245, 230, 211, 0.5);
    margin-top: -3px;
}

.landing-form input,
.landing-form select {
    width: 100%;
    /* 16px keeps iOS Safari from zooming the viewport on focus */
    font-size: 16px;
    font-family: var(--font-primary);
    /* 52px min height keeps tap targets comfortable on mobile */
    min-height: 52px;
    padding: 14px 18px;
    color: var(--color-beige);
    background: rgba(245, 230, 211, 0.07);
    border: 1.5px solid rgba(245, 230, 211, 0.18);
    border-radius: 12px;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.landing-form input::placeholder {
    color: rgba(245, 230, 211, 0.3);
}

.landing-form input:focus,
.landing-form select:focus {
    outline: none;
    border-color: #f28c45;
    background: rgba(245, 230, 211, 0.11);
}

.landing-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23F5E6D3' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 46px;
}

/* Native dropdown lists render in the OS palette, so these need
   explicit colors to stay readable. */
.landing-form select option {
    background: #2c160d;
    color: #F5E6D3;
}

.landing-form select:invalid {
    color: rgba(245, 230, 211, 0.3);
}

/* Follow-up field revealed when a select is set to "Other".
   Indented and rule-marked so it reads as a child of the question
   above it rather than a new question. */
/* Scoped to .landing-form to outrank `.landing-form .form-group`,
   which also sets display. */
.landing-form .conditional-group {
    display: none;
    padding-left: 16px;
    border-left: 2px solid rgba(242, 140, 69, 0.4);
    margin-top: -6px;
}

.landing-form .conditional-group.show {
    display: flex;
    animation: revealField 0.25s ease-out;
}

@keyframes revealField {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Honeypot — hidden from people, visible to naive bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ===================================
   SUBMIT
   =================================== */
.btn-landing-submit {
    width: 100%;
    min-height: 56px;
    margin-top: 6px;
    padding: 17px 40px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--color-dark);
    background: #f28c45;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-landing-submit:hover:not(:disabled) {
    background: #ffa863;
    transform: translateY(-2px);
}

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

.form-fineprint {
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    color: rgba(245, 230, 211, 0.5);
    margin-top: 2px;
}

/* ===================================
   SUCCESS
   =================================== */
.landing-success {
    display: none;
    text-align: center;
    padding: 44px 28px;
    background: rgba(245, 230, 211, 0.06);
    border: 1.5px solid rgba(242, 140, 69, 0.35);
    border-radius: 20px;
}

.landing-success.show {
    display: block;
}

.success-check {
    width: 56px;
    height: 56px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--color-dark);
    background: #f28c45;
    border-radius: 50%;
}

.landing-success h2 {
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-beige);
    margin-bottom: 14px;
}

.landing-success p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(245, 230, 211, 0.65);
}

/* ===================================
   LARGER SCREENS
   =================================== */
@media (min-width: 768px) {
    .landing {
        padding: 170px 0 90px;
    }

    .landing-intro {
        margin-bottom: 54px;
    }

    .btn-landing-submit {
        width: auto;
        align-self: center;
        padding: 17px 52px;
    }
}
