/* Home Brain: Rout1 Dayline. Full-color family moments inside the R▱UT1 system. */

:root {
  --hb-mint: #dce9e3;
  --hb-orange: #f28b2e;
}

.hb-day-hero {
  min-height: 100svh;
  display: grid !important;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  grid-template-areas: "copy media";
  padding: 0 !important;
  background: var(--paper);
  overflow: hidden;
}

.hb-day-hero-media {
  grid-area: media;
  min-width: 0;
  height: 100svh;
  margin: 0;
  overflow: hidden;
  background: var(--hb-mint);
}

.hb-day-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 79%;
}

.hb-day-hero-copy {
  grid-area: copy;
  z-index: 2;
  align-self: center;
  width: min(100%, 620px);
  margin-left: max(2.5rem, calc((100vw - 1040px) / 2));
  padding: 7rem clamp(3rem, 5.5vw, 6rem) 3.5rem 0;
}

.hb-day-hero .hero-tag { margin-bottom: 1.45rem; }

.hb-product-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.hb-product-lockup img {
  width: 52px;
  height: 52px;
  border: 0.5px solid var(--line);
  border-radius: 12px;
}

.hb-product-lockup span,
.hb-hero-note,
.hb-moment-time,
.hb-platform-line,
.hb-capability-line {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hb-product-lockup span,
.hb-hero-note {
  color: var(--faint);
  font-size: 11px;
}

.hb-day-hero .hero-title {
  margin-bottom: 0.8rem;
  font-size: clamp(4.8rem, 7.2vw, 7.25rem);
  line-height: 0.88;
}

.hb-day-promise {
  max-width: 18ch;
  margin-bottom: 1rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.85vw, 2.7rem);
  font-weight: 300;
  line-height: 1.04;
}

.hb-day-hero .hero-desc { max-width: 42ch; font-size: 15px; }

.hb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.hb-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.22s, background 0.22s, border-color 0.22s, transform 0.22s;
}

.hb-button span { opacity: 0.58; transition: transform 0.22s; }
.hb-button:hover { transform: translateY(-2px); }
.hb-button:hover span { transform: translate(2px, -1px); }
.hb-button-primary { background: var(--accent); color: var(--paper); }
.hb-button-primary:hover { background: var(--ink); }

.hb-button-secondary {
  border-color: var(--accent-line);
  background: var(--paper);
  color: var(--ink-soft);
}

.hb-button-secondary:hover { border-color: var(--accent); color: var(--accent); }

body a:focus-visible {
  outline: 2px solid var(--hb-orange);
  outline-offset: 3px;
}

.hb-hero-note { margin-top: 1rem; }

.hb-dayline-section,
.hb-everywhere-section,
.hb-trust-section,
.hb-final-cta {
  padding-top: 7.5rem;
  padding-bottom: 7.5rem;
}

.hb-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.68fr);
  gap: clamp(3rem, 9vw, 8rem);
  align-items: end;
}

.hb-section-heading .section-title { max-width: 15ch; margin-bottom: 0; }

.hb-dayline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 4.5rem;
}

.hb-dayline::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: '';
  background: var(--accent);
  transform-origin: left center;
}

.hb-moment {
  position: relative;
  min-width: 0;
  padding: 2rem 1.25rem 0;
  border-right: 0.5px solid var(--line);
}

.hb-moment:first-child { padding-left: 0; }
.hb-moment:last-child { padding-right: 0; border-right: 0; }

.hb-moment::before {
  position: absolute;
  z-index: 3;
  top: -5px;
  left: 1.25rem;
  width: 10px;
  height: 10px;
  content: '';
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--accent);
}

.hb-moment:first-child::before { left: 0; background: var(--hb-orange); }
.hb-moment-time { margin-bottom: 0.7rem; color: var(--accent); font-size: 11px; }

.hb-moment h3,
.hb-trust-line h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.25;
}

.hb-moment h3 { min-height: 2.8em; font-size: 1.08rem; }

.hb-moment-media {
  aspect-ratio: 4 / 5;
  margin: 1.35rem 0 1.2rem;
  overflow: hidden;
  background: var(--hb-mint);
}

