/* Home Brain product page — extends the shared R▱UT1 design system. */

.hb-hero {
  min-height: 94svh;
  padding-bottom: 4rem;
}

.hb-hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.64fr);
  gap: clamp(4rem, 8vw, 8rem);
  align-items: center;
}

.hb-hero-copy { max-width: 620px; }

.hb-product-mark {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hb-product-mark img {
  width: 58px;
  height: 58px;
  border-radius: 13px;
  border: 0.5px solid var(--line);
}

.hb-hero .hero-title {
  margin-bottom: 1.2rem;
  font-size: clamp(4.5rem, 8vw, 7rem);
}

.hb-hero .hero-lede { margin-bottom: 1.25rem; }

.hb-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  margin-top: 2rem;
}

.hb-footnote {
  margin-top: 1.25rem;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.hb-hero-art {
  margin: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hb-hero-art img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - 7.5rem);
  object-fit: contain;
  border: 0.5px solid var(--line);
}

.hb-process {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 4rem;
  margin-top: 3.5rem;
}

.hb-process li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  padding: 1.6rem 0;
  border-top: 0.5px solid var(--line);
}

.hb-process-no,
.hb-principles article > span,
.hb-gallery figcaption span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.hb-process h3,
.hb-principles h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
}

.hb-process p,
.hb-principles p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.hb-gallery-section { background: var(--paper-2); }

.hb-gallery {
  width: min(100%, 860px);
  margin: 4rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5rem 4rem;
  align-items: start;
}

.hb-gallery figure {
  margin: 0;
  padding-top: 1rem;
  border-top: 0.5px solid var(--line);
}

.hb-gallery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: auto;
}

.hb-gallery figcaption {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1rem;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.hb-gallery-last {
  grid-column: 1 / -1;
  width: calc((100% - 4rem) / 2);
  justify-self: center;
}

.hb-platform {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.hb-platform-copy { min-width: 0; }

.hb-platform-links {
  margin-top: 2.5rem;
  border-top: 0.5px solid var(--line);
}

.hb-platform-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 0.5px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: padding 0.2s, color 0.2s;
}

.hb-platform-links a:hover {
  padding-left: 0.4rem;
  color: var(--accent);
}

.hb-platform-links span { display: flex; flex-direction: column; gap: 0.15rem; }
.hb-platform-links strong { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 400; }
.hb-platform-links small { color: var(--faint); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; }
.hb-platform-links i { color: var(--faint); font-style: normal; }

.hb-ipad { margin: 0; }
.hb-ipad img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 0.5px solid var(--line);
}

.hb-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
  border-top: 0.5px solid var(--line);
}

.hb-principles article {
  min-height: 240px;
  padding: 1.5rem 2rem 1.5rem 0;
  border-right: 0.5px solid var(--line);
}

.hb-principles article + article { padding-left: 2rem; }
.hb-principles article:last-child { padding-right: 0; border-right: 0; }
.hb-principles h3 { margin-top: 4.5rem; }

.hb-cta-links { margin-top: 2rem; }

@media (prefers-reduced-motion: no-preference) {
  .hb-hero-art {
    opacity: 0;
    transform: translateY(18px);
    animation: hb-rise 1s 0.3s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  }

  .hb-links,
  .hb-footnote,
  .hb-product-mark {
    opacity: 0;
    transform: translateY(12px);
    animation: hb-rise 0.8s 0.5s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  }
}

@keyframes hb-rise { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hb-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.58fr);
    gap: 3rem;
  }

  .hb-process { column-gap: 2rem; }
  .hb-gallery { gap: 3rem 2rem; }
  .hb-gallery-last { width: calc((100% - 2rem) / 2); }
  .hb-platform { grid-template-columns: 1fr; }
  .hb-platform-copy { max-width: 560px; }
}

@media (max-width: 620px) {
  .hb-hero { padding-bottom: 4.5rem; }
  .hb-hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hb-hero .hero-title { font-size: 3.35rem; }
  .hb-product-mark { margin-bottom: 1.5rem; }
  .hb-product-mark img { width: 50px; height: 50px; border-radius: 11px; }
  .hb-hero-art { justify-content: center; }
  .hb-hero-art img { width: min(100%, 330px); max-height: none; }
  .hb-process { grid-template-columns: 1fr; }
  .hb-process li { grid-template-columns: 2.4rem 1fr; }
  .hb-gallery { grid-template-columns: 1fr; gap: 4rem; }
  .hb-gallery-last { grid-column: auto; width: 100%; }
  .hb-gallery figure { width: min(100%, 390px); justify-self: center; }
  .hb-principles { grid-template-columns: 1fr; }
  .hb-principles article,
  .hb-principles article + article {
    min-height: 0;
    padding: 1.5rem 0 2.5rem;
    border-right: 0;
    border-bottom: 0.5px solid var(--line);
  }
  .hb-principles article:last-child { border-bottom: 0; }
  .hb-principles h3 { margin-top: 2.75rem; }
}
