/* ===== Book a demo =====
   Two columns: the pitch and a calendar-invite card that fills in as the visitor types on the
   left, the four-step form on the right. Headings use the home hero's Inter Tight 500. */

.bd-page {
    position: relative;
    min-height: 100vh;
    padding: 4.5rem 1.5rem 4rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #0f172a;
    overflow-x: clip;
    background:
        radial-gradient(ellipse 60% 50% at 8% 0%, rgba(0, 168, 150, .12), transparent 60%),
        radial-gradient(ellipse 50% 50% at 100% 100%, rgba(0, 168, 150, .08), transparent 60%),
        #f8fafc;
}
.bd-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: start;
}

/* ── left column ── */
.bd-side { min-width: 0; }
.bd-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .8rem; font-weight: 600; color: #00A896; }
.bd-eyebrow i { display: block; width: 34px; height: 1px; background: currentColor; }
.bd-h1 {
    margin: 16px 0 0;
    font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
    font-weight: 500;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.bd-h1 span { color: #64748b; }
.bd-lede { margin: 16px 0 0; max-width: 30rem; font-size: 1.02rem; line-height: 1.6; color: #475569; }

/* the invite card */
.bd-invite {
    position: relative;
    margin-top: 28px;
    padding: 18px 20px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 50px -36px rgba(15, 23, 42, .45);
    transition: border-color .3s, box-shadow .3s;
}
.bd-invite::before {
    content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0;
    background: #cbd5e1; transition: background .3s;
}
.bd-invite.is-ready { border-color: rgba(0, 168, 150, .45); box-shadow: 0 24px 50px -30px rgba(0, 168, 150, .4); }
.bd-invite.is-ready::before { background: #00A896; }
.bd-invite-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bd-invite-kind { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; }
.bd-invite-status {
    font-size: .72rem; font-weight: 600; color: #64748b;
    padding: 3px 10px; border-radius: 999px; background: #f1f5f9;
    transition: background .3s, color .3s;
}
.bd-invite.is-ready .bd-invite-status { background: #ccfbf1; color: #0f766e; }
.bd-invite-title {
    margin-top: 10px;
    font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
    font-weight: 500; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2;
}
.bd-invite-title em { font-style: normal; color: #cbd5e1; margin: 0 2px; }
.bd-invite-rows { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.bd-invite-row { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: #0f172a; line-height: 1.4; }
.bd-invite-row svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; color: #94a3b8; }
.bd-invite-row b { font-weight: 600; }
.bd-muted { color: #64748b; font-weight: 400; }
[data-live].is-empty { color: #94a3b8; }
[data-live].is-empty::after { content: ''; display: inline-block; width: 6px; height: 1.05em; margin-left: 2px; vertical-align: text-bottom; border-left: 1.5px solid #94a3b8; opacity: 0; }
.bd-invite:not(.is-ready) [data-live="company"].is-empty::after { animation: bd-caret 1.1s steps(1) infinite; }
@keyframes bd-caret { 50% { opacity: 1; } }
.bd-invite-focus {
    margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #f8fafc;
    font-size: .86rem; line-height: 1.45; display: flex; flex-direction: column; gap: 2px;
}
.bd-invite-focus [data-live="focus"] { color: #0f172a; font-weight: 500; }
.bd-invite-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #f1f5f9; }
.bd-invite-meta div { min-width: 0; }
.bd-invite-meta dt { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.bd-invite-meta dd { margin: 3px 0 0; font-size: .86rem; font-weight: 500; color: #0f172a; overflow-wrap: anywhere; }

/* agenda */
.bd-agenda { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.bd-agenda-head { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; }
.bd-agenda-row { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; }
.bd-agenda-min {
    font-size: .74rem; font-weight: 700; color: #00A896; padding-top: 3px;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.bd-agenda-row b { display: block; font-size: .95rem; font-weight: 600; }
.bd-agenda-row p { margin: 2px 0 0; font-size: .86rem; line-height: 1.5; color: #64748b; }

/* ── right column: the card ── */
.bd-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 30px 60px -40px rgba(15, 23, 42, .4);
    overflow: hidden;
    scroll-margin-top: 96px;   /* step changes scroll the card into view under the sticky header */
    position: sticky;          /* the card is shorter than the pitch column: keep it in view while reading */
    top: 96px;
}

/* progress */
.bd-progress { list-style: none; margin: 0; padding: 22px 32px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bd-prog { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bd-prog::before { content: ''; display: block; height: 4px; border-radius: 999px; background: #e2e8f0; transition: background .3s; }
.bd-prog.is-active::before { background: linear-gradient(90deg, #00bfac, #00A896); }
.bd-prog.is-done::before { background: #00A896; }
.bd-prog-num { display: none; }
.bd-prog-label { font-size: .78rem; font-weight: 600; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.bd-prog.is-active .bd-prog-label { color: #0f172a; }
.bd-prog.is-done .bd-prog-label { color: #0f766e; }

.bd-body { padding: 26px 32px 10px; min-height: 420px; }
.bd-step { display: none; animation: bd-fade .35s cubic-bezier(.16, 1, .3, 1); }
.bd-step--active { display: block; }
@keyframes bd-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.bd-step-title {
    margin: 0;
    font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
    font-weight: 500; font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.2;
}
.bd-step-sub { margin: 8px 0 22px; font-size: .92rem; line-height: 1.55; color: #64748b; }

/* fields (floating labels) */
.bd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bd-field { position: relative; display: block; margin-bottom: 18px; }
.bd-grid .bd-field { margin-bottom: 0; }
.bd-input {
    width: 100%; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px;
    padding: 19px 14px 13px; font-size: .95rem; color: #0f172a; font-family: inherit; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.bd-input::placeholder { color: transparent; }
.bd-input:focus { border-color: rgba(0, 168, 150, .6); box-shadow: 0 0 0 3px rgba(0, 168, 150, .1); }
.bd-label {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    padding: 0 5px; background: #fff; font-size: .92rem; font-weight: 500; color: #94a3b8;
    pointer-events: none; transition: top .18s ease, font-size .18s ease, color .18s ease;
}
.bd-label-opt { color: #cbd5e1; font-weight: 500; font-size: .78rem; }
.bd-field:has(.bd-input:focus) .bd-label,
.bd-field:has(.bd-input:not(:placeholder-shown)) .bd-label,
.bd-field:has(.bd-select) .bd-label { top: 0; font-size: .74rem; font-weight: 600; color: #64748b; }
.bd-field:has(.bd-input:focus) .bd-label { color: #00A896; }
.bd-select {
    appearance: none; cursor: pointer; padding-right: 36px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat; background-position: right 14px center;
}
.bd-textarea { resize: vertical; min-height: 104px; line-height: 1.55; padding-top: 22px; }
.bd-field:has(.bd-textarea) .bd-label { top: 18px; }
.bd-field:has(.bd-textarea:focus) .bd-label,
.bd-field:has(.bd-textarea:not(:placeholder-shown)) .bd-label { top: 0; }
.bd-hint { display: block; margin-top: 8px; font-size: .78rem; line-height: 1.5; color: #94a3b8; }

/* chips: label is a plain heading above the group */
.bd-field:has(.bd-chips) .bd-label {
    position: static; transform: none; display: block; margin: 0 0 10px; padding: 0; background: none;
    font-size: .84rem; font-weight: 600; color: #334155;
}
.bd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-chip {
    background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 9px 16px;
    font-family: inherit; font-size: .86rem; font-weight: 600; color: #475569; cursor: pointer;
    transition: border-color .2s, color .2s, background .2s, transform .1s;
}
.bd-chip:hover { border-color: rgba(0, 168, 150, .45); color: #00A896; }
.bd-chip:active { transform: scale(.97); }
.bd-chip--active { background: #0f172a; border-color: #0f172a; color: #fff; }
.bd-chip--active:hover { color: #fff; border-color: #0f172a; }

/* calendar */
.bd-cal { display: flex; flex-direction: column; gap: 16px; }
.bd-cal-dates { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.bd-cal-date {
    position: relative; flex: 0 0 auto; width: 76px; padding: 10px 6px 9px;
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px; cursor: pointer; font-family: inherit;
    transition: border-color .2s, background .2s, transform .1s;
}
.bd-cal-date:hover { border-color: rgba(0, 168, 150, .45); }
.bd-cal-date:active { transform: scale(.97); }
.bd-cal-date--active { background: #0f172a; border-color: #0f172a; }
.bd-cal-date-dow { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.bd-cal-date-day { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; color: #0f172a; line-height: 1.1; }
.bd-cal-date-mon { font-size: .7rem; font-weight: 600; color: #64748b; }
.bd-cal-date--active .bd-cal-date-dow, .bd-cal-date--active .bd-cal-date-mon { color: rgba(255, 255, 255, .7); }
.bd-cal-date--active .bd-cal-date-day { color: #fff; }
.bd-cal-date-soon {
    position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    font-size: .58rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 2px 7px; border-radius: 999px; background: #00A896; color: #fff; white-space: nowrap;
}
.bd-cal-slots { background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 16px 18px; }
.bd-cal-slots-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.bd-cal-slots-label { font-size: .92rem; font-weight: 600; }
.bd-cal-slots-tz { font-size: .74rem; color: #94a3b8; font-weight: 600; }
.bd-cal-slots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; min-height: 44px; }
.bd-cal-slots-grid:empty::before {
    content: 'Slots appear once you pick a day.'; grid-column: 1 / -1; font-size: .84rem; color: #94a3b8; align-self: center;
}
.bd-cal-slot {
    background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 10px 8px;
    font-family: inherit; font-size: .86rem; font-weight: 600; color: #475569; cursor: pointer;
    transition: border-color .2s, color .2s, background .2s, transform .1s;
}
.bd-cal-slot:hover { border-color: rgba(0, 168, 150, .45); color: #00A896; }
.bd-cal-slot:active { transform: scale(.97); }
.bd-cal-slot--active, .bd-cal-slot--active:hover { background: #00A896; border-color: #00A896; color: #fff; box-shadow: 0 6px 14px -6px rgba(0, 168, 150, .6); }

/* confirm */
.bd-invite--confirm { margin-top: 0; }
.bd-fine { margin: 16px 0 0; font-size: .78rem; line-height: 1.5; color: #94a3b8; }

/* success */
.bd-done { text-align: left; padding: 10px 0 20px; }
.bd-done-badge {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px;
    background: #ccfbf1; color: #0f766e; animation: bd-pop .5s cubic-bezier(.2, .9, .3, 1.3);
}
.bd-done-badge svg { width: 24px; height: 24px; }
@keyframes bd-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.bd-done .bd-step-sub b { color: #0f172a; font-weight: 600; }
.bd-done-next { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.bd-done-next > span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; }
.bd-done-link {
    display: block; padding: 14px 16px; border-radius: 12px; border: 1.5px solid #e2e8f0; text-decoration: none; color: inherit;
    transition: border-color .2s, transform .15s;
}
.bd-done-link:hover { border-color: rgba(0, 168, 150, .5); transform: translateY(-1px); }
.bd-done-link b { display: block; font-size: .92rem; font-weight: 600; }
.bd-done-link small { display: block; margin-top: 2px; font-size: .8rem; color: #64748b; }

/* messages */
.bd-msg { display: none; margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: .88rem; font-weight: 600; line-height: 1.5; }
.bd-msg.show { display: block; }
.bd-msg--error { background: rgba(220, 38, 38, .08); border: 1px solid rgba(220, 38, 38, .3); color: #b91c1c; }

/* actions */
.bd-actions {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 16px 32px; border-top: 1px solid #e2e8f0; background: #fff;
}
.bd-actions[hidden] { display: none; }
.bd-step-counter { font-size: .82rem; color: #94a3b8; font-weight: 600; }
.bd-actions .bd-btn--primary { margin-left: auto; }
.bd-btn {
    display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 13px 26px;
    font-family: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; border: 1.5px solid transparent;
    transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.bd-btn svg { width: 14px; height: 14px; }
.bd-btn--primary { background: #0f172a; color: #fff; box-shadow: 0 10px 24px -12px rgba(15, 23, 42, .7); }
.bd-btn--primary:hover { background: #1e293b; transform: translateY(-1px); }
.bd-btn--primary:disabled, .bd-btn--primary.is-busy { opacity: .6; cursor: progress; transform: none; }
.bd-btn--ghost { background: transparent; color: #475569; border-color: #e2e8f0; }
.bd-btn--ghost:hover:not(:disabled) { color: #0f172a; border-color: #cbd5e1; }
.bd-btn--ghost:disabled { opacity: .35; cursor: default; }

/* inline validation */
.bd-shake { animation: bd-shake .4s; }
@keyframes bd-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.bd-field.is-invalid .bd-input { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
.bd-field.is-invalid .bd-label { color: #dc2626; }
.bd-cal.is-invalid .bd-cal-slots { border-color: #ef4444; }
.bd-field-err { display: block; margin-top: 7px; font-size: .78rem; font-weight: 600; color: #dc2626; }
.bd-cal .bd-field-err { margin-top: 0; }

.bd-contact { padding: 14px 32px 18px; font-size: .84rem; color: #64748b; background: #f8fafc; border-top: 1px solid #f1f5f9; }
.bd-contact a { color: #0f172a; font-weight: 600; text-decoration: none; }
.bd-contact a:hover { color: #00A896; }
.bd-contact span { color: #cbd5e1; margin: 0 4px; }

/* ── responsive ── */
@media (max-width: 1024px) {
    .bd-shell { gap: 32px; }
}
@media (max-width: 900px) {
    .bd-page { padding: 3.5rem 1rem 3rem; }
    .bd-shell { grid-template-columns: 1fr; gap: 22px; }
    .bd-card { position: static; }
    .bd-side .bd-invite { display: none; }      /* the form card carries the invite on small screens */
    .bd-agenda { margin-top: 20px; gap: 8px; }
    .bd-agenda-row p { display: none; }
    .bd-agenda-row { grid-template-columns: 44px 1fr; align-items: center; }
    .bd-agenda-row b { font-size: .88rem; }
    .bd-progress { padding: 18px 20px 0; gap: 6px; }
    .bd-prog-label { font-size: .7rem; }
    .bd-body { padding: 20px 20px 8px; min-height: 0; }
    .bd-grid { grid-template-columns: 1fr; gap: 14px; }
    .bd-cal-slots-grid { grid-template-columns: repeat(3, 1fr); }
    .bd-invite-meta { grid-template-columns: 1fr 1fr; }
    .bd-actions { padding: 14px 20px; }
    .bd-contact { padding: 12px 20px 16px; }
}
@media (max-width: 480px) {
    .bd-h1 { font-size: 1.85rem; }
    .bd-lede { font-size: .95rem; }
    .bd-prog-label { display: none; }
    .bd-prog { gap: 0; }
    .bd-actions { flex-wrap: wrap; }
    .bd-actions .bd-btn--primary { flex: 1 1 100%; justify-content: center; order: -1; margin-left: 0; }
    .bd-actions .bd-btn--ghost { flex: 1; justify-content: center; }
    .bd-step-counter { flex: 1; text-align: right; }
    .bd-cal-slots-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .bd-step, .bd-done-badge, .bd-shake, [data-live]::after { animation: none; }
}
