/* =============================================================================
   Next Edge Alliance — Investor Hive onboarding page (/onboarding)
   Matches the GoHighLevel thank-you page: near-black violet background, warm ivory text,
   champagne gold accents, pill buttons, glass cards. Fonts are the app's self-hosted
   Inter (body) and Playfair Display (headings). Everything is scoped under .ob-root.
   ============================================================================= */

.ob-root {
    /* Palette from the original page */
    --ob-bg: #0a0a14;
    --ob-ink: #f5f2ea;
    --ob-muted: #f5f2eab8;
    --ob-faint: #f5f2ea99;
    --ob-line: #f5f2ea29;
    --ob-gold: #d7b859;
    --ob-button: #e0b84a;
    --ob-button-hover: #edca69;
    --ob-panel: #12121e;
    --ob-panel-raised: #1b1928;
    --ob-gray: #b3b0bd;
    --ob-error: #ffb9ad;
    --ob-card-bg: linear-gradient(#ffffff0f, #ffffff05);
    --ob-shadow: 0 28px 70px #00000061;

    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 12px clamp(16px, 3vw, 24px) 38px;
    background:
        radial-gradient(circle at 18% 0, #7b68ee29, transparent 42%),
        radial-gradient(circle at 90% 30%, #a856f71a, transparent 38%),
        var(--ob-bg);
    color: var(--ob-ink);
    font-family: var(--sans);
}

.ob-page { max-width: 1120px; margin: 0 auto; }

/* ---------- Brand bar ---------- */
.ob-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: clamp(14px, 2.4vh, 26px) 8px clamp(14px, 2.2vh, 24px);
    border-bottom: 1px solid var(--ob-line);
}
.ob-brand::after {
    content: "";
    position: absolute; left: 0; bottom: -1px;
    width: 110px; height: 2px;
    background: linear-gradient(90deg, var(--ob-gold), #d7be76);
}
.ob-logo { display: block; width: clamp(180px, 22vw, 290px); max-width: 52%; height: auto; }
.ob-mark { display: block; flex: 0 0 auto; width: clamp(40px, 4vw, 56px); height: auto; margin-left: auto; color: #d4af55; }

.ob-steps {
    display: flex; align-items: center; gap: 12px;
    margin: 0; padding: 0; list-style: none;
    font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
    color: var(--ob-muted);
}
.ob-steps li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.ob-steps li + li::before { content: ""; width: 24px; height: 1px; margin-right: 4px; background: var(--ob-line); }
.ob-step-number {
    display: grid; place-items: center;
    width: 26px; height: 26px;
    border: 1px solid var(--ob-line); border-radius: 50%;
    background: #ffffff0f; font-size: 10px; letter-spacing: 0; color: var(--ob-ink);
}
.ob-steps .is-done, .ob-steps [aria-current="step"] { color: var(--ob-gold); }
.ob-steps .is-done .ob-step-number, .ob-steps [aria-current="step"] .ob-step-number {
    color: var(--ob-gold); background: #d7b85914; border-color: #d7b85980;
}

/* ---------- Hero ---------- */
.ob-main { display: flex; flex-direction: column; align-items: center; }
.ob-hero { width: 100%; max-width: 900px; margin: 0 auto; padding: clamp(20px, 4vh, 48px) 20px clamp(20px, 3.4vh, 40px); text-align: center; }
.ob-check {
    display: grid; place-items: center;
    width: 58px; height: 58px; margin: 0 auto clamp(14px, 2.4vh, 24px);
    border: 1px solid #d7b85980; border-radius: 50%; background: #d7b85914;
}
.ob-check svg { width: 27px; height: 27px; fill: none; stroke: var(--ob-gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Greeting: kept on one line by onboarding.js (largest size = --fit-max) */
.ob-greeting, .ob-heading-wrap {
    margin: 0 0 clamp(10px, 1.8vh, 18px);
    font-family: var(--serif); font-weight: 600; line-height: 1.14; letter-spacing: .01em;
    color: #fff;
}
.ob-greeting { --fit-max: 52px; width: 100%; white-space: nowrap; font-size: 40px; }
.ob-heading-wrap { font-size: clamp(30px, 4vw, 46px); text-wrap: balance; }
.ob-greeting.ob-wrap { white-space: normal; text-wrap: balance; overflow-wrap: anywhere; font-size: clamp(26px, 7vw, 40px); }
.ob-fit-ruler { position: fixed; left: -100000px; top: 0; visibility: hidden; white-space: nowrap; pointer-events: none; }
.ob-subhead { max-width: 690px; margin: 0 auto; font-size: 18px; line-height: 1.55; color: var(--ob-muted); }
.ob-hero .ob-pill { margin-top: 24px; }

/* ---------- Cards ---------- */
.ob-card {
    width: 100%; max-width: 1000px;
    border: 1px solid var(--ob-line); border-radius: 22px;
    background: var(--ob-card-bg); box-shadow: var(--ob-shadow);
}
.ob-intro { padding: clamp(20px, 3vh, 30px) clamp(20px, 3vw, 34px); }
.ob-intro h2 { margin: 0 0 10px; font-size: 23px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.ob-intro p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ob-muted); }

/* ---------- Scheduler ---------- */
.ob-scheduler { margin-top: 22px; padding: clamp(14px, 2vw, 24px); container-type: inline-size; container-name: scheduler; }
.ob-scheduler-grid {
    display: grid;
    grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) minmax(170px, 200px);
    gap: clamp(16px, 2.2vw, 28px);
    align-items: start;
}

/* Session details */
.ob-session { padding: 18px; border: 1px solid var(--ob-line); border-radius: 16px; background: var(--ob-panel); }
.ob-session h3 { margin: 0 0 14px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.ob-session-facts { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 14.5px; color: var(--ob-muted); }
.ob-session-facts li { display: flex; align-items: center; gap: 10px; }
.ob-session-facts svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--ob-gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ob-zone-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ob-ink); }
.ob-zone {
    width: 100%; min-width: 0; height: 40px; padding: 0 10px;
    border: 1px solid var(--ob-line); border-radius: 10px;
    background: var(--ob-panel-raised); color: var(--ob-ink); font: inherit; font-size: 14px;
}
.ob-zone:focus-visible { outline: 3px solid var(--ob-gold); outline-offset: 2px; }

/* Month grid */
.ob-month { min-width: 0; }
.ob-month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ob-month-title { margin: 0; font-size: 17px; font-weight: 600; }
.ob-nav-button {
    display: grid; place-items: center; width: 40px; height: 40px;
    border: 0; border-radius: 50%; background: #e0b84a1f; color: var(--ob-gold);
}
.ob-nav-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ob-nav-button:hover:not(:disabled) { background: #e0b84a33; }
.ob-nav-button:disabled { background: transparent; color: #f5f2ea40; }

.ob-weekdays, .ob-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); justify-items: center; }
.ob-weekdays { margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--ob-ink); }
.ob-weekdays span { padding: 6px 0; }
.ob-days { row-gap: 6px; }
.ob-day {
    display: grid; place-items: center;
    width: clamp(34px, 5cqi, 42px); aspect-ratio: 1;
    border: 0; border-radius: 50%; background: none;
    font-size: 14.5px; font-weight: 500; color: #f5f2ea59;
}
.ob-day.is-today { box-shadow: inset 0 0 0 1px var(--ob-line); }
.ob-day.is-open { background: #e0b84a1f; color: var(--ob-gold); font-weight: 600; }
.ob-day.is-open:hover:not(:disabled) { background: #e0b84a3d; }
.ob-day.is-selected, .ob-day.is-selected:hover:not(:disabled) { background: var(--ob-button); color: var(--ob-bg); }
.ob-start-1 { grid-column-start: 1; } .ob-start-2 { grid-column-start: 2; } .ob-start-3 { grid-column-start: 3; }
.ob-start-4 { grid-column-start: 4; } .ob-start-5 { grid-column-start: 5; } .ob-start-6 { grid-column-start: 6; }
.ob-start-7 { grid-column-start: 7; }

/* Times */
.ob-times { min-width: 0; }
.ob-times-heading { margin: 8px 0 10px; font-size: 14px; font-weight: 600; color: var(--ob-ink); }
.ob-times-note { margin: 8px 0 12px; font-size: 14px; line-height: 1.5; color: var(--ob-gray); }
.ob-time-list { display: grid; gap: 8px; max-height: 312px; overflow-y: auto; padding: 2px 6px 2px 2px; scrollbar-color: #f5f2ea33 transparent; }
.ob-time {
    width: 100%; min-height: 42px; padding: 8px 12px;
    border: 1px solid #e0b84a8c; border-radius: 10px; background: transparent;
    color: var(--ob-gold); font-size: 14.5px; font-weight: 600;
}
.ob-time:hover:not(:disabled) { background: #e0b84a1f; }
.ob-time.is-selected { background: var(--ob-button); border-color: var(--ob-button); color: var(--ob-bg); }

/* Confirmation bar */
.ob-confirm {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ob-line);
}
.ob-confirm-summary { margin: 0; font-size: 15px; color: var(--ob-muted); }
.ob-confirm-summary strong { color: var(--ob-ink); font-weight: 600; }
.ob-alert { margin: 14px 0 0; padding: 12px 14px; border: 1px solid #ffb9ad66; border-radius: 12px; background: #ffb9ad14; color: var(--ob-error); font-size: 14.5px; }
.ob-scheduler-message { padding: clamp(12px, 2vw, 20px); text-align: center; }
.ob-scheduler-message h3 { margin: 0 0 8px; font-size: 19px; }
.ob-scheduler-message p { margin: 0; color: var(--ob-muted); }

/* ---------- Booked ---------- */
.ob-booked { display: flex; gap: 20px; align-items: flex-start; padding: clamp(22px, 3vw, 32px) clamp(20px, 3vw, 34px); }
.ob-booked:focus { outline: none; }
.ob-booked-icon { flex: 0 0 52px; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #d7b85980; border-radius: 14px; background: #d7b85914; }
.ob-booked-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ob-gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ob-booked h2 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.ob-booked .ob-booked-time { margin: 0 0 10px; font-size: 18px; font-weight: 600; color: var(--ob-gold); }
.ob-booked p { margin: 0; line-height: 1.6; color: var(--ob-muted); }
.ob-booked p + p { margin-top: 4px; }
.ob-booked strong { color: var(--ob-ink); font-weight: 600; }

/* ---------- Pill buttons ---------- */
.ob-pill {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; max-width: 100%; padding: 14px 28px;
    border: 1px solid var(--ob-button); border-radius: 999px;
    background: var(--ob-button); color: var(--ob-bg);
    font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: .04em; text-decoration: none; text-align: center;
    transition: background-color .2s ease, transform .2s ease;
}
.ob-pill:hover:not(:disabled) { background: var(--ob-button-hover); color: var(--ob-bg); transform: translateY(-1px); }
.ob-pill:focus-visible, .ob-time:focus-visible, .ob-day:focus-visible, .ob-nav-button:focus-visible { outline: 3px solid var(--ob-gold); outline-offset: 3px; }
.ob-pill:disabled { opacity: .45; cursor: not-allowed; }
.ob-pill-small { min-height: 44px; padding: 10px 22px; }
.ob-account { display: flex; justify-content: center; width: 100%; max-width: 1000px; margin-top: 22px; }

/* ---------- Receipt note and contact ---------- */
.ob-receipt {
    display: flex; align-items: flex-start; gap: 14px;
    width: 100%; max-width: 1000px; margin-top: 22px; padding: 20px 26px;
    border: 1px solid var(--ob-line); border-radius: 22px; background: var(--ob-card-bg);
    font-size: 15px; line-height: 1.65; color: var(--ob-muted);
}
.ob-receipt svg { flex: 0 0 21px; width: 21px; height: 21px; margin-top: 3px; fill: none; stroke: var(--ob-gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ob-receipt p { margin: 0; }

.ob-contact {
    max-width: 1000px; margin: 34px auto 0; padding: 26px 14px 8px;
    border-top: 1px solid #f5f2ea1a; text-align: center;
    font-size: 14px; line-height: 1.8; color: var(--ob-faint);
}
.ob-contact p { margin: 0; }
.ob-contact a { color: var(--ob-gold); text-decoration-color: #d7b85980; text-underline-offset: 3px; overflow-wrap: anywhere; }
.ob-contact a:hover { color: var(--ob-button-hover); }

/* ---------- Scheduler widths (container queries on the card) ---------- */

/* Medium: session details on top, calendar and times side by side */
@container scheduler (max-width: 760px) {
    .ob-scheduler-grid { grid-template-columns: minmax(0, 1fr) minmax(150px, 190px); }
    .ob-session { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); column-gap: 20px; align-items: end; }
    .ob-session h3 { grid-column: 1 / -1; }
    .ob-session-facts { margin: 0; }
}

/* Narrow: everything stacked, times in two columns */
@container scheduler (max-width: 520px) {
    .ob-scheduler-grid { grid-template-columns: minmax(0, 1fr); }
    .ob-session { display: block; }
    .ob-session-facts { margin-bottom: 14px; }
    .ob-day { width: min(40px, 11.5cqi); }
    .ob-time-list { grid-template-columns: 1fr 1fr; max-height: none; overflow: visible; padding: 0; }
    .ob-confirm { flex-direction: column; align-items: stretch; text-align: center; }
    .ob-confirm .ob-pill { width: 100%; }
}

/* ---------- Page widths ---------- */
@media (max-width: 760px) {
    .ob-root { padding: 6px 18px 28px; }
    .ob-brand { flex-wrap: wrap; gap: 12px; padding: 18px 0; }
    .ob-logo { width: min(70vw, 260px); max-width: 78%; }
    .ob-steps { width: 100%; justify-content: center; margin-top: 5px; padding-top: 15px; border-top: 1px solid var(--ob-line); font-size: 10px; gap: 10px; }
    .ob-steps li + li::before { width: 20px; }
    .ob-hero { padding: 24px 2px 26px; }
    .ob-check { width: 50px; height: 50px; margin-bottom: 18px; }
    .ob-greeting { --fit-max: 40px; font-size: 30px; }
    .ob-subhead { font-size: 16px; line-height: 1.6; }
    .ob-intro h2 { font-size: 20px; }
    .ob-intro p { font-size: 15px; }
    .ob-scheduler { margin-top: 16px; border-radius: 18px; }
    .ob-booked { flex-direction: column; gap: 14px; }
    .ob-receipt { padding: 18px 20px; gap: 12px; font-size: 14px; margin-top: 18px; }
    .ob-contact { font-size: 12.5px; margin-top: 26px; padding-top: 22px; }
    .ob-account .ob-pill { width: 100%; }
}

@media (max-width: 360px) {
    .ob-root { padding-left: 12px; padding-right: 12px; }
    .ob-scheduler { padding: 10px; }
    .ob-intro { padding: 20px 18px; }
}

/* Short laptop screens: pull the calendar up into the first screen */
@media (min-width: 761px) and (max-height: 820px) {
    .ob-hero { padding-top: 18px; padding-bottom: 18px; }
    .ob-check { width: 46px; height: 46px; margin-bottom: 12px; }
    .ob-check svg { width: 22px; height: 22px; }
    .ob-greeting { --fit-max: 42px; }
    .ob-subhead { font-size: 16.5px; }
    .ob-intro { padding: 18px 26px; }
    .ob-intro h2 { font-size: 20px; margin-bottom: 6px; }
    .ob-intro p { font-size: 15px; line-height: 1.55; }
    .ob-scheduler { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .ob-pill { transition: none; }
    .ob-pill:hover:not(:disabled) { transform: none; }
}
