/* Fitcast — Paper Sky, inside the zhukouski.com system.
   Loaded after /editorial.css by fitcast.html and fitcast/{privacy,support,terms}.html.
   The page itself stays the site's (Mona Sans, paper, ink); the product brings its colour only
   where the work is shown: the hero sky, the die-cut wordmark, the garment stickers and the tape.
   Tokens come from the app (Fitcast/DesignSystem/FitColor.swift, Shared/Weather/SkyPalette.swift). */

:root {
  --fc-ink: #16161a;
  --fc-ink-2: #5c5853;
  --fc-butter: #ffd98a;      /* clear-morning sky top */
  --fc-cream: #fff0d0;       /* clear-morning sky mid */
  --fc-paper: #f4f1ec;
  --fc-sky: #c9d8ee;         /* rain-later sky, used as the cool edge */
  --fc-lipstick: #f1457b;    /* the icon's pink; ink text on it is 5:1 */
  --fc-rounded: ui-rounded, "SF Pro Rounded", "SF Compact Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fc-serif: ui-serif, "New York", "Iowan Old Style", Charter, Georgia, serif;
  --fc-sticker-shadow: drop-shadow(0 1px 1px rgba(0, 0, 0, .12)) drop-shadow(0 6px 8px rgba(0, 0, 0, .12));
}

/* ── Hero: the paper sky, with the lockup on its quiet side ── */
.fc-hero {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 9;
  margin: 0 0 40px;
  border-radius: var(--r-l);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, var(--fc-butter) 0%, var(--fc-cream) 55%, var(--fc-paper) 100%);
}
.fc-hero picture,
.fc-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* .hero-logo keeps site.js's lightbox off the artwork; undo its 220px cap here. */
.fc-hero .hero-logo { max-width: none; }
.fc-hero picture img { object-fit: cover; object-position: right center; }
.fc-hero-copy {
  position: absolute;
  z-index: 1;
  left: 6cqw;
  top: 50%;
  width: 42cqw;
  transform: translateY(-54%);
}
.fc-hero .fc-lockup { display: block; width: 100%; height: auto; }
.fc-tagline {
  margin: 2.4cqw 0 0;
  font-family: var(--fc-serif);
  font-style: italic;
  font-size: max(15px, 3.1cqw);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--fc-ink);
  text-wrap: balance;
}
.fc-lead {
  margin: 1.4cqw 0 0;
  font-size: max(13px, 1.85cqw);
  line-height: 1.45;
  color: var(--fc-ink-2);
  text-wrap: pretty;
}

@media (max-width: 640px) {
  .fc-hero {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    background: linear-gradient(100deg, #ffdb8f 0%, #ffdb8f 58%, #f3d3bf 100%);
  }
  .fc-hero-copy {
    position: relative;
    left: auto; top: auto; transform: none;
    order: -1;
    width: auto;
    padding: 8cqw 7cqw 0;
  }
  .fc-hero .fc-lockup { width: 78cqw; max-width: 340px; }
  .fc-tagline { margin-top: 4cqw; font-size: max(19px, 6cqw); }
  .fc-lead { margin-top: 2.4cqw; font-size: 15px; max-width: 34ch; }
  .fc-hero picture { position: relative; inset: auto; display: block; height: auto; margin-top: -4cqw; }
  .fc-hero picture img {
    position: relative; inset: auto; display: block; height: auto; aspect-ratio: 3 / 4;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%);
            mask-image: linear-gradient(180deg, transparent 0, #000 16%);
  }
}

/* ── Screens: the ten App Store screenshots in a strip that scrolls inside itself ── */
.fc-screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(148px, 31%, 216px);
  gap: 12px;
  margin: 8px 0 28px;
  padding: 2px 2px 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.fc-screens:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 16px; }
.fc-screens img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 2868;
  border-radius: 14px;
  background: var(--paper-2);
  box-shadow: 0 0 0 1px var(--line);
  scroll-snap-align: start;
}

/* ── Features: each cell wears one garment sticker ── */
.fc-features .feature-item { position: relative; }
.fc-features .feature-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.fc-sticker {
  display: block;
  width: auto;
  height: 60px;
  margin: 0 0 14px;
  filter: var(--fc-sticker-shadow);
  transform: rotate(var(--r, -4deg));
  transform-origin: 30% 70%;
}
.fc-tape {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px 3px;
  border-radius: 3px;
  font-family: var(--fc-rounded);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  vertical-align: 1px;
  color: var(--fc-ink);
  background: var(--fc-lipstick);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .10), 0 3px 8px rgba(0, 0, 0, .08);
  transform: rotate(-3deg);
}

/* ── Legal: the long data table scrolls inside itself on a phone ── */
.fc-table-scroll { overflow-x: auto; margin: 8px 0 28px; }
.fc-table-scroll table { min-width: 600px; margin: 0; }
.fc-table-scroll td:first-child { color: var(--ink); }

/* ── Support: an answer with more than one paragraph keeps the answer's own size and colour ── */
.detail-body .faq-a p { color: inherit; line-height: inherit; letter-spacing: inherit; margin-bottom: 10px; }
.detail-body .faq-a p:last-child { margin-bottom: 0; }
