/* Ported from 3rdbrain-site/pages.css by scripts/port-static-assets.ts with unused rules removed. Maintained by hand from here on. */
/* Subpages share the homepage's source styles, components, and color tokens.
   This file adds the interior layout plus the homepage's visual language: tinted hero
   photos, purple + yellow button pairs, numbered color badges (purple / yellow / dark
   purple / teal), the mint testimonial band, the dark results treatment, and the full footer. */
.detail-page {
  margin: 0;
  color: var(--black);
  background: var(--body-bg);
  font: 400 1rem/1.65 Inter, sans-serif;
}
.detail-page *, .detail-page *::before, .detail-page *::after { box-sizing: border-box; }
.detail-page h2, .detail-page h3 { font-family: Poppins, sans-serif; }
.detail-page h2 { margin: 0 0 18px; font-size: clamp(2rem, 3.5vw, 3.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -.04em; }
.detail-page h3 { margin: 0 0 12px; font-size: 1.25rem; line-height: 1.3; }
.detail-page p { margin: 0 0 18px; }
.detail-page a { text-underline-offset: 4px; }
.detail-page main a:not(.form-button):not(.secondary-cta) { color: var(--color); font-weight: 600; }
.detail-page a:focus-visible, .detail-page summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }
.detail-page [id] { scroll-margin-top: 140px; }
.page-skip { position: fixed; top: -100px; left: 16px; z-index: 200; padding: 10px 20px; background: var(--white); }
.page-skip:focus { top: 10px; }
.page-wrap { width: min(1180px, 88vw); margin-inline: auto; }
.detail-page .navbar .form-button { margin-right: 0; }
.detail-page .home-page-nav a[aria-current="page"] { color: var(--color); text-decoration: underline; }