.hb-moment-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.hb-moment-morning .hb-moment-media img { object-position: center 69%; }
.hb-moment-away .hb-moment-media img { object-position: center 66%; }
.hb-moment-dinner .hb-moment-media img { object-position: center 63%; }
.hb-moment-tomorrow .hb-moment-media img { object-position: center 61%; }
.hb-moment:hover .hb-moment-media img { transform: scale(1.025); }
.hb-moment-tomorrow .hb-moment-media img {
  object-position: left 61%;
  transform: scale(1.9);
  transform-origin: left 61%;
}
.hb-moment-tomorrow:hover .hb-moment-media img { transform: scale(1.925); }

.hb-moment > p:last-child,
.hb-trust-line p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.hb-capability-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  margin-top: 3.25rem;
  padding-top: 1.25rem;
  border-top: 0.5px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
}

.hb-everywhere-section { background: var(--hb-mint); }
.hb-everywhere-heading { margin-bottom: 3.5rem; }

.hb-device-canvas {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: var(--paper-2);
}

.hb-device-canvas img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: scale(1.05);
  transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.hb-device-canvas:hover img { transform: scale(1.065); }

.hb-platform-line {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 11px;
}

.hb-trust-section { border-top: 0.5px solid var(--line-soft); }

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

.hb-trust-line article {
  padding: 2rem 2.25rem 2.25rem 0;
  border-right: 0.5px solid var(--line);
}

.hb-trust-line article + article { padding-left: 2.25rem; }
.hb-trust-line article:last-child { padding-right: 0; border-right: 0; }
.hb-trust-line h3 { margin-bottom: 0.65rem; font-size: 1.05rem; }

.hb-final-cta {
  background: var(--accent);
  color: var(--paper);
}

.hb-final-cta .section-label { color: rgba(255, 255, 255, 0.64); }

.hb-final-cta h2 {
  max-width: 17ch;
  font-family: var(--font-serif);
  font-size: clamp(3.1rem, 6vw, 5.8rem);
  font-weight: 300;
  line-height: 0.98;
}

.hb-final-cta h2 span { color: var(--hb-mint); }

