/* eBook — Data & AI Playbook (task #617)
   Built from Figma node 16154:7919, file Kdd7CiRKxv6jFOXTb3HbuJ.
   Scoped entirely under .ebk-* / .ebk so it cannot leak into other pages;
   reuses shared tokens already used elsewhere on the site (yellow #f7b82a
   CTA, purple #8031a7, orange #f96815, blue #005eb8/#59cbe8, green #00a86b)
   and the shared .do-breadcrumb component + .ttc-hero-serif italic accent. */

.ebk { background: #fff; }

/* theme.css sets a global `li:before{content:"\f00c";font-family:FontAwesome}`
   (a FontAwesome checkmark) on every <li> sitewide. This page uses its own
   check/number/icon markers per list, so neutralize the sitewide default
   here rather than touching theme.css (which every other page relies on). */
.ebk li:before { content: none; }
.ebk ul, .ebk ol { list-style: none; padding: 0; margin: 0; }
.ebk li { padding-left: 0; margin-bottom: 0; font-size: inherit; }

/* ---- Banner ---- */
.ebk-banner {
    position: relative;
    min-height: 595px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 132px 0 60px;
}
.ebk-banner__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
.ebk-banner__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(267deg, rgba(0, 36, 71, 0) 24%, rgba(0, 36, 71, 0.57) 57%, rgb(0, 36, 71) 80%);
}
.ebk-banner__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 672px;
    margin: 0 clamp(20px, 6.94vw, 100px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* This page never enqueues design-outcomes-studio.css (the file that defines
   .do-breadcrumb's real styling elsewhere on the site) — .do-breadcrumb here
   was only ever reusing the class NAME with no matching stylesheet loaded, so
   it silently fell back to the browser default (16px) instead of the Figma
   spec (14px/22px/-0.42px, get_design_context node 16190:8706). Defined
   directly here instead of pulling in an unrelated page's whole stylesheet. */
.ebk-banner .do-breadcrumb,
.ebk-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: -0.42px;
    color: #f2f2f2;
    margin-bottom: 0;
}
.ebk-breadcrumb .do-breadcrumb-link,
.ebk-breadcrumb .do-breadcrumb-current { color: #f2f2f2; }
.ebk-breadcrumb__home { filter: brightness(0) invert(1); }

.ebk-banner__title h1 {
    display: block;
    margin: 0 0 4px;
    font-weight: 500;
    font-size: 56px;
    line-height: 1.2;
    color: #fff;
}
/* Spec (get_design_context 16190:8710) has this specific headline's serif
   emphasis at SemiBold(600), not the shared .ttc-hero-serif class's usual
   Medium(500) — scoped override, .ttc-hero-serif itself is unchanged. */
.ebk-banner__em { font-weight: 600; }
.ebk-banner__volume {
    display: inline-block;
    margin-top: 4px;
    padding: 4px 8px;
    background: rgba(0, 94, 184, 0.28);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 16px;
}
.ebk-banner__sub { display: flex; flex-direction: column; gap: 12px; color: #fff; }
.ebk-banner__sub-lead { margin: 0; font-size: 32px; line-height: 1.5; }
/* Saloni (task #627), corrected by Nishanth: "like a subtitle" is this line
   ("Mapping the Market Landscape & ICP Identification."), not the sub-lead
   above — italicized here instead. Figma's original spec has this not-italic;
   this is a deliberate content/design change, not a spec-fidelity fix. */
.ebk-banner__sub-body { margin: 0; font-size: 22px; line-height: 1.5; font-style: italic; }

.ebk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 15px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
}
.ebk-btn--yellow { background: #f7b82a; color: #000; }
.ebk-btn--yellow:hover { background: #e5a800; }
.ebk-banner__inner > .ebk-btn { align-self: flex-start; }

/* ---- Layout: main column + sticky form ---- */
.ebk-layoutwrap { padding: 90px clamp(20px, 6.94vw, 100px) 0; }
.ebk-layout {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 505px;
    gap: 40px;
    align-items: start;
}
.ebk-main { display: flex; flex-direction: column; gap: 62px; padding-bottom: 90px; max-width: 695px; }

.ebk-block { display: flex; flex-direction: column; gap: 24px; }
.ebk-block--rule { padding-bottom: 32px; border-bottom: 1px solid #f2f2f2; }

.ebk-h2 {
    display: block;
    margin: 0;
    font-weight: 400;
    font-size: 40px;
    line-height: 1.2;
    color: #000;
}
.ebk-h2 em { font-size: 46px; font-style: italic; font-weight: 500; }
.ebk-accent--orange { color: #f96815; }
.ebk-accent--purple { color: #8031a7; }
.ebk-accent--blue { color: #005eb8; }
.ebk-accent--green { color: #00a86b; }
.ebk-accent--yellow { color: #ffb900; }
.ebk-accent--purple-text { color: #8031a7; font-style: normal; }

.ebk-lead { margin: 0; font-weight: 500; font-size: 20px; line-height: 1.2; color: #000; }
.ebk-body { margin: 0; font-size: 18px; line-height: 1.5; color: #000; }
.ebk-body strong { font-weight: 500; }

.ebk-numbered { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.ebk-numbered li { display: flex; gap: 16px; align-items: center; }
.ebk-numbered__num {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #59cbe8;
    border-radius: 24px;
    font-weight: 600;
    font-size: 22px;
    color: #005eb8;
}
.ebk-numbered__title { margin: 0 0 8px; font-weight: 600; font-size: 20px; line-height: 30px; color: #000; }
.ebk-numbered__text { margin: 0; font-size: 18px; line-height: 30px; color: #000; }
.ebk-numbered__text strong { font-weight: 500; }

.ebk-volumes { display: flex; flex-direction: column; gap: 20px; }
.ebk-volume { padding: 24px; display: flex; flex-direction: column; gap: 32px; }
.ebk-volume--blue { background: rgba(205, 239, 248, 0.5); }
.ebk-volume--orange { background: rgba(254, 237, 233, 0.5); }
.ebk-volume__tag {
    margin: 0 0 8px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1.68px;
    text-transform: uppercase;
}
.ebk-volume--blue .ebk-volume__tag { color: #005eb8; }
.ebk-volume--orange .ebk-volume__tag { color: #f96815; }
.ebk-volume__title { margin: 0; font-weight: 500; font-size: 24px; line-height: 1.2; color: #000; }
.ebk-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.ebk-checklist li { display: flex; flex-direction: column; gap: 4px; }
.ebk-checklist__head { display: flex; align-items: center; gap: 8px; }
.ebk-checklist img { flex: 0 0 21px; }
.ebk-checklist__title { font-weight: 600; font-size: 20px; line-height: 30px; color: #000; }
.ebk-checklist__desc { margin: 0; padding-left: 29px; font-size: 18px; line-height: 30px; color: #000; }

.ebk-logos { display: flex; flex-wrap: wrap; gap: 16px; }
.ebk-logo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    padding: 12px 16px;
    border: 1px solid #dadada;
}
.ebk-logo-tile--flush { padding: 0; overflow: hidden; }
.ebk-logo-tile img { display: block; max-height: 100%; width: auto; }

.ebk-audience { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.ebk-audience li { display: flex; align-items: center; gap: 16px; }
.ebk-audience img { flex: 0 0 42px; }
.ebk-audience span { font-size: 18px; line-height: 30px; color: #000; }
.ebk-audience strong { font-weight: 600; }

.ebk-claim {
    padding: 32px;
    border: 1px solid #dadada;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.ebk-claim__title { margin: 6px 0 0; font-weight: 500; font-size: 20px; line-height: 1.2; color: #000; }

/* ---- Sticky form ---- */
.ebk-formwrap { position: relative; height: 100%; }
.ebk-form-card {
    position: sticky;
    top: 24px;
    width: 100%;
    padding: 32px 24px;
    background: #f2f2f2;
    border: 1px solid #dadada;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.ebk-form-card__heading { margin: 0; font-weight: 600; font-size: 24px; line-height: 1.4; color: #000; }
.ebk-form { display: flex; flex-direction: column; gap: 24px; }
.ebk-form__label { display: flex; flex-direction: column; gap: 4px; font-size: 18px; color: #000; }
.ebk-form__label-text { display: block; }
.ebk-form__req { color: #f96815; }
.ebk-form__label input {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 16px;
    font-family: inherit;
    color: #000;
}
.ebk-form__label input::placeholder { color: #63666a; }
.ebk-form__label input:focus { outline: 2px solid #8031a7; outline-offset: 1px; }
.ebk-form__btn { width: 184px; }
.ebk-form__msg { font-size: 14px; }
.ebk-form__msg.is-err { color: #b32d2e; }
.ebk-form__msg.is-ok { color: #1a7f37; }

/* ---- Success modal (mirrors #web-success pattern) ---- */
.ebk-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.ebk-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.ebk-modal__card {
    position: relative;
    z-index: 1;
    max-width: 420px;
    width: calc(100% - 40px);
    padding: 32px;
    background: #fff;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}
.ebk-modal__card h3 { margin: 0 0 12px; font-size: 22px; color: #000; }
.ebk-modal__card p { margin: 0; font-size: 16px; color: #63666a; }
.ebk-modal__download { margin-top: 20px; text-decoration: none; }
.ebk-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #000;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .ebk-layout { grid-template-columns: minmax(0, 1fr); }
    .ebk-formwrap { order: -1; }
    .ebk-form-card { position: static; }
    .ebk-banner__title h1 { font-size: 40px; }
    .ebk-banner__sub-lead { font-size: 26px; }
    .ebk-h2 { font-size: 32px; }
    .ebk-h2 em { font-size: 36px; }
}
@media (max-width: 575px) {
    .ebk-banner { padding: 110px 0 48px; min-height: 0; }
    .ebk-banner__title h1 { font-size: 32px; }
    .ebk-layout { padding-top: 60px; }
    .ebk-main { gap: 48px; padding-bottom: 60px; }
}