/* Hero: homepage type, purple + yellow buttons, and a brand-tinted photo or offer card on the right. */
/* Keep the hero grid and logo strip stacked; Webflow switches this section to a row at 1920px. */
.detail-page .page-hero { display: block; background: var(--body-bg); }
.page-hero .page-wrap { width: 100%; }
.page-hero .h1-heading { width: auto; max-width: 900px; margin-bottom: 20px; }
.page-hero .paragraph-large-2 { max-width: 760px; }
.page-hero .interim-kicker { font-size: .875rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-grid .interim-offer-card { min-height: 0; }
.detail-page .hero-grid .interim-offer-card h2 { font-size: 1.5rem; letter-spacing: -.02em; }
.detail-page .interim-offer-card p, .detail-page .interim-offer-card li { font-size: 1rem; }
.hero-visual { position: relative; height: 400px; border-radius: 16px; overflow: hidden; background: var(--dark-purple); box-shadow: 0 24px 60px rgba(35, 0, 86, .18); }
.hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(112, 0, 224, .72), rgba(35, 0, 86, .35) 55%, rgba(63, 148, 176, .55)); mix-blend-mode: multiply; }
.hero-visual::before { content: ""; position: absolute; right: -60px; top: -60px; z-index: 1; width: 220px; height: 220px; border: 22px solid var(--yellow); border-radius: 50%; opacity: .95; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 22px; margin-top: 26px; }
.detail-page .button-row .form-button, .detail-page .page-cta .form-button { width: auto; min-width: 0; max-width: none; min-height: 55px; max-height: none; margin: 0; padding: 15px 28px; white-space: normal; box-shadow: 2px 2px 10px 1px #0003; }
.detail-page .button-row .secondary-cta { width: auto; min-width: 0; max-width: none; min-height: 55px; max-height: none; margin: 0; padding: 15px 28px; white-space: normal; text-decoration: none; }
.detail-page .secondary-cta:hover { background-color: #ffd363; }

/* Portrait variant: real photo, no grayscale or tint, ring accent kept. */

/* Client logo strip, same component as the homepage. */
.page-hero .f-header-logo-grid { margin-top: 56px; }

/* Section rhythm: white, soft violet, dark purple, mint. */
.page-section { padding: 72px 0; background: var(--white); }
.section-neutral { background: #f7f7fb; }
.section-dark { color: var(--white); background: var(--dark-purple); }
.section-heading { max-width: 850px; margin-bottom: 36px; }
.section-heading p { max-width: 680px; color: #615c70; font-size: 1.06rem; }
.section-heading .interim-kicker { margin-bottom: 14px; }
.section-dark .section-heading p { color: rgba(255, 255, 255, .82); }
.section-dark .interim-kicker { color: var(--yellow); }
.section-dark h2 { color: var(--white); }

/* Numbered color badges: the flywheel's purple / yellow / dark purple / teal, in order. */
.detail-page .interim-offer-grid .interim-offer-card { min-height: 0; }

/* Partnership benefits use two open columns. */
.partner-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; max-width: 1000px; margin-inline: auto; }
.partner-benefits article { padding: 24px 0 0; border-top: 3px solid var(--color); }
.partner-benefits article:nth-child(2) { border-top-color: var(--teal); }
.detail-page .partner-benefits h3 { margin: 0 0 18px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.partner-benefits p { color: #615c70; }
/* Partner audiences form full-width rows, distinct from numbered process cards. */
.partner-type-list { border-bottom: 1px solid rgba(255, 255, 255, .24); }
.partner-type-list article { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 24px 64px; padding: 32px 0; border-top: 1px solid rgba(255, 255, 255, .24); }
.detail-page .partner-type-list h3 { margin: 0; color: var(--white); font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 500; letter-spacing: -.03em; }
.detail-page .partner-type-list p { max-width: 620px; margin: 0; color: rgba(255, 255, 255, .84); font-size: 1.0625rem; }
@media (max-width: 767px) {
  .partner-benefits { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .partner-type-list article { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 26px 0; }
}

/* Process steps: flywheel-style cards with numbered circles. */
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps-grid li { position: relative; counter-increment: step; padding: 28px; border: 1px solid #e2deea; border-radius: 14px; background: var(--white); box-shadow: 0 10px 32px rgba(35, 0, 86, .06); }
.steps-grid li::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; color: var(--white); background: var(--color); font: 700 1.05rem/1 Poppins, sans-serif; }
.steps-grid li:nth-child(2)::before { color: #171329; background: var(--yellow); }
.steps-grid li:nth-child(3)::before { background: var(--dark-purple); }
.steps-grid li:nth-child(4)::before { background: var(--teal); }
.steps-grid h3 { margin-top: 0; }
.steps-grid p { color: #615c70; margin: 0; }

/* Split layouts. */
.backing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.detail-page .interim-offer-guarantee { max-width: 880px; margin: 30px auto 0; }
.detail-page .interim-offer-guarantee > span { font-size: .875rem; }
.detail-page .interim-offer-guarantee p { font-size: 1rem; margin: 0; }
.detail-page .interim-offer-card .offer-detail-link { margin-top: 22px; }

/* Results: dark treatment from the homepage strip. */
.results-wrap { width: min(1500px, calc(100% - 64px)); }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.results-card.case-preview { width: auto; min-width: 0; min-height: 0; margin: 0; padding: 24px; justify-content: flex-start; transition: transform .2s, border-color .2s; }
.results-card.case-preview:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .3); }
.case-preview .case-build { min-height: 2.6em; margin: 0 0 20px; color: var(--white); font: 700 .875rem/1.3 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; opacity: .82; }
.case-number { color: var(--teal); font: 800 2.8rem/1.05 Inter, sans-serif; letter-spacing: -.04em; }
.case-preview .case-unit { min-height: 3em; margin: 9px 0 14px; color: var(--white); font-weight: 600; font-size: 1rem; line-height: 1.5; }
.case-preview .case-company { min-height: 2.8em; margin: 0 0 18px; color: rgba(255, 255, 255, .72); font-size: .875rem; line-height: 1.4; }
.case-preview .case-body { margin: 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .88); font-size: 1rem; line-height: 1.6; }
.case-note { margin: 24px 0 0!important; font-size: .875rem; color: #615c70; }
.section-dark .case-note { color: rgba(255, 255, 255, .72); }
.detail-page .section-dark a:not(.form-button):not(.secondary-cta) { color: var(--white); }

/* Stats band: homepage results-strip numbers, static. */

/* Testimonial band: the homepage's mint section with a teal headline and a client quote. */

/* About: principles, two faces, founder. */
.principles-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: oep; }
.principles-grid article { position: relative; counter-increment: oep; padding: 22px 22px 22px 24px; border: 1px solid #e2deea; border-radius: 14px; background: var(--white); box-shadow: 0 10px 32px rgba(35, 0, 86, .05); }
.principles-grid article::before { content: counter(oep, decimal-leading-zero); display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; color: var(--white); background: var(--color); font: 700 .85rem/1 Poppins, sans-serif; }
.principles-grid article:nth-child(4n+2)::before { color: #171329; background: var(--yellow); }
.principles-grid article:nth-child(4n+3)::before { background: var(--dark-purple); }
.principles-grid article:nth-child(4n+4)::before { background: var(--teal); }
.principles-grid h3 { margin: 0 0 6px; font-size: 1.05rem; }
.principles-grid p { margin: 0; color: #615c70; font-size: .92rem; line-height: 1.5; }

/* About is a founder biography, not a promotional hero. Keep its portrait out of
   the fixed-height, cover-cropped image component and Webflow section breakpoints. */
.about-page .about-hero { padding: 56px 0; }
.about-founder-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 56px; }
.about-founder-copy { min-width: 0; max-width: 640px; }
.about-founder-copy h1 { margin: 0 0 18px; color: var(--color); font: 700 clamp(2.75rem, 5vw, 4.5rem)/1.08 Inter, sans-serif; letter-spacing: -.04em; }
.about-founder-copy p { font-size: 1.125rem; line-height: 1.7; }
.about-page .about-founder-role { margin-bottom: 24px; color: #615c70; font-size: 1rem; font-weight: 600; }
.about-founder-portrait { display: block; justify-self: end; width: 100%; max-width: 400px; height: auto; aspect-ratio: 1; border-radius: 12px; }
.about-book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.detail-page .book-subtitle { color: var(--color); font-weight: 700; margin-bottom: 24px; }
.about-page .principles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 36px; }
.about-page .principles-grid article { padding: 20px 0 0; border: 0; border-top: 1px solid #dcd7e5; border-radius: 0; background: transparent; box-shadow: none; }
.about-page .principles-grid article::before { display: block; width: auto; height: auto; margin-bottom: 10px; color: var(--color); background: none; font-size: .875rem; }
.about-page .principles-grid p { font-size: 1rem; line-height: 1.6; }

/* Compact proof blocks add evidence without repeating the homepage's promotional band. */

/* FAQ and closing call. */
.page-faq details { border-bottom: 1px solid #e2deea; padding: 20px 0; }
.page-faq details:first-child { padding-top: 0; }
.page-faq summary { cursor: pointer; font-weight: 700; }
.page-faq p { margin: 16px 0 0; color: #615c70; }
.page-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.page-cta h2 { max-width: 780px; }
.page-cta p { max-width: 700px; margin: 0; color: #615c70; }
.page-cta .form-button { flex-shrink: 0; }
.cta-band { background: #f7f7fb; }

/* The Results library keeps nine cards in three balanced desktop rows. */
@media (min-width: 1440px) { .results-wrap .case-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .results-page .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-grid .interim-offer-card { max-width: 760px; }
  .hero-grid .interim-offer-card ul { margin-top: 12px; padding-top: 16px; }
  .hero-visual { height: 320px; max-width: 760px; }
  .page-cta { display: block; }
  .page-cta .form-button { display: inline-flex; margin-top: 24px!important; }
  .principles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .about-founder-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; }
  .about-page .principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-book-grid { grid-template-columns: 1fr; gap: 28px; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .about-page .about-hero { padding: 36px 0; }
  .about-founder-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .about-founder-portrait { justify-self: start; max-width: 320px; }
  .about-page .principles-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .page-wrap, .results-wrap { width: calc(100% - 40px); }
  .detail-page .page-hero { padding: 40px 24px!important; }
  .page-hero .page-wrap { width: 100%; }
  .page-hero .h1-heading { width: 100%; max-width: 100%; }
  .hero-visual { height: 260px; }
  .page-section { padding: 48px 0; }
  .backing-grid, .steps-grid, .footer-inner, .principles-grid { grid-template-columns: 1fr; gap: 18px; }
  .page-footer nav { grid-template-columns: 1fr 1fr; }
  .case-preview .case-build, .case-preview .case-unit, .case-preview .case-company { min-height: 0; }
  .case-grid { grid-template-columns: 1fr; }
  .case-preview .case-number { font-size: 2.8rem; }
  .results-card.case-preview { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .detail-page * { scroll-behavior: auto!important; transition: none!important; } }
