/* Tester feedback, 27 November 2026: every app screen sits on an iPhone, the opening loses the
   water glass, and the Today screen shows its first line in full. Loaded last, so it wins.
   The phone is drawn here (a dark bezel, rounded corners and the island); no Apple artwork. */

/* The phone around each screen. The app's own picture is unchanged inside it. */
.screen-window {
  position: relative;
  border: 10px solid #0b0d14;
  border-radius: 46px;
  background: #050a22;
  box-shadow: 0 0 0 1.5px #3b4152, 0 0 0 4px #161a24, 0 32px 70px rgba(0, 0, 0, 0.55);
}
/* The status-bar strip at the top of the screen, with the island in it. */
.screen-window::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 28px;
  background: #050a22;
  z-index: 2;
  pointer-events: none;
}
.screen-window::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 30%;
  height: 17px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
  z-index: 3;
  pointer-events: none;
}
/* The food screens are whole screens, with their own space at the top: no strip needed. */
.food-window::before { display: none; }

/* No "View screen" buttons; anything left from an older script stays out of sight. */
.screen-inspect { display: none !important; }

/* The opening: the phone on its own, centred in its space. */
.hero-water { display: none; }
.hero-screen { right: auto; left: 50%; translate: -50% 0; }
/* The Today screen from just above "You hit 3 of 7 goals yesterday", so the line reads in full
   with room above it (it was cut off at the top). */
.today-window img { margin-top: -46% !important; }

/* The day story's screen and the Readiness and Sleep figures get the same phone. */
.day-screen { border-radius: 46px; }

@media (max-width: 760px) {
  .screen-window { border-width: 8px; border-radius: 38px; }
  .screen-window::before { height: 24px; }
  .screen-window::after { top: 7px; height: 14px; }
  .hero-screen { width: min(78%, 300px); }
}

/* Readiness and Sleep sit side by side; at the band's full column width they read as tablets,
   so each phone is phone-shaped and centred in its column, its caption under it. */
.readiness-gallery figure { display: flex; flex-direction: column; align-items: center; }
.readiness-gallery figcaption { max-width: 34ch; }
.readiness-window, .sleep-window { width: min(300px, 100%); }
.readiness-window { height: 600px; }
.sleep-window { height: 560px; }
@media (max-width: 760px) {
  .readiness-window, .sleep-window { width: min(270px, 100%); }
  .readiness-window { height: 520px; }
  .sleep-window { height: 480px; }
}

/* The frame makes the opening's phone a little larger: its caption moves down to stay clear. */
@media (min-width: 761px) {
  .hero-art { margin-bottom: 120px; }
  .hero-caption { top: calc(100% + 80px); }
}
