/* ==========================================================================
   CorebrandAI — home page styles
   Design source: Figma "Corebrand web" (node 5044:483), 1440px desktop frame
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --black: #000;
  --white: #fff;

  --gray-090: #191919;
  --gray-060: #666;

  --dark-green: #3f5e5e;
  --dark-green-050: #9fafaf;
  --dusty-green: #b7cecd;
  --menu-green: #3f5e5e;
  --button-green: #b7cecd;
  --green: #007c57;
  --mint: #45d8b4;
  --mint-005: #f6fdfb;

  --font: 'IBM Plex Sans', sans-serif;
  --font-display: 'Brygada 1918', serif;

  --page-margin: 90px;
  --gutter: 90px;
  --section-pad: 78px;
  --max-width: 1440px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 26px;
  color: var(--black);
  background: var(--white);
}

h1, h2, h3, p, ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
.stat__num,
.report__name,
.consulting__num {
  font-family: var(--font-display);
}

h1 {
  font-size: 68px;
  line-height: 78px;
  font-weight: 700;
}

h2 {
  font-size: 46px;
  line-height: 56px;
  font-weight: 700;
}

h3 {
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.lead {
  font-size: 20px;
  line-height: 30px;
}

.eyebrow {
  font-size: 14px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 2.1px;
  text-transform: uppercase;
  color: var(--dark-green);
  padding-bottom: 36px;
}

.label {
  font-size: 15px;
  line-height: 16px;
  font-weight: 500;
  color: var(--dark-green);
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--page-margin);
  padding-right: var(--page-margin);
}

.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.bg-mint {
  background: var(--mint-005);
}

.bg-dark {
  background: var(--gray-090);
  color: var(--white);
}

.bg-black {
  background: var(--black);
  color: var(--white);
}

.bg-dark .eyebrow,
.bg-black .eyebrow {
  color: var(--dusty-green);
}

/* Heading + supporting copy, optionally beside an image */
.split {
  display: flex;
  gap: var(--gutter);
  align-items: flex-end;
}

.split--center { align-items: center; }
.split--start { align-items: flex-start; }

.split__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.split__img {
  flex: none;
  width: 585px;
  height: 329px;
  object-fit: cover;
}

/* Equal-width columns, each topped with a rule */
.cols {
  display: flex;
  gap: var(--gutter);
  padding: 40px 0;
}

.col {
  flex: 1;
  min-width: 0;
  border-top: 1px solid var(--dusty-green);
}

.col__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
}

.col__head img {
  width: 40px;
  height: 40px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  font: 600 12px/14px var(--font);
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--gray-060);
  color: var(--gray-060);
}

.btn--solid {
  background: var(--black);
  color: var(--white);
}

.btn--solid:hover {
  background: var(--gray-060);
  border-color: var(--gray-060);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.btn--white:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--gray-060);
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */
.masthead__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 180px;
  padding-top: 40px;
}

.masthead__logo img {
  width: 140px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 140 / 48;
}

.nav {
  display: flex;
  align-items: center;
  gap: 50px;
  height: 38px;
}

.nav a {
  font-size: 14px;
  line-height: 16px;
  font-weight: 600;
  color: var(--menu-green);
  white-space: nowrap;
}

.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav .nav__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 38px;
  border: 1px solid var(--button-green);
}

.nav .nav__cta:hover {
  text-decoration: none;
  background: var(--menu-green);
  border-color: var(--menu-green);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 38px;
  padding: 0;
  background: none;
  border: 1px solid var(--button-green);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--menu-green);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  max-width: 1440px;
  margin: auto;
}

.hero h1 {
  padding: 60px 450px 20px 0;
}

/* Highlighted phrase: black bar behind white text, repeated on each wrapped line.
   The gradient caps the bar at 72px so adjacent lines (78px apart) never touch. */
