/* /what-jinn-can-do/campaigns (lib/site/pages/campaigns.ts; round two, spec docs/site-relaunch/round-two/specs/campaigns.md).
   The hero, the story spread, trust and the close are the kit's (feature.css, sections.css). The kit has no shape for
   the Olipop campaign's stages (build six part two R2) or the What's inside band (Ocho's strip uncropped beside four links). Every rule sits under a `cmp-`
   class (the Plan's dash on its last group alone is the kit's `dash: 'last'`). No sticky and no absolute positioning here: the story is
   plain grid items (spec part C). */

/* The Olipop campaign (R2): one stage per row, words beside a framed piece of real output; rows swap sides from the
   laptop up, and stack words-then-picture on a phone. Each picture is a panel cropped in place to its artifact
   (.cmp-crop: a fixed-ratio window, the image scaled and shifted inside it by negative margins, so no absolute
   positioning). The crop numbers are the panel's own pixels, set per stage in campaigns.ts. */
.cmp-olipop .fp-head { margin-bottom: clamp(36px, 5vw, 64px); }
.cmp-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(56px, 7vw, 104px); }
.cmp-stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.cmp-stage > * { min-width: 0; }
.cmp-stage:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cmp-stage:nth-child(even) .cmp-stage__words { order: 2; }
.cmp-stage__label { margin: 0 0 18px; display: flex; align-items: center; gap: 14px; font-family: var(--ui); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-ink); max-width: none; }
.cmp-stage__label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.cmp-stage__title { margin: 0 0 12px; font-size: clamp(1.45rem, 2.3vw, 1.9rem); line-height: 1.15; text-wrap: balance; }
/* Build nine (Sarah's four rows c:61tr5x_URfbj, GArMhUwWbuSe, LsH4GCPhVkKC, h_F_hc4cJjrm: "the same size as A Blackberry
   Vanilla... copy above"): each stage's line takes the section lede's size and leading (site.css .lede) */
.cmp-stage__line { margin: 0; max-width: 34rem; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; color: var(--ink-2); }
.cmp-stage__lines { margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 6px; max-width: 34rem; }
.cmp-stage__lines dt { margin: 10px 0 2px; font-family: var(--ui); font-size: .76rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-3); }
.cmp-stage__lines dt:first-child { margin-top: 0; }
.cmp-stage__lines dd { margin: 0; font-family: var(--serif-accent); font-size: 1.08rem; line-height: 1.4; color: var(--ink); }
.cmp-stage__fig { margin: 0; display: grid; gap: 12px; }
.cmp-stage__card { overflow: hidden; background: #fff; border: 1px solid rgba(21, 23, 28, .09); border-radius: 14px; box-shadow: 0 1px 0 rgba(21, 23, 28, .04), 0 22px 44px -26px rgba(17, 22, 39, .4); }
.cmp-stage__head { margin: 0; max-width: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 20px 12px; border-bottom: 1px solid rgba(21, 23, 28, .08); font-family: var(--ui); font-size: .76rem; font-weight: 600; line-height: 1.3; color: var(--ink-3); }
.cmp-stage__brand { color: var(--ink-2); }
.cmp-stage__head > span:last-child { text-align: right; }
.cmp-crop { aspect-ratio: var(--cw) / var(--ch); overflow: hidden; background: #f9fafb; }
.cmp-crop img { display: block; max-width: none; height: auto; width: calc(var(--iw) / var(--cw) * 100%); margin-left: calc(var(--cx) / var(--cw) * -100%); margin-top: calc(var(--cy) / var(--cw) * -100%); }
.cmp-stage__cap { margin: 2px 0 0; max-width: 40rem; font-family: var(--serif-accent); font-style: italic; font-size: 1.02rem; line-height: 1.45; color: var(--muted); }
.cmp-stage__cap [data-claim="law_line"] { display: block; margin-top: 6px; font-family: var(--ui); font-style: normal; font-size: .86rem; line-height: 1.45; }
.cmp-olipop__locked { margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 860px) {
  .cmp-stage, .cmp-stage:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .cmp-stage:nth-child(even) .cmp-stage__words { order: 0; }
  .cmp-stage__head { padding: 11px 14px 10px; }
}

/* What's inside: the strip left at full column width (16:9, uncropped), the short column right; phone: picture, then words */
.cmp-inside__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.cmp-inside__grid > * { min-width: 0; }
.cmp-inside__fig { margin: 0; display: grid; justify-items: center; gap: 12px; }
.cmp-inside__fig img { width: 100%; height: auto; aspect-ratio: 1672 / 941; border-radius: var(--radius); }
.cmp-inside__fig .tagline-bubble { justify-self: start; margin-left: 6%; }
.cmp-inside__copy h2 { margin-top: 6px; }
.cmp-inside__head { margin: clamp(22px, 3vw, 32px) 0 10px; font-family: var(--ui); font-size: 1rem; font-weight: 800; }
.cmp-more { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-weight: 700; }
/* FIX-8: the approval line now sits with the body copy, above the label; the founding link keeps its own space under the list */
.cmp-inside__trust + .cmp-inside__trust { margin-top: 14px; }
.cmp-inside__founding { margin: clamp(22px, 3vw, 30px) 0 0; }
@media (max-width: 860px) { .cmp-inside__grid { grid-template-columns: minmax(0, 1fr); } }

/* FIX-8, Every size: the words never cross the glass. The tall story's picture fills its top two thirds and the words sit
   on a plain dark foot (the picture's own bar tone) under it, so the bowl stays clear at every width; the square's focus
   (campaigns.ts) puts the glass in its right half, clear of the words on the left. Scoped to this page's #sizes. */
#sizes .fp-size[data-size="tall"] .fp-size__box { background: #120b07; }
#sizes .fp-size[data-size="tall"] .fp-size__box img { height: 66%; align-self: start; }
#sizes .fp-size[data-size="tall"] .fp-size__type { padding-top: 22cqi; background: linear-gradient(to top, #120b07 0, #120b07 62%, rgba(18, 11, 7, 0) 100%); }

/* Build five close: the opening sentence grew a line (W5), and at laptop widths (861 to 1360) it pushed the label and
   the quiet link off the painted sign. The sentence and the two actions step down one size there, as the phone already does. */
@media (min-width: 861px) and (max-width: 1360px) and (min-aspect-ratio: 6/5) {
  #hero.ah .ah__sentence { margin-bottom: clamp(8px, 3.4cqh, 16px); font-size: clamp(.8rem, min(3.9cqw, 4.2cqh), 1.15rem); line-height: 1.38; }
  #hero.ah .ah__words > .hero-status, #hero.ah .ah__words > .kicker, #hero.ah .ah__words > .label { margin-bottom: clamp(5px, 2.2cqh, 12px); }
  #hero.ah .ah__words > .doors { gap: 6px 14px; font-size: .86rem; }
  #hero.ah .ah__words > .doors .btn { padding: .5em 1em; font-size: inherit; }
  #hero.ah .ah__words > .doors .tcta { font-size: inherit; }
}
