@import url("https://fonts.googleapis.com/css2?family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

/* ── Tokens (Mano / Pana design system) ─────────────────────────── */
:root {
    /* Brand palette */
    --color-ink: #0e0f0c;
    --color-parchment: #eeeeee;
    --color-graphite: #3a3d38;
    --color-bone: #dde8ef;
    --color-muted: #7a7a6e;
    --color-signal: #2f80ed;
    --color-deep-blue: #123b5d;
    --color-sea-green: #2f6f5e;
    --color-danger: #b91c1c;

    /* Roles */
    --primary: var(--color-ink);
    --primary-dark: #000;
    --primary-hover: #1a1c18;
    --primary-light: rgba(47, 128, 237, 0.12);
    --primary-text: var(--color-parchment);

    --error: var(--color-danger);
    --error-light: rgba(185, 28, 28, 0.08);
    --error-border: rgba(185, 28, 28, 0.4);

    --bg: var(--color-parchment);
    --surface: rgba(238, 238, 238, 0.72);
    --border: rgba(14, 15, 12, 0.15);
    --border-hover: rgba(14, 15, 12, 0.25);
    --text: var(--color-ink);
    --text-muted: var(--color-muted);

    --radius-md: 6px;
    --radius-lg: 12px;

    --shadow-button:
        0 1px 0 rgba(14, 15, 12, 0.04), 0 4px 14px rgba(14, 15, 12, 0.06);
    --shadow-button-hover:
        0 1px 0 rgba(14, 15, 12, 0.06), 0 8px 20px rgba(14, 15, 12, 0.1);
    --shadow-lg: 0 18px 48px rgba(14, 15, 12, 0.12);

    --focus-ring: 0 0 0 2px var(--color-parchment),
        0 0 0 4px var(--color-signal);

    --font-display: "Libre Caslon Text", Georgia, ui-serif, serif;
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "SF Pro Display", Inter, ui-sans-serif, system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-parchment);
    /* Paper grain — matches index.html */
    background-image: radial-gradient(
        rgba(14, 15, 12, 0.06) 0.8px,
        transparent 1px
    );
    background-size: 9px 9px;
    background-attachment: fixed;
    color: var(--text);
    font-size: 17px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Soft watercolor wash — atmospheric, not decorative */
body::before {
    content: "";
    position: fixed;
    inset: -25%;
    width: 150%;
    height: 150%;
    background:
        radial-gradient(
            ellipse 50% 40% at 25% 30%,
            rgba(111, 168, 220, 0.18) 0%,
            transparent 65%
        ),
        radial-gradient(
            ellipse 45% 35% at 80% 75%,
            rgba(23, 59, 87, 0.08) 0%,
            transparent 65%
        );
    animation: drift 36s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: multiply;
}

/* All screen content sits above the gradient */
.screen {
    position: relative;
    z-index: 1;
}
.site-logo {
    z-index: 100;
}

@keyframes drift {
    0% {
        transform: translate(-15%, -10%) rotate(-3deg);
    }
    25% {
        transform: translate(10%, -20%) rotate(2deg);
    }
    50% {
        transform: translate(20%, 10%) rotate(-1deg);
    }
    75% {
        transform: translate(-10%, 20%) rotate(3deg);
    }
    100% {
        transform: translate(-20%, 5%) rotate(-2deg);
    }
}

/* ── Screens ────────────────────────────────────────────────────── */
.screen {
    min-height: 100dvh;
    min-height: 100vh; /* fallback for older browsers */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: 9rem;
}

@supports (min-height: 100dvh) {
    .screen {
        min-height: 100dvh;
    }
}

.screen.hidden {
    display: none;
}

/* Loading screen fades out gracefully before hiding */
#loadingScreen.fading-out {
    animation: screen-fade-out 0.5s ease forwards;
}

@keyframes screen-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ── Email inline input ─────────────────────────────────────────── */
.email-input-row {
    position: relative;
    display: flex;
    align-items: center;
}

/* ── Headlines ──────────────────────────────────────────────────── */
.headline {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--color-ink);
    margin-bottom: 0.5rem;
}

/* ── Email inline input field ───────────────────────────────────── */
.email-inline-input {
    padding-right: 60px;
}

.email-input-row .submit-btn {
    bottom: 50%;
    transform: translateY(50%);
}