h1 mark {
  padding: 0 6px;
  margin: 0 -6px;
  color: var(--white);
  background: linear-gradient(var(--black), var(--black)) no-repeat center / 100% 72px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__img {
  width: calc(100% - var(--page-margin));
  max-width: 1350px;
  height: auto;
  aspect-ratio: 1350 / 808;
  object-fit: cover;
}

.hero__copy {
  padding-top: var(--section-pad);
}

.hero__copy .lead {
  padding-right: 450px;
}

.hero__actions {
  display: flex;
  gap: 24px;
  padding: 60px 0 32px;
}

.hero__note {
  font-size: 14px;
  line-height: 16px;
  color: var(--dark-green);
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.stats {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.stats__row {
  display: flex;
}

.stat {
  flex: 1;
  display: flex;
  padding-right: 28px;
  border-right: 1px solid var(--black);
}

.stat:last-child {
  flex: 0 0 247.5px;
  padding-right: 0;
  border-right: 0;
}

.stat + .stat {
  padding-left: 28px;
}

.stat__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 10px;
  min-height: 180px;
}

.stat__num {
  font-size: 73px;
  line-height: 73px;
  font-weight: 700;
}

.stats__line {
  border-top: 1px solid var(--black);
}

/* --------------------------------------------------------------------------
   Platform modules
   -------------------------------------------------------------------------- */
.modules {
  padding-top: var(--section-pad);
  padding-bottom: 48px;
}

.module-wide {
  padding: 40px 0;
}

.module-wide__body {
  display: flex;
  gap: var(--gutter);
  padding-right: 225px;
}

.module-wide__body h3 {
  flex: none;
  width: 247px;
}

/* --------------------------------------------------------------------------
   Methodology
   -------------------------------------------------------------------------- */
.approaches {
  display: flex;
}

.approach {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.approach__icon {
  width: 32px;
  height: 32px;
}

.approach--market {
  flex: none;
  width: 313.5px;
  padding-right: 66px;
}

.approach__view {
  padding-bottom: 24px;
}

.approaches__divider {
  flex: none;
  width: 1px;
  background: var(--dark-green);
}

.approaches__income {
  flex: 1;
  min-width: 0;
}

.approaches__income .approach__view {
  padding-left: 24px;
}

.approaches__row {
  display: flex;
  gap: 66px;
}

.approaches__item {
  display: flex;
  gap: 24px;
  min-width: 0;
}

.approaches__item--first {
  flex: none;
  width: 271.5px;
  padding-left: 24px;
}

.approaches__item--mid {
  flex: 1;
}

.approaches__item--last {
  flex: none;
  width: 271.5px;
}

.approaches__vline {
  flex: none;
  align-self: stretch;
  width: 1px;
  background: var(--dusty-green);
}

/* --------------------------------------------------------------------------
   Why Corebrand
   -------------------------------------------------------------------------- */
.reasons {
  flex: 1;
  min-width: 0;
}

.reason + .reason {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--dusty-green);
}

/* --------------------------------------------------------------------------
   Intelligence (reports)
   -------------------------------------------------------------------------- */
.intel__head {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-right: 450px;
  padding-bottom: 36px;
}

.intel__head .eyebrow {
  padding-bottom: 0;
}

.bg-black .cols {
  padding-top: 0;
}

.bg-black .col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top-color: var(--dark-green);
}

.bg-black .col__head {
  font-size: 15px;
  line-height: 16px;
  font-weight: 500;
  color: var(--dusty-green);
}

.report__name {
  font-size: 46px;
  line-height: 56px;
  font-weight: 700;
  color: var(--mint);
}

.report__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.report__body h3 {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Consulting
   -------------------------------------------------------------------------- */
.consulting {
  padding-bottom: 48px;
}

.consulting__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-right: 337.5px;
  padding-bottom: 40px;
}

.consulting__num {
  padding: 12px 0 20px;
  font-size: 46px;
  line-height: 56px;
  font-weight: 700;
  color: var(--green);
}

/* --------------------------------------------------------------------------
   Founders
   -------------------------------------------------------------------------- */
.founders__head {
  padding-right: 337.5px;
  padding-bottom: 40px;
}

.founder {
  max-width: 1260px;
  display: flex;
  align-items: flex-start;
  gap: 44px;
  padding: 24px 0;
  border-top: 1px solid var(--black);
}

.founder__photo {
  flex: none;
  width: 135px;
  height: 135px;
  object-fit: cover;
}

.founder__info {
  flex: 1;
  min-width: 0;
  align-self: start;
}

.founder__title {
  font-size: 20px;
  line-height: 30px;
}

.founder__bio {
  display: none;
  margin-top: 24px;
}

.founder__bio p + p {
  margin-top: 26px;
}

.founder.is-open .founder__bio {
  display: block;
}

.founder__toggle {
  flex: none;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 135px;
  padding: 0;
  background: none;
  border: 0;
  font: 700 16px/34px var(--font);
  color: var(--black);
  cursor: pointer;
}

.founder__icons {
  position: relative;
  flex: none;
  width: 12px;
  height: 24px;
}

.founder__icons img {
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
}

.founder__toggle-text {
  flex: 1;
  text-align: left;
}

.founder__icons .icon-minus,
.founder.is-open .founder__icons .icon-plus {
  display: none;
}

.founder.is-open .founder__icons .icon-minus {
  display: block;
}

/* --------------------------------------------------------------------------
   Corporate Branding Index
   -------------------------------------------------------------------------- */
.cbi {
  padding-bottom: 30px;
}

.cbi__cols {
  display: flex;
  gap: var(--gutter);
  padding-bottom: 40px;
}

.cbi__cols > * {
  flex: 1;
  min-width: 0;
}

.cbi__body p + p {
  margin-top: 26px;
}

.cbi__line {
  border-top: 2px solid var(--dark-green);
}

/* --------------------------------------------------------------------------
   Clients
   -------------------------------------------------------------------------- */
.clients__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 106px;
  padding-bottom: 106px;
}

