/* ================================================================
   site.css — PPE1-only deep-content components
   Loads AFTER components.css + brand.css. Adds the interaction
   layer the deep product areas need: dropdown nav, slide-in
   overlay panels, clickable flow diagrams, spec lists, callouts.
   Goal: tremendous depth WITHOUT endless scroll — surface detail
   on demand via overlays; give each area its own distinct canvas.
   ================================================================ */

/* ---------------- Dropdown nav ---------------- */
.nav-dd { position: relative; }
.nav-dd__btn {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: var(--font-size-sm); font-weight: 500; color: var(--text-body);
    background: none; border: none; cursor: pointer; padding: var(--space-1) 0;
    font-family: inherit; transition: color var(--transition-fast);
}
.nav-dd__btn::after { content: '\25BE'; font-size: 10px; opacity: 0.6; }
.nav-dd:hover .nav-dd__btn, .nav-dd__btn:hover { color: var(--brand-primary); }
.nav-dd__menu {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
    min-width: 220px; background: var(--bg-page); border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-md); box-shadow: var(--shadow-hover); padding: var(--space-1);
    opacity: 0; visibility: hidden; transition: opacity var(--transition-fast), transform var(--transition-fast);
    z-index: 200;
}
.nav-dd:hover .nav-dd__menu, .nav-dd:focus-within .nav-dd__menu, .nav-dd--open .nav-dd__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* Transparent bridge over the 10px gap so moving from the button into the
   flyout never crosses a dead zone — the submenu is immediately reachable. */
.nav-dd__menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-dd__item {
    display: block; padding: 9px 14px; border-radius: var(--radius-sm);
    font-size: var(--font-size-sm); color: var(--text-body); transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-dd__item:hover { background: var(--brand-light); color: var(--brand-primary); }
.nav-dd__item small { display: block; font-size: 11px; color: var(--text-muted); margin-top: 1px; }
/* Badge sitting inline beside a card title (e.g., Bulk Pricer) — keeps the
   card icon aligned with the other cards instead of being pushed down. */
.card__title .card__badge { margin-bottom: 0; margin-left: 8px; vertical-align: middle; }
/* Offset anchor jumps so a target clears the sticky nav (~60px) with ~30px of
   breathing room above it (e.g. Products → "Six Products. One Platform."). */
#products { scroll-margin-top: 90px; }
/* "Platform" → very top: margin large enough that the scroll clamps to 0 so the
   hero shows exactly as it does on a fresh page load (not tucked under the nav). */
#top { scroll-margin-top: 120px; }

/* ---------------- Area sub-hero (distinct per product) ---------------- */
.area-hero { padding: var(--space-8) 0 var(--space-6); position: relative; overflow: hidden;
    background: linear-gradient(160deg, var(--hero-grad-1) 0%, var(--hero-grad-2) 55%, var(--hero-grad-3) 100%);
    color: var(--text-on-dark); }
.area-hero .container { position: relative; z-index: 1; }
.area-hero__eyebrow { font-size: var(--font-size-xs); font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--hero-pill-icon); }
.area-hero__title { font-size: 44px; font-weight: 700; letter-spacing: 1px; margin: var(--space-2) 0 var(--space-2); line-height: 1.08; }
.area-hero__lead { font-size: var(--font-size-lg); color: var(--text-on-dark-muted); max-width: 720px; line-height: 1.7; }
.area-hero__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-4); }
.area-hero__pill { font-size: var(--font-size-sm); padding: 7px 16px; border-radius: var(--radius-full);
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.9); }

/* ---------------- Callout (the area's defining principle) ---------------- */
.callout { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-3); align-items: start;
    background: var(--brand-accent-light); border-left: 4px solid var(--brand-accent);
    border-radius: var(--radius-lg); padding: var(--space-4); }
.callout__icon { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--brand-accent);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.callout__title { font-size: var(--font-size-lg); font-weight: 700; color: var(--text-heading); margin-bottom: 6px; }
.callout__body { font-size: var(--font-size-sm); color: var(--text-body); line-height: 1.7; }

/* ---------------- Dedicated-site spotlight (this product has its own website) ---------------- */
.spotlight { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
    background: linear-gradient(160deg, var(--hero-grad-1) 0%, var(--hero-grad-2) 55%, var(--hero-grad-3) 100%);
    color: var(--text-on-dark); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6); }
.spotlight__eyebrow { font-size: var(--font-size-xs); font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--hero-pill-icon); }
.spotlight__title { font-size: 28px; font-weight: 700; line-height: 1.2; max-width: 760px; margin: var(--space-2) auto var(--space-3); }
.spotlight__title .dom { color: var(--brand-accent); white-space: nowrap; }
.spotlight__body { font-size: var(--font-size-base); color: var(--text-on-dark-muted); max-width: 650px; margin: 0 auto var(--space-4); line-height: 1.7; }
.spotlight__cta { display: inline-flex; align-items: center; gap: 4px; background: var(--brand-accent); color: #fff;
    font-weight: 700; font-size: var(--font-size-base); padding: 13px 28px; border-radius: var(--radius-full);
    text-decoration: none; transition: transform var(--transition), box-shadow var(--transition), filter var(--transition); }