.email-input-row .submit-btn:hover {
    transform: translateY(50%) translateY(-2px);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--color-ink);
    background: color-mix(in srgb, var(--color-parchment) 72%, white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition:
        border-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.form-control::placeholder {
    color: color-mix(in srgb, var(--color-muted) 70%, transparent);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-signal);
    box-shadow: var(--focus-ring);
}

.form-control.error {
    border-color: var(--error-border);
    background: var(--error-light);
}

.form-control.error:focus {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}

.email-error-msg {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--error);
    opacity: 0;
    /* Collapse height when invisible so it doesn't create dead space */
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    transform: translateY(-4px);
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        max-height 180ms ease,
        margin-top 180ms ease;
    pointer-events: none;
}

.email-error-msg.visible {
    opacity: 1;
    max-height: 2rem;
    margin-top: 0.5rem;
    transform: translateY(0);
}

.email-error-msg svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

@keyframes input-shake {
    0% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-6px);
    }
    40% {
        transform: translateX(5px);
    }
    60% {
        transform: translateX(-4px);
    }
    80% {
        transform: translateX(3px);
    }
    100% {
        transform: translateX(0);
    }
}

.email-input-row.shake {
    animation: input-shake 320ms ease;
}

.form-control:disabled {
    background: #e5e5e5;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ── Loading screen ─────────────────────────────────────────────── */
.loading-text-wrap {
    width: 100%;
    max-width: 600px;
}

.loading-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--color-ink);
    text-align: center;
    /* Pre-reserve the full line width so chars appear in place, not pulling in from the side */
    display: block;
    width: 100%;
}

.loading-text.pulsing {
    animation: pulse-blur 2.2s ease-in-out infinite;
}

@keyframes pulse-blur {
    0% {
        opacity: 1;
        filter: blur(0px);
    }
    50% {
        opacity: 0.55;
        filter: blur(1.5px);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
    }
}

.char-blurred {
    filter: blur(2px);
    transition: filter 0.4s ease-in-out;
}
.char-clear {
    filter: blur(0);
    transition: filter 0.4s ease-in-out;
}

/* ── Site logo ──────────────────────────────────────────────────── */
.site-logo-link {
    position: absolute;
    top: 1.5rem;
    left: 3rem;
    z-index: 100;
    display: inline-block;
}

.site-logo {
    height: 64px;
    width: auto;
    pointer-events: none;
}

@media (max-width: 640px) {
    .site-logo-link {
        left: 1.25rem;
    }
    .site-logo {
        height: 60px;
    }

    /* Push all screen content below the logo (60px + 1.25rem top + gap) */
    .screen {
        padding-top: 8rem;
    }
}

/* ── Email screen overrides ─────────────────────────────────────── */
/* The email screen uses .question-content but should stay centered, not two-zone */
.email-content {
    min-height: unset;
    justify-content: center;
    padding: 0;
    gap: 0.5rem;
}

/* Email screen: remove the container box so input goes full width */
.email-content .input-container {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    margin-top: 1.75rem;
}

.email-content .question-headline {
    margin-bottom: 0.3rem;
}

/* ── Question screen ────────────────────────────────────────────── */

/* Desktop: centered card in the middle of the screen */
#questionScreen {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 4rem 2rem 4rem;
}

.question-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.question-text-block {
    /* Text anchored to the top — grows downward, never shifts the input */
    padding-top: 0;
}

.question-headline {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2.25rem;
    line-height: 1.05;
    letter-spacing: -0.01em;
    opacity: 0;
    word-wrap: break-word;
    margin-bottom: 1rem;
    color: var(--color-ink);
}

.question-headline.visible {
    opacity: 1;
}

/* Question crossfade — simple opacity, no movement */
.question-text-block {
    transition: opacity 0.4s ease;
}
.question-text-block.exiting {
    opacity: 0;
}

.question-desc {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    color: var(--color-graphite);
    line-height: 1.45;
    opacity: 0;
    word-wrap: break-word;
    transition: opacity 0.5s ease;
    margin-bottom: 0;
}

.question-desc.visible {
    opacity: 1;
}

/* ── Input container ────────────────────────────────────────────── */
.input-container {
    background: rgba(238, 238, 238, 0.62);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-button);
    border: 1px solid var(--border);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.input-container.visible {
    opacity: 1;
}