.clients img {
  flex: none;
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Get started
   -------------------------------------------------------------------------- */
.cta {
  padding-top: 52px;
  padding-bottom: 56px;
}

.cta__cols {
  display: flex;
  gap: var(--gutter);
  padding-bottom: 32px;
}

.cta__cols > * {
  flex: 1;
  min-width: 0;
}


.cta__form {
  background: var(--black);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  padding-top: 40px;
  padding-bottom: 40px;
  color: var(--dusty-green);
}

.footer__logo {
  width: 140px;
  height: auto;
  aspect-ratio: 140 / 22;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 36px 0 32px;
  font-size: 14px;
  line-height: 16px;
}

.footer__links a:hover {
  text-decoration: underline;
}

.footer__legal {
  font-size: 12px;
  line-height: 18px;
  font-weight: 300;
}

.footer__brandlogic {
  display: inline-block;
  margin-top: 24px;
}

.footer__brandlogic img {
  height: 28px;
  width: auto;
  opacity: 0.8;
}

.footer__brandlogic:hover img {
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Collapsible navigation (wider than the tablet breakpoint so the menu fits)
   -------------------------------------------------------------------------- */
@media (max-width: 1240px) {
  .masthead__inner {
    position: relative;
    height: auto;
    padding-bottom: 24px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    height: auto;
    padding: 24px var(--page-margin);
    background: var(--white);
    border-top: 1px solid var(--dusty-green);
    border-bottom: 1px solid var(--dusty-green);
  }

  .nav.is-open {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root {
    --page-margin: 40px;
    --gutter: 40px;
    --section-pad: 56px;
  }

  h1 { font-size: 48px; line-height: 56px; }
  h2 { font-size: 36px; line-height: 44px; }

  .hero h1,
  .hero__copy .lead,
  .intel__head,
  .consulting__head,
  .founders__head {
    padding-right: 0;
  }

  .split,
  .cbi__cols,
  .cta__cols {
    flex-direction: column;
    align-items: stretch;
  }

  .split__img {
    width: 100%;
    height: auto;
    aspect-ratio: 585 / 329;
  }

  /* Hero image goes full width, dropping its right margin */
  .hero__img {
    width: 100%;
    max-width: none;
  }

  .cols {
    flex-direction: column;
  }

  /* Platform modules: extra space above each item once stacked */
  .modules .cols > .col,
  .modules .module-wide {
    margin-top: 20px;
  }

  .module-wide__body {
    flex-direction: column;
    gap: 8px;
    padding-right: 0;
  }

  .approaches,
  .approaches__row {
    flex-direction: column;
    gap: 32px;
  }

  .approach--market {
    width: auto;
    padding-right: 0;
  }

  .approaches__divider,
  .approaches__vline {
    display: none;
  }

  .approaches__item--first,
  .approaches__item--last {
    width: auto;
    padding-left: 0;
  }

  .approaches__income .approach__view {
    padding-left: 0;
  }

  /* Two equal-width columns; every stat gets the same 28px side padding,
     except the outer edges, with a rule between the columns */
  .stats__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }

  .stat,
  .stat + .stat,
  .stat:last-child {
    padding: 0 28px 20px;
    border-right: 0;
  }

  /* Top row gets the same bottom rule that .stats__line draws under the last row */
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--black);
  }

  .stat:nth-child(odd) {
    padding-left: 0;
    border-right: 1px solid var(--black);
  }

  .stat:nth-child(even) {
    padding-right: 0;
  }

  .stat__body {
    min-height: 0;
  }

  .clients__row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  :root {
    --page-margin: 20px;
    --gutter: 24px;
  }

  h1 { font-size: 36px; line-height: 44px; }
  h2 { font-size: 30px; line-height: 38px; }

  .stat__num { font-size: 56px; line-height: 56px; }
  .report__name { font-size: 36px; line-height: 44px; }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .founder {
    flex-wrap: wrap;
    gap: 20px;
  }

  .founder__info {
    flex-basis: calc(100% - 155px);
  }

  .founder__toggle {
    width: auto;
  }
}
