/* study-onboarding.css -- Login gate, onboarding overlay (ob2/ob3), demo styles, auth screen */

        html[data-khio-pre-onboard="1"],
        html[data-khio-pre-onboard="1"] body {
            background: #ffffff !important;
        }

        html[data-khio-pre-onboard="1"] #studySidebar,
        html[data-khio-pre-onboard="1"] #app,
        html[data-khio-pre-onboard="1"] #loginGate,
        html[data-khio-pre-onboard="1"] #mobileNav {
            visibility: hidden !important;
        }

        html[data-khio-pre-onboard="1"] #onboardOverlay {
            display: flex !important;
        }

        @media (max-width: 768px) {
            html[data-khio-pre-onboard="1"] #onboardOverlay .ob2-panel {
                display: none !important;
            }

            html[data-khio-pre-onboard="1"] #ob3Mobile {
                display: flex !important;
            }
        }

        @media (min-width: 769px) {
            html[data-khio-pre-onboard="1"] #ob3Mobile {
                display: none !important;
            }
        }

        /* Force theme color on elements outside .study-main */
        [data-theme="light"] .modal-overlay { color: #111111; }
        /* Toast keeps its base #fff text color in light theme because the
           background stays dark (#374151). */
        /* Login card theme-aware */

        /* ── Sidebar Sign Up card (guest footer CTA) ── */
        /* Reuses the same accent gradient as the default .user-card so it
           matches the rest of the study UI. Force center justify to override
           the `.study-layout:not(.detail-active) .sidebar-footer .user-card`
           rule that otherwise spreads the contents with space-between. */
        .sidebar-footer .sidebar-footer-signup-card {
            justify-content: center !important;
            gap: 10px !important;
            padding: 12px 16px !important;
            font-weight: 700 !important;
        }
        .sidebar-footer .sidebar-footer-signup-card .user-name {
            flex: 0 0 auto !important;
            font-weight: 700 !important;
            color: inherit !important;
        }
        .sidebar-footer .sidebar-footer-signup-card .user-badge {
            flex: 0 0 auto !important;
            background: transparent !important;
            color: inherit !important;
            opacity: 1 !important;
            width: auto !important;
        }
        .sidebar-footer .sidebar-footer-signup-card .user-badge i {
            width: 16px !important;
            height: 16px !important;
        }

        /* ── Login Gate (full-page split-screen), James 2026-05-06 ──
           Was a small centered modal with backdrop blur. Now fills the
           viewport with a left brand panel + right form panel for a
           proper "welcome back" experience. */
        .login-gate {
            display: none;
            align-items: stretch;
            justify-content: stretch;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            inset: 0;
            width: 100vw;
            height: 100vh;
            height: 100dvh;
            min-height: 100vh;
            min-height: 100dvh;
            z-index: 700;
            /* The illustration is 1672×941 (wide). Apply it as the
               full-viewport background so the entire image shows
               edge-to-edge with cover sizing. The peach #faf7f3
               background-color matches the illustration's own bg
               so any empty area blends seamlessly. */
            background-color: #faf7f3;
            background-image: url('/images/onboarding/sign-in-page.png?v=4');
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
            box-sizing: border-box;
            overflow: auto;
        }
        /* Left brand panel, Khio Study wordmark, "Welcome back" hero,
           one-line subtitle. The illustration sits as the BACKGROUND
           of the panel (background-image on the panel itself) so it
           fills the bottom of the left half edge-to-edge instead of
           being a small inset img tag. James 2026-05-06 v4. */
        .login-brand-panel {
            flex: 1 1 50%;
            min-width: 0;
            padding: 56px 64px 0;
            display: flex;
            flex-direction: column;
            gap: 36px;
            /* No bg-image here, the illustration is now applied to
               .login-gate above so it spans the full viewport. This
               panel just holds the Khio Study + Welcome back text on
               top of the gate's background. */
            background: transparent;
            box-sizing: border-box;
            overflow: hidden;
            position: relative;
        }
        .login-brand-logo { font-family: 'Ramillas', 'Playfair Display', Georgia, serif; font-size: 36px; font-weight: 700; color: #15172a; letter-spacing: -0.01em; margin: 0; line-height: 1; position: relative; z-index: 1; }
        .login-brand-text { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; position: relative; z-index: 1; }
        .login-brand-title { font-size: 56px; font-weight: 800; color: #15172a; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
        .login-brand-desc { font-size: 18px; line-height: 1.55; color: rgba(15,23,42,0.55); margin: 0; max-width: 480px; }
        /* Hide the inline <img>, the image is now applied as
           background-image on the panel above. Markup kept so
           older entry points don't break. */
        .login-brand-illustration { display: none; }
        /* Hide the old features + quote markup if it's still rendered
           anywhere (defensive, main study.html shell no longer emits
           it as of v3, but other entry points might). */
        .login-brand-features,
        .login-brand-quote { display: none !important; }

        /* Right form panel, TRANSPARENT, sits on the same #faf7f3
           cream bg as the left side. James asked: "why is half the
           page still white… it should just be built into the page
           background I provided." Removed the white background +
           any borders/radius so the gate reads as one unified peach
           page with the sign-in content centered on the right half. */
        .login-card {
            flex: 1 1 50%;
            min-width: 0;
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 60px 80px;
            max-width: none;
            width: auto;
            box-shadow: none;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            box-sizing: border-box;
        }
        .login-card .login-step.active {
            background: transparent;
            border-radius: 0;
            padding: 0;
            box-shadow: none;
            border: none;
        }
        .login-card .login-step {
            width: 100%;
            max-width: 380px;
            margin: 0 auto;
        }
        .login-card-logo { font-size: 34px; font-weight: 900; margin-bottom: 8px; color: #1a1a1a; letter-spacing: -0.02em; }
        .login-card-logo span { color: #e8853a; }
        .login-card-sub { color: rgba(26,43,60,0.5); font-size: 15px; margin-bottom: 32px; }
        .login-card-sub a { color: #1a1a1a; text-decoration: underline; font-weight: 600; }
        .login-btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 16px; background: #fff; color: #1a1a1a; font-weight: 700; font-size: 16px; border: 1.5px solid rgba(0,0,0,0.15); border-radius: 50px; cursor: pointer; font-family: inherit; transition: all 0.15s; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
        .login-btn-google:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
        .login-btn-google svg { width: 22px; height: 22px; }
        .login-btn-apple { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 16px; background: #1a1a1a; font-weight: 700; font-size: 16px; border: none; border-radius: 50px; cursor: pointer; font-family: inherit; transition: all 0.15s; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,0.15); margin-top: 10px; }
        a.login-btn-apple, a.login-btn-apple:visited, a.login-btn-apple:link { color: #fff !important; -webkit-text-fill-color: #fff !important; }
        .login-btn-apple:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
        .login-btn-apple svg { width: 22px; height: 22px; fill: #fff; }
        /* Login card is always white, text/input colors are fixed to dark regardless of theme */
        .login-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: rgba(26,43,60,0.45); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
        .login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: rgba(26,43,60,0.12); }
        .login-input-label { display: block; text-align: left; font-size: 13px; font-weight: 700; color: #1a2b3c; margin-bottom: 8px; letter-spacing: 0.01em; }
        .login-input { width: 100%; padding: 16px 18px; background: #f5f7fa; border: 2px solid rgba(26,43,60,0.12); border-radius: 14px; color: #1a2b3c; font-size: 16px; font-family: inherit; outline: none; transition: border-color 0.15s; box-sizing: border-box; }
        .login-input:focus { border-color: #e8853a; background: #fff; }
        .login-input::placeholder { color: rgba(26,43,60,0.35); }
        .login-btn-submit { width: 100%; padding: 16px; background: #e8853a; color: #fff; font-weight: 700; font-size: 16px; border: 2px solid rgba(232,133,58,0.3); border-radius: 14px; cursor: pointer; font-family: inherit; margin-top: 16px; transition: all 0.15s; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 3px 3px 0 rgba(232,133,58,0.25); }
        .login-btn-submit:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 rgba(232,133,58,0.2); }
        .login-btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
        .login-btn-secondary { width: 100%; padding: 13px; background: #f5f7fa; color: #1a2b3c; font-weight: 600; font-size: 14px; border: 1.5px solid rgba(26,43,60,0.15); border-radius: 12px; cursor: pointer; font-family: inherit; margin-top: 10px; transition: all 0.15s; display: flex; align-items: center; justify-content: center; gap: 8px; }
        .login-btn-secondary:hover { background: #ebeef3; border-color: rgba(26,43,60,0.25); }
        .login-step { display: none; }
        .login-step.active { display: block; }
        .login-back { background: none; border: none; color: rgba(26,43,60,0.55); cursor: pointer; font-size: 14px; margin-bottom: 18px; display: flex; align-items: center; gap: 6px; font-weight: 600; }
        .login-back:hover { color: #e8853a; }
        .login-error { color: #ef4444; font-size: 14px; margin-top: 10px; display: none; font-weight: 500; }

        /* Responsive, narrow screens stack vertically. Below 600px
           the brand panel hides entirely so phones get a focused form. */
        @media (max-width: 1280px) {
            .login-brand-panel { padding: 48px 48px 0; gap: 28px; }
            .login-brand-title { font-size: 48px; }
            .login-brand-desc { font-size: 16px; }
            .login-card { padding: 48px 56px; }
        }
        @media (max-width: 1024px) {
            .login-brand-panel { padding: 40px 36px 0; gap: 22px; }
            .login-brand-title { font-size: 40px; }
            .login-brand-illustration { max-width: 520px; }
            .login-card { padding: 40px 40px; }
        }
        @media (max-width: 880px) {
            .login-gate { flex-direction: column; }
            .login-brand-panel { padding: 36px 28px 0; gap: 16px; flex: 0 0 auto; min-height: 240px; }
            .login-brand-title { font-size: 32px; }
            .login-brand-illustration { max-width: 280px; align-self: center; }
            .login-card { padding: 28px 28px 60px; flex: 1 1 auto; }
        }
        @media (max-width: 600px) {
            .login-brand-panel { display: none; }
            .login-card { padding: 60px 20px 40px; }
        }

        /* Light theme login card. Use background-color (not the
           background shorthand) so it doesn't wipe out the
           background-image set on .login-gate above. */
        [data-theme="light"] .login-gate { background-color: #faf7f3; }
        .login-gate[style*="flex"] ~ .mobile-nav,
        .login-gate[style*="flex"] ~ #mobileNav,
        body:has(.login-gate[style*="flex"]) .mobile-nav,
        body:has(.login-gate[style*="flex"]) #mobileNav { display: none !important; }
        /* James 2026-05-06: was painting the right half white +
           black border + 28px radius, that's the "card-on-the-page"
           look he flagged. Now the right half stays transparent so
           the gate is one unified peach background. */
        [data-theme="light"] .login-card {
            background: transparent;
            border: none;
            box-shadow: none;
            border-radius: 0;
        }
        [data-theme="light"] .login-card-logo { color: #1a2b3c; }
        [data-theme="light"] .login-card-sub { color: rgba(26,43,60,0.5); }
        [data-theme="light"] .login-card-sub a { color: #e8853a; }
        [data-theme="light"] .login-divider { color: rgba(26,43,60,0.3); }
        [data-theme="light"] .login-divider::before, [data-theme="light"] .login-divider::after { background: rgba(26,43,60,0.1); }
        [data-theme="light"] .login-input-label { color: rgba(26,43,60,0.6); }
        [data-theme="light"] .login-input { background: #f5f7fa; border-color: rgba(26,43,60,0.12); color: #1a2b3c; }
        [data-theme="light"] .login-input:focus { border-color: #e8853a; }
        [data-theme="light"] .login-input::placeholder { color: rgba(26,43,60,0.35); }
        [data-theme="light"] .login-btn-google {
            background: #fff; color: #1a1a1a;
            border: 1.5px solid rgba(0,0,0,0.12); border-radius: 50px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        }
        [data-theme="light"] .login-btn-google:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
        [data-theme="light"] .login-back { color: rgba(26,43,60,0.5); }
        [data-theme="light"] .login-back:hover { color: #e8853a; }
        [data-theme="light"] .login-btn-apple {
            background: #1a1a1a; color: #fff;
            border: none; border-radius: 50px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        }
        [data-theme="light"] .login-btn-apple svg { fill: #fff; }
        [data-theme="light"] .login-btn-apple:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

        @media (max-width: 768px) {
            .study-phone-login { display: none; }
            .login-btn-apple { display: flex; }
        }

        /* Toast, z-index sits above every modal overlay so errors stay
           legible. Without this they get painted behind dim layers and
           render as the dark-on-dark "I uploaded files but can't read
           the message" bug. */
        .toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px); background: #1f2937; color: #fff; padding: 10px 20px; border-radius: 10px; font-size: 13px; font-weight: 500; opacity: 0; pointer-events: none; transition: all 0.3s; z-index: 100050; max-width: 90%; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
        .toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
        .toast.toast-error { background: #dc2626; color: #fff; }
        .toast.toast-success { background: #16a34a; color: #fff; }
        .toast.toast-info { background: #2563eb; color: #fff; }
        [data-theme="light"] .toast { background: #374151; }

        /* ══ Onboarding v2 (split-panel GPTZero-style) ══ */
        .ob2-overlay { position:fixed;inset:0;z-index:500;display:flex;align-items:center;justify-content:center;background:#ffffff;overflow:hidden;padding:16px; }
        /* Desktop onboarding panel, James asked for a bigger modal so
           it uses more of the viewport on 1440+ displays. v3: bumped
           max-width 1240 -> 1320 so 3 role cards (280 each + 24 gap +
           sidebar 26% + content padding) fit on one row at 1080p+. */
        .ob2-panel { display:flex;width:92%;max-width:1320px;height:88vh;max-height:820px;background:#fff;border-radius:24px;box-shadow:0 2px 4px rgba(0,0,0,0.04), 0 8px 16px rgba(0,0,0,0.06), 0 20px 40px rgba(0,0,0,0.1), 0 40px 80px rgba(146,74,40,0.18), 0 60px 120px rgba(146,74,40,0.12);overflow:hidden;transform:perspective(1400px) rotateY(-1deg) rotateX(0.5deg); }
        /* Warm rust-to-peach gradient + soft orange aura. James 2026-05-06.
           Was a dark grey-to-rust (#3d3d3d → #c4703a) which read as
           "moody black" until the bottom. Now reads as warm orange
           top to bottom. */
        .ob2-sidebar { width:26%;min-width:260px;max-width:340px;background:linear-gradient(165deg,#a8553a 0%,#bd683f 28%,#cd7a47 55%,#dc9558 80%,#e8a572 100%);display:flex;flex-direction:column;justify-content:flex-start;padding:48px 36px;position:relative;overflow:hidden;border-radius:24px 0 0 24px;transition:width 0.4s ease,min-width 0.4s ease,padding 0.4s ease,opacity 0.4s ease; }
        .ob2-sidebar::before { content:'';position:absolute;inset:0;background:radial-gradient(circle at 20% 78%,rgba(255,196,140,0.32) 0%,transparent 58%),radial-gradient(circle at 80% 22%,rgba(255,170,110,0.22) 0%,transparent 50%),radial-gradient(circle at 50% 110%,rgba(255,200,150,0.28) 0%,transparent 60%);pointer-events:none; }
        /* Soft outer glow so the whole panel feels surrounded by a warm
           halo. Layered with the existing .ob2-panel shadows, drops a
           wider, warmer ring that matches the new gradient. */
        .ob2-panel { box-shadow:0 2px 4px rgba(0,0,0,0.04), 0 8px 16px rgba(0,0,0,0.06), 0 20px 50px rgba(0,0,0,0.1), 0 40px 100px rgba(193,114,78,0.32), 0 60px 140px rgba(232,140,80,0.22), 0 0 0 1px rgba(193,114,78,0.06) !important; }
        .ob2-sidebar-logo { display:none; }
        .ob2-sidebar-logo-icon { display:none; }
        .ob2-sidebar-logo-text { display:none; }
        .ob2-sidebar-heading { font-size:32px;font-weight:800;color:#fff;line-height:1.2;margin-bottom:16px;position:relative;z-index:1;transition:opacity 0.3s ease;margin-top:60px; }
        .ob2-sidebar-desc { font-size:16px;color:rgba(255,255,255,0.7);line-height:1.6;position:relative;z-index:1;transition:opacity 0.3s ease;max-width:280px; }
        .ob2-sidebar-quote { margin-top:auto;padding-top:40px;position:relative;z-index:1;display:none; }
        .ob2-sidebar-stepper { margin-top:36px;display:flex;flex-direction:column;gap:22px;position:relative;z-index:1; }
        .ob2-step-item { display:flex;align-items:center;position:relative;opacity:0.45;transition:opacity .3s ease; }
        .ob2-step-item.active { opacity:1; }
        .ob2-step-item.done { opacity:0.85; }
        .ob2-step-indicator { width:28px;height:28px;border-radius:50%;border:1.5px solid rgba(255,255,255,0.7);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;color:rgba(255,255,255,0.9);margin-right:14px;background:transparent;z-index:2;transition:all .3s ease;flex-shrink:0; }
        .ob2-step-item.active .ob2-step-indicator { background:#fff;color:#5a4334;border-color:#fff;box-shadow:0 0 0 4px rgba(255,255,255,0.15); }
        .ob2-step-item.done .ob2-step-indicator { background:rgba(255,255,255,0.25);border-color:rgba(255,255,255,0.5); }
        .ob2-step-label { color:#fff;font-size:14px;font-weight:500;letter-spacing:-0.01em; }
        .ob2-step-item:not(:last-child)::after { content:'';position:absolute;top:30px;left:13px;width:2px;height:22px;background:rgba(255,255,255,0.25);z-index:1; }
        .ob2-step-item.done:not(:last-child)::after { background:rgba(255,255,255,0.5); }
        .ob2-sidebar-quote-text { font-size:14px;color:rgba(255,255,255,0.4);font-style:italic;line-height:1.5; }
        .ob2-sidebar-quote-author { font-size:12px;color:rgba(255,255,255,0.3);margin-top:8px; }
        .ob2-main { flex:1;display:flex;flex-direction:column;background:#fff;position:relative;min-height:0;overflow:hidden; }
        .ob2-content { flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 40px;overflow-y:auto;min-height:0; }
        /* James 2026-05-06: bumped step max-width 640 -> 940 so 3 role
           cards (280 each + 24 gap) fit on ONE row at default desktop
           sizing. Was wrapping to 2+1 on every viewport including 1080p,
           which then overflowed the panel vertically and clipped the
           step-title at the top. Inner elements (study-methods etc.)
           have their own narrower max-widths so they're unaffected. */
        .ob2-step { display:none;flex-direction:column;align-items:center;width:100%;max-width:940px;transition:opacity 0.4s ease,transform 0.4s ease; }
        .ob2-step.active { display:flex; }
        /* Step heading + description sized for the bigger desktop panel.
           Mobile @media block below caps these back to compact. */
        .ob2-step-title { font-size:32px;font-weight:700;color:#1a2b3c;margin-bottom:10px;text-align:center;letter-spacing:-0.01em; }
        .ob2-step-desc { font-size:17px;color:rgba(26,43,60,0.5);margin-bottom:40px;text-align:center;line-height:1.5; }
        /* Step 2 (Study methods), bumped grid + cards to match bigger
           ob2-panel. Grid max-width 430 -> 720, cards taller, larger
           icon + typography. Mobile @media block below caps these back. */
        .ob2-study-methods { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;width:100%;max-width:720px;margin:36px auto 0; }
        .ob2-method-card { position:relative;display:flex;align-items:center;gap:18px;min-height:104px;padding:22px 26px;border-radius:20px;border:1.5px solid #e2e7ed;background:linear-gradient(180deg,#ffffff 0%,#fbfcfd 100%);cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease,transform .18s ease;font-family:inherit;text-align:left;box-shadow:0 1px 2px rgba(15,23,42,0.04); }
        .ob2-method-card:hover { border-color:#cfd7e2;box-shadow:0 8px 20px rgba(31,41,55,0.07);transform:translateY(-1px); }
        .ob2-method-card:active { transform:translateY(0) scale(0.99); }
        .ob2-method-card.selected { border-color:#b95424 !important;background:linear-gradient(180deg,#fffaf6 0%,#fff4ec 100%) !important;box-shadow:0 0 0 3px rgba(185,84,36,0.11),0 10px 24px rgba(185,84,36,0.10) !important; }
        .ob2-method-card.selected::after { content:'';position:absolute;top:14px;right:14px;width:9px;height:9px;border-radius:999px;background:#b95424;box-shadow:0 0 0 4px rgba(185,84,36,0.12); }
        .ob2-method-icon { width:54px;height:54px;border-radius:16px;background:#f5f0eb;color:#9a512a;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .18s ease,color .18s ease,transform .18s ease; }
        .ob2-method-card.selected .ob2-method-icon { background:#b95424;color:#ffffff;transform:scale(1.03); }
        .ob2-method-icon i { width:26px;height:26px;stroke-width:2.1; }
        .ob2-method-copy { min-width:0; }
        .ob2-method-copy div { font-size:17px;font-weight:750;color:#223142;line-height:1.2;letter-spacing:-0.01em; }
        .ob2-method-copy span { display:block;margin-top:5px;font-size:13.5px;font-weight:600;color:rgba(34,49,66,0.47);line-height:1.3; }
        .ob2-method-card.selected .ob2-method-copy div { color:#7c3516; }
        .ob2-method-card.selected .ob2-method-copy span { color:rgba(124,53,22,0.60); }
        /* Step 4 toolkit cards (James 2026-05-17). Same visual language as
           the method cards but stacked (preview + icon + title + desc).
           Three cards in a row on desktop, single column on narrow screens.
           min-height bumped from 200 -> 0 so the preview-screen up top
           drives the height; with the preview added cards land around
           ~330px naturally. */
        .ob2-tools { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;width:100%;max-width:980px;margin:36px auto 0;align-items:stretch; }
        /* James 2026-05-18: cards are presentation-only (no pick-to-bias).
           Removed cursor:pointer + hover lift + selected state, they sit
           there for show. Static cards: just the card chrome. */
        .ob2-tool-card { position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:18px 18px 22px;border-radius:20px;border:1.5px solid #e2e7ed;background:linear-gradient(180deg,#ffffff 0%,#fbfcfd 100%);font-family:inherit;text-align:left;box-shadow:0 1px 2px rgba(15,23,42,0.04); }
        .ob2-tool-icon { width:48px;height:48px;border-radius:14px;background:#f5f0eb;color:#9a512a;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
        .ob2-tool-icon i { width:24px;height:24px;stroke-width:2.1; }
        .ob2-tool-title { font-size:18px;font-weight:750;color:#223142;line-height:1.2;letter-spacing:-0.01em; }
        .ob2-tool-desc { font-size:13.5px;font-weight:500;color:rgba(34,49,66,0.6);line-height:1.5; }

        /* ── Lock note above the cards ── */
        .ob2-tools-note {
            display: inline-flex; align-items: center; gap: 6px;
            margin: 22px auto 0; padding: 6px 14px; border-radius: 999px;
            background: rgba(34,49,66,0.04); color: rgba(34,49,66,0.55);
            font-size: 12.5px; font-weight: 500;
        }
        .ob2-tools-note i { width: 13px; height: 13px; opacity: 0.7; }

        /* ── Recommended badge floating over Ask AI ── */
        .ob2-tool-recommended {
            position: absolute; top: -10px; left: 16px; z-index: 2;
            display: inline-flex; align-items: center; gap: 4px;
            padding: 5px 11px; border-radius: 999px;
            background: rgba(255,239,224,0.95);
            border: 1px solid rgba(185,84,36,0.25);
            color: #b95424; font-size: 11px; font-weight: 700;
            letter-spacing: 0.01em;
            box-shadow: 0 4px 12px rgba(185,84,36,0.18);
            backdrop-filter: blur(4px);
        }
        .ob2-tool-recommended i { width: 12px; height: 12px; stroke-width: 2.4; }

        /* ── Tool preview "dashboard screenshot" at the top of each card.
           Three CSS-only mocks of the actual product UI. Outer chrome is
           shared (rounded soft-tinted panel, hairline border, inset
           highlight) so the row reads as a cohesive set; the inner
           content differs per tool. James 2026-05-17 v2. */
        .ob2-tool-preview {
            width: 100%;
            height: 175px;
            border-radius: 12px;
            margin-bottom: 8px;
            overflow: hidden;
            border: 1px solid rgba(15,23,42,0.06);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
            position: relative;
            background: #ffffff;
        }

        /* ────────── Ask AI: chat hero ──────────
           James 2026-05-18: flat background (no gradient), no status tag,
           no Recommended badge. Centered greeting + pill input + 3 chips. */
        .ob2-tool-preview--chat {
            padding: 14px 14px 12px;
            display: flex; flex-direction: column;
            justify-content: center; gap: 8px;
            background: #ffffff;
            position: relative;
        }
        .ob2-mock-chat-greet {
            font-size: 15px; font-weight: 700; color: #1a2b3c;
            letter-spacing: -0.02em; line-height: 1.15;
            margin: 0 0 2px;
        }
        .ob2-mock-chat-input {
            display: flex; align-items: center; gap: 6px;
            background: #fff; border: 1px solid rgba(15,23,42,0.08);
            border-radius: 999px; padding: 6px 6px 6px 12px;
            box-shadow: 0 2px 6px rgba(15,23,42,0.05);
        }
        .ob2-mock-chat-placeholder {
            flex: 1; font-size: 10px; color: rgba(34,49,66,0.42);
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .ob2-mock-chat-send {
            width: 20px; height: 20px; border-radius: 50%;
            background: #15172a; flex-shrink: 0; position: relative;
            box-shadow: 0 1px 3px rgba(15,23,42,0.25);
        }
        /* Send-arrow triangle. Base shape points UP (border-bottom is
           the only colored border). rotate(90deg) turns it to point
           RIGHT, which is the standard send-direction. The earlier
           rotate(-90deg) was pointing it LEFT. James 2026-05-18. */
        .ob2-mock-chat-send::after {
            content: ''; position: absolute; left: 50%; top: 50%;
            transform: translate(-50%,-50%) rotate(90deg);
            width: 0; height: 0;
            border-left: 4px solid transparent; border-right: 4px solid transparent;
            border-bottom: 5px solid #fff;
        }
        .ob2-mock-chat-chips { display: flex; gap: 5px; flex-wrap: wrap; }
        .ob2-mock-chat-chip {
            padding: 3px 9px; border-radius: 999px;
            background: rgba(15,23,42,0.05); color: rgba(34,49,66,0.62);
            font-size: 9.5px; font-weight: 600;
        }
        .ob2-mock-chat-chip--accent {
            background: rgba(185,84,36,0.12); color: #7c3516;
        }

        /* ────────── Co-Writer: template gallery ────────── */
        .ob2-tool-preview--cw {
            padding: 10px;
            display: flex; flex-direction: column; gap: 7px;
            background: #fafafa;
        }
        .ob2-mock-cw-bar {
            display: flex; align-items: center; justify-content: space-between;
            background: #fff; border: 1px solid rgba(15,23,42,0.06);
            border-radius: 6px; padding: 5px 8px;
            font-size: 8.5px; color: rgba(34,49,66,0.7); font-weight: 600;
        }
        .ob2-mock-cw-bar-left { display: inline-flex; align-items: center; gap: 5px; }
        .ob2-mock-cw-bar-icon { width: 8px; height: 8px; border-radius: 2px; background: rgba(34,49,66,0.3); display: inline-block; }
        .ob2-mock-cw-bar-right { color: rgba(34,49,66,0.45); font-weight: 500; }
        .ob2-mock-cw-templates {
            display: grid; grid-template-columns: repeat(4, 1fr);
            gap: 6px;
        }
        .ob2-mock-cw-tile {
            aspect-ratio: 3/4; background: #fff;
            border: 1px solid rgba(15,23,42,0.08); border-radius: 5px;
            position: relative; overflow: hidden;
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 1px 2px rgba(15,23,42,0.04);
        }
        .ob2-mock-cw-plus {
            color: rgba(34,49,66,0.35); font-size: 16px; font-weight: 300;
        }
        .ob2-mock-cw-stripe {
            position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
        }
        .ob2-mock-cw-tilelabels {
            display: grid; grid-template-columns: repeat(4, 1fr);
            gap: 6px; padding: 0 1px;
        }
        .ob2-mock-cw-tilelabels span {
            font-size: 7.5px; font-weight: 700;
            color: rgba(34,49,66,0.55); text-align: center;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .ob2-mock-cw-recent {
            display: flex; align-items: center; justify-content: space-between;
            font-size: 8.5px; color: rgba(34,49,66,0.55); font-weight: 600;
            padding-top: 2px;
        }
        .ob2-mock-cw-recent-icons { font-size: 8.5px; opacity: 0.5; letter-spacing: 2px; }

        /* ────────── Notebooks: search + notebook card ────────── */
        .ob2-tool-preview--nb {
            padding: 10px;
            display: flex; flex-direction: column; gap: 7px;
            background: #fafafa;
        }
        .ob2-mock-nb-toolbar {
            display: flex; gap: 4px; align-items: center;
            font-size: 8px; font-weight: 600;
        }
        .ob2-mock-nb-search {
            flex: 1; min-width: 0;
            background: #fff; border: 1px solid rgba(15,23,42,0.08);
            border-radius: 999px; padding: 4px 8px;
            color: rgba(34,49,66,0.42); font-size: 8px;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .ob2-mock-nb-newbtn {
            background: #2563eb; color: #fff;
            padding: 4px 8px; border-radius: 999px; flex-shrink: 0;
            font-size: 8px; font-weight: 700;
        }
        .ob2-mock-nb-import {
            background: #fff; color: rgba(34,49,66,0.7);
            border: 1px solid rgba(15,23,42,0.10);
            padding: 4px 8px; border-radius: 999px; flex-shrink: 0;
            font-size: 8px;
        }
        .ob2-mock-nb-meta {
            display: flex; justify-content: space-between;
            font-size: 7.5px; color: rgba(34,49,66,0.5); font-weight: 500;
        }
        .ob2-mock-nb-card {
            display: flex; align-items: flex-start; gap: 8px;
            background: rgba(185,84,36,0.06);
            border: 1px solid rgba(185,84,36,0.10);
            border-radius: 8px; padding: 9px 10px;
        }
        .ob2-mock-nb-card-icon {
            width: 24px; height: 24px; border-radius: 6px;
            background: #fff; display: inline-flex;
            align-items: center; justify-content: center;
            font-size: 12px; flex-shrink: 0;
            box-shadow: 0 1px 2px rgba(15,23,42,0.06);
        }
        .ob2-mock-nb-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
        .ob2-mock-nb-card-title {
            font-size: 9.5px; font-weight: 700; color: #223142;
            letter-spacing: -0.005em; line-height: 1.25;
        }
        .ob2-mock-nb-card-meta {
            font-size: 7.5px; color: rgba(34,49,66,0.5);
        }

        @media (max-width: 768px) {
            .ob2-tools { grid-template-columns: 1fr; gap: 14px; max-width: 480px; }
            .ob2-tool-card { padding: 14px 14px 18px; }
            .ob2-tool-icon { width: 42px; height: 42px; }
            .ob2-tool-icon i { width: 20px; height: 20px; }
            .ob2-tool-title { font-size: 16px; }
            .ob2-tool-desc { font-size: 13px; }
            .ob2-tool-preview { height: 155px; }
        }
        /* Role cards (Step 1) */
        /* Step 1 (Role), bumped to fill the bigger ob2-panel.
           Cards: 150 -> 200 wide, icon 80 -> 120, label 14 -> 18px.
           Mobile @media block below caps these back to compact. */
        /* James 2026-05-06: redesigned to match the screenshot mockup ,
           bigger image area filling most of the card, role label below
           with a tagline ("I'm here to learn and grow" etc.), and a
           rust circular checkmark in the top-right when selected. */
        .ob2-roles { display:flex;gap:24px;margin-bottom:48px;justify-content:center;flex-wrap:wrap; }
        .ob2-role-card { width:280px;padding:0;border:1.5px solid rgba(15,23,42,0.08);border-radius:24px;cursor:pointer;transition:all 0.2s ease;display:flex;flex-direction:column;align-items:stretch;gap:0;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,0.04), 0 4px 16px rgba(15,23,42,0.04);position:relative;overflow:hidden; }
        .ob2-role-card:hover { border-color:rgba(193,114,78,0.35);transform:translateY(-4px);box-shadow:0 1px 2px rgba(15,23,42,0.04), 0 12px 28px rgba(193,114,78,0.16); }
        .ob2-role-card.selected { border-color:#e8853a;background:#fff;box-shadow:0 0 0 2px rgba(232,133,58,0.30), 0 12px 32px rgba(232,133,58,0.22);transform:translateY(-2px); }
        .ob2-role-card-check { position:absolute;top:14px;right:14px;width:30px;height:30px;border-radius:50%;background:#e8853a;display:none;align-items:center;justify-content:center;color:#fff;z-index:2;box-shadow:0 4px 10px rgba(232,133,58,0.35); }
        .ob2-role-card-check i { width:16px;height:16px;stroke-width:3; }
        .ob2-role-card.selected .ob2-role-card-check { display:flex; }
        .ob2-role-card-icon { width:100%;height:240px;background:linear-gradient(165deg,#fff8f3 0%,#fdeee0 100%);display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:22px 22px 0 0; }
        .ob2-role-card-icon img { width:100%;height:100%;object-fit:contain;border-radius:0; }
        .ob2-role-card-label { font-family:'Ramillas','Playfair Display',Georgia,serif;font-size:26px;font-weight:700;color:#15172a;letter-spacing:-0.01em;text-align:center;margin:18px 16px 4px; }
        .ob2-role-card-tag { font-size:14px;font-weight:500;color:rgba(15,23,42,0.55);text-align:center;margin:0 16px 22px;line-height:1.4; }
        /* Sub-options pills (Step 1) */
        /* Sub-pills (College/University, Grade 9-12, Graduate School,
           Professional, Teacher), James 2026-05-06 bigger + warmer.
           Was 14/28 padding, now 18/34 with bigger type. Selected
           state matches the role-card rust accent. */
        .ob2-sub-options { display:flex;flex-wrap:wrap;gap:16px;justify-content:center;margin-bottom:28px; }
        .ob2-sub-opt { padding:18px 34px;border:1.5px solid rgba(15,23,42,0.10);border-radius:100px;cursor:pointer;font-size:17px;font-weight:600;color:#3a4a5c;background:#fff;transition:all 0.18s ease;font-family:inherit;box-shadow:0 1px 2px rgba(15,23,42,0.03); }
        .ob2-sub-opt:hover { border-color:rgba(193,114,78,0.35);background:#fffaf5;color:#1a2b3c;transform:translateY(-1px);box-shadow:0 4px 12px rgba(193,114,78,0.12); }
        .ob2-sub-opt.selected { border-color:#c1724e;background:rgba(193,114,78,0.08);color:#1a2b3c;box-shadow:0 0 0 2px rgba(193,114,78,0.18); }
        .ob2-sub-opt.hidden { display:none; }
        /* Google login button */
        .ob2-google-btn { display:flex;align-items:center;gap:10px;padding:12px 28px;border:1.5px solid #dde1e6;border-radius:12px;background:#fff;font-size:14px;font-weight:600;color:#3a4a5c;cursor:pointer;transition:all 0.2s;font-family:inherit; }
        .ob2-google-btn:hover { border-color:#8a9aac;background:#f8fafb;transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,0,0,0.06); }
        /* Bigger sign-in CTA on the desktop sign-in step (James asked for
           the whole sign-in card to be bumped up). Mobile keeps the
           default sizing via the @media block below. */
        .ob2-google-btn-lg { padding:18px 0;font-size:17px;border-radius:14px;gap:12px;width:100%;justify-content:center; }
        /* Sign-in card */
        /* Sign-in card sized for the bigger ob2-panel (1240×800).
           James asked for "a tad bigger" after removing the corner X. */
        .ob2-signin-card { display:flex;flex-direction:column;align-items:center;width:100%;max-width:600px;padding:60px 56px;background:#fff;border:1.5px solid #e8ecf0;border-radius:24px;box-shadow:0 12px 40px rgba(0,0,0,0.06); }
        /* Title / description scoped to the sign-in card only. */
        .ob2-signin-card .ob2-step-title { font-size:36px;margin-bottom:12px; }
        .ob2-signin-card .ob2-step-desc { font-size:17px;margin-bottom:36px; }
        .ob2-signin-header { text-align:center;width:100%; }
        /* iMessage button card */
        .ob2-imsg-btn-card { display:flex;align-items:center;justify-content:space-between;width:100%;padding:18px 22px;background:#f8fafb;border:1.5px solid #e8ecf0;border-radius:16px;cursor:pointer;transition:all 0.2s;font-family:inherit;text-align:left; }
        .ob2-imsg-btn-card:hover { border-color:#bcc5cf;background:#f0f4f7;transform:translateY(-1px); }
        .ob2-imsg-btn-left { display:flex;align-items:center;gap:12px; }
        /* Continue button */
        .ob2-btn { display:flex;align-items:center;gap:8px;padding:14px 32px;background:#2a2a3a;color:#fff;border:none;border-radius:12px;font-size:15px;font-weight:600;cursor:pointer;transition:all 0.2s;font-family:inherit;margin-left:auto; }
        .ob2-btn:hover { background:#3a3a4a;transform:translateY(-1px); }
        .ob2-btn.disabled { opacity:0.3;pointer-events:none; }
        .ob2-btn i { width:16px;height:16px; }
        /* James 2026-05-18: rust-accent variant for the toolkit step's
           "Sign in to continue" CTA. Brand color + larger radius + a
           soft glow so it reads as the primary action. */
        .ob2-btn--accent { background: linear-gradient(180deg, #d96a36 0%, #b95424 100%); border-radius: 999px; padding: 14px 28px; box-shadow: 0 6px 18px rgba(185,84,36,0.32), inset 0 1px 0 rgba(255,255,255,0.18); }
        .ob2-btn--accent:hover { background: linear-gradient(180deg, #e07a48 0%, #c05f30 100%); box-shadow: 0 8px 22px rgba(185,84,36,0.38), inset 0 1px 0 rgba(255,255,255,0.18); }
        /* Reassurance row on the left of the bottom bar, shield in a
           soft-tinted circle next to a 2-line message. Step-4 only. */
        .ob2-bottom-reassure {
            display: flex; align-items: center; gap: 10px;
            margin-right: 8px;
        }
        .ob2-reassure-icon {
            display: inline-flex; align-items: center; justify-content: center;
            width: 36px; height: 36px; border-radius: 50%;
            background: rgba(185,84,36,0.10); color: #b95424;
            flex-shrink: 0;
        }
        .ob2-reassure-icon i { width: 17px; height: 17px; }
        .ob2-reassure-text {
            font-size: 12.5px; line-height: 1.3;
            color: rgba(26,43,60,0.65); font-weight: 500;
        }
        @media (max-width: 768px) {
            .ob2-bottom-reassure .ob2-reassure-text { display: none; }
            .ob2-bottom-reassure { margin-right: 4px; }
        }
        .ob2-skip { background:none;border:none;color:rgba(26,43,60,0.4);font-size:13px;font-weight:500;cursor:pointer;font-family:inherit;padding:8px 16px; }
        .ob2-skip:hover { color:#1a2b3c; }
        /* Bottom bar */
        .ob2-bottom { display:flex;align-items:center;padding:20px 40px;border-top:1px solid #eef1f4;gap:16px;flex-shrink:0; }
        .ob2-bottom-left { font-size:13px;color:rgba(26,43,60,0.35);font-weight:500;white-space:nowrap; }
        .ob2-dots { display:flex;gap:6px;align-items:center; }
        .ob2-dot { width:8px;height:8px;border-radius:50%;background:#d4d9e0;transition:all 0.3s; }
        .ob2-dot.active { background:#6b7b8d; }
        .ob2-dot.done { background:#6b7b8d; }
        .ob2-bottom-right { display:flex;gap:12px;align-items:center;margin-left:auto; }
        /* Classes input (Step 2) */
        .ob2-classes-input { width:100%;max-width:500px;padding:16px 20px;background:#f8fafb;border:1.5px solid #dde1e6;border-radius:14px;color:#1a2b3c;font-size:16px;font-family:inherit;outline:none;box-sizing:border-box;transition:border-color 0.2s; }
        .ob2-classes-input:focus { border-color:#8a9aac; }
        .ob2-classes-input::placeholder { color:rgba(26,43,60,0.35); }
        .ob2-chips { display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:16px; }
        .ob2-chip { padding:8px 16px;border:1px solid #dde1e6;border-radius:100px;font-size:13px;color:#5a6a7c;cursor:pointer;transition:all 0.2s;font-family:inherit;background:transparent; }
        .ob2-chip:hover { border-color:#8a9aac;color:#1a2b3c; }
        /* Feature cards (Step 3 & 5) */
        .ob2-features { display:grid;grid-template-columns:1fr 1fr;gap:16px;width:100%;max-width:540px; }
        .ob2-feature-card { padding:24px;border:1.5px solid #e8ecf0;border-radius:16px;text-align:left;background:#f8fafb;transition:all 0.2s; }
        .ob2-feature-card:hover { border-color:#bcc5cf;transform:translateY(-1px); }
        .ob2-feature-card-icon { width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;margin-bottom:12px; }
        .ob2-feature-card-icon i { width:20px;height:20px; }
        .ob2-feature-card-title { font-size:14px;font-weight:700;color:#1a2b3c;margin-bottom:4px; }
        .ob2-feature-card-desc { font-size:12px;color:rgba(26,43,60,0.55);line-height:1.5; }
        /* Phone connect (Step 4) */
        .ob2-phone-card { background:#f8fafb;border:1.5px solid #dde1e6;border-radius:16px;padding:32px;text-align:center;width:100%;max-width:380px; }
        .ob2-phone-code { font-size:48px;font-weight:800;letter-spacing:12px;color:#e8853a;margin:16px 0;font-variant-numeric:tabular-nums; }
        .ob2-phone-number { font-size:17px;font-weight:600;color:#1a2b3c;margin-bottom:4px; }
        .ob2-phone-waiting { display:flex;align-items:center;justify-content:center;gap:8px;color:rgba(26,43,60,0.5);font-size:13px;margin-top:14px; }
        .ob2-phone-waiting .spinner { width:14px;height:14px;border:2px solid rgba(0,0,0,0.1);border-top-color:#e8853a;border-radius:50%;-webkit-animation:spin 0.8s linear infinite;animation:spin 0.8s linear infinite; }
        .ob2-phone-divider { display:flex;align-items:center;gap:12px;margin:24px 0 16px;width:100%;max-width:380px;color:rgba(26,43,60,0.35);font-size:13px; }
        .ob2-phone-divider::before,.ob2-phone-divider::after { content:'';flex:1;height:1px;background:#dde1e6; }
        .ob2-phone-connected { color:#22c55e;font-weight:600;font-size:16px;display:flex;align-items:center;gap:8px;justify-content:center;margin-top:12px; }
        /* Completion (Step 5) */
        .ob2-check { width:72px;height:72px;border-radius:50%;background:linear-gradient(135deg,#22c55e,#16a34a);display:flex;align-items:center;justify-content:center;margin-bottom:24px; }
        .ob2-check i { width:36px;height:36px;color:#fff;stroke-width:3; }
        /* Browser mockup */
        .ob2-mockup-wrapper { position:relative;width:100%;max-width:620px;margin:0 auto;padding:40px 20px; }
        .ob2-mockup { background:#fff;border-radius:12px;border:1.5px solid #dde1e6;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,0.08),0 0 0 1px rgba(0,0,0,0.04); }
        .ob2-mockup-bar { display:flex;align-items:center;gap:6px;padding:10px 14px;background:#f5f7fa;border-bottom:1px solid #eef1f4; }
        .ob2-mockup-dot { width:10px;height:10px;border-radius:50%; }
        .ob2-mockup-url { flex:1;margin-left:14px;padding:5px 14px;background:#eef1f4;border-radius:6px;font-size:11px;color:#8a9aac;display:flex;align-items:center;gap:6px; }
        .ob2-mockup-url i { width:10px;height:10px;opacity:0.5; }
        .ob2-mockup-body { padding:16px;min-height:240px;display:flex;gap:12px; }
        /* Mini sidebar inside mockup */
        .ob2-mock-sidebar { width:120px;flex-shrink:0;display:flex;flex-direction:column;gap:6px;padding:8px;background:#f8fafb;border-radius:8px; }
        .ob2-mock-nav { padding:8px 10px;border-radius:6px;font-size:10px;color:#8a9aac;display:flex;align-items:center;gap:6px; }
        .ob2-mock-nav.active { background:rgba(232,133,58,0.1);color:#e8853a; }
        .ob2-mock-nav i { width:12px;height:12px; }
        /* Mini content inside mockup */
        .ob2-mock-content { flex:1;display:flex;flex-direction:column;gap:8px; }
        .ob2-mock-header { font-size:14px;font-weight:700;color:#1a2b3c;margin-bottom:4px; }
        .ob2-mock-row { display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:8px;border:1px solid #eef1f4;background:#fff; }
        .ob2-mock-row-accent { width:3px;height:28px;border-radius:2px;flex-shrink:0; }
        .ob2-mock-row-text { flex:1; }
        .ob2-mock-row-title { font-size:10px;font-weight:600;color:#1a2b3c;line-height:1.3; }
        .ob2-mock-row-sub { font-size:8px;color:#8a9aac;margin-top:2px; }
        .ob2-mock-pills { display:flex;gap:4px;margin-left:auto; }
        .ob2-mock-pill { padding:2px 6px;border-radius:4px;font-size:7px;font-weight:600; }
        /* Floating feature labels */
        .ob2-float-label { position:absolute;display:flex;align-items:center;gap:10px;padding:10px 18px;background:#fff;border:1.5px solid #e8ecf0;border-radius:14px;box-shadow:0 8px 24px rgba(0,0,0,0.06);white-space:nowrap;z-index:2;transition:transform 0.3s ease,box-shadow 0.3s ease;animation:ob2FloatIn 0.6s ease both; }
        .ob2-float-label:hover { transform:translateY(-3px);box-shadow:0 12px 32px rgba(0,0,0,0.1); }
        .ob2-float-label:nth-child(2) { animation-delay:0.1s; }
        .ob2-float-label:nth-child(3) { animation-delay:0.2s; }
        .ob2-float-label:nth-child(4) { animation-delay:0.3s; }
        .ob2-float-label:nth-child(5) { animation-delay:0.4s; }
        .ob2-float-label:nth-child(6) { animation-delay:0.5s; }
        .ob2-float-label-icon { width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
        .ob2-float-label-icon i { width:17px;height:17px; }
        .ob2-float-label-text { font-size:13px;font-weight:600;color:#1a2b3c; }
        @keyframes ob2FloatIn { from { opacity:0;transform:translateY(12px); } to { opacity:1;transform:translateY(0); } }

        /* ── Laptop (mouse-driven, ≤900px tall) ──
           James 2026-05-06 v3: previous breakpoint (≤1100px) was firing
           on 1080p displays and shrinking everything for big monitors
           too. Tightened to ≤900px so only laptops with limited vertical
           room hit this compression, 1080p (height 1080), 1440p, 4K
           all get the full default desktop layout. Doesn't fire on
           phones (max-width:768px) or iPad (pointer:coarse). */
        @media (hover: hover) and (pointer: fine) and (max-height: 900px) {
            .ob2-overlay { padding: 8px; align-items: center; }
            .ob2-panel { height: 96vh; max-height: none; max-width: 1180px; transform: perspective(1400px) rotateY(-0.5deg) rotateX(0.3deg); }
            .ob2-sidebar { width: 26%; min-width: 220px; padding: 32px 28px; }
            .ob2-sidebar-heading { font-size: 24px; margin-top: 22px; margin-bottom: 12px; }
            .ob2-sidebar-desc { font-size: 14px; }
            .ob2-sidebar-stepper { margin-top: 24px; gap: 18px; }
            .ob2-step-item:not(:last-child)::after { top: 28px; height: 14px; }
            /* Center content vertically and give more breathing room.
               James asked: "make text bigger and lower it, center the
               images aswell." */
            .ob2-content { padding: 36px 48px; justify-content: center; }
            .ob2-step { align-items: center; }
            .ob2-step-title { font-size: 28px; margin-bottom: 8px; }
            .ob2-step-desc { font-size: 16px; margin-bottom: 28px; }
            /* Role cards, slightly bigger, fully centered. Image area
               grows back from 130 -> 160px so the illustrations breathe.
               Card width 200 -> 220 for balance. Three cards still fit
               at typical 1280-1366 viewports. */
            .ob2-roles { gap: 20px; margin-bottom: 20px; justify-content: center; }
            .ob2-role-card { width: 220px; }
            .ob2-role-card-icon { height: 160px; border-radius: 22px 22px 0 0; }
            .ob2-role-card-label { font-size: 22px; margin: 14px 14px 4px; }
            .ob2-role-card-tag { font-size: 13px; margin: 0 14px 16px; line-height: 1.35; }
            .ob2-role-card-check { width: 26px; height: 26px; top: 10px; right: 10px; }
            .ob2-role-card-check i { width: 14px; height: 14px; }
            /* Sub-pills bumped to match */
            .ob2-sub-options { gap: 12px; margin-bottom: 16px; }
            .ob2-sub-opt { padding: 13px 26px; font-size: 15px; }
            /* Sign-in card, also bumped */
            .ob2-signin-card { padding: 40px 44px; max-width: 520px; }
            .ob2-signin-card .ob2-step-title { font-size: 28px; margin-bottom: 8px; }
            .ob2-signin-card .ob2-step-desc { font-size: 15px; margin-bottom: 24px; }
            .ob2-google-btn-lg { padding: 14px 0; font-size: 15px; border-radius: 12px; }
            /* Study methods grid */
            .ob2-study-methods { max-width: 620px; gap: 14px; margin-top: 24px; }
            .ob2-method-card { min-height: 84px; padding: 16px 20px; }
            .ob2-method-icon { width: 44px; height: 44px; }
            .ob2-method-icon i { width: 22px; height: 22px; }
            .ob2-method-copy div { font-size: 15.5px; }
            .ob2-method-copy span { font-size: 12.5px; }
            .ob2-bottom { padding: 14px 32px; }
        }

        /* ── Tablet (iPad portrait, touch + 769–1199px) ──
           Keep the original desktop panel shape (perspective tilt, 92% width,
           88vh height, 800px max-height). Only override what's necessary so
           the 3 role cards fit: narrower sidebar + slightly smaller cards.
           Math: panel 92vw ≈ 754px @ iPad 820 → sidebar 180px → ~454px for
           cards → 3 × 140 + 2 × 14 = 448px → fits with breathing room. */
        @media (pointer: coarse) and (min-width: 769px) and (max-width: 1199px) {
            .ob2-sidebar { width: 180px; min-width: 180px; padding: 40px 22px; }
            .ob2-sidebar-heading { font-size: 22px; margin-top: 40px; }
            .ob2-sidebar-desc { font-size: 13px; }
            .ob2-content { padding: 32px 30px; }
            .ob2-roles { gap: 14px; }
            .ob2-role-card { width: 140px; padding: 22px 14px 18px; }
            .ob2-role-card-icon { width: 90px; height: 90px; border-radius: 16px; }
            .ob2-role-card-label { font-size: 15px; }
        }

        /* Mobile */
        @media (max-width:768px) {
            /* Fullscreen onboarding on mobile, hide everything else */
            body.ob2-active .mobile-nav,
            body.ob2-active #mobileNav,
            body.ob2-active .sets-fab,
            body.ob2-active .sidebar-collapse-btn,
            body.ob2-active .khio-hamburger,
            body.ob2-active #khio-pwa-tabbar,
            body.ob2-active #khio-mobile-nav,
            body.ob2-active [class*="hamburger"] { display:none !important; }
            .ob2-overlay { padding:0;align-items:stretch; }
            .ob2-overlay ~ .mobile-nav,
            .ob2-overlay ~ #mobileNav { display:none !important; }
            .ob2-panel { flex-direction:column;width:100%;max-width:100%;height:100vh;height:100dvh;max-height:none;border-radius:0;margin:0;overflow-y:auto; }
            .ob2-sidebar { width:100%;min-width:unset;padding:24px 24px 16px;flex:0 0 auto;border-radius:0; }
            .ob2-sidebar-heading { font-size:22px;margin-top:0; }
            .ob2-sidebar-desc { font-size:13px;display:none; }
            .ob2-sidebar-quote { display:none; }
            .ob2-sidebar-stepper { display:none; }
            .ob2-sidebar-logo { margin-bottom:12px; }
            .ob2-main { flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden; }
            .ob2-content { padding:20px 20px 80px;flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch; }
            .ob2-step-title { font-size:20px;margin-bottom:4px; }
            .ob2-step-desc { font-size:13px;margin-bottom:16px; }
            .ob2-study-methods { grid-template-columns:1fr;gap:10px;margin-top:18px;max-width:360px; }
            .ob2-method-card { min-height:68px;padding:13px 14px;border-radius:14px; }
            .ob2-method-icon { width:38px;height:38px;border-radius:12px; }
            .ob2-method-icon i { width:18px;height:18px; }
            .ob2-roles { flex-wrap:wrap;gap:10px;justify-content:center; }
            .ob2-role-card { width:100px;padding:12px 10px 10px; }
            .ob2-role-card-icon { width:56px;height:56px; }
            .ob2-role-card-label { font-size:12px; }
            .ob2-features { grid-template-columns:1fr;gap:8px; }
            .ob2-bottom { position:fixed;bottom:0;left:0;right:0;padding:14px 20px calc(14px + env(safe-area-inset-bottom,0px));border-top:1px solid rgba(0,0,0,0.06);background:#fff;z-index:10; }
            .ob2-mockup-wrapper { padding:16px 0; }
            .ob2-float-label { padding:6px 10px;font-size:10px; }
            .ob2-float-label-icon { width:24px;height:24px; }
            .ob2-float-label-icon i { width:12px;height:12px; }
            .ob2-mock-sidebar { display:none; }
            .ob2-mockup-body { min-height:140px; }
            .ob2-sub-options { gap:8px; }
            .ob2-sub-opt { padding:10px 16px;font-size:13px; }
            .ob2-google-btn { font-size:15px;padding:12px 24px; }
            .ob2-imsg-btn-card { padding:12px 16px; }
        }

        /* ═══════════════════════════════════════════
           OB3: MOBILE NATIVE ONBOARDING
           ═══════════════════════════════════════════ */
        .ob3 {
            position:fixed;inset:0;z-index:600;
            background-color: #ffffff;
            display:flex;flex-direction:column;color:#0a0a0a;font-family:-apple-system,BlinkMacSystemFont,'Inter','SF Pro Display','Segoe UI',sans-serif;overflow:hidden;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
        }
        .ob3-topbar { position:relative;margin:0 -24px 14px;padding:calc(env(safe-area-inset-top,0px) + 14px) 28px 10px;background:transparent;display:flex;align-items:center;gap:14px;min-height:48px; }
        /* Progress bar, 3D track + filled-up bevel. James asked for
           "nice and 3d looking too and bigger." Track has an inset
           shadow so it reads as carved into the surface; the fill has
           a top inner highlight, a bottom inset darkener, and a glow
           halo so it looks like an extruded plastic bar gliding
           through the groove. */
        .ob3-progress {
            position:relative;flex:1;
            height:14px;
            background:linear-gradient(180deg, #e6e8ee 0%, #f1f3f7 100%);
            border-radius:99px;
            box-shadow:
                inset 0 2px 4px rgba(15,23,42,0.10),
                inset 0 -1px 0 rgba(255,255,255,0.9),
                0 1px 0 rgba(255,255,255,0.7);
            overflow:hidden;
        }
        .ob3-progress-fill {
            height:100%;
            background:linear-gradient(180deg, #ffb076 0%, #f3a86a 45%, #e8853a 100%);
            border-radius:99px;
            transition:width 0.4s cubic-bezier(0.16,1,0.3,1);
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.55),
                inset 0 -2px 3px rgba(176,76,12,0.30),
                0 0 10px rgba(232,133,58,0.45);
            position:relative;
        }
        /* A faint moving sheen across the fill so the bar feels alive. */
        .ob3-progress-fill::after {
            content:'';
            position:absolute;
            top:1px;left:8%;right:8%;
            height:35%;
            border-radius:99px;
            background:linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 100%);
            pointer-events:none;
        }
        .ob3-back { position:relative;background:rgba(15,23,42,0.04);border:none;color:#0a0a0a;width:38px;height:38px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:50%;transition:background 0.15s;flex-shrink:0;margin-left:-4px; }
        .ob3-back:active { background:rgba(15,23,42,0.08); }
        /* Default = no-scroll. ob3Show() adds .ob3-step--scroll only when
           the actual content overflows the viewport, so steps that fit get
           a locked, rubber-band-free experience on iOS. */
        .ob3-step { display:none;flex-direction:column;flex:1;padding:0 24px 24px;overflow:hidden;overscroll-behavior:contain;position:relative; }
        .ob3-step.active { display:flex; }
        .ob3-step.ob3-step--scroll { overflow-y:auto;-webkit-overflow-scrolling:touch; }
        .ob3-step-center { display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 auto;text-align:center; }
        .ob3-hero-title { font-size:36px;font-weight:900;line-height:1.1;letter-spacing:-0.02em;margin-bottom:12px; }
        .ob3-accent { color:var(--study-accent,#e8853a); }
        .ob3-hero-sub { font-size:16px;color:rgba(255,255,255,0.5);margin-bottom:28px; }
        .ob3-avatars { display:flex;align-items:center;justify-content:center; }
        .ob3-avatars img { width:36px;height:36px;border-radius:50%;border:2px solid #0a0a0a;margin-left:-8px; }
        .ob3-avatars img:first-child { margin-left:0; }
        .ob3-trust-badge { display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border-radius:999px;background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.08);margin-bottom:24px; }
        .ob3-trust-icon { font-size:18px; }
        .ob3-trust-text { font-size:12px;font-weight:700;color:rgba(255,255,255,0.7);letter-spacing:0.05em;text-transform:uppercase; }
        /* OB3 Step 1: Light Welcome Screen */
        .ob3-step-welcome { background:transparent !important;color:#0a0a0a !important;padding:calc(env(safe-area-inset-top,0px) + 8px) 28px calc(env(safe-area-inset-bottom,0px) + 20px) !important;overflow:hidden !important;flex-direction:column;align-items:center;justify-content:center;overscroll-behavior:none;touch-action:none; }
        .ob3-step-welcome.active { display:flex; }
        /* Hide mobile nav when onboarding is visible */
        .ob3[style*="flex"] ~ .mobile-nav,
        .ob3[style*="flex"] ~ #mobileNav,
        body:has(.ob3[style*="flex"]) .mobile-nav { display:none !important; }
        .ob3-step-welcome .ob3-welcome-top { display:flex;align-items:center;justify-content:flex-end;padding:0;position:relative;z-index:2; }
        .ob3-welcome-skip { position:fixed;top:calc(env(safe-area-inset-top,0px) + 12px);right:16px;background:none;border:none;color:rgba(15,23,42,0.45);font-size:14px;font-weight:600;cursor:pointer;font-family:inherit;z-index:999;text-transform:capitalize; }
        /* Welcome step, the image is the FULL background (object-fit:cover,
           absolute inset:0). The CTA + sign-in link overlay the bottom of
           the screen with a soft cream-to-transparent gradient scrim so the
           buttons remain legible against any part of the art.
           The `loaded` class is added by study.html once the img decodes so
           the overlay doesn't flash in before the art lands. */
        .ob3-step-welcome { position: relative; padding: 0; }
        .ob3-welcome-img {
            position: absolute; inset: 0;
            width: 100%; height: 100%;
            object-fit: cover;
            object-position: center top;
            opacity: 0;
            transform: scale(1.005);
            transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), transform 0.55s cubic-bezier(0.16,1,0.3,1);
            z-index: 0;
        }
        .ob3-welcome-img.loaded { opacity: 1; transform: scale(1); }
        /* Bottom overlay, holds the button + sign-in link + dots */
        .ob3-welcome-overlay {
            position: absolute; left: 0; right: 0; bottom: 0;
            padding: 80px 22px calc(env(safe-area-inset-bottom, 0px) + 28px);
            display: flex; flex-direction: column; justify-content: flex-end;
            z-index: 1;
            pointer-events: none;
            background: linear-gradient(180deg, rgba(252,246,239,0) 0%, rgba(252,246,239,0.55) 40%, rgba(252,246,239,0.95) 80%, #fcf6ef 100%);
        }
        .ob3-welcome-overlay > * { pointer-events: auto; }
        .ob3-step-welcome.media-ready .ob3-welcome-actions { animation: ob3FadeUp 0.55s cubic-bezier(0.16,1,0.3,1) 0.15s both; }
        .ob3-step-welcome:not(.media-ready) .ob3-welcome-actions { opacity: 0; }
        .ob3-welcome-actions { width:100%;display:flex;flex-direction:column;justify-content:center;gap:14px; }
        .ob3-welcome-dots { display:flex;align-items:center;justify-content:center;gap:6px;margin-top:6px; }
        .ob3-dot { width:7px;height:7px;border-radius:50%;background:rgba(15,23,42,0.18); }
        .ob3-dot.active { background:#e8853a;width:22px;border-radius:99px; }
        @keyframes ob3BtnPulse { 0%,100% { box-shadow:0 4px 16px rgba(232,133,58,0.28); } 50% { box-shadow:0 8px 24px rgba(232,133,58,0.42); } }
        .ob3-welcome-continue { width:100%;padding:17px;background:#e8853a;color:#fff;border:none;border-radius:16px;font-size:16px;font-weight:700;cursor:pointer;font-family:inherit;transition:transform 0.15s, box-shadow 0.15s, background 0.15s;box-shadow:0 8px 20px rgba(232,133,58,0.32), 0 2px 6px rgba(232,133,58,0.18);letter-spacing:0.01em;display:inline-flex;align-items:center;justify-content:center;gap:10px; }
        .ob3-welcome-continue i[data-lucide] { stroke-width: 2.4; flex-shrink: 0; }
        .ob3-welcome-continue:hover { background:#f0923f; box-shadow:0 10px 24px rgba(232,133,58,0.36), 0 3px 8px rgba(232,133,58,0.2); }
        .ob3-welcome-continue:active { transform:scale(0.985); box-shadow:0 4px 12px rgba(232,133,58,0.24); }
        .ob3-welcome-signin { width:100%;padding:0;background:none;border:none;color:rgba(15,23,42,0.45);font-size:13px;cursor:pointer;font-family:inherit; }
        .ob3-welcome-signin strong { color:#0a0a0a;font-weight:700; }

        .ob3-title { font-size:32px;font-weight:800;line-height:1.08;letter-spacing:-0.025em;margin-bottom:10px;color:#0a0a0a;text-align:center;animation:ob3FadeUp 0.5s ease both; }
        .ob3-sub { font-size:15px;color:rgba(15,23,42,0.5);line-height:1.45;margin-bottom:26px;text-align:center;font-weight:500;animation:ob3FadeUp 0.5s ease 0.1s both; }
        .ob3-demo-area { flex:0 0 auto;display:flex;flex-direction:column;gap:12px;animation:ob3FadeUp 0.5s ease 0.2s both;min-height:0;padding:0;background:transparent;border:none;border-radius:0;box-shadow:none; }
        @keyframes ob3FadeUp { from { opacity:0;transform:translateY(18px); } to { opacity:1;transform:translateY(0); } }
        .ob3-step.active .ob3-title { animation:ob3FadeUp 0.5s ease both; }
        .ob3-step.active .ob3-sub { animation:ob3FadeUp 0.5s ease 0.1s both; }
        .ob3-step.active .ob3-demo-area { animation:ob3FadeUp 0.5s ease 0.2s both; }
        .ob3-step.active .ob3-edu-options { animation:ob3FadeUp 0.5s ease 0.15s both; }
        .ob3-step.active .ob3-edu-opt:nth-child(1) { animation:ob3FadeUp 0.4s ease 0.15s both; }
        .ob3-step.active .ob3-edu-opt:nth-child(2) { animation:ob3FadeUp 0.4s ease 0.2s both; }
        .ob3-step.active .ob3-edu-opt:nth-child(3) { animation:ob3FadeUp 0.4s ease 0.25s both; }
        .ob3-step.active .ob3-edu-opt:nth-child(4) { animation:ob3FadeUp 0.4s ease 0.3s both; }
        .ob3-step.active .ob3-edu-opt:nth-child(5) { animation:ob3FadeUp 0.4s ease 0.35s both; }
        .ob3-step.active .ob3-edu-opt:nth-child(6) { animation:ob3FadeUp 0.4s ease 0.4s both; }
        .ob3-step.active .ob3-edu-opt:nth-child(7) { animation:ob3FadeUp 0.4s ease 0.45s both; }
        .ob3-step.active .ob3-edu-opt:nth-child(8) { animation:ob3FadeUp 0.4s ease 0.5s both; }
        .ob3-step.active .ob3-upload-zone { animation:ob3FadeUp 0.5s ease 0.2s both; }
        .ob3-step.active .ob3-demo-hint { animation:ob3FadeUp 0.5s ease 0.35s both; }
        .ob3-step.active .ob3-demo-file { animation:ob3FadeUp 0.5s ease 0.45s both; }
        .ob3-step.active .ob3-quiz-card { animation:ob3FadeUp 0.5s ease 0.2s both; }
        .ob3-step.active .ob3-flashcard-demo { animation:ob3FadeUp 0.5s ease 0.2s both; }
        .ob3-step.active .ob3-podcast-card { animation:ob3FadeUp 0.5s ease 0.2s both; }
        .ob3-step.active .ob3-method-grid { animation:ob3FadeUp 0.5s ease 0.2s both; }
        .ob3-footer { display:none; }
        .ob3-scroll-arrow { display:flex;flex-direction:column;align-items:center;gap:4px;color:#0a0a0a;font-size:13px;font-weight:600;padding:16px 0 8px;position:fixed;bottom:calc(env(safe-area-inset-bottom,0px) + 12px);left:50%;transform:translateX(-50%);z-index:25;opacity:0;transition:opacity 0.3s;pointer-events:none; }
        .ob3-scroll-arrow.visible { opacity:1; }
        .ob3-scroll-arrow svg { animation:ob3BounceDown 1.5s ease-in-out infinite; }
        @keyframes ob3BounceDown { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }
        .ob3-inline-continue { padding:24px 4px calc(env(safe-area-inset-bottom,0px) + 16px); }
        .ob3-continue { width:100%;display:block;padding:17px;background:#e8853a;color:#fff;border:none;border-radius:16px;font-size:16px;font-weight:700;font-family:inherit;cursor:pointer;z-index:10;transition:transform 0.15s, box-shadow 0.15s, background 0.15s;box-shadow:0 6px 16px rgba(232,133,58,0.28), 0 2px 4px rgba(232,133,58,0.12);letter-spacing:0.01em; }
        .ob3-continue:hover { background:#f0923f; box-shadow:0 8px 20px rgba(232,133,58,0.32), 0 3px 6px rgba(232,133,58,0.14); }
        .ob3-continue:active { transform:scale(0.98);box-shadow:0 3px 8px rgba(232,133,58,0.22); }

        /* Upload zone */
        .ob3-upload-demo-area { gap:10px;background:none !important;border:none !important;box-shadow:none !important;padding:0 !important; }
        .ob3-upload-stage { background:transparent; border:none; border-radius:0; padding:0; box-shadow:none; }
        /* Hide the live preview hero card, bigger drop zone is the star */
        .ob3-upload-hero { display:none !important; }
        .ob3-upload-hero::after, .ob3-upload-hero-img, .ob3-upload-hero-copy,
        .ob3-upload-kicker, .ob3-upload-hero-copy strong { display:none !important; }
        .ob3-upload-zone { border:2px dashed rgba(15,23,42,0.16);border-radius:24px;padding:56px 28px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fafbfc;margin-top:0;touch-action:none;min-height:clamp(220px, 34vh, 300px);gap:16px; }
        .ob3-upload-icon { filter:none;color:#e8853a;width:56px !important;height:56px !important; }
        .ob3-upload-zone-label { display:flex;flex-direction:column;align-items:center;color:rgba(15,23,42,0.65);font-size:17px;font-weight:700;margin-top:2px;letter-spacing:-0.01em;text-align:center; }
        .ob3-upload-zone-label::after { content:'PDF · YouTube · Audio · Images'; display:block; font-size:12px; font-weight:500; color:rgba(15,23,42,0.38); letter-spacing:0.02em; margin-top:8px; text-transform:none; }
        .ob3-demo-hint { display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:0;margin-bottom:0;padding:0 6px 4px; }
        .ob3-hint-text { text-align:center; }
        .ob3-hint-text strong { display:block;font-size:15px;font-weight:700;color:rgba(15,23,42,0.72);margin-bottom:2px; }
        .ob3-hint-text span { font-size:12px;color:rgba(15,23,42,0.42);font-weight:500; }
        .ob3-hint-arrow { animation:ob3ArrowBounce 1.8s ease infinite;margin:2px 0;color:#0a0a0a;opacity:1; }
        .ob3-hint-arrow svg { stroke:#0a0a0a !important;stroke-width:2.5 !important; }
        @keyframes ob3ArrowBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
        .ob3-demo-file { display:flex;align-items:center;gap:14px;padding:14px 18px;background:#ffffff;border:1px solid rgba(15,23,42,0.1);border-radius:16px;text-align:left;width:100%;max-width:300px;cursor:grab;transition:box-shadow 0.18s ease, opacity 0.18s ease, background 0.18s ease, transform 0.18s ease;box-shadow:0 4px 12px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);touch-action:none;position:relative; }
        .ob3-demo-file:active { background:#fafbfc; }
        .ob3-demo-file > svg { flex-shrink:0; width:40px; height:40px; padding:9px; border-radius:12px; background:rgba(232,133,58,0.1); }
        .ob3-demo-file strong { color:#0a0a0a;font-size:15px;display:block;font-weight:700; }
        .ob3-demo-file div span { display:block;color:rgba(15,23,42,0.5);font-size:12px;margin-top:2px;font-weight:500; }
        .ob3-file-meta { font-size:11px !important;color:rgba(15,23,42,0.35) !important;margin-top:4px !important; }
        .ob3-demo-file.dragging { opacity:0.95;box-shadow:0 18px 38px rgba(15,23,42,0.14);pointer-events:none;cursor:grabbing;z-index:4; }
        .ob3-upload-zone { transition:all 0.2s ease; }
        .ob3-upload-zone.drag-over { border-color:#e8853a;background:rgba(232,133,58,0.05);transform:scale(1.02);box-shadow:0 8px 24px rgba(232,133,58,0.08); }
        .ob3-upload-zone.uploaded { border-color:#22c55e;background:rgba(34,197,94,0.06);border-style:solid; }
        .ob3-upload-success { display:flex;flex-direction:column;align-items:center;gap:6px;animation:ob3FadeUp 0.4s ease; }
        @keyframes ob3FadeUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
        .ob3-demo-file.bounce { animation:ob3BounceHint 1.5s ease infinite; }
        @keyframes ob3BounceHint { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

        /* Upload loading animation */
        .ob3-upload-loading { display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 24px;text-align:center;animation:ob3FadeUp 0.3s ease; }
        .ob3-upload-pct { font-size:52px;font-weight:800;color:#0a0a0a;margin-bottom:14px;font-variant-numeric:tabular-nums;letter-spacing:-0.03em; }
        .ob3-upload-pct span { font-size:24px;font-weight:600;color:rgba(15,23,42,0.4); }
        .ob3-upload-bar-track { width:220px;height:6px;border-radius:99px;background:rgba(15,23,42,0.08);overflow:hidden;margin-bottom:12px; }
        .ob3-upload-bar-fill { width:0%;height:100%;border-radius:99px;background:#e8853a;transition:width 0.15s; }
        .ob3-upload-status { font-size:13px;color:rgba(15,23,42,0.45);transition:opacity 0.2s;font-weight:500; }

        /* Upload result (notes) */
        .ob3-upload-result { border-radius:18px;overflow:hidden;background:#fff;border:1px solid rgba(15,23,42,0.08);box-shadow:0 4px 16px rgba(15,23,42,0.04), 0 12px 32px rgba(15,23,42,0.06);animation:ob3FadeUp 0.5s ease;display:flex;flex-direction:column; }
        .ob3-result-hero { position:relative; min-height:152px; padding:18px; color:#fff; background:linear-gradient(135deg,#1a1a1a 0%,#2a2a2a 100%); }
        .ob3-result-hero::before { content:''; position:absolute; inset:0; background:url('/images/onboarding-demo-hero-v2.png') center/cover no-repeat; opacity:0.5; }
        .ob3-result-hero::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.4) 50%, rgba(10,10,10,0.75) 100%); }
        .ob3-result-hero > * { position:relative; z-index:1; }
        .ob3-result-tags { display:flex;gap:6px;margin-bottom:10px; }
        .ob3-result-tags span { background:rgba(255,255,255,0.14);color:rgba(255,255,255,0.95);font-size:10px;font-weight:700;padding:4px 10px;border-radius:20px;letter-spacing:0.5px;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px); }
        .ob3-result-title { font-size:20px;font-weight:800;line-height:1.15;margin-bottom:6px;letter-spacing:-0.02em; }
        .ob3-result-desc { font-size:12px;color:rgba(255,255,255,0.65);line-height:1.4; }
        .ob3-result-modules { display:flex;gap:4px;padding:10px 12px;border-bottom:1px solid rgba(15,23,42,0.06);background:#fafbfc; }
        .ob3-result-mod { flex:1;text-align:center;padding:8px 4px;border-radius:10px;cursor:pointer;transition:all 0.15s; }
        .ob3-result-mod.active { background:#fff;box-shadow:0 1px 4px rgba(15,23,42,0.06),0 0 0 1px rgba(15,23,42,0.06); }
        .ob3-result-mod-num { font-size:10px;font-weight:800;color:rgba(15,23,42,0.3);letter-spacing:0.02em; }
        .ob3-result-mod.active .ob3-result-mod-num { color:#e8853a; }
        .ob3-result-mod-name { font-size:11px;font-weight:600;color:rgba(15,23,42,0.5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px; }
        .ob3-result-mod.active .ob3-result-mod-name { color:#0a0a0a; }
        .ob3-result-pages { overflow-y:auto; }
        .ob3-result-page { display:none;padding:16px 20px;animation:ob3FadeUp 0.3s ease; }
        .ob3-result-page.active { display:block; }
        .ob3-result-page h3 { font-size:17px;font-weight:800;color:#0a0a0a;margin:0 0 6px;letter-spacing:-0.01em; }
        /* In-app-style module hero (badge + serif title + "Module N of M" kicker) */
        .ob3-module-hero { display:flex;align-items:center;justify-content:center;gap:14px;margin:6px 0 18px;text-align:left; }
        .ob3-module-badge { width:32px;height:32px;border-radius:999px;background:#211C18;color:#fff;font-size:13px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 6px 14px rgba(33,28,24,0.18); }
        .ob3-module-copy { display:flex;flex-direction:column;min-width:0;gap:3px; }
        .ob3-module-title { font-family:'Ramillas','Playfair Display',Georgia,'Times New Roman',serif;font-size:23px;font-weight:500;color:#0a0a0a;letter-spacing:-0.02em;line-height:1.12; }
        .ob3-module-kicker { font-size:9px;font-weight:800;letter-spacing:0.16em;text-transform:uppercase;color:rgba(15,23,42,0.45); }
        .ob3-result-section-tag { font-size:10px;font-weight:800;color:#e8853a;text-transform:uppercase;letter-spacing:0.08em;margin-bottom:14px; }
        .ob3-result-page p { font-size:13px;color:rgba(15,23,42,0.55);line-height:1.6;margin:0 0 12px; }
        .ob3-result-callout { background:rgba(232,133,58,0.06);border-left:3px solid #e8853a;border-radius:0 10px 10px 0;padding:12px 14px;margin-top:12px; }
        .ob3-result-callout strong { display:block;font-size:12px;font-weight:700;color:#0a0a0a;margin-bottom:4px; }
        .ob3-result-callout span { font-size:12px;color:rgba(15,23,42,0.55);line-height:1.5; }
        /* Numbered bullets */
        .ob3-result-bullets { display:flex;flex-direction:column;gap:12px;margin-bottom:12px; }
        .ob3-result-bullet { display:flex;gap:12px;align-items:flex-start; }
        .ob3-bullet-num { width:26px;height:26px;border-radius:8px;background:#e8853a;color:#fff;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px;box-shadow:0 2px 6px rgba(232,133,58,0.28); }
        .ob3-bullet-icon { width:26px;height:26px;font-size:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px; }
        .ob3-result-bullet strong { font-size:13px;font-weight:700;color:#0a0a0a;display:block;margin-bottom:2px;letter-spacing:-0.005em; }
        .ob3-result-bullet div { font-size:12px;color:rgba(15,23,42,0.55);line-height:1.45; }
        /* Comparison table */
        .ob3-result-table { border-radius:12px;overflow:hidden;border:1px solid rgba(15,23,42,0.08);margin-bottom:12px; }
        .ob3-table-row { display:grid;grid-template-columns:1fr 1fr 1fr;font-size:12px; }
        .ob3-table-row span { padding:10px 12px;border-bottom:1px solid rgba(15,23,42,0.05); }
        .ob3-table-header { background:#fafbfc; }
        .ob3-table-header span { font-weight:700;color:#0a0a0a;font-size:11px; }
        .ob3-table-row:not(.ob3-table-header) span { color:rgba(15,23,42,0.65); }
        .ob3-table-row:last-child span { border-bottom:none; }
        /* Equation */
        .ob3-result-equation { text-align:center;font-size:14px;font-weight:600;color:#0a0a0a;background:#fafbfc;border:1px solid rgba(15,23,42,0.06);border-radius:12px;padding:14px;margin-bottom:14px;letter-spacing:0.3px; }
        .ob3-result-equation strong { color:#e8853a; }

        /* Real document-style notes body (paragraphs + h4 subheads + sparing inline bold) */
        .ob3-result-page { padding:22px 26px 24px; }
        .ob3-notes-body { color:#0a0a0a; }
        .ob3-notes-body h4 { font-size:15px;font-weight:700;color:#0a0a0a;letter-spacing:-0.005em;margin:22px 0 10px;line-height:1.3; }
        .ob3-notes-body h4:first-child { margin-top:0; }
        .ob3-notes-body p { font-size:13.5px;line-height:1.72;color:rgba(15,23,42,0.72);margin:0 0 14px; }
        .ob3-notes-body p:last-child { margin-bottom:0; }
        .ob3-notes-body p strong { color:#0a0a0a;font-weight:700; }

        /* Five Pillars, colored step cards */
        .ob3-pillars { display:flex;flex-direction:column;gap:10px;margin:10px 0 0; }
        .ob3-pillar { background:var(--pill-bg,#f3f6fb);border-top:3px solid var(--pill-c,#4a6bf5);border-radius:12px;padding:12px 14px 13px; }
        .ob3-pillar-step { display:inline-block;font-size:9.5px;font-weight:800;letter-spacing:0.14em;text-transform:uppercase;color:#fff;background:var(--pill-c,#4a6bf5);border-radius:999px;padding:3px 11px;margin-bottom:7px; }
        .ob3-pillar-body { font-size:12.5px;line-height:1.55;color:rgba(15,23,42,0.74); }
        .ob3-pillar-body strong { color:#0a0a0a;font-weight:700; }

        /* HPA 2-column comparison table, warm beige container */
        .ob3-hpa { background:#f9f1e8;border-radius:16px;padding:4px;margin:10px 0 14px;overflow:hidden; }
        .ob3-hpa-row { display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:12px 16px;border-top:1px solid rgba(232,133,58,0.14);align-items:start; }
        .ob3-hpa-row:first-child { border-top:none;padding-top:14px;padding-bottom:12px; }
        .ob3-hpa-head { font-size:10px;font-weight:800;letter-spacing:0.12em;text-transform:uppercase;color:#c1724e; }
        .ob3-hpa-cell { font-size:12.5px;line-height:1.55;color:rgba(15,23,42,0.76); }

        /* CCP numbered list, white rounded cards with small circle number */
        .ob3-ccp-list { display:flex;flex-direction:column;gap:10px;margin:12px 0 0; }
        .ob3-ccp-item { display:flex;align-items:center;gap:14px;background:#fff;border:1px solid rgba(15,23,42,0.06);border-radius:14px;padding:13px 16px;box-shadow:0 1px 2px rgba(15,23,42,0.03); }
        .ob3-ccp-num { width:26px;height:26px;border-radius:999px;background:rgba(232,133,58,0.12);color:#e8853a;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
        .ob3-ccp-text { font-size:12.5px;line-height:1.5;color:rgba(15,23,42,0.74); }
        .ob3-ccp-text strong { color:#0a0a0a;font-weight:700; }

        /* Education level picker (Step 3), 3D button look. James asked
           for "3d like nice buttons" + the subtitle text removed. The
           subtitles got dropped from study.html; the styling here gives
           each option a layered shadow stack, a top inner highlight, a
           bottom inset shadow, and a press-down state so they feel
           tactile under thumb. */
        .ob3-edu-options { display:flex;flex-direction:column;gap:12px; }
        .ob3-edu-opt {
            display:flex;align-items:center;gap:14px;
            padding:18px 18px;
            background:linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
            border:1px solid rgba(15,23,42,0.10);
            border-bottom:2px solid rgba(15,23,42,0.16);
            border-radius:16px;
            cursor:pointer;
            font-family:inherit;
            text-align:left;
            transition:transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
            box-shadow:
                0 1px 0 rgba(255,255,255,0.7) inset,
                0 -2px 0 rgba(15,23,42,0.04) inset,
                0 2px 0 rgba(15,23,42,0.05),
                0 6px 16px rgba(15,23,42,0.06),
                0 12px 28px rgba(15,23,42,0.05);
        }
        .ob3-edu-opt:hover {
            border-color:rgba(15,23,42,0.16);
            transform:translateY(-1px);
            box-shadow:
                0 1px 0 rgba(255,255,255,0.85) inset,
                0 -2px 0 rgba(15,23,42,0.05) inset,
                0 3px 0 rgba(15,23,42,0.06),
                0 10px 22px rgba(15,23,42,0.10),
                0 18px 36px rgba(15,23,42,0.07);
        }
        .ob3-edu-opt:active {
            transform:translateY(1px);
            border-bottom-width:1px;
            box-shadow:
                0 1px 0 rgba(255,255,255,0.6) inset,
                0 -1px 0 rgba(15,23,42,0.05) inset,
                0 1px 0 rgba(15,23,42,0.05),
                0 2px 6px rgba(15,23,42,0.06);
        }
        .ob3-edu-opt.selected {
            border-color:#e8853a;
            border-bottom-color:#c5670a;
            background:linear-gradient(180deg, #fff7f0 0%, #ffe7d2 100%);
            box-shadow:
                0 1px 0 rgba(255,255,255,0.85) inset,
                0 -2px 0 rgba(232,133,58,0.18) inset,
                0 2px 0 rgba(232,133,58,0.30),
                0 0 0 3px rgba(232,133,58,0.18),
                0 8px 20px rgba(232,133,58,0.18),
                0 16px 36px rgba(232,133,58,0.10);
        }
        .ob3-edu-opt.selected .ob3-edu-icon {
            background:linear-gradient(180deg, rgba(232,133,58,0.18) 0%, rgba(232,133,58,0.08) 100%);
            box-shadow:0 1px 0 rgba(255,255,255,0.5) inset;
        }
        .ob3-edu-icon {
            font-size:22px;width:46px;height:46px;
            display:flex;align-items:center;justify-content:center;
            background:linear-gradient(180deg, rgba(15,23,42,0.06) 0%, rgba(15,23,42,0.02) 100%);
            border-radius:14px;flex-shrink:0;
            box-shadow:0 1px 0 rgba(255,255,255,0.6) inset, 0 1px 2px rgba(15,23,42,0.04);
            transition:background 0.15s ease;
        }
        .ob3-edu-opt strong {
            font-size:16px;font-weight:700;color:#0a0a0a;
            display:block;-webkit-font-smoothing:antialiased;letter-spacing:-0.01em;
        }

        /* Notes preview (legacy) */
        .ob3-notes-preview { background:#fff;border:1px solid rgba(0,0,0,0.08);border-radius:16px;padding:20px;text-align:left;overflow:hidden;max-height:320px;box-shadow:0 2px 12px rgba(0,0,0,0.04); }
        .ob3-notes-header { font-size:12px;color:rgba(0,0,0,0.5);display:flex;align-items:center;gap:6px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid rgba(0,0,0,0.06); }

        /* Quiz demo */
        .ob3-quiz-card { background:#fff;border:1px solid rgba(15,23,42,0.08);border-radius:22px;padding:22px 20px;text-align:left;box-shadow:0 4px 16px rgba(15,23,42,0.04), 0 12px 32px rgba(15,23,42,0.06);overflow-y:auto;-webkit-overflow-scrolling:touch; }
        .ob3-quiz-q { font-size:18px;font-weight:800;line-height:1.35;margin-bottom:14px;color:#0a0a0a;letter-spacing:-0.015em; }
        .ob3-quiz-opts { display:flex;flex-direction:column;gap:10px; }
        .ob3-quiz-opt { display:flex;align-items:center;gap:14px;padding:14px 16px;background:#ffffff;border:1.5px solid rgba(15,23,42,0.1);border-radius:14px;color:#0a0a0a;font-size:14px;font-weight:600;cursor:pointer;font-family:inherit;text-align:left;transition:all 0.15s ease; }
        .ob3-quiz-opt:hover { border-color:rgba(15,23,42,0.2);background:#fafbfc; }
        .ob3-quiz-opt:active { transform:scale(0.985);background:#f5f6f8; }
        .ob3-quiz-opt span { width:28px;height:28px;border-radius:50%;background:#ffffff;border:1.5px solid rgba(15,23,42,0.14);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;flex-shrink:0;color:rgba(15,23,42,0.55);transition:all 0.15s ease; }
        .ob3-quiz-opt.correct { border-color:#22c55e;background:rgba(34,197,94,0.06); }
        .ob3-quiz-opt.correct span { background:#22c55e;color:#fff;border-color:#22c55e; }
        .ob3-quiz-opt.wrong { border-color:#ef4444;background:rgba(239,68,68,0.05); }
        .ob3-quiz-opt.wrong span { background:#ef4444;color:#fff;border-color:#ef4444; }
        .ob3-quiz-opt.disabled { pointer-events:none;opacity:0.5; }
        /* Quiz explanation */
        .ob3-quiz-explain { margin-top:16px;padding:14px 16px;background:rgba(34,197,94,0.06);border:1px solid rgba(34,197,94,0.18);border-radius:14px;animation:ob3FadeUp 0.4s ease; }
        .ob3-quiz-explain-header { display:flex;align-items:center;gap:8px;margin-bottom:8px;color:#16a34a; }
        .ob3-quiz-explain-header strong { font-size:13px;color:#15803d;font-weight:700; }
        .ob3-quiz-explain p { font-size:13px;color:rgba(15,23,42,0.6);line-height:1.55;margin:0; }

        /* Flashcard demo */
        .ob3-fc-card { perspective:1000px;width:100%;aspect-ratio:3/2;cursor:pointer;margin:auto; }
        .ob3-fc-card .ob3-fc-front, .ob3-fc-card .ob3-fc-back { position:absolute;inset:0;backface-visibility:hidden;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;text-align:center;transition:transform 0.5s;border:1px solid rgba(15,23,42,0.08); }
        .ob3-fc-front { background:#fff;box-shadow:0 4px 16px rgba(15,23,42,0.04), 0 12px 32px rgba(15,23,42,0.06); }
        .ob3-fc-back { background:rgba(232,133,58,0.05);border-color:rgba(232,133,58,0.18);transform:rotateY(180deg); }
        .ob3-fc-card.flipped .ob3-fc-front { transform:rotateY(180deg); }
        .ob3-fc-card.flipped .ob3-fc-back { transform:rotateY(0deg); }
        .ob3-fc-text { font-size:22px;font-weight:800;color:#0a0a0a; }
        .ob3-fc-card { position:relative; }

        /* Podcast demo */
        .ob3-podcast-demo-area { gap:14px; }
        .ob3-podcast-shell { width:100%; max-width:332px; background:#ffffff; border:1px solid rgba(15,23,42,0.08); border-radius:26px; padding:14px; box-shadow:0 4px 16px rgba(15,23,42,0.04), 0 16px 40px rgba(15,23,42,0.08); }
        .ob3-podcast-hero { position:relative; display:flex; flex-direction:column; align-items:center; gap:12px; margin-bottom:14px; }
        .ob3-podcast-hero-img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:22px; display:block; box-shadow:0 8px 24px rgba(15,23,42,0.12), 0 2px 6px rgba(15,23,42,0.06); }
        .ob3-podcast-hero.fallback .ob3-podcast-hero-img { display:none; }
        .ob3-podcast-hero.fallback::before { content:'🎧'; width:100%; aspect-ratio:1; border-radius:22px; display:flex; align-items:center; justify-content:center; font-size:74px; background:linear-gradient(135deg,#1a1a1a,#2a2a2a); color:#fff; box-shadow:0 8px 24px rgba(15,23,42,0.12); }
        .ob3-podcast-hero-overlay { position:absolute; inset:0; border-radius:22px; background:linear-gradient(180deg,rgba(10,10,10,0) 0%, rgba(10,10,10,0.15) 58%, rgba(10,10,10,0.55) 100%); pointer-events:none; }
        .ob3-podcast-badge { position:absolute; top:14px; left:14px; z-index:1; padding:6px 10px; border-radius:999px; background:#ffffff; color:#e8853a; font-size:10px; font-weight:800; letter-spacing:0.12em; text-transform:uppercase; box-shadow:0 2px 8px rgba(15,23,42,0.08); }
        .ob3-podcast-hero-copy { position:absolute; left:16px; right:16px; bottom:16px; z-index:1; text-align:left; }
        .ob3-podcast-eyebrow { font-size:11px; font-weight:800; letter-spacing:0.1em; text-transform:uppercase; color:rgba(255,255,255,0.85); margin-bottom:6px; }
        .ob3-podcast-title { font-size:26px; font-weight:800; color:#fff; line-height:1.06; margin-bottom:6px; letter-spacing:-0.02em; text-shadow:0 2px 12px rgba(0,0,0,0.25); }
        .ob3-podcast-subtitle { font-size:13px; color:rgba(255,255,255,0.8); line-height:1.4; max-width:250px; font-weight:500; }
        .ob3-podcast-card { text-align:center;width:100%;background:#fff;border:1px solid rgba(15,23,42,0.08);border-radius:20px;padding:16px 14px 14px;box-shadow:0 2px 8px rgba(15,23,42,0.04); }
        .ob3-podcast-progress { width:100%;padding:0 2px;margin-bottom:14px; }
        .ob3-podcast-bar { height:4px;background:rgba(15,23,42,0.08);border-radius:99px;position:relative;margin-bottom:8px;overflow:hidden; }
        .ob3-podcast-fill { height:100%;width:0%;background:#e8853a;border-radius:99px;transition:width 0.3s; }
        .ob3-podcast-dot { position:absolute;top:50%;width:12px;height:12px;border-radius:50%;background:#e8853a;transform:translate(-50%,-50%);left:0%;transition:left 0.3s;box-shadow:0 1px 4px rgba(15,23,42,0.15);display:none; }
        .ob3-podcast-times { display:flex;justify-content:space-between;font-size:11px;color:rgba(15,23,42,0.42);font-weight:600;font-variant-numeric:tabular-nums;margin-bottom:0; }
        .ob3-podcast-controls { display:flex;align-items:center;justify-content:center;gap:26px;margin-bottom:14px; }
        .ob3-podcast-btn { width:42px;height:42px;border-radius:50%;background:#fafbfc;border:1px solid rgba(15,23,42,0.08);color:rgba(15,23,42,0.65);cursor:pointer;padding:0;transition:color 0.15s, transform 0.15s, background 0.15s;display:flex;align-items:center;justify-content:center; }
        .ob3-podcast-btn:active { background:#f5f6f8; }
        .ob3-podcast-play { width:62px;height:62px;border-radius:50%;background:#e8853a;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform 0.15s, box-shadow 0.15s;box-shadow:0 8px 20px rgba(232,133,58,0.32), 0 2px 6px rgba(232,133,58,0.18); }
        .ob3-podcast-play:active { transform:scale(0.94); box-shadow:0 4px 12px rgba(232,133,58,0.24); }
        .ob3-podcast-chapters { display:flex;flex-direction:column;gap:8px;text-align:left; }
        .ob3-podcast-chapter { display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:#fafbfc;border:1px solid rgba(15,23,42,0.06); }
        .ob3-podcast-chapter.active { background:rgba(232,133,58,0.06); border-color:rgba(232,133,58,0.2); }
        .ob3-podcast-chapter span { font-size:11px; font-weight:800; color:#e8853a; letter-spacing:0.04em; flex-shrink:0; }
        .ob3-podcast-chapter strong { font-size:13px; font-weight:700; color:#0a0a0a; line-height:1.25; }

        /* Step-specific tweaks (gradient background is on .ob3 globally) */
        .ob3-step.ob3-flash-step,
        .ob3-step.ob3-podcast-step {
            padding-bottom:28px;
        }
        .ob3-fc-demo-area, .ob3-auth-area {
            background:none !important;
            border:none !important;
            box-shadow:none !important;
            padding:0 !important;
        }
        .ob3-fc-demo-area {
            flex:1;
            justify-content:center;
            gap:18px;
            min-height:0;
        }
        .ob3-fc-stage {
            display:flex;
            align-items:center;
            justify-content:center;
            width:100%;
            padding:10px 2px 0;
        }
        .ob3-fc-card {
            width:100%;
            max-width:332px;
            aspect-ratio:0.9;
            perspective:1200px;
        }
        .ob3-fc-card .ob3-fc-front,
        .ob3-fc-card .ob3-fc-back {
            border-radius:28px;
            padding:28px 24px;
            transition:transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
            border:1px solid rgba(15,23,42,0.08);
            box-shadow:0 8px 24px rgba(15,23,42,0.06), 0 20px 48px rgba(15,23,42,0.08);
        }
        .ob3-fc-front {
            background:#ffffff;
        }
        .ob3-fc-back {
            background:#fafbfc;
        }
        .ob3-fc-kicker {
            position:absolute;
            top:22px;
            right:22px;
            color:#e8853a;
            font-size:12px;
            font-weight:800;
            letter-spacing:0.08em;
            text-transform:uppercase;
        }
        .ob3-fc-text {
            font-size:clamp(28px, 9vw, 36px);
            font-weight:800;
            color:#0a0a0a;
            line-height:1.06;
            letter-spacing:-0.035em;
            max-width:244px;
            text-align:center;
        }
        .ob3-fc-detail {
            margin-top:16px;
            max-width:252px;
            color:rgba(15,23,42,0.55);
            font-size:15px;
            line-height:1.5;
            text-align:center;
            font-weight:500;
        }
        .ob3-podcast-demo-area {
            flex:1;
            display:flex;
            flex-direction:column;
            align-items:center;
            justify-content:center;
            gap:0;
            min-height:0;
            background:none !important;
            border:none !important;
            box-shadow:none !important;
            padding:0 !important;
        }
        .ob3-podcast-shell {
            width:100%;
            max-width:320px;
            display:flex;
            flex-direction:column;
            align-items:center;
            gap:10px;
            background:#ffffff;
            border:1px solid rgba(15,23,42,0.08);
            border-radius:24px;
            box-shadow:0 4px 16px rgba(15,23,42,0.04), 0 12px 32px rgba(15,23,42,0.06);
            padding:14px 14px 16px;
        }
        .ob3-podcast-cover {
            position:relative;
            width:100%;
            aspect-ratio:1;
            border-radius:18px;
            overflow:hidden;
            background:#fafbfc;
            border:1px solid rgba(15,23,42,0.06);
            box-shadow:0 4px 12px rgba(15,23,42,0.06);
            margin-bottom:2px;
        }
        .ob3-podcast-hero-img {
            width:100%;
            height:100%;
            display:block;
            object-fit:cover;
            object-position:center;
            filter:none;
            mix-blend-mode:normal;
            opacity:1;
            box-shadow:none;
        }
        .ob3-podcast-cover.fallback::after {
            content:'';
            position:absolute;
            inset:0;
            z-index:2;
            background:linear-gradient(180deg, rgba(250,251,252,0.1) 0%, rgba(245,246,248,0.3) 100%);
        }
        .ob3-podcast-title {
            color:#0a0a0a;
            font-size:16px;
            font-weight:800;
            line-height:1.2;
            letter-spacing:-0.02em;
            text-align:center;
            margin-bottom:2px;
        }
        .ob3-podcast-progress {
            width:100%;
            padding:0;
        }
        .ob3-podcast-bar {
            height:4px;
            background:rgba(15,23,42,0.08);
            margin-bottom:6px;
            border-radius:99px;
        }
        .ob3-podcast-fill {
            background:#e8853a;
            border-radius:99px;
        }
        .ob3-podcast-dot { display:none; }
        .ob3-podcast-times {
            color:rgba(15,23,42,0.42);
            font-size:11px;
            font-weight:600;
        }
        .ob3-podcast-controls {
            width:100%;
            display:flex;
            align-items:center;
            justify-content:center;
            gap:14px;
            padding:4px 0 0;
        }
        .ob3-podcast-btn {
            width:38px;
            height:38px;
            border:1px solid rgba(15,23,42,0.08);
            border-radius:50%;
            background:#fafbfc;
            color:rgba(15,23,42,0.55);
            display:flex;
            align-items:center;
            justify-content:center;
            cursor:pointer;
            flex-shrink:0;
        }
        .ob3-podcast-play {
            width:52px;
            height:52px;
            border-radius:50%;
            background:#e8853a;
            border:none;
            box-shadow:0 8px 20px rgba(232,133,58,0.32), 0 2px 6px rgba(232,133,58,0.18);
            flex-shrink:0;
        }
        .ob3-podcast-play svg { fill:#ffffff; }
        .ob3-podcast-speed {
            font-size:13px;
            font-weight:700;
            color:rgba(15,23,42,0.42);
            width:38px;
            text-align:center;
        }

        /* Subject pills */
        /* Study methods list */
        /* Study-method picker (Step 7), same 3D button look as the
           education-level picker. James asked for the matching style.
           Layered shadow stack: top inner highlight + bottom bevel +
           outer drop shadow. Press-down :active state. Selected uses
           the warm orange palette. */
        .ob3-methods-list { display:flex;flex-direction:column;gap:12px; }
        .ob3-method-card {
            display:flex;align-items:center;gap:16px;
            padding:18px 20px;
            background:linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
            border:1px solid rgba(15,23,42,0.10);
            border-bottom:2px solid rgba(15,23,42,0.16);
            border-radius:16px;
            cursor:pointer;
            font-family:inherit;
            text-align:left;
            transition:transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
            box-shadow:
                0 1px 0 rgba(255,255,255,0.7) inset,
                0 -2px 0 rgba(15,23,42,0.04) inset,
                0 2px 0 rgba(15,23,42,0.05),
                0 6px 16px rgba(15,23,42,0.06),
                0 12px 28px rgba(15,23,42,0.05);
        }
        .ob3-method-card:hover {
            border-color:rgba(15,23,42,0.16);
            transform:translateY(-1px);
            box-shadow:
                0 1px 0 rgba(255,255,255,0.85) inset,
                0 -2px 0 rgba(15,23,42,0.05) inset,
                0 3px 0 rgba(15,23,42,0.06),
                0 10px 22px rgba(15,23,42,0.10),
                0 18px 36px rgba(15,23,42,0.07);
        }
        .ob3-method-card:active {
            transform:translateY(1px);
            border-bottom-width:1px;
            box-shadow:
                0 1px 0 rgba(255,255,255,0.6) inset,
                0 -1px 0 rgba(15,23,42,0.05) inset,
                0 1px 0 rgba(15,23,42,0.05),
                0 2px 6px rgba(15,23,42,0.06);
        }
        .ob3-method-card.selected {
            border-color:#e8853a;
            border-bottom-color:#c5670a;
            background:linear-gradient(180deg, #fff7f0 0%, #ffe7d2 100%);
            box-shadow:
                0 1px 0 rgba(255,255,255,0.85) inset,
                0 -2px 0 rgba(232,133,58,0.18) inset,
                0 2px 0 rgba(232,133,58,0.30),
                0 0 0 3px rgba(232,133,58,0.18),
                0 8px 20px rgba(232,133,58,0.18),
                0 16px 36px rgba(232,133,58,0.10);
        }
        .ob3-method-card.selected .ob3-method-icon {
            background:linear-gradient(180deg, rgba(232,133,58,0.18) 0%, rgba(232,133,58,0.08) 100%);
            box-shadow:0 1px 0 rgba(255,255,255,0.5) inset;
        }
        .ob3-method-icon {
            width:46px;height:46px;border-radius:14px;
            display:flex;align-items:center;justify-content:center;flex-shrink:0;
            background:linear-gradient(180deg, rgba(15,23,42,0.06) 0%, rgba(15,23,42,0.02) 100%);
            box-shadow:0 1px 0 rgba(255,255,255,0.6) inset, 0 1px 2px rgba(15,23,42,0.04);
            transition:background 0.15s ease;
        }
        .ob3-method-card strong {
            font-size:16px;font-weight:700;color:#0a0a0a;
            display:block;letter-spacing:-0.01em;
        }

        /* Notification cards */
        .ob3-notif-card { display:flex;align-items:flex-start;gap:14px;padding:16px;background:#ffffff;border:1px solid rgba(15,23,42,0.08);border-radius:14px;text-align:left;margin-bottom:8px;box-shadow:0 1px 2px rgba(15,23,42,0.03); }
        .ob3-notif-icon { font-size:24px;flex-shrink:0; }
        .ob3-notif-card strong { font-size:14px;font-weight:700;color:#0a0a0a; }
        .ob3-notif-enable { width:100%;padding:14px;background:#e8853a;color:#fff;border:none;border-radius:14px;font-size:15px;font-weight:700;cursor:pointer;font-family:inherit;margin-top:16px;box-shadow:0 6px 16px rgba(232,133,58,0.28); }
        .ob3-notif-skip { width:100%;padding:10px;background:none;border:none;color:rgba(15,23,42,0.4);font-size:13px;cursor:pointer;font-family:inherit;margin-top:8px; }

        /* Auth screen */
        .ob3-auth-area { align-items:center;text-align:center;justify-content:space-between; }
        .ob3-auth-center { flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center; }
        .ob3-logo-img { width:84px;height:84px;border-radius:22px;margin-bottom:18px;box-shadow:0 8px 24px rgba(15,23,42,0.1); }
        .ob3-logo-big { width:84px;height:84px;border-radius:22px;background:#0a0a0a;color:#fff;display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:900;margin-bottom:18px;box-shadow:0 8px 24px rgba(15,23,42,0.14); }
        .ob3-logo-text { font-size:12px;font-weight:800;letter-spacing:0.18em;text-transform:uppercase;color:rgba(15,23,42,0.35); }
        .ob3-auth-dots { width:280px;height:50px;margin-top:24px;background:radial-gradient(circle 2px,#e8853a 100%,transparent 100%);background-size:12px 12px;-webkit-mask-image:radial-gradient(ellipse 140px 25px at center,#000,transparent);mask-image:radial-gradient(ellipse 140px 25px at center,#000,transparent);opacity:0.25; }
        .ob3-auth-bottom { width:100%;display:flex;flex-direction:column;align-items:center;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 16px); }
        .ob3-auth-btn { width:100%;display:flex;align-items:center;justify-content:center;gap:12px;padding:16px 24px;border-radius:14px;font-size:16px;font-weight:700;cursor:pointer;font-family:inherit;transition:all 0.15s ease;margin-bottom:10px; }
        .ob3-auth-btn:hover { transform:translateY(-1px); }
        .ob3-auth-btn:active { transform:scale(0.985); }
        .ob3-auth-google { background:#ffffff;border:1.5px solid rgba(15,23,42,0.1);color:#0a0a0a;text-decoration:none;box-shadow:0 2px 8px rgba(15,23,42,0.04); }
        .ob3-auth-google:hover { box-shadow:0 4px 14px rgba(15,23,42,0.08); }
        .ob3-auth-google:active { background:#fafbfc; }
        .ob3-auth-apple { background:#0a0a0a;border:1.5px solid #0a0a0a;color:#ffffff;box-shadow:0 2px 8px rgba(15,23,42,0.12); }
        .ob3-auth-apple svg, .ob3-auth-apple svg path { fill:#ffffff !important; }
        .ob3-auth-apple:hover { box-shadow:0 4px 14px rgba(15,23,42,0.18); }
        .ob3-auth-apple:active { background:#1a1a1a; }
        .ob3-auth-login { background:none;border:none;color:rgba(15,23,42,0.4);font-size:15px;font-weight:500;cursor:pointer;font-family:inherit;margin-top:8px; }

        /* ===== Paywall Step =====
           NOTE: padding-top is 0 because the injected .ob3-topbar already
           handles safe-area-inset-top itself. Adding it here too caused
           ~144px of wasted space on iPhone (double-counted notch). */
        .ob3-paywall-step { padding-top:0 !important; padding-bottom:calc(env(safe-area-inset-bottom,0px) + 16px) !important; gap:0 !important; overflow:hidden !important; overscroll-behavior:none; }
        .ob3-pw-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:18px; }
        .ob3-pw-brand { display:flex;align-items:center;gap:8px; }
        .ob3-pw-logo { width:24px;height:24px;border-radius:6px; }
        .ob3-pw-brand-name { font-size:11px;font-weight:800;letter-spacing:0.16em;color:rgba(15,23,42,0.55);text-transform:uppercase; }
        .ob3-pw-close { width:34px;height:34px;display:flex;align-items:center;justify-content:center;background:rgba(15,23,42,0.05);border:none;border-radius:50%;color:rgba(15,23,42,0.55);cursor:pointer;padding:0;font-family:inherit; }
        .ob3-pw-close:active { background:rgba(15,23,42,0.1);transform:scale(0.94); }

        .ob3-pw-title { font-size:30px;font-weight:900;color:#0a0a0a;line-height:1.1;letter-spacing:-0.03em;margin:6px 0 22px;text-align:center; }

        .ob3-pw-benefits { display:flex;flex-direction:column;gap:12px;margin-bottom:22px; }
        .ob3-pw-benefit { display:flex;align-items:center;gap:14px;padding:14px 16px;background:#fafbfc;border:1.5px solid rgba(15,23,42,0.06);border-radius:18px; }
        .ob3-pw-benefit-icon { width:40px;height:40px;flex-shrink:0;border-radius:12px;background:rgba(232,133,58,0.1);color:#e8853a;display:flex;align-items:center;justify-content:center; }
        .ob3-pw-benefit-text { display:flex;flex-direction:column;gap:2px;min-width:0; }
        .ob3-pw-benefit-text strong { font-size:15px;font-weight:800;color:#0a0a0a;letter-spacing:-0.01em; }
        .ob3-pw-benefit-text span { font-size:13px;font-weight:500;color:rgba(15,23,42,0.55);line-height:1.35; }

        .ob3-pw-plans { display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px; }
        .ob3-pw-plan { position:relative;display:flex;flex-direction:column;align-items:flex-start;padding:18px 14px 16px;background:#ffffff;border:2px solid rgba(15,23,42,0.1);border-radius:18px;cursor:pointer;font-family:inherit;text-align:left;transition:all 0.18s ease;overflow:visible; }
        .ob3-pw-plan:active { transform:scale(0.98); }
        .ob3-pw-plan.selected { border-color:#e8853a;background:#fff8f1;box-shadow:0 6px 18px rgba(232,133,58,0.16); }
        .ob3-pw-plan-badge { position:absolute;top:-10px;left:50%;transform:translateX(-50%);background:#e8853a;color:#fff;font-size:9px;font-weight:800;letter-spacing:0.08em;padding:5px 10px;border-radius:999px;white-space:nowrap;box-shadow:0 4px 10px rgba(232,133,58,0.32); }
        .ob3-pw-plan-name { font-size:13px;font-weight:700;color:rgba(15,23,42,0.6);text-transform:uppercase;letter-spacing:0.04em;margin-top:4px; }
        .ob3-pw-plan-price { font-size:24px;font-weight:900;color:#0a0a0a;letter-spacing:-0.02em;margin-top:6px; }
        .ob3-pw-plan-sub { font-size:12px;font-weight:600;color:rgba(15,23,42,0.5);margin-top:2px; }
        .ob3-pw-plan-save { display:inline-block;margin-top:8px;padding:3px 8px;background:rgba(34,197,94,0.12);color:#16a34a;font-size:10px;font-weight:800;letter-spacing:0.04em;border-radius:6px; }
        .ob3-pw-plan-trial { display:inline-block;margin-top:8px;padding:3px 8px;background:rgba(15,23,42,0.06);color:rgba(15,23,42,0.55);font-size:10px;font-weight:700;letter-spacing:0.02em;border-radius:6px; }

        .ob3-pw-no-payment { display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:700;color:#16a34a;margin-bottom:14px; }

        .ob3-pw-cta { width:100%;padding:18px 24px;background:#e8853a;color:#fff;border:none;border-radius:18px;font-size:17px;font-weight:800;cursor:pointer;font-family:inherit;letter-spacing:-0.01em;box-shadow:0 8px 22px rgba(232,133,58,0.34);transition:all 0.18s ease; }
        .ob3-pw-cta:hover { transform:translateY(-1px);box-shadow:0 10px 26px rgba(232,133,58,0.4); }
        .ob3-pw-cta:active { transform:scale(0.985); }

        .ob3-pw-footer { display:flex;align-items:center;justify-content:space-between;margin-top:14px;padding:0 4px; }
        .ob3-pw-cancel { font-size:12px;font-weight:600;color:rgba(15,23,42,0.42); }
        .ob3-pw-restore { background:none;border:none;font-size:12px;font-weight:700;color:rgba(15,23,42,0.55);cursor:pointer;font-family:inherit;padding:4px 0;text-decoration:underline;text-underline-offset:3px; }
        .ob3-pw-restore:active { color:#e8853a; }

        @media (max-height:720px) {
            .ob3-pw-title { font-size:26px;margin:4px 0 16px; }
            .ob3-pw-benefits { gap:8px;margin-bottom:16px; }
            .ob3-pw-benefit { padding:11px 14px; }
            .ob3-pw-benefit-icon { width:36px;height:36px; }
            .ob3-pw-plans { margin-bottom:10px; }
            .ob3-pw-plan { padding:14px 12px 12px; }
            .ob3-pw-cta { padding:16px 24px; }
        }

        /* Hide ob3 on desktop */
        @media (min-width:769px) { .ob3 { display:none !important; } }

        /* Show Apple Sign In on iOS */
        @media (max-width:768px) { .ob3-auth-apple { display:flex; } }
        body.capacitor-app.cap-ios .ob3-auth-apple { display:flex; }

        /* Custom notes textarea in wizard step 2 */
        .wiz-custom-notes { width: 100%; padding: 10px 14px; background: var(--study-bg); border: 1px solid var(--study-border); border-radius: 10px; color: var(--study-text); font-family: inherit; font-size: 13px; resize: vertical; min-height: 60px; outline: none; transition: border-color 0.2s; margin-top: 4px; }
        .wiz-custom-notes:focus { border-color: var(--study-accent); }
        .wiz-custom-notes::placeholder { color: var(--study-text-tertiary); }
        .wiz-custom-label { font-size: 12px; color: var(--study-text-secondary); margin-top: 12px; }

        /* Background gen banner */
        .gen-banner { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--study-accent-dim); border: 1px solid rgba(232,133,58,0.2); border-radius: 10px; margin-bottom: 16px; font-size: 13px; color: var(--study-accent); }
        .gen-banner .spinner { width: 16px; height: 16px; border: 2px solid rgba(232,133,58,0.3); border-top-color: var(--study-accent); border-radius: 50%; -webkit-animation: spin 0.6s linear infinite; animation: spin 0.6s linear infinite; flex-shrink: 0; }
        .gen-banner-text { flex: 1; }
        .gen-banner-done { color: var(--study-green); }