/* Question screen entrance */
#questionScreen .question-content {
    opacity: 0;
    transition: opacity 0.6s ease;
}
#questionScreen.entered .question-content {
    opacity: 1;
}

/* ── Stepper ────────────────────────────────────────────────────── */
.stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
}

.stepper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.stepper-step {
    position: relative;
    z-index: 1;
    background: var(--color-parchment);
    padding: 0 0.5rem;
}

.stepper-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--color-parchment);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        border-color 200ms ease,
        background 200ms ease,
        transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stepper-step.active .stepper-circle {
    border-color: var(--color-signal);
}
.stepper-step.completed .stepper-circle {
    border-color: var(--color-ink);
    background: var(--color-ink);
    animation: stepper-pop 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes stepper-pop {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.stepper-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: all 150ms ease;
}

.stepper-step.active .stepper-dot {
    background: var(--color-signal);
}
.stepper-step.completed .stepper-dot {
    display: none;
}

.stepper-check {
    display: none;
    width: 16px;
    height: 16px;
    color: var(--primary-text);
}

.stepper-check svg {
    stroke: var(--primary-text);
    stroke-width: 3;
}

.stepper-step.completed .stepper-check {
    display: block;
}

/* ── Answer area expand ─────────────────────────────────────────── */
#answerArea {
    /* Negative margin + padding on all sides gives the 4px focus ring room
       to render without being clipped by the height-animation overflow. */
    overflow: hidden;
    margin: -6px;
    padding: 6px;
}

/* Option buttons and input wrapper fade in */
.option-btn,
.input-wrapper {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.option-btn.visible,
.input-wrapper.visible {
    opacity: 1;
}

/* ── Answer input ───────────────────────────────────────────────── */
.input-wrapper {
    position: relative;
}

.answer-input {
    padding: 1rem;
    padding-right: 60px;
    min-height: calc(1rem * 1.5 * 3);
    height: calc(1rem * 1.5 * 3);
    line-height: 1.5;
    resize: none;
    overflow-y: auto;
}

.submit-btn {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-ink);
    border: 1px solid var(--color-ink);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-button);
    cursor: pointer;
    transition:
        background 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-button-hover);
}
.submit-btn:active {
    transform: scale(0.88);
}
.submit-btn i,
.submit-btn svg {
    width: 22px;
    height: 22px;
    color: var(--color-parchment);
    stroke: var(--color-parchment);
    transition:
        transform 200ms ease,
        opacity 200ms ease;
}

/* Brief pulse on submit */
.submit-btn.sent {
    transform: scale(1.08);
    transition: transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Option buttons (binary + select) ──────────────────────────── */
.options-binary,
.options-select {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 0.25rem 0;
}

.options-binary {
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
}

.option-btn {
    display: block;
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--color-ink);
    background: color-mix(in srgb, var(--color-parchment) 82%, white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-button);
    cursor: pointer;
    text-align: left;
    transition:
        border-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
        background 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
        color 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.options-binary .option-btn {
    flex: 1;
    text-align: center;
}

.option-btn:hover {
    border-color: var(--border-hover);
    background: color-mix(in srgb, var(--color-bone) 30%, var(--color-parchment));
    box-shadow: var(--shadow-button-hover);
    transform: translateY(-1px);
}

.option-btn:active {
    transform: translateY(1px);
}

.option-btn.selected {
    border-color: var(--color-ink);
    background: var(--color-ink);
    color: var(--color-parchment);
    animation: option-pop 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes option-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

/* ── Skip button ────────────────────────────────────────────────── */
.skip-btn {
    display: block;
    margin: 0.75rem auto 0;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--color-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: underline;
    text-decoration-color: rgba(14, 15, 12, 0.25);
    text-underline-offset: 3px;
}

.skip-btn:hover {
    color: var(--color-ink);
    text-decoration-color: var(--color-ink);
}

@media (max-width: 640px) {
    .skip-btn {
        margin-left: 0;
    }
}

/* ── Booking screen ─────────────────────────────────────────────── */
#bookingScreen {
    align-items: flex-start;
    padding: 5rem 2rem 4rem;
    min-height: 100dvh;
    height: auto;
    overflow: visible;
}

.booking-content {
    width: 100%;
    max-width: 1100px;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.booking-content .headline {
    margin-bottom: 0.5rem;
}
.booking-content .question-desc {
    opacity: 1;
    min-height: 0;
    margin-bottom: 1.25rem;
}

/* ── Jeremy card ────────────────────────────────────────────────── */
.jeremy-card {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    background: rgba(238, 238, 238, 0.72);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.5rem 1.125rem 0.5rem 0.5rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-button);
}

.jeremy-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bone);
    color: var(--color-ink);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jeremy-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.jeremy-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-align: left;
}