.spotlight__cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); filter: brightness(1.06); }
@media (max-width: 640px) { .spotlight { padding: var(--space-6) var(--space-3); } .spotlight__title { font-size: 22px; } }

/* ---------------- Duo (an A -> B relationship, e.g. Program -> Pricing) ---------------- */
.duo { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: stretch; }
.duo__panel { background: var(--bg-page); border: 1px solid rgba(0,0,0,0.08); border-radius: var(--radius-lg); padding: var(--space-4); }
.duo__panel--primary { border-top: 4px solid var(--brand-primary); }
.duo__panel--accent { border-top: 4px solid var(--brand-accent); }
.duo__tag { font-size: var(--font-size-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--brand-primary); }
.duo__panel--accent .duo__tag { color: var(--brand-accent); }
.duo__q { font-size: var(--font-size-xl); font-weight: 700; color: var(--text-heading); margin: 6px 0 8px; }
.duo__desc { font-size: var(--font-size-sm); color: var(--text-body); line-height: 1.7; }
.duo__arrow { display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 30px; }
.duo__note { text-align: center; max-width: 780px; margin: var(--space-4) auto 0; font-size: var(--font-size-base); color: var(--text-body); line-height: 1.8; }
.duo__note strong { color: var(--brand-primary); }
.spec__k--ip { color: var(--text-muted); }
.spec__v--ip { color: var(--text-muted); font-style: italic; }
@media (max-width: 768px) { .duo { grid-template-columns: 1fr; } .duo__arrow { transform: rotate(90deg); padding: var(--space-1) 0; } }

/* ---------------- Flow diagram (clickable → overlay) ---------------- */
.flow { display: flex; align-items: stretch; gap: 0; flex-wrap: nowrap; }
.flow__step {
    flex: 1; min-width: 0; text-align: center; cursor: pointer; background: var(--bg-page);
    border: 1px solid rgba(0,0,0,0.08); border-radius: var(--radius-lg); padding: var(--space-3) var(--space-2);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative; font-family: inherit;
}
.flow__step:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--brand-accent); }
.flow__num { width: 34px; height: 34px; margin: 0 auto var(--space-1); border-radius: 50%;
    background: var(--brand-primary); color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: var(--font-size-sm); }
.flow__step:hover .flow__num { background: var(--brand-accent); }
.flow__label { font-size: var(--font-size-sm); font-weight: 600; color: var(--text-heading); }
.flow__sub { font-size: 11px; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }
.flow__more { font-size: 11px; font-weight: 600; color: var(--brand-accent); margin-top: 8px; opacity: 0; transition: opacity var(--transition); }
.flow__step:hover .flow__more { opacity: 1; }
.flow__arrow { display: flex; align-items: center; color: var(--text-muted); font-size: 20px; padding: 0 4px; flex: 0 0 auto; align-self: center; }

