/* Hoot v2 home, r22 (owner: B): section#features, a bento of six tiles.
   Markup: v2-build/partials/home-features.html. The screenshot crop (.h-crop) is in home-story.css.
   3 columns at desktop (rows 2+1 / 1+2 / 2+1), 2 columns on tablets, 1 column on phones. */

body.v2 .h-bento { background: var(--h-bg); }

body.v2 .h-bento__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
body.v2 .h-bento__tile--wide { grid-column: span 2; }

body.v2 .h-bento__tile {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--h-r-lg);
  background: linear-gradient(180deg, var(--h-panel-2), var(--h-panel));
  border: 1px solid var(--h-line-soft);
  box-shadow: var(--h-shadow-2);
  overflow: hidden;
  transition: border-color var(--h-dur-2), box-shadow var(--h-dur-2), transform var(--h-dur-2) var(--h-ease-out, ease-out);
}
body.v2 .h-bento__tile::before {
  /* a soft accent glow along the top edge */
  content: ""; position: absolute; inset: 0 0 auto; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgb(var(--h-accent-rgb) / .7), transparent);
}
body.v2 .h-bento__tile:hover {
  border-color: rgb(var(--h-accent-rgb) / .35);
  box-shadow: var(--h-shadow-2), 0 18px 50px -24px rgb(var(--h-accent-rgb) / .55);
}

/* picture area: same height across a row (aspect of the crop is 1.52 for one column, 3.12 for two) */
body.v2 .h-bento__media {
  position: relative;
  margin: 12px 12px 0;
  border-radius: calc(var(--h-r-lg) - 8px);
  overflow: hidden;
  background: var(--h-bg-deep);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
body.v2 .h-bento__media .h-crop img { image-rendering: auto; }
body.v2 .h-bento__media::after {
  /* fade the bottom edge of the crop into the tile */
  content: ""; position: absolute; inset: auto 0 0; height: 28%;
  background: linear-gradient(180deg, transparent, rgba(16, 19, 24, .55));
  pointer-events: none;
}

/* floating timer tile: the widget over a blurred, dark web page */
body.v2 .h-bento__media--stage {
  aspect-ratio: 3.12;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 100%, rgb(var(--h-accent-rgb) / .14), transparent 60%), #151a22;
}
body.v2 .h-bento__page {
  position: absolute; inset: 14% 8% 0; display: grid; gap: 10px; align-content: start;
  padding: 18px; border-radius: 12px 12px 0 0;
  background: #1b212a; border: 1px solid rgba(255, 255, 255, .05);
}
body.v2 .h-bento__page i { display: block; height: 9px; border-radius: 5px; background: #262e3a; }
body.v2 .h-bento__page i:nth-child(1) { width: 38%; height: 14px; background: #2c3543; }
body.v2 .h-bento__page i:nth-child(2) { width: 92%; }
body.v2 .h-bento__page i:nth-child(3) { width: 84%; }
body.v2 .h-bento__page i:nth-child(4) { width: 88%; }
body.v2 .h-bento__page i:nth-child(5) { width: 60%; }
body.v2 .h-bento__widget {
  position: relative; z-index: 1;
  width: min(320px, 62%);
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--h-shadow-3), 0 0 46px -10px rgb(var(--h-accent-rgb) / .45);
}
body.v2 .h-bento__media--stage::after { display: none; }

body.v2 .h-bento__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 20px; flex: 1; }
body.v2 .h-bento__title { font-size: var(--h-fs-h3); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
body.v2 .h-bento__line { color: var(--h-ink-soft); line-height: 1.5; }
body.v2 .h-bento__more {
  margin-top: auto; padding-top: 8px; align-self: flex-start;
  min-height: 32px; display: inline-flex; align-items: center;
  color: var(--h-accent); font-weight: 600; font-size: var(--h-fs-small);
  text-decoration: none;
}
body.v2 .h-bento__more:hover { text-decoration: underline; text-underline-offset: 3px; }
body.v2 .h-bento__more:focus-visible { outline: 2px solid var(--h-focus); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 999px) {
  body.v2 .h-bento__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.v2 .h-bento__tile--wide { grid-column: span 2; }
  /* the owl tile shares a row with the dashboard tile here, using its narrower phone crop */
  body.v2 .h-bento__tile--owl { grid-column: auto; }
  body.v2 .h-bento__tile--owl .h-crop { --_iw: var(--miw); --_cx: var(--mcx); --_cy: var(--mcy); --_cw: var(--mcw); --_ch: var(--mch); }
}
@media (max-width: 699px) {
  body.v2 .h-bento__grid { grid-template-columns: minmax(0, 1fr); }
  body.v2 .h-bento__tile--wide { grid-column: auto; }
  body.v2 .h-bento__media--stage { aspect-ratio: 2.1; }
  body.v2 .h-bento__widget { width: 82%; }
  body.v2 .h-bento__body { padding: 16px 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body.v2 .h-bento__tile { transition: none; }
}

/* r22 fix: How it works already ends with its own space */
body.v2 .h-bento { padding-top: calc(var(--h-section-y) * .5); }
