/* ─────────────────────────────────────────────────────────────
   CrewTower - the feature section (#features)

   Nine features, each a tinted tile with its words on top and a
   real capture of the app below them. The tiles are sized to what
   each capture needs to stay readable rather than made equal: the
   list is four columns wide, the conversation stands two rows tall,
   a card that is mostly one wide row bleeds off its tile's edge, and
   the usage footer, which is a strip in the app, is a strip here.

   ── where the pictures come from ──────────────────────────────
   Every image in assets/features/ is the real app, captured off
   screen from a lab copy at 2x and cut by
   scripts/site-feature-shots/ (its README says how to refresh them
   after the app changes). Nothing in the panel is drawn in the DOM,
   so nothing here has to be kept in step with the app's own views.

   ── the tile ──────────────────────────────────────────────────
   The tint is the homepage's: the hero landscape washed in
   lavender, peach or sky. The capture is the product on the light
   page, the one floating object here, so it alone has a shadow.

   ── motion ────────────────────────────────────────────────────
   One loop, the card opening into its conversation, played by
   features.js only while it is on screen and never under
   prefers-reduced-motion; its poster is that conversation, open.
   ───────────────────────────────────────────────────────────── */

.ft *, .ft *::before, .ft *::after { box-sizing: border-box; }
.ft .block-head { margin-bottom: 40px; }

.ft-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 330px;
  gap: 16px;
}

/* ── the tile ─────────────────────────────────────────────────── */

.ft-tile {
  --tint-from: #eee8fc70; --tint-to: #faf6ff26; --tint-hue: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #6b558323;
  border-radius: 18px;
  background: #f4effa;
  box-shadow: inset 0 1px 0 #ffffff9c, 0 9px 30px -24px #4c326b35;
}
.ft-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('assets/hero-landscape-v2.webp') center 76% / auto 145% no-repeat;
  filter: saturate(.6) hue-rotate(var(--tint-hue));
  opacity: .72;
}
.ft-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(145deg, var(--tint-from), var(--tint-to));
}
.ft-peach { --tint-from: #fff0e69c; --tint-to: #fce8e947; --tint-hue: 110deg; }
.ft-peach::before { background-position: 75% bottom; }
.ft-sky { --tint-from: #edf5ff80; --tint-to: #dff4f34d; --tint-hue: -45deg; }

.ft-w2 { grid-column: span 2; }
.ft-w3 { grid-column: span 3; }
.ft-w4 { grid-column: span 4; }
.ft-tall { grid-row: span 2; }

.ft-copy { padding: 26px 28px 0; max-width: 460px; }
.ft-title { margin: 0 0 7px; color: #302838; font-size: 16px; line-height: 1.35; font-weight: 600; letter-spacing: -.025em; }
.ft-text { margin: 0; font-size: 14px; line-height: 1.65; color: #706878; text-wrap: pretty; }
.ft-beta { display: inline-block; margin-left: 3px; padding: 1px 6px; border: 1px solid #8d739540; border-radius: 5px; font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; color: #6b507b; }

/* The capture sits in what the words leave of the tile, so longer copy at
   an in-between width pushes it down rather than under the words. */
.ft-stage { position: relative; flex: 1 1 auto; min-height: 96px; margin-top: 22px; }

/* ── the capture ──────────────────────────────────────────────── */
/* A slice of the real panel: black, with the app's 14pt card corner. */

.ft-shot {
  position: absolute;
  top: 0;
  left: 28px;
  width: calc(100% - 56px);
  margin: 0;
  /* Never past the panel's own width in points, the most a 2x capture holds. */
  max-width: 736px;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 26px 48px -28px #2a1d3d99, 0 2px 8px #2a1d3d14;
}
.ft-shot img, .ft-shot video { display: block; width: 100%; height: auto; }
/* A capture of the panel's foot carries its own rounded corners. */
.ft-foot { background: transparent; }

.ft-glance .ft-shot { left: auto; right: 5%; width: 84%; }
.ft-approve .ft-shot { top: 8px; width: 150%; }
.ft-question .ft-shot { width: 140%; }
.ft-conversation .ft-shot { left: 7%; width: 86%; }
.ft-jump .ft-shot { left: auto; right: 24px; top: 12px; width: 150%; }

/* The usage footer is one strip in the app, so it gets one here. */
.ft-strip { flex-direction: row; align-items: center; height: 190px; margin-top: 16px; }
.ft-strip::before { background-size: cover; }
.ft-strip .ft-copy { flex: 0 0 360px; padding-top: 0; }
.ft-strip .ft-stage { align-self: stretch; margin: 0; }
.ft-strip .ft-shot { top: 50%; left: auto; right: 28px; width: min(100% - 28px, 640px); transform: translateY(-50%); }

/* ── narrower ─────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .ft-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .ft-tile { grid-column: auto; grid-row: auto; min-height: 330px; }
  .ft-tall { min-height: 560px; }
  .ft-strip { flex-direction: column; align-items: stretch; height: auto; min-height: 280px; }
  .ft-strip .ft-copy { flex: none; padding-top: 26px; }
  .ft-strip .ft-stage { margin-top: 22px; }
  .ft-strip .ft-shot { top: 0; left: 28px; right: auto; width: 150%; transform: none; }
  /* The conversation is shown whole, dock included: it sits in the flow and
     its tile grows to fit it. */
  .ft-conversation .ft-stage { flex: none; }
  .ft-conversation .ft-shot { position: relative; margin-bottom: 28px; }
}

/* On a phone a whole panel would land at a third of its size, so every
   capture keeps at least 138% of the tile and bleeds off its far edge. */
@media (max-width: 600px) {
  .ft-copy { padding: 22px 22px 0; }
  .ft-shot,
  .ft-glance .ft-shot,
  .ft-conversation .ft-shot,
  .ft-strip .ft-shot { left: 22px; right: auto; width: max(138%, 100% - 44px); }
  .ft-approve .ft-shot { width: 150%; }
  .ft-jump .ft-shot { left: auto; right: 22px; width: 150%; }
  .ft-tall { min-height: 500px; }
  .ft-conversation .ft-shot { margin-bottom: 22px; }
}