/* ---------------- Mode / capability tiles ---------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); }
.tile { background: var(--bg-page); border: 1px solid rgba(0,0,0,0.07); border-radius: var(--radius-md); padding: var(--space-3); }
.tile__name { font-size: var(--font-size-base); font-weight: 600; color: var(--text-heading); margin-bottom: 4px; }
.tile__desc { font-size: var(--font-size-sm); color: var(--text-body); line-height: 1.6; }

/* ---------------- Phone-split (2x2 tiles on the left, phone splash mockup on the right) ---------------- */
.phone-split { display: grid; grid-template-columns: 1fr 300px; gap: var(--space-6); align-items: center; }
.phone-split__media { text-align: center; }
.tiles--2x2 { grid-template-columns: 1fr 1fr; }
.phone { position: relative; width: 244px; margin: 0 auto; border: 10px solid #1c2740; border-radius: 42px; background: #052b66; box-shadow: 0 28px 64px rgba(5,43,102,0.30); overflow: hidden; }
.phone__notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 110px; height: 20px; background: #1c2740; border-radius: 0 0 14px 14px; z-index: 3; }
.phone__splash { aspect-ratio: 300 / 620; background: #052b66 url('images/loanpricer-mobile-splash.png') center/cover no-repeat; }
.phone__cap { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; z-index: 3; }
.phone__cap b { display: block; color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: .01em; }
.phone__cap span { display: block; font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 5px; }
.phone__cap span i { color: #63C174; font-style: normal; } /* brand rule: only the "1" is green */
.phone__legend { font-size: var(--font-size-sm); color: var(--text-muted); margin-top: 12px; font-style: italic; }
@media (max-width: 860px) { .phone-split { grid-template-columns: 1fr; } .phone-split__media { order: -1; margin-bottom: var(--space-3); } }

/* ---------------- Module hub (grid of clickable areas → overlays) ---------------- */
.hub { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.hub__card { text-align: left; cursor: pointer; background: var(--bg-page); border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-lg); padding: var(--space-4); font-family: inherit;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.hub__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--brand-accent); }
.hub__num { font-size: var(--font-size-xs); font-weight: 700; color: var(--brand-accent); letter-spacing: 1.5px; text-transform: uppercase; }
.hub__name { font-size: var(--font-size-lg); font-weight: 700; color: var(--text-heading); margin: 4px 0 2px; }
.hub__sub { font-size: var(--font-size-sm); color: var(--text-muted); margin-bottom: var(--space-2); }
.hub__areas { display: flex; flex-wrap: wrap; gap: 6px; }
.hub__area { font-size: 11px; padding: 3px 10px; border-radius: var(--radius-full); background: var(--bg-section); color: var(--text-body); }
.hub__more { font-size: 11px; font-weight: 600; color: var(--brand-accent); margin-top: var(--space-2); opacity: 0; transition: opacity var(--transition); }
.hub__card:hover .hub__more { opacity: 1; }
@media (max-width: 768px) { .hub { grid-template-columns: 1fr; } }

/* ---------------- Layered stack (the tech architecture) ---------------- */
.stack { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.stack__layer { background: var(--bg-page); border: 1px solid rgba(0,0,0,0.08); border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4); display: grid; grid-template-columns: 180px 1fr; gap: var(--space-3); align-items: center; }
.stack__name { font-weight: 700; color: var(--brand-primary); font-size: var(--font-size-base); }
.stack__layer--accent .stack__name { color: var(--brand-accent); }
.stack__tech { font-size: var(--font-size-sm); color: var(--text-body); line-height: 1.6; }
.stack__tech code { background: var(--bg-section); padding: 1px 7px; border-radius: 4px; font-size: 12px; color: var(--brand-dark); }
@media (max-width: 768px) { .stack__layer { grid-template-columns: 1fr; gap: 4px; } }

/* ---------------- Lens switcher (same knowledge, different audience) ---------------- */
.lens__tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: var(--space-4); }
.lens__tab { padding: 10px 24px; border-radius: var(--radius-full); border: 1px solid rgba(0,0,0,0.12);
    background: var(--bg-page); cursor: pointer; font-family: inherit; font-size: var(--font-size-sm);
    font-weight: 600; color: var(--text-body); transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast); }
.lens__tab:hover { border-color: var(--brand-primary); }
.lens__tab--active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.lens__stage { max-width: 760px; margin: 0 auto; }
.lens__panel { display: none; background: var(--bg-page); border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-card); }
.lens__panel--active { display: block; animation: lensIn 0.25s ease; }
@keyframes lensIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.lens__topic { font-size: var(--font-size-sm); color: var(--text-muted); text-align: center; margin-bottom: var(--space-2); }
.lens__topic strong { color: var(--brand-primary); }
.lens__q { font-size: var(--font-size-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--brand-accent); margin-bottom: 8px; }
.lens__a { font-size: var(--font-size-base); color: var(--text-body); line-height: 1.85; }
.lens__a strong { color: var(--text-heading); }

/* ---------------- Overlay (slide-in deep-dive panel) ---------------- */
.ov { position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: flex-end;
    background: rgba(8, 16, 36, 0.55); backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden; transition: opacity 0.28s ease, visibility 0.28s ease; }
.ov--open { opacity: 1; visibility: visible; }
.ov__panel { width: min(620px, 100%); height: 100%; background: var(--bg-page); display: flex; flex-direction: column;
    box-shadow: -12px 0 48px rgba(0,0,0,0.25); transform: translateX(40px); transition: transform 0.32s cubic-bezier(.2,.7,.2,1); }
.ov--open .ov__panel { transform: translateX(0); }
.ov__head { flex: 0 0 auto; position: relative; background: var(--brand-primary); color: #fff; padding: var(--space-4); }
.ov__kicker { font-size: var(--font-size-xs); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--hero-pill-icon); }
.ov__title { font-size: var(--font-size-xl); font-weight: 700; margin-top: 6px; line-height: 1.15; }
.ov__close { position: absolute; top: var(--space-3); right: var(--space-3); width: 36px; height: 36px;
    border: none; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff; font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: background var(--transition-fast); }
