/* 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-grid { max-width: var(--grid-max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 64px; align-items: center; }
  .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; }

  /* The answer diagram: one reviewed answer on ink, three uses below it */
  .h-diagram { margin: 0; }
  .h-answer { padding: 22px 24px 20px; background: var(--ink); color: #fff; border-radius: var(--radius); }
  .h-answer .h-label { color: rgba(255, 255, 255, .62); margin-bottom: 12px; }
  .h-answer .q { margin: 0 0 10px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
  .h-answer .ans { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
  .h-answer .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .72); }
  .h-answer .meta b { color: #fff; font-weight: 700; }
  .h-links { display: grid; grid-template-columns: repeat(3, 1fr); height: 26px; }
  .h-links i { justify-self: center; width: 1px; background: var(--ink); opacity: .35; }
  .h-uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .h-use { padding: 14px 14px 13px; background: var(--paper); border-top: 2px solid var(--ink); border-radius: var(--radius); }
  .h-use .where { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
  .h-use .u-doc { display: block; margin-top: 6px; font-size: 14px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
  .h-use .snip { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--ink); }
  .h-use .cite { display: block; margin-top: 8px; font-size: 11.5px; font-weight: 600; color: var(--ink2); }
  .h-diagram figcaption { margin-top: 14px; font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--ink2); }

  /* 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 { padding-top: 18px; border-top: 2px solid var(--ink); }
  .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-top: 18px; border-top: 2px solid var(--ink); }
  .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-grid, .h-doors, .h-brain-grid, .h-steps { grid-template-columns: minmax(0, 1fr); }
    .h-hero-grid { gap: 44px; }
    .h-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 640px) {
    .h-hero { padding: 48px var(--pad) 48px; }
    .h-uses { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .h-links { display: none; }
    .h-uses { margin-top: 10px; }
    .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); }
  }
}
