/* ============================================================
   DEMOS — Share carousels
   Data-driven 1080×1080 frames for bills & petitions, the studio
   gallery that previews them, and the in-app share-flow mock.
   Forest / warm-white rhythm, brand type + shapes only (no stock).
   Depends on tokens.css.  #export=<wrapId> isolates one frame.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-base);
  color: var(--color-charcoal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
}

/* ============================================================
   1 · THE FRAME  (1080 × 1080)
   ============================================================ */
.cframe {
  position: relative;
  width: 1080px;
  height: 1350px;
  overflow: hidden;
  flex: none;
}
.cframe.forest { background: var(--color-forest); color: #FAFBF7; }
.cframe.maple  { background: #7C1D29; color: #FDF3F2; }
.cframe.light  { background: var(--color-base);   color: var(--color-charcoal); }
.cframe.sage   { background: var(--color-sage-pale); color: var(--color-charcoal); }

.cpad {
  position: absolute;
  inset: 92px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

/* header row: mark + index ---------------------------------- */
.ctop { display: flex; align-items: center; justify-content: flex-end; }
.cmark { display: flex; align-items: center; gap: 18px; }
.cmark .tile { width: 60px; height: 60px; border-radius: 14px; display: block; }
.cmark .wm   { height: 34px; display: block; }
.cmark .lock { height: 56px; display: block; }
.cidx {
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.forest .cidx { color: var(--color-sage-light); }
.maple  .cidx { color: #E8A9AD; }
.light  .cidx, .sage .cidx { color: var(--color-sage); }

/* footer line ----------------------------------------------- */
.cfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 26px;
}
.cfoot .url { font-weight: 700; letter-spacing: -0.01em; display:flex; align-items:center; gap:12px; }
.cfoot .url::before {
  content: ""; width: 11px; height: 11px; border-radius: 3px;
  background: var(--color-maple); display: inline-block;
}
.forest .cfoot .url { color: #FAFBF7; }
.maple  .cfoot .url { color: #FDECEC; }
.maple  .cfoot .url::before { background: #F2B8BB; }
.light  .cfoot .url, .sage .cfoot .url { color: var(--color-forest); }
.cfoot .meta {
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 0.02em;
}
.forest .cfoot .meta { color: var(--color-sage-light); }
.maple  .cfoot .meta { color: #E0989D; }
.light  .cfoot .meta, .sage .cfoot .meta { color: var(--color-warm-gray); }

/* vertical rhythm helpers ----------------------------------- */
.grow { flex: 1 1 auto; }
.s12 { height: 12px; } .s20 { height: 20px; } .s28 { height: 28px; }
.s40 { height: 40px; } .s44 { height: 44px; } .s56 { height: 56px; } .s64 { height: 64px; }

/* ---- type inside a frame ---------------------------------- */
.ceyebrow {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
  display: flex; align-items: center; gap: 16px;
}
.forest .ceyebrow { color: var(--color-sage-light); }
.maple  .ceyebrow { color: #EFB3B7; }
.light  .ceyebrow, .sage .ceyebrow { color: var(--color-sage); }
.ceyebrow .cat { /* petition category marker — the one small maple cue */
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--color-maple); font-weight: 600;
}
.ceyebrow .cat::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-maple);
}
/* on the maple cover the category cue can't be maple-on-maple — go light */
.maple .ceyebrow .cat { color: #FBD9DB; }
.maple .ceyebrow .cat::before { background: #FBD9DB; }

.cnumber {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 218px;
  line-height: 0.86;
  letter-spacing: -0.03em;
  margin: 0;
}
.forest .cnumber { color: #FAFBF7; }
.maple  .cnumber { color: #FDF3F2; }
.light  .cnumber { color: var(--color-forest); }
.cnumber.sm { font-size: 150px; }

.ctitle {
  font-weight: 800;
  font-size: 86px;
  line-height: 1.04;
  letter-spacing: -0.024em;
  margin: 0;
  text-wrap: balance;
}
.forest .ctitle { color: #FAFBF7; }
.maple  .ctitle { color: #FDF3F2; }
.light  .ctitle, .sage .ctitle { color: var(--color-forest); }

.cdisplay {
  font-weight: 800;
  font-size: 92px;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.cheadline {
  font-weight: 700;
  font-size: 60px;
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}
.forest .cdisplay, .forest .cheadline { color: #FAFBF7; }
.maple  .cdisplay, .maple  .cheadline { color: #FDF3F2; }
.light .cdisplay, .light .cheadline, .sage .cheadline { color: var(--color-forest); }

/* big plain-language statement (does / means) */
.clead {
  font-weight: 500;
  font-size: 64px;
  line-height: 1.26;
  letter-spacing: -0.014em;
  margin: 0;
  max-width: 920px;
  text-wrap: pretty;
}
.forest .clead { color: #FAFBF7; }
.light .clead, .sage .clead { color: var(--color-charcoal); }
.clead .hi { font-weight: 800; }
.light .clead .hi, .sage .clead .hi { color: var(--color-forest); }
.forest .clead .hi { color: var(--color-sage-light); }

.cbody {
  font-weight: 400;
  font-size: 36px;
  line-height: 1.46;
  margin: 0;
  max-width: 840px;
  text-wrap: pretty;
}
.forest .cbody { color: #D6E0D9; }
.maple  .cbody { color: #F3D6D8; }
.light .cbody, .sage .cbody { color: var(--color-charcoal); }

.cref {
  font-family: var(--font-mono);
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--color-sage);
  display: flex; align-items: center; gap: 14px;
}
.cref b { color: var(--color-forest); font-weight: 500; }

/* status chip on a frame ------------------------------------ */
.cchip {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 30px; font-weight: 600; letter-spacing: 0.01em;
  padding: 15px 32px 15px 26px; border-radius: 999px;
  align-self: flex-start;
}
.cchip .dot { width: 15px; height: 15px; border-radius: 50%; flex: 0 0 15px; }
/* on the forest / maple cover — frosted near-white pill, text+dot carry state */
.forest .cchip, .maple .cchip { background: rgba(255,255,255,0.94); box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.cchip.assent { color: #2F7A52; } .cchip.assent .dot { background: #2F7A52; }
.cchip.open   { color: var(--color-forest-light); } .cchip.open .dot { background: var(--color-sage); }
.cchip.progress { color: var(--color-forest-light); } .cchip.progress .dot { background: var(--color-sage-light); }
.cchip.closed { color: var(--color-warm-gray); } .cchip.closed .dot { background: var(--color-warm-gray); }
/* on light frames */
.light .cchip.assent { background: #E4F0E9; }
.light .cchip.open   { background: var(--color-sage-pale); }
.light .cchip.progress { background: var(--forest-50); }
.light .cchip.closed { background: #F3F4F6; }

/* petition cover meta row: status chip + critical sign-by date ----- */
.ccover-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.cdeadline-tag {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 34px; font-weight: 600; letter-spacing: -0.005em;
  padding: 15px 34px 15px 26px; border-radius: 999px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.30);
  color: #FDECEC;
}
.cdeadline-tag svg { width: 34px; height: 34px; flex: 0 0 34px; color: #F2B8BB; }
.cdeadline-tag b { color: #fff; font-weight: 800; }
.light .cdeadline-tag { background: var(--color-sage-pale); border-color: var(--color-forest-pale); color: var(--color-charcoal); }
.light .cdeadline-tag svg { color: var(--color-sage); }
.light .cdeadline-tag b { color: var(--color-forest); }

/* landform waves (forest frames) ---------------------------- */
.cland { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* ============================================================
   2 · THE DEBATE  (bill frame)
   ============================================================ */
.cdebate { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cside { border-radius: 22px; padding: 38px 40px; }
.cside--for     { background: var(--color-sage-pale); border: 1px solid var(--color-forest-pale); }
.cside--against { background: #F3F4F6; border: 1px solid #E5E7EB; }
.cside__label {
  font-size: 24px; font-weight: 800; letter-spacing: 0.05em;
  text-transform: uppercase; margin: 0 0 24px;
  display: flex; align-items: center; gap: 14px;
}
.cside--for .cside__label { color: var(--color-success); }
.cside--against .cside__label { color: var(--color-warm-gray); }
.cside__label .glyph {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; line-height: 1;
}
.cside--for .cside__label .glyph { background: #D6E8DD; color: var(--color-success); }
.cside--against .cside__label .glyph { background: #E5E7EB; color: var(--color-warm-gray); }
.cside__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.cside__list li {
  position: relative; padding-left: 30px;
  font-size: 30px; line-height: 1.36; color: var(--color-charcoal);
  text-wrap: pretty;
}
.cside__list li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 11px; height: 11px; border-radius: 50%;
}
.cside--for .cside__list li::before { background: var(--color-sage); }
.cside--against .cside__list li::before { background: var(--color-sage-light); }
.cdebate__note {
  font-size: 26px; color: var(--color-warm-gray); margin: 0;
  display: flex; align-items: center; gap: 14px;
}
.cdebate__note .bar { width: 40px; height: 2px; background: var(--color-forest-pale); }

/* ---- debate, one side per frame (roomy + readable) ---- */
.cdbadge {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 34px; font-weight: 800; letter-spacing: 0.01em;
  padding: 18px 38px 18px 24px; border-radius: 999px; align-self: flex-start;
}
.cdbadge .glyph {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 32px; line-height: 1; font-weight: 700;
}
.cdbadge--for { background: var(--color-sage-pale); color: var(--color-success); }
.cdbadge--for .glyph { background: #D6E8DD; color: var(--color-success); }
.cdbadge--against { background: #F3F4F6; color: var(--color-warm-gray); }
.cdbadge--against .glyph { background: #E5E7EB; color: var(--color-warm-gray); }

.cside__list--solo { gap: 54px; max-width: 900px; }
.cside__list--solo li {
  padding-left: 50px; font-size: 50px; line-height: 1.3; font-weight: 500;
  letter-spacing: -0.012em; color: var(--color-charcoal);
}
.cside__list--solo li::before { width: 18px; height: 18px; top: 24px; }
.cside__list--solo.cside__list--for li::before { background: var(--color-sage); }
.cside__list--solo.cside__list--against li::before { background: var(--color-sage-light); }

/* ============================================================
   3 · WHERE IT'S AT  (bill stepper)
   ============================================================ */
.cstepper { display: flex; flex-direction: column; gap: 0; }
.cstep { display: flex; align-items: flex-start; gap: 36px; min-height: 132px; }
.cstep__rail { display: flex; flex-direction: column; align-items: center; align-self: stretch; }
.cstep__node {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 46px;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--color-sage-light); background: var(--color-base);
  margin-top: 6px; z-index: 1;
}
.cstep__node svg { width: 26px; height: 26px; }
.cstep__line { width: 4px; flex: 1 1 auto; background: var(--color-forest-pale); margin: 4px 0; min-height: 28px; }
.cstep__body { padding-bottom: 26px; }
.cstep__label { font-size: 44px; font-weight: 700; letter-spacing: -0.015em; color: var(--color-warm-gray); line-height: 1.1; }
.cstep__date  { font-family: var(--font-mono); font-size: 26px; color: var(--color-sage); margin-top: 8px; }
/* done */
.cstep.done .cstep__node { background: var(--color-forest); border-color: var(--color-forest); color: #fff; }
.cstep.done .cstep__line { background: var(--color-forest); }
.cstep.done .cstep__label { color: var(--color-forest); }
/* current (the furthest reached) */
.cstep.current .cstep__node { background: var(--color-forest); border-color: var(--color-forest); color: #fff; width: 54px; height: 54px; flex-basis: 54px; box-shadow: 0 0 0 8px var(--color-sage-pale); }
.cstep.current .cstep__label { color: var(--color-forest); font-weight: 800; }
.cstep.current .cstep__note {
  display: inline-block; margin-top: 14px;
  font-size: 26px; font-weight: 700; color: #2F7A52;
  background: #E4F0E9; border: 1px solid #CFE4D7; border-radius: 999px;
  padding: 8px 24px;
}
.cstep:last-child .cstep__line { display: none; }

/* ============================================================
   4 · WHERE IT STANDS  (petition signatures)
   ============================================================ */
.csig__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 24px; }
.csig__count {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 196px; line-height: 0.9; letter-spacing: -0.03em;
  color: var(--color-forest); font-variant-numeric: tabular-nums;
}
.csig__label { font-size: 44px; font-weight: 600; color: var(--color-warm-gray); }
.csig__asof {
  font-family: var(--font-mono); font-size: 24px; letter-spacing: 0.02em;
  color: var(--color-sage); margin: 0;
  display: flex; align-items: center; gap: 14px;
}
.csig__asof .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--color-sage-light); }
.csig__trend {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 32px; font-weight: 700; color: var(--color-success);
  background: #E4F0E9; border: 1px solid #CFE4D7; border-radius: 999px;
  padding: 13px 28px 13px 22px; margin-left: auto; align-self: center;
  white-space: nowrap;
}
.csig__trend svg { width: 30px; height: 30px; display: block; }
.csig__deadline {
  display: flex; align-items: center; gap: 16px;
  font-size: 38px; font-weight: 600; color: var(--color-charcoal);
}
.csig__deadline svg { width: 38px; height: 38px; color: var(--color-sage); flex: 0 0 38px; }

/* big sparkline */
.cspark { width: 100%; }
.cspark svg { display: block; width: 100%; height: 380px; overflow: visible; }
.cspark__area { fill: var(--color-sage); opacity: 0.14; }
.cspark__line { fill: none; stroke: var(--color-sage); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.cspark__base { fill: none; stroke: var(--color-forest-pale); stroke-width: 2; }
.cspark__dot-halo { fill: none; stroke: var(--color-base); stroke-width: 30; stroke-linecap: round; }
.cspark__dot  { fill: none; stroke: var(--color-forest); stroke-width: 18; stroke-linecap: round; }
.cspark__caption { font-family: var(--font-mono); font-size: 24px; color: var(--color-sage); margin: 0; }

/* CTA pill -------------------------------------------------- */
.cpill {
  display: inline-flex; align-items: center; gap: 20px; white-space: nowrap;
  font-size: 40px; font-weight: 700; letter-spacing: -0.01em;
  padding: 32px 56px; border-radius: 999px; align-self: flex-start;
}
.cpill svg { display: block; }
.cpill--maple { background: var(--color-maple); color: #fff; }
.cpill--cream { background: #FDF4F2; color: #8A1B27; }
.cpill--light { background: #FAFBF7; color: var(--color-forest); }
.cpill--ghost { background: transparent; color: #FAFBF7; border: 2px solid rgba(250,251,247,0.4); }
.cpill-url {
  font-family: var(--font-mono); font-size: 30px; letter-spacing: 0.01em;
}
.forest .cpill-url { color: var(--color-sage-light); }
.maple  .cpill-url { color: #EFB3B7; }
.light .cpill-url { color: var(--color-warm-gray); }

/* ============================================================
   5 · STUDIO  (the doc that frames everything)
   ============================================================ */
.studio { max-width: 1240px; margin: 0 auto; padding: 64px 40px 120px; }
.studio__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 16px; }
.studio__brand { display: flex; align-items: center; gap: 14px; }
.studio__brand img { width: 46px; height: 46px; border-radius: 11px; display: block; }
.studio__brand b { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--color-forest); }
.studio__brand span { font-size: 17px; color: var(--color-sage); font-family: var(--font-mono); }
.studio__kicker { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-maple); }
.studio h1 { font-size: 52px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; color: var(--color-forest); margin: 14px 0 0; max-width: 20ch; text-wrap: balance; }
.studio__sub { font-size: 20px; line-height: 1.55; color: var(--color-warm-gray); max-width: 70ch; margin: 18px 0 0; text-wrap: pretty; }
.studio__sub b { color: var(--color-charcoal); font-weight: 600; }

.studio__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.studio__meta span {
  font-size: 13.5px; color: var(--color-forest);
  background: var(--color-sage-pale); border: 1px solid var(--color-forest-pale);
  border-radius: 999px; padding: 7px 15px;
}
.studio__meta b { font-weight: 700; }

.sec { margin-top: 88px; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid var(--color-forest-pale); padding-bottom: 22px; margin-bottom: 40px; }
.sec__idx { font-family: var(--font-mono); font-size: 14px; color: var(--color-maple); letter-spacing: 0.04em; }
.sec__head h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.015em; color: var(--color-forest); margin: 8px 0 0; line-height: 1.12; }
.sec__head p { font-size: 17px; color: var(--color-warm-gray); margin: 8px 0 0; max-width: 56ch; line-height: 1.55; text-wrap: pretty; }
.sec__head .right { text-align: right; flex: 0 0 auto; }
.exporthint { font-family: var(--font-mono); font-size: 12.5px; color: var(--color-sage); line-height: 1.7; }
.exporthint code { background: var(--color-sage-pale); border: 1px solid var(--color-forest-pale); border-radius: 5px; padding: 2px 7px; color: var(--color-forest); }

/* gallery of frames ----------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 28px; }
.gitem { display: flex; flex-direction: column; gap: 12px; }
.gitem__cap { display: flex; align-items: baseline; gap: 10px; }
.gitem__n { font-family: var(--font-mono); font-size: 13px; color: var(--color-sage); font-variant-numeric: tabular-nums; }
.gitem__t { font-size: 14.5px; font-weight: 600; color: var(--color-forest); }

/* a frame scaled down for display. --scale set inline per breakpoint. */
.cwrap {
  --scale: 0.305;
  width: calc(1080px * var(--scale));
  height: calc(1350px * var(--scale));
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--color-forest-pale);
  box-shadow: var(--shadow-md);
  background: var(--color-forest);
}
.cwrap > .cframe { position: absolute; top: 0; left: 0; transform: scale(var(--scale)); transform-origin: top left; }

/* ============================================================
   6 · SHARE FLOW MOCK  (phone + share sheet)
   ============================================================ */
.flow { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px){ .flow { grid-template-columns: 1fr; gap: 40px; } }

.phone {
  width: 360px; height: 740px; position: relative; flex: none;
  background: #11150F; border-radius: 52px; padding: 13px;
  box-shadow: var(--shadow-xl), 0 0 0 2px #11150F;
  margin: 0 auto;
}
.phone__screen {
  width: 100%; height: 100%; border-radius: 40px; overflow: hidden;
  background: var(--color-base); position: relative;
}
.phone__notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 130px; height: 30px; background: #11150F; border-radius: 0 0 18px 18px; z-index: 40; }

/* in-app screen */
.app { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.app__bar { padding: 40px 18px 10px; display: flex; align-items: center; gap: 10px; }
.app__bar img { height: 22px; }
.app__bar .sp { flex: 1; }
.app__bar .ic { width: 22px; height: 22px; color: var(--color-sage); }
.app__scroll { flex: 1; overflow: hidden; padding: 6px 16px 24px; }

/* reuse dp-card styles via the dp-scope wrapper in markup. Share button is
   a forest ghost (amplification, not a civic act). */
.app .dp-card { box-shadow: var(--shadow-sm); }
.app .dp-btn { padding: 9px 15px; }
.share-btn {
  appearance: none; cursor: pointer; font-family: var(--font-sans);
  font-weight: 600; font-size: 14px; color: var(--color-forest);
  background: transparent; border: 1px solid var(--color-forest-pale);
  border-radius: var(--radius-md); padding: 9px 15px;
  display: inline-flex; align-items: center; gap: 8px;
}
.share-btn svg { width: 16px; height: 16px; }
.share-btn:hover { background: var(--color-sage-pale); border-color: var(--color-sage-light); }

/* backdrop + bottom sheet */
.sheet-backdrop {
  position: absolute; inset: 0; background: rgba(26,26,46,0.46);
  opacity: 0; pointer-events: none; transition: opacity .28s var(--ease-out); z-index: 30;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 35;
  background: var(--color-white); border-radius: 26px 26px 0 0;
  box-shadow: 0 -10px 40px rgba(26,26,46,0.22);
  transform: translateY(102%); transition: transform .34s var(--ease-out);
  max-height: 92%; display: flex; flex-direction: column;
}
.sheet.open { transform: translateY(0); }
.sheet__grab { width: 40px; height: 5px; border-radius: 3px; background: var(--color-sage-light); margin: 10px auto 4px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 8px; }
.sheet__title { font-size: 17px; font-weight: 700; color: var(--color-forest); margin: 0; }
.sheet__title span { display: block; font-size: 12.5px; font-weight: 500; color: var(--color-warm-gray); margin-top: 2px; }
.sheet__x { appearance: none; cursor: pointer; background: var(--color-sage-pale); border: none; width: 30px; height: 30px; border-radius: 50%; color: var(--color-forest); display: flex; align-items: center; justify-content: center; }
.sheet__x svg { width: 15px; height: 15px; }
.sheet__scroll { overflow-y: auto; padding: 4px 18px 18px; }

/* frame preview strip */
.strip { display: flex; gap: 12px; overflow-x: auto; padding: 8px 0 14px; scroll-snap-type: x mandatory; }
.strip::-webkit-scrollbar { height: 0; }
.strip .cwrap {
  --scale: 0.139; flex: none; scroll-snap-align: start;
  border-radius: 12px; box-shadow: var(--shadow-sm);
}
.strip__more { display: flex; align-items: center; }

.sheet__lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-sage); margin: 16px 0 9px; }

/* selectable debate points (bills) */
.picks { display: flex; flex-direction: column; gap: 8px; }
.pick {
  display: flex; align-items: flex-start; gap: 11px; cursor: pointer;
  border: 1px solid var(--color-forest-pale); border-radius: 11px;
  padding: 11px 13px; background: var(--color-base);
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.pick:hover { border-color: var(--color-sage-light); }
.pick.off { opacity: 0.5; }
.pick__box {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 6px; margin-top: 1px;
  border: 2px solid var(--color-sage); background: var(--color-white);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.pick.on .pick__box { background: var(--color-forest); border-color: var(--color-forest); }
.pick.on .pick__box svg { width: 13px; height: 13px; }
.pick.off .pick__box svg { display: none; }
.pick__side { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pick__side.for { color: var(--color-success); }
.pick__side.against { color: var(--color-warm-gray); }
.pick__txt { font-size: 13px; line-height: 1.4; color: var(--color-charcoal); }

/* caption box */
.caption-box { border: 1px solid var(--color-forest-pale); border-radius: 12px; background: var(--color-base); padding: 13px 14px; }
.caption-box p { font-size: 13px; line-height: 1.5; color: var(--color-charcoal); margin: 0; text-wrap: pretty; }
.caption-box .link { color: var(--color-forest); font-weight: 600; word-break: break-all; }

/* sheet actions */
.sheet__actions { display: flex; gap: 10px; padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-forest-pale); background: var(--color-white); }
.sbtn {
  appearance: none; cursor: pointer; font-family: var(--font-sans);
  font-weight: 700; font-size: 14px; border-radius: 11px; padding: 13px 16px;
  border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.sbtn svg { width: 17px; height: 17px; }
.sbtn--primary { background: var(--color-forest); color: #fff; flex: 1 1 auto; }
.sbtn--primary:hover { background: var(--color-forest-light); }
.sbtn--ghost { background: transparent; color: var(--color-forest); border-color: var(--color-forest-pale); }
.sbtn--ghost:hover { background: var(--color-sage-pale); }

/* toast */
.toast {
  position: absolute; left: 50%; bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-charcoal); color: #fff; font-size: 13px; font-weight: 600;
  padding: 11px 18px; border-radius: 999px; z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
  box-shadow: var(--shadow-lg);
}
.toast svg { width: 16px; height: 16px; color: var(--color-sage-light); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* notes column beside the phone */
.flow__notes h3 { font-size: 22px; font-weight: 700; color: var(--color-forest); margin: 0 0 6px; letter-spacing: -0.01em; }
.flow__notes p { font-size: 16px; line-height: 1.6; color: var(--color-warm-gray); margin: 0 0 22px; max-width: 52ch; text-wrap: pretty; }
.flow__steps { list-style: none; margin: 0 0 26px; padding: 0; counter-reset: fs; }
.flow__steps li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--color-forest-pale); }
.flow__steps li:last-child { border-bottom: none; }
.flow__steps .n { counter-increment: fs; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--color-forest); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.flow__steps .n::before { content: counter(fs); }
.flow__steps div > b { color: var(--color-forest); font-weight: 700; font-size: 16px; }
.flow__steps div > p { font-size: 14.5px; color: var(--color-warm-gray); margin: 3px 0 0; line-height: 1.5; }
.flow__switch { display: inline-flex; background: var(--color-sage-pale); border: 1px solid var(--color-forest-pale); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 24px; }
.flow__switch button { appearance: none; cursor: pointer; border: none; background: transparent; font-family: var(--font-sans); font-weight: 600; font-size: 14px; color: var(--color-warm-gray); padding: 8px 20px; border-radius: 999px; }
.flow__switch button.active { background: var(--color-forest); color: #fff; }

/* data→frame legend ----------------------------------------- */
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px){ .legend { grid-template-columns: 1fr; } }
.legend__col { background: var(--color-white); border: 1px solid var(--color-forest-pale); border-radius: 16px; padding: 24px 26px; box-shadow: var(--shadow-sm); }
.legend__col h4 { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-sage); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.legend__col h4 .pip { width: 12px; height: 12px; border-radius: 3px; }
.legend__row { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--color-forest-pale); }
.legend__row:last-child { border-bottom: none; }
.legend__row .fno { font-family: var(--font-mono); font-size: 12px; color: var(--color-sage); flex: 0 0 30px; padding-top: 2px; }
.legend__row b { font-size: 15px; color: var(--color-forest); font-weight: 700; }
.legend__row .slot { font-family: var(--font-mono); font-size: 12.5px; color: var(--color-warm-gray); display: block; margin-top: 2px; }

/* responsive frame scale ------------------------------------ */
@media (max-width: 1240px){ .gallery .cwrap { --scale: 0.27; } }
@media (max-width: 560px){
  .studio { padding: 40px 18px 80px; }
  .studio h1 { font-size: 38px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .cwrap { --scale: 0.78; width: min(calc(1080px * var(--scale)), 86vw); height: auto; aspect-ratio: 1080 / 1350; }
  .gallery .cwrap > .cframe { transform: scale(calc(86vw / 1080)); }
}