.hb-final-cta > .wrap > p:not(.section-label) {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

.hb-button-light { background: var(--paper); color: var(--accent); }
.hb-button-light:hover { background: var(--ink); color: var(--paper); }

.hb-button-outline {
  border-color: rgba(255, 255, 255, 0.58);
  color: var(--paper);
}

.hb-button-outline:hover { border-color: var(--paper); background: rgba(255, 255, 255, 0.1); }

@media (prefers-reduced-motion: no-preference) {
  .hb-day-hero-media img {
    animation: hb-image-settle 1.35s cubic-bezier(0.2, 0.6, 0.2, 1) both;
  }

  .hb-product-lockup,
  .hb-actions,
  .hb-hero-note {
    opacity: 0;
    transform: translateY(12px);
    animation: hb-rise 0.85s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  }

  .hb-product-lockup { animation-delay: 0.14s; }
  .hb-actions { animation-delay: 0.54s; }
  .hb-hero-note { animation-delay: 0.64s; }

  html.js .reveal .hb-dayline::before { transform: scaleX(0); }
  html.js .reveal.in .hb-dayline::before {
    transform: scaleX(1);
    transition: transform 1.1s 0.15s cubic-bezier(0.2, 0.6, 0.2, 1);
  }

  html.js .reveal .hb-moment::before { opacity: 0; transform: scale(0.3); }
  html.js .reveal.in .hb-moment::before {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.35s, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  html.js .reveal.in .hb-moment:nth-child(2)::before { transition-delay: 0.28s; }
  html.js .reveal.in .hb-moment:nth-child(3)::before { transition-delay: 0.48s; }
  html.js .reveal.in .hb-moment:nth-child(4)::before { transition-delay: 0.68s; }
}

@keyframes hb-rise { to { opacity: 1; transform: none; } }
@keyframes hb-image-settle { from { transform: scale(1.045); } to { transform: scale(1); } }

@media (max-width: 920px) {
  .hb-day-hero { grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr); }
  .hb-day-hero-copy { margin-left: 2rem; padding-right: 2.5rem; }
  .hb-day-hero .hero-title { font-size: 4.8rem; }
  .hb-day-promise { font-size: 2rem; }
  .hb-moment { padding-right: 0.85rem; padding-left: 0.85rem; }
  .hb-moment:first-child { padding-left: 0; }
  .hb-moment:last-child { padding-right: 0; }
  .hb-moment::before { left: 0.85rem; }
}

@media (max-width: 760px) {
  .hb-day-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas: "media" "copy";
    padding-top: 58px !important;
  }

  .hb-day-hero-media { height: clamp(270px, 35svh, 330px); }
  .hb-day-hero-media img { object-position: center 78%; }

  .hb-day-hero-copy {
    width: auto;
    margin: 0;
    padding: 1.6rem 1.5rem 2.2rem;
  }

  .hb-day-hero .hero-tag { margin-bottom: 1rem; }
  .hb-product-lockup { margin-bottom: 1rem; }
  .hb-day-hero .hero-title { margin-bottom: 0.45rem; font-size: 3.65rem; }
  .hb-day-promise { margin-bottom: 0.75rem; font-size: 1.7rem; }
  .hb-day-hero .hero-desc { font-size: 14px; line-height: 1.55; }
  .hb-actions { margin-top: 1.2rem; }
  .hb-hero-note { margin-top: 0.8rem; }

  .hb-dayline-section,
  .hb-everywhere-section,
  .hb-trust-section,
  .hb-final-cta {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }

  .hb-section-heading { grid-template-columns: 1fr; gap: 1.25rem; }

  .hb-dayline {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 3.5rem;
    padding-left: 0.1rem;
  }

  .hb-dayline::before {
    top: 0;
    right: auto;
    bottom: 0;
    left: 4px;
    width: 1px;
    height: auto;
    transform-origin: center top;
  }

  .hb-moment,
  .hb-moment:first-child,
  .hb-moment:last-child {
    padding: 0 0 4rem 2rem;
    border-right: 0;
  }

  .hb-moment:last-child { padding-bottom: 0; }

  .hb-moment::before,
  .hb-moment:first-child::before {
    top: 0.25rem;
    left: -1px;
  }

  .hb-moment h3 { min-height: 0; font-size: 1.2rem; }
  .hb-moment-media { aspect-ratio: 5 / 6; margin-top: 1.1rem; }

  .hb-capability-line { justify-content: flex-start; }
  .hb-everywhere-heading { margin-bottom: 2.75rem; }
  .hb-trust-line { grid-template-columns: 1fr; }

  .hb-trust-line article,
  .hb-trust-line article + article {
    padding: 1.6rem 0 1.8rem;
    border-right: 0;
    border-bottom: 0.5px solid var(--line);
  }

  .hb-trust-line article:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  .hb-day-hero-media { height: 285px; }
  .hb-day-hero .hero-tag { display: none; }
  .hb-product-lockup span,
  .hb-hero-note,
  .hb-moment-time,
  .hb-platform-line,
  .hb-capability-line { font-size: 11px; }

  .hb-day-hero .hero-title { font-size: 3.25rem; }
  .hb-day-promise { font-size: 1.55rem; }
  .hb-actions { align-items: stretch; flex-direction: column; }
  .hb-button { width: 100%; min-height: 46px; }

  .hb-moment-media { aspect-ratio: 4 / 5; }
  .hb-device-canvas { aspect-ratio: 4 / 3; }
  .hb-device-canvas img {
    object-position: 68% 78%;
    transform: scale(1.55) translateY(-7%);
  }

  .hb-device-canvas:hover img { transform: scale(1.55) translateY(-7%); }
  .hb-platform-line { flex-wrap: wrap; justify-content: flex-start; gap: 0.75rem 1.5rem; }
  .hb-final-cta h2 { font-size: 3.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hb-button,
  .hb-button span,
  .hb-moment-media img,
  .hb-device-canvas img { transition: none; }
}
