/* ==========================================================================
   KEYFLO REFERRAL LANDING PAGE — landing/referral/
   Personalized-by-referrer variant. Scope: [scope:website-referral-page]
   Brand tokens match landing/_template/styles.css.
   ========================================================================== */

:root {
    --charcoal: #2C3E50;
    --charcoal-light: #34495E;
    --sage: #7FB069;
    --sage-dark: #669654;
    --sage-light: #F1F8EE;
    --gold: #D4A574;
    --gold-light: #FDF6EF;
    --cream: #FAF8F5;
    --text-muted: #7F8C8D;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --border: #E8E8E8;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--sage-dark); }

/* ========== LOGO BAR ========== */
.logo-bar {
    padding: 24px 0;
    text-align: center;
}

.logo-bar img {
    height: 30px;
    width: auto;
}

/* ========== HERO ========== */
.hero {
    padding: 32px 0 72px;
    background: linear-gradient(180deg, var(--sage-light) 0%, var(--white) 100%);
    min-height: 60vh;
}

.hero .container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========== SOCIAL PROOF BLOCK (personalization target) ========== */
.social-proof {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 18px;
    margin-bottom: 24px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--sage-dark);
}

.social-proof .avatar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sage);
    flex-shrink: 0;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 16px;
}

h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.0625rem;
    color: var(--charcoal-light);
    max-width: 480px;
    margin-bottom: 36px;
}

/* ========== FORM ========== */
.form-wrapper {
    width: 100%;
    max-width: 380px;
}

.step-indicators {
    display: none;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.step-indicators.visible {
    display: flex;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.15s ease;
}

.step-dot.active {
    background: var(--sage);
}

.step-dot.done {
    background: var(--sage-dark);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.signup-form input[type="email"],
.profile-form input[type="text"],
.profile-form input[type="tel"],
.profile-form select {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    width: 100%;
}

.signup-form input[type="email"]:focus,
.profile-form input:focus,
.profile-form select:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 3px var(--sage-light);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-intro {
    font-size: 0.9375rem;
    color: var(--charcoal);
    text-align: left;
}

.profile-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237f8c8d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-color: var(--white);
    color: var(--charcoal);
    cursor: pointer;
}

.profile-form select:invalid,
.profile-form select option[value=""][disabled] {
    color: var(--text-muted);
}

.skip-link {
    display: inline-block;
    margin-top: 10px;
    border: 0;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    text-decoration: underline;
}

.skip-link:hover {
    color: var(--charcoal);
}

.calendar-step h3 {
    margin-bottom: 4px;
}

.calendar-step .cal-sub {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

#cal-embed {
    min-height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.btn-primary {
    background: var(--sage-dark);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.15s ease;
}

.btn-primary:hover { background: var(--charcoal); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-note {
    margin-top: 14px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.form-error {
    display: none;
    margin-top: 10px;
    color: #C0392B;
    font-size: 0.875rem;
}

.thank-you {
    display: none;
    text-align: center;
    padding: 8px 0;
}

.thank-you h3 {
    color: var(--sage-dark);
    margin-bottom: 8px;
}

.thank-you p {
    color: var(--charcoal-light);
}

.thank-you .book-link {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    background: var(--charcoal);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
}

.booked-note {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========== TRUST STRIP ========== */
.trust-strip {
    padding: 32px 0 64px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (max-width: 480px) {
    .hero { padding: 24px 0 56px; }
    .container { padding: 0 20px; }
}
