/* Clara Sky product page — a third theme, deliberately.

   style.css owns the warm/tech split and the nav/footer skeleton. This file
   adds [data-theme="broadcast"] on top: the app's own on-air palette, so the
   page looks like the thing it's selling. It lives separately rather than in
   style.css so the other pages need no cache-bust when this changes.

   Loaded AFTER style.css. It only defines variables that file already reads,
   plus .cs-* components used nowhere else. */

[data-theme="broadcast"] {
  --bg: #071420;
  --bg-sunk: #0b1a29;
  --ink: #eceff1;
  --ink-soft: #a8b6c2;
  --ink-faint: #74838f;
  --rule: #1e3446;
  --accent: #7cc7f5;
  --accent-soft: #a9dbfa;
  --font-body: var(--sans);
  --font-ui: var(--sans);

  --amber: #e0b341;
  --steel: #1d2f42;
  --deep: #050e1a;
  --condition: #0085c0;
}

/* Every img here carries width/height attributes so the browser can reserve
   space before load. Those attributes are only a hint when the height resolves
   to auto — style.css sets max-width but no height, so without this the
   attribute height is taken literally and every shot renders stretched. */
[data-theme="broadcast"] img { height: auto; }

/* Studio wall: top-lit, same logic as the app's 7-day cards. */
[data-theme="broadcast"] body {
  background:
    radial-gradient(120% 60% at 50% 0%, #14283a 0%, rgba(20, 40, 58, 0) 70%),
    var(--bg);
  background-attachment: fixed;
}

/* ---- hero ---- */

.cs-hero {
  padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 2.25rem);
  align-items: center;
}
.cs-hero__icon {
  width: clamp(88px, 14vw, 124px);
  border-radius: 23%;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
.cs-hero__name {
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}
.cs-hero__tag {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
  font-weight: 700;
}
.cs-hero__pitch {
  margin: 0;
  color: var(--ink-soft);
  max-width: 30rem;
}

.cs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}
.cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.65rem;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.cs-btn--primary { background: var(--condition); color: #fff; }
.cs-btn--primary:hover { background: #0a9ada; color: #fff; }
.cs-btn--ghost { border-color: var(--rule); color: var(--ink); background: rgba(255, 255, 255, 0.03); }
.cs-btn--ghost:hover { border-color: var(--accent); color: var(--ink); }
.cs-meta {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-family: var(--font-ui);
}

/* ---- platform blocks ----
   The two platforms are got in genuinely different ways — App Store for
   iPhone, a direct disk image for Mac — so they're labelled rather than
   sitting as two anonymous buttons side by side. */

.cs-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  max-width: 40rem;
}
.cs-platform {
  border: 1px solid var(--rule);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.028);
  padding: 1.05rem 1.15rem;
}
.cs-platform h2,
.cs-platform h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.cs-platform .cs-btn { width: 100%; justify-content: center; }
.cs-platform p {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-family: var(--font-ui);
  line-height: 1.5;
}

/* ---- lower-third section headings ---- */

.cs-section { padding-block: clamp(2.25rem, 6vw, 3.75rem); }

.cs-lower-third {
  display: flex;
  align-items: stretch;
  border-radius: 5px;
  overflow: hidden;
  margin: 0 0 1.4rem;
  font-family: var(--font-ui);
}
.cs-lower-third__num {
  background: var(--amber);
  color: #06121c;
  font-weight: 800;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  padding-inline: 0.85rem;
}
.cs-lower-third__title {
  background: linear-gradient(180deg, rgba(29, 47, 66, 0.85), rgba(5, 14, 26, 0.85));
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.72rem 0.95rem;
  flex: 1;
}

.cs-lede { max-width: var(--measure); color: var(--ink-soft); }
.cs-lede p { margin-block: 0 1rem; }
.cs-lede strong { color: var(--ink); font-weight: 650; }

/* Clara's aside — the line she'd lean into the camera for. */
.cs-callout {
  border-left: 3px solid var(--amber);
  padding: 0.15rem 0 0.15rem 1rem;
  margin: 1.6rem 0 0;
  max-width: var(--measure);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 550;
}

/* ---- screenshot filmstrip ---- */

/* Scrolls on narrow screens rather than shrinking to illegibility. The
   negative margin lets it bleed to the viewport edge inside .wrap. */
.cs-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 232px);
  gap: 1rem;
  overflow-x: auto;
  padding-block: 0.25rem 1.25rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.cs-shot { scroll-snap-align: start; margin: 0; }
.cs-shot img {
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid var(--rule);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.cs-shot figcaption {
  margin-top: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--ink-faint);
  line-height: 1.45;
}

/* ---- Weather School: app screens are already studio-dark, so they sit
   flush on the page instead of being carded like the light ones. ---- */

.cs-school {
  background: linear-gradient(180deg, rgba(29, 47, 66, 0.45), rgba(5, 14, 26, 0.2));
  border-block: 1px solid var(--rule);
}
.cs-school__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}
@media (min-width: 46rem) {
  .cs-school__grid { grid-template-columns: minmax(0, 1fr) auto; }
}
.cs-school__shots {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
}
.cs-school__shots img {
  width: clamp(140px, 22vw, 196px);
  border-radius: 0.85rem;
  border: 1px solid var(--rule);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

/* ---- mac ---- */

.cs-mac img {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid var(--rule);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

/* ---- features ---- */

.cs-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cs-feature {
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--rule);
  border-radius: 0.8rem;
  padding: 1.05rem 1.15rem;
}
.cs-feature__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}
.cs-feature__head svg {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--amber);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cs-feature h3 {
  margin: 0;
  font-size: 0.95rem;
  font-family: var(--font-ui);
  color: var(--ink);
}
.cs-feature p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---- honesty note ---- */

.cs-note {
  border: 1px solid var(--rule);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.028);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  max-width: 44rem;
}
.cs-note h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-family: var(--font-ui);
}
.cs-note p { margin: 0 0 0.7rem; color: var(--ink-soft); font-size: 0.94rem; }
.cs-note p:last-child { margin-bottom: 0; }

.cs-credits {
  font-size: 0.82rem;
  color: var(--ink-faint);
  max-width: 44rem;
  line-height: 1.6;
}

@media (max-width: 32rem) {
  .cs-hero { grid-template-columns: minmax(0, 1fr); }
}
