/* Homepage (Brand 2.0).

   Its own page type: not the industry template, not the product pages.
   The signature is the answer diagram in the hero: one reviewed answer,
   and the three places it is used, each citing the same source.
   Tokens only. --signal means an action and nothing else. */

@layer brand.page {

  .home { background: var(--field); }
  .h-wrap { max-width: var(--grid-max); margin: 0 auto; }
  .h-sec { padding: clamp(72px, 8vw, 112px) var(--pad); border-top: 1px solid var(--line); }
  .h-sec h2 { margin: 0 0 12px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.04; letter-spacing: -.03em; max-width: 22ch; text-wrap: balance; }
  .h-sec .h-dek { margin: 0 0 44px; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5; font-weight: 500; color: var(--ink); max-width: 58ch; }
  .h-paper { background: var(--paper); }
  .h-faq .faq { padding: 0; }
  .h-faq details { max-width: 880px; }
  .h-faq h2 { margin-bottom: 28px; }
  .h-faq details:first-of-type { border-top: 1px solid var(--line); }
  .h-sec h2 + .h-dir { margin-top: 36px; }
  .close h2 { max-width: 24ch; }
  .h-label { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
  .h-link { font-size: 15px; font-weight: 650; color: var(--signal); text-decoration: none; }
  .h-link:hover { text-decoration: underline; }

  /* Hero ------------------------------------------------------------------ */
  .h-hero { padding: 84px var(--pad) 72px; }
  .h-hero-top { max-width: var(--grid-max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
  .h-kicker { margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
  .h-hero h1 { margin: 0 0 22px; font-size: clamp(44px, 5.6vw, 76px); line-height: .96; letter-spacing: -.035em; font-weight: 700; max-width: 12ch; text-wrap: balance; }
  .h-hero .h-sub { margin: 0; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; font-weight: 500; color: var(--ink); max-width: 44ch; }
  .h-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
  .h-btn {
    display: inline-flex; align-items: center; min-height: var(--ctl-h); padding: 0 var(--ctl-pad-x);
    background: var(--ink); color: #fff; border-radius: var(--radius);
    font-size: var(--ctl-fs); font-weight: 650; text-decoration: none;
  }
  .h-btn:hover { background: var(--signal); }
  .h-ctas .h-link { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
  .h-ctas .h-link:hover { text-decoration: none; }

  /* Product stage: one answer in the RFP, in Slack and on the call */
  .h-stage {
    max-width: var(--grid-max); margin: 56px auto 0; padding: 40px;
    display: grid; grid-template-columns: minmax(0, 1.64fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 18px 0;
    background: var(--paper); border-radius: var(--radius);
  }
  .h-stage img, .h-shot { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0, 9, 26, .06), 0 14px 36px rgba(0, 9, 26, .10); }
  .h-stage .s-rfp { grid-column: 1; grid-row: 1 / 3; align-self: center; position: relative; z-index: 1; }
  .h-stage .s-slack, .h-stage .s-call { grid-column: 2; margin-left: -36px; position: relative; z-index: 2; }
  .h-stage .s-slack { align-self: end; }
  .h-stage .s-call { align-self: start; margin-left: -8px; }
  .h-stage figcaption { grid-column: 1 / -1; margin-top: 10px; font-size: 13.5px; line-height: 1.5; font-weight: 500; color: var(--ink2); }

  /* Screenshots inside sections */
  .h-door .h-shot { margin: 0 0 22px; }
  .h-trait .h-shot, .h-steps .h-shot { margin: 0 0 20px; aspect-ratio: 5 / 3; object-fit: cover; object-position: top left; }

  /* Proof strip ----------------------------------------------------------- */
  .h-proof { padding: 26px var(--pad) 30px; border-top: 1px solid var(--line); background: var(--paper); }
  .h-proof-in { max-width: var(--grid-max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
  .h-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 38px; }
  .h-logos a { display: block; }
  .h-logos img { display: block; height: 24px; width: auto; max-width: 120px; object-fit: contain; }
  .h-g2 { display: flex; align-items: baseline; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
  .h-g2 strong { font-size: 22px; letter-spacing: -.02em; }
  .h-g2:hover span { text-decoration: underline; }

  /* Two doors --------------------------------------------------------------- */
  .h-doors { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; }
  .h-door { display: flex; flex-direction: column; padding: 30px 30px 28px; border-top: 3px solid var(--ink); background: var(--paper); border-radius: var(--radius); }
  .h-door.primary { background: var(--ink); color: #fff; border-top-color: var(--ink); }
  .h-door .name { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
  .h-door .tag { margin: 4px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
  .h-door.primary .tag { color: rgba(255, 255, 255, .64); }
  .h-door .what { margin: 16px 0 22px; font-size: 17px; line-height: 1.5; font-weight: 500; max-width: 42ch; }
  .h-door ul { list-style: none; margin: 0 0 24px; padding: 0; }
  .h-door li a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
  .h-door.primary li a { border-top-color: rgba(255, 255, 255, .16); color: #fff; }
  .h-door li a span { font-weight: 500; color: var(--ink2); }
  .h-door.primary li a span { color: rgba(255, 255, 255, .6); }
  .h-door li a:hover { color: var(--signal); }
  .h-door.primary li a:hover { color: #fff; text-decoration: underline; }
  .h-door .h-dstat { margin-top: auto; padding-top: 18px; border-top: 2px solid currentColor; }
  .h-door .h-dstat strong { display: block; font-size: clamp(34px, 3.6vw, 48px); line-height: 1; letter-spacing: -.03em; }
  .h-door .h-dstat span { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.45; }
  .h-door .h-dstat a { color: inherit; font-weight: 650; }
  .h-door .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; font-size: 14px; font-weight: 600; }
  .h-door.primary .h-link { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .5); }

  /* The Brain ----------------------------------------------------------------- */
  .h-brain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-bottom: 56px; }
  .h-trait h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.02em; }
  .h-trait p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
  .h-cmp { width: 100%; border-collapse: collapse; }
  .h-cmp th, .h-cmp td { text-align: left; vertical-align: top; padding: 14px 18px 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--ink); }
  .h-cmp thead th { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); border-bottom: 2px solid var(--ink); }
  .h-cmp tbody th { font-weight: 650; width: 24%; }
  .h-cmp td.us { font-weight: 650; }
  .h-cmp thead th.us { color: var(--ink); }
  .h-more { margin: 24px 0 0; font-size: 15px; font-weight: 550; }
  .h-more a { color: var(--signal); font-weight: 650; text-decoration: none; }
  .h-more a:hover { text-decoration: underline; }

  /* Numbers --------------------------------------------------------------------- */
  .h-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .h-num { display: flex; flex-direction: column; padding-top: 16px; border-top: 2px solid var(--ink); color: var(--ink); text-decoration: none; }
  .h-num .who { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
  .h-num strong { margin-top: 12px; font-size: clamp(40px, 4.4vw, 60px); line-height: 1; letter-spacing: -.035em; }
  .h-num span { margin-top: 10px; font-size: 14px; line-height: 1.45; }
  .h-num em { margin-top: auto; padding-top: 16px; font-style: normal; font-size: 14px; font-weight: 650; color: var(--signal); }
  .h-num:hover em { text-decoration: underline; }

  /* Industries -------------------------------------------------------------------- */
  .h-inds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
  .h-ind { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; padding: 20px 20px 22px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
  .h-ind svg { grid-row: 1 / 3; width: 36px; height: 36px; color: var(--ink); }
  .h-ind b { font-size: 16.5px; letter-spacing: -.01em; }
  .h-ind span { font-size: 13.5px; line-height: 1.45; color: var(--ink2); }
  .h-ind:hover b { color: var(--signal); }

  /* How you start ------------------------------------------------------------------ */
  .h-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .h-steps li { padding: 0; }
  .h-steps h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.02em; }
  .h-steps p { margin: 0; font-size: 15.5px; line-height: 1.55; }

  /* Explore directory ------------------------------------------------------------------ */
  .h-dir { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 24px; }
  .h-dir h3 { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .h-dir ul { list-style: none; margin: 0; padding: 0; }
  .h-dir li a { display: block; padding: 6px 0; font-size: 14.5px; line-height: 1.35; font-weight: 550; color: var(--ink); text-decoration: none; }
  .h-dir li a:hover { color: var(--signal); text-decoration: underline; }

  .close a { background: var(--signal); color: #fff; font-weight: 650; }

  /* Responsive -------------------------------------------------------------------------- */
  @media (max-width: 1080px) {
    .h-dir { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .h-inds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 900px) {
    .h-hero-top, .h-doors, .h-brain-grid, .h-steps { grid-template-columns: minmax(0, 1fr); }
    .h-hero-top { gap: 24px; }
    .h-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 28px; gap: 16px; }
    .h-stage .s-rfp { grid-column: 1 / -1; grid-row: auto; }
    .h-stage .s-slack, .h-stage .s-call { grid-column: auto; margin-left: 0; align-self: start; }
    .h-trait .h-shot, .h-steps .h-shot { max-width: 520px; }
    .h-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 640px) {
    .h-hero { padding: 48px var(--pad) 48px; }
    .h-stage { grid-template-columns: minmax(0, 1fr); margin-top: 36px; padding: 16px; gap: 12px; }
    .h-inds, .h-nums { grid-template-columns: minmax(0, 1fr); }
    .h-dir { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .h-door { padding: 24px 20px; }
    .h-door li a { flex-direction: column; gap: 2px; }
    .h-cmp thead { display: none; }
    .h-cmp, .h-cmp tbody, .h-cmp tr, .h-cmp th, .h-cmp td { display: block; width: 100%; }
    .h-cmp tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .h-cmp th, .h-cmp td, .h-cmp tbody th { border-bottom: 0; padding: 3px 0; width: auto; }
    .h-cmp td[data-label]::before { content: attr(data-label); display: block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
    .h-cmp td.us { padding: 8px 10px; margin-top: 8px; background: var(--signal-wash); }
  }
}