.ov__close:hover { background: rgba(255,255,255,0.28); }
.ov__body { flex: 1 1 auto; overflow-y: auto; padding: var(--space-4); transition: opacity 0.13s ease; }
.ov__body--fading { opacity: 0; }
.ov__body p { font-size: var(--font-size-sm); color: var(--text-body); line-height: 1.75; margin-bottom: var(--space-2); }
.ov__body h4 { font-size: var(--font-size-base); font-weight: 700; color: var(--text-heading); margin: var(--space-3) 0 var(--space-1); }
.ov__lead { font-size: var(--font-size-base) !important; color: var(--text-heading) !important; font-weight: 500; }

/* Prev/Next walker — flow through a connected group without closing */
.ov__nav { flex: 0 0 auto; display: flex; gap: var(--space-2); align-items: center; justify-content: space-between;
    padding: var(--space-2) var(--space-4); border-top: 1px solid rgba(0,0,0,0.08); background: var(--bg-page); }
.ov__nav-btn { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
    background: var(--bg-section); border: 1px solid rgba(0,0,0,0.1); border-radius: var(--radius-full);
    padding: 8px 15px; font-size: var(--font-size-sm); font-weight: 600; color: var(--brand-primary);
    cursor: pointer; font-family: inherit; transition: background var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast); }
.ov__nav-btn:hover:not(:disabled) { background: var(--brand-primary); color: #fff; }
.ov__nav-btn:disabled { opacity: 0.3; cursor: default; }
.ov__nav-btn .ov__navdir { font-weight: 700; flex: 0 0 auto; }
/* Numbered step-dot progress bar — shows the current step; click any dot to jump */
.ov__dots { display: flex; align-items: center; justify-content: center; gap: 7px; flex: 1 1 auto; flex-wrap: wrap; }
.ov__dot { width: 27px; height: 27px; flex: 0 0 auto; border-radius: 50%; border: 1.5px solid var(--brand-light);
    background: var(--bg-page); color: var(--text-muted); font-size: 12px; font-weight: 700; font-family: inherit;
    display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast); }
.ov__dot:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
.ov__dot--active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; transform: scale(1.12); cursor: default; }

/* Spec list (technical key facts inside overlays) */
.spec { border-top: 1px solid rgba(0,0,0,0.08); margin-top: var(--space-2); }
.spec__row { display: grid; grid-template-columns: 150px 1fr; gap: var(--space-2); padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.spec__k { font-size: var(--font-size-xs); font-weight: 700; color: var(--brand-primary); text-transform: uppercase; letter-spacing: 0.5px; }
.spec__v { font-size: var(--font-size-sm); color: var(--text-body); line-height: 1.6; }
.spec__v code { background: var(--bg-section); padding: 1px 6px; border-radius: 4px; font-size: 12px; color: var(--brand-dark); }

/* tag chips */
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-full);
    background: var(--brand-light); color: var(--brand-primary); margin: 0 4px 4px 0; }
.tag--green { background: var(--brand-accent-light); color: var(--brand-accent); }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
    .flow { flex-direction: column; }
    .flow__arrow { transform: rotate(90deg); padding: 4px 0; }
    .ov { justify-content: stretch; }
    .ov__panel { width: 100%; }
}
@media (max-width: 480px) { .ov__nav-txt { display: none; } .ov__nav { padding: var(--space-2); } .ov__dot { width: 25px; height: 25px; } }
@media (max-width: 768px) {
    .area-hero__title { font-size: var(--font-size-2xl); }
    .nav-dd__menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
        border: none; min-width: 0; padding: 0 0 0 var(--space-2); }
    .callout { grid-template-columns: 1fr; }
    .spec__row { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------------- Forensic Code Review CTA (Acquire panel) ---------------- */
/* Green = the brand "action/go" affordance (navy = structure). High-visibility
   read link to the Forensic Code Review PDF, centered under the panel. */
.acquire__cta { text-align: center; margin-top: var(--space-6); }
.btn-forensic { display: inline-block; padding: 16px 40px; background: var(--brand-accent); color: #fff;
    font-weight: 600; font-size: var(--font-size-base); border-radius: var(--radius-md);
    border: 2px solid var(--brand-accent);
    box-shadow: 0 6px 20px rgba(20, 138, 75, 0.28);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition); }
.btn-forensic:hover { transform: translateY(-2px); background: #0f7a40; border-color: #0f7a40; color: #fff;
    box-shadow: 0 10px 30px rgba(20, 138, 75, 0.38); }
/* Outline variant — the secondary "read" buttons (Forensic Review, About the Review): green outline that
   fills solid green on hover, so the left/primary button reads as "start here" and the others invite with
   the same color only on mouse-over. */
.btn-forensic--outline { background: transparent; color: var(--brand-accent); border-color: var(--brand-accent);
    box-shadow: none; }
.btn-forensic--outline:hover { background: var(--brand-accent); color: #fff; border-color: var(--brand-accent);
    box-shadow: 0 10px 30px rgba(20, 138, 75, 0.28); }