.jeremy-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-ink);
    line-height: 1.2;
}

.jeremy-title {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--color-muted);
    line-height: 1.2;
}

.calendly-inline-widget {
    width: 100%;
    min-width: 320px;
    height: 1100px;
    margin-top: 0.5rem;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
}

.calendly-inline-widget iframe {
    width: 100% !important;
    height: 100% !important;
}

/* Aliases for proof block typography */
:root {
    --font-serif: var(--font-display);
    --font-sans: var(--font-body);
}

/* ── Proof block ────────────────────────────────────────────────── */
.proof-block {
    margin-top: 0;
}

/* Question-screen proof: no card treatment — floats as ambient context */
.proof-block--question {
    margin-top: 2rem;
    text-align: center;
    padding: 0 0.25rem;
    display: block;
    /* starts invisible; JS adds .proof-animate after a delay */
    opacity: 0;
}

@keyframes proof-fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Triggered by JS after the main content has settled (~800ms delay) */
.proof-animate {
    animation: proof-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Logo strip (email screen) ──────────────────────────────────── */
.proof-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    background: none;
    width: 100%;
    opacity: 0;
    animation: proof-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.proof-strip-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* ── Trust marquee ─────────────────────────────────────────────── */
.marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Feather both edges so logos dissolve into parchment */
    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 8%,
        #000 92%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent,
        #000 8%,
        #000 92%,
        transparent
    );
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    width: max-content;
    white-space: nowrap;
    /* Slower than the homepage so it doesn't pull focus from the email input */
    animation: marquee-scroll 52s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}

/* Trust marks — match index.html ink tonality, tuned to ~22px cap-height */
.trust-logo {
    width: auto;
    flex: 0 0 auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0);
    opacity: 0.85;
    transition: opacity 200ms ease;
}

/* Crests keep tonal detail rather than collapsing to silhouette */
.trust-logo[src*="Stanford"],
.trust-logo[src*="Harvard"] {
    filter: grayscale(100%) contrast(1.15) brightness(0.7);
    opacity: 0.85;
}

.trust-mark {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: var(--color-ink);
    opacity: 0.9;
}

.trust-mark svg {
    height: 28px;
    width: auto;
    display: block;
}

/* Per-logo optical sizing */
.trust-logo[src*="Stanford"] {
    height: 64px;
}
.trust-logo[src*="Mckinsey"] {
    height: 50px;
}
.trust-logo[src*="Harvard"] {
    height: 68px;
}
.trust-logo[src*="startx"] {
    height: 28px;
}
.trust-logo[src*="pear_logo"] {
    height: 50px;
}
.trust-logo[src*="sxsw"] {
    height: 26px;
}

/* ── Quote (step 0, 2) ──────────────────────────────────────────── */
.proof-quote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 0 auto;
    max-width: 480px;
    text-align: center;
}

.proof-quote::before {
    content: "\201C";
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1;
    color: var(--color-signal);
    opacity: 0.4;
    margin-bottom: -0.5rem;
}

.proof-quote-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.proof-quote-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--color-graphite);
    line-height: 1.5;
    margin: 0;
}

.proof-quote-cite {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.625rem;
    font-style: normal;
}

.proof-quote-attr {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.proof-quote-attr strong {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-ink);
    line-height: 1.2;
}

.proof-quote-attr span,
.proof-quote-attr {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-muted);
    line-height: 1.4;
}

/* ── Stat block (steps 1–5) ─────────────────────────────────────── */
.proof-stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.proof-stat-block strong {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--color-graphite);
    line-height: 1.2;
}

.proof-stat-block span {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--color-muted);
    line-height: 1.5;
    max-width: 380px;
}

/* ── Name/Company screen ───────────────────────────────────────── */
#nameCompanyScreen {
    align-items: center;
    justify-content: center;
}

.nc-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.nc-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.nc-label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-graphite);
}

.nc-continue-btn {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--color-parchment);
    background: var(--color-ink);
    border: 1px solid var(--color-ink);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-button);
    cursor: pointer;
    transition:
        background 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nc-continue-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-button-hover);
}

.nc-continue-btn:active {
    transform: translateY(1px);
}

/* ── Magic moment screen ───────────────────────────────────────── */
#magicScreen {
    align-items: center;
    justify-content: center;
}

.magic-content {
    width: 100%;
    max-width: 560px;
    text-align: left;
}

.magic-headline {
    margin-bottom: 3.5rem;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-align: center !important;
}

.magic-card {
    background: rgba(238, 238, 238, 0.72);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    text-align: left;
    width: 680px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-button);
}

.magic-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.magic-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-bone);
}

.magic-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.magic-avatar img[src=""],
.magic-avatar img:not([src]) {
    display: none;
}

.magic-card-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-ink);
    line-height: 1.2;
}

.magic-card-title {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--color-muted);
    line-height: 1.2;
}

.magic-message-wrap {
    min-height: 3rem;
}

.magic-message {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    color: var(--color-ink);
    line-height: 1.5;
    font-style: italic;
}

.magic-dots {
    display: flex;
    gap: 0.35rem;
    padding: 0.5rem 0;
}

.magic-dots.hidden {
    display: none;
}

.magic-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-muted);
    animation: dot-bounce 1.4s infinite ease-in-out both;
}

.magic-dots span:nth-child(1) {
    animation-delay: -0.32s;
}
.magic-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dot-bounce {
    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.magic-book-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--color-parchment);
    background: var(--color-ink);
    border: 1px solid var(--color-ink);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-button);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        background 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.magic-book-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.magic-book-btn.hidden {
    display: none;
}

.magic-book-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-button-hover);
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .proof-block--question {
        margin-top: 2.5rem;
        padding-bottom: 2rem;
    }

    .headline {
        font-size: 1.875rem;
    }
    .question-headline {
        font-size: 1.875rem;
    }
    .question-desc {
        font-size: 1rem;
    }
    .magic-headline {
        font-size: 2rem;
    }
    .calendly-inline-widget {
        min-height: 900px;
    }
    .options-binary {
        flex-direction: column;
    }
    .options-binary .option-btn {
        flex: unset;
        text-align: left;
    }

    /* On mobile: revert to two-zone stretch layout (text top, input bottom) */
    #questionScreen {
        align-items: stretch;
        justify-content: space-between;
        padding: 6rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }

    .question-content {
        flex: 1;
        justify-content: space-between;
        gap: 0;
    }

    #questionScreen .input-container {
        margin-top: 1.5rem;
    }

    /* Left-align all text content on mobile */
    .question-content {
        text-align: left;
    }
    .booking-content {
        text-align: left;
    }
    .booking-content .question-desc {
        text-align: left;
    }

    /* Booking screen: more space below logo on mobile */
    #bookingScreen {
        padding: 7.5rem 1.25rem 2rem;
    }

    /* Loading screen: centered both axes */
    #loadingScreen {
        align-items: center;
        justify-content: center;
        padding: 2rem 1.25rem;
    }
    .loading-text-wrap {
        width: auto;
    }
    .loading-text {
        text-align: center;
        font-size: 1.625rem;
    }

    /* Proof strip: tighter spacing, slightly smaller marks on mobile */
    .proof-strip {
        gap: 1rem;
        padding-top: 1.5rem;
        padding-bottom: 1rem;
        margin-top: 2rem;
    }
    .marquee-track {
        gap: 2.5rem;
        animation-duration: 42s;
    }
    .trust-mark svg {
        height: 22px;
    }
    .trust-logo[src*="Stanford"] {
        height: 50px;
    }
    .trust-logo[src*="Mckinsey"] {
        height: 38px;
    }
    .trust-logo[src*="Harvard"] {
        height: 54px;
    }
    .trust-logo[src*="startx"] {
        height: 22px;
    }
    .trust-logo[src*="pear_logo"] {
        height: 40px;
    }
    .trust-logo[src*="sxsw"] {
        height: 20px;
    }
}
