/* What the Hill? — /partners
   Reworked from css/experts.css. Page-specific replicas, loaded after
   style.css and reusing its tokens and the shared .check-list/.section-band/
   .qa-grid primitives.
   Sources: app/org/[id].tsx (org profile), app/(tabs)/feed.tsx + app/intro.tsx
   (post rows + type pills), app/notifications.tsx (collection toggles),
   app/admin/stats.tsx (StatCard + AdminTable), BillCard.tsx (stickies),
   app/bill/[id].tsx (the Private Content / Public Content split).
   .hero-note and .ask-list/.tick now live in css/style.css as .check-list. */
:root {
  /* feed post type pills — FEED_TYPE_META in app/intro.tsx */
  --alert: #ff9500;
  --update: #007aff;
  --commentary: #5856d6;
  --news: #34c759;
}

@media (prefers-color-scheme: dark) {
  :root {
    --alert: #ffb340;
    --update: #5ea0ff;
    --commentary: #9e9cff;
    --news: #5dd97e;
  }
}

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

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 26px 0 12px;
}
/* ---------- org profile card — app/org/[id].tsx replica ---------- */

.org-demo {
  display: flex;
  justify-content: center;
}

.org-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* hero band: the app falls back to a 30%-alpha wash of the org's hash color */
.org-hero {
  height: 104px;
  background:
    linear-gradient(120deg,
      color-mix(in srgb, var(--senate) 34%, transparent),
      color-mix(in srgb, var(--house) 26%, transparent));
}

.org-body { padding: 0 20px 20px; }

.org-avatar {
  width: 88px;
  height: 88px;
  border-radius: 44px;
  margin-top: -44px;
  background: var(--surface);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.org-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.org-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 14px 0 0;
}

.org-desc {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  margin: 8px 0 0;
}

.org-links {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  color: var(--house);
}

.org-links svg { width: 24px; height: 24px; display: block; }

.org-web {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--house);
}

.org-web svg { width: 20px; height: 20px; }

/* stats strip — 3 columns between hairlines, values in the pink accent */
.org-stats {
  display: flex;
  margin: 20px -4px 0;
  padding: 18px 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.org-stat {
  flex: 1;
  text-align: center;
}

.org-stat b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--house);
  font-variant-numeric: tabular-nums;
}

.org-stat span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--muted);
}

/* collection row — app/org/[id].tsx colRow */
.col-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 4px;
}

.col-icon {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--house) 14%, transparent);
  color: var(--house);
}

.col-icon svg { width: 20px; height: 20px; }

.col-main { flex: 1; min-width: 0; }

.col-name { font-size: 15px; font-weight: 700; }

.col-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

.col-meta svg { width: 11px; height: 11px; }

.follow-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--house);
  background: var(--house);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.follow-btn.pressed { transform: scale(0.94); }

.follow-btn.following {
  background: color-mix(in srgb, var(--house) 14%, transparent);
  border-color: color-mix(in srgb, var(--house) 30%, transparent);
  color: var(--house);
}

/* ---------- who we work with ---------- */

.who-pill {
  display: inline-flex;
  align-items: center;
  margin-right: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-card);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink);
}

/* ---------- feed post rotator ---------- */

.post-demo .post-sheet { max-width: 440px; }

.fp-swap { transition: opacity 0.35s ease, translate 0.35s ease; }
.fp-kind.fp-swap { display: inline-block; }
.fp-swap.out { opacity: 0; translate: 0 -8px; }

.fp-contact {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  margin: 4px 0 0;
}

/* the counters climb on their own here — nobody is tapping them */
.post-demo .fp-btn { cursor: default; }

/* ---------- lock screen + push notification ---------- */

.lock-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  /* taller than the phone so the prefs card clears the notification stack */
  height: 548px;
  overflow: hidden;
}

.lock-wrap .iphone {
  transform: scale(0.72);
  transform-origin: top center;
}

.ip-lock {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, #2a3550 0%, #4c3a58 55%, #7a4a52 100%);
  padding: 68px 16px 0;
  color: #fff;
  overflow: hidden;
}

.lock-date {
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.lock-time {
  text-align: center;
  font-size: 80px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 18px;
}

.lock-note {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 13px 15px;
  margin-bottom: 9px;
  opacity: 0;
  translate: 0 -18px;
  scale: 0.96;
  transition: opacity 0.45s ease, translate 0.45s cubic-bezier(0.22, 1.2, 0.36, 1), scale 0.45s ease;
}

.lock-note.in { opacity: 1; translate: 0 0; scale: 1; }

.lock-note img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex-shrink: 0;
  background: #fff;
}

.lock-note .ln-body { flex: 1; min-width: 0; }

.ln-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.2px;
}

.ln-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 19px;
  margin-top: 2px;
}

.ln-text {
  font-size: 14px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 1px;
}

/* notification-preference card — app/notifications.tsx toggle rows */
.pref-card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 252px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 13px 15px;
  z-index: 3;
}

.pref-head {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.pref-org {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--hairline);
}

.pref-label { font-size: 12.5px; font-weight: 600; }
.pref-sub { font-size: 10.5px; color: var(--muted); }

.switch {
  width: 40px;
  height: 24px;
  border-radius: 12px;
  background: var(--inactive);
  flex-shrink: 0;
  position: relative;
  transition: background 0.3s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: translate 0.3s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.switch.on { background: #34c759; }
.switch.on::after { translate: 16px 0; }

@media (max-width: 900px) {
  /* one column: the phone sits on its own, the prefs card below it. scale()
     leaves the phone's full 722px layout box behind — the negative margin
     absorbs the slack so nothing floats in dead space */
  .lock-wrap {
    display: block;
    height: auto;
    overflow: visible;
  }
  .lock-wrap .iphone { display: block; margin: 0 auto -202px; }
  .pref-card {
    position: static;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
}

/* ---------- talking points -> script ---------- */

.tp-demo { display: flex; flex-direction: column; align-items: center; }

.tp-editor {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
}

.tp-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}

.tp-editor-head .tp-bill {
  color: var(--senate);
  letter-spacing: 0.4px;
}

.tp-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface2);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 18px;
  margin-bottom: 8px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tp-item.lift {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.tp-grip {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--dim);
  letter-spacing: 1px;
  font-size: 11px;
  line-height: 12px;
}

.tp-flow {
  width: 34px;
  height: 44px;
  margin: 8px 0 2px;
  color: var(--dim);
}

.tp-flow svg { width: 100%; height: 100%; }

.tp-demo .guide-sheet {
  width: 100%;
  max-width: 420px;
}

.script-line {
  display: block;
  margin-bottom: 1.05em;
  opacity: 0;
  translate: 0 6px;
  transition: opacity 0.4s ease, translate 0.4s ease;
}

.script-line.in { opacity: 1; translate: 0 0; }

/* ---------- collection + nickname typing ---------- */

.nick-demo { position: relative; }

.col-card {
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  padding: 20px;
  max-width: 440px;
  margin: 0 auto;
}

.col-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.col-stickies {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  padding: 26px 0 10px;
  min-height: 190px;
}

.col-stickies .sticky {
  transform: rotate(var(--rot, 0deg)) scale(0.72);
  flex-shrink: 0;
  /* scale() leaves the 168px layout box behind — reclaim the slack */
  margin: 0 -26px;
}

.col-stickies .sticky.lead {
  transform: rotate(var(--rot, 0deg)) scale(0.94);
  z-index: 2;
  margin: 0 -3px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  background: currentColor;
  margin-left: 2px;
  vertical-align: -2px;
  animation: caret-blink 1s steps(1, end) infinite;
}

@keyframes caret-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .caret { display: none; }
}

/* ---------- dashboard ---------- */

.dash {
  max-width: 900px;
  margin: 34px auto 0;
  text-align: left;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.statcard {
  background: color-mix(in srgb, var(--sc) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--sc) 22%, transparent);
  border-radius: 14px;
  padding: 16px;
}

.statcard svg {
  width: 18px;
  height: 18px;
  color: var(--sc);
  display: block;
}

.statcard b {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--sc);
  font-variant-numeric: tabular-nums;
}

.statcard span {
  font-size: 12px;
  font-weight: 600;
  color: color-mix(in srgb, var(--sc) 70%, var(--muted));
}

.dash-table {
  margin-top: 14px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.dash-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.2px;
  padding: 14px 16px 10px;
}

.dash-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
}

.dash-row.head {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 8px 16px;
}

.dash-row .c-post {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.dash-row .c-num {
  width: 62px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.dash-row.head .c-num { color: var(--dim); }

@media (max-width: 560px) {
  .dash-row .c-num { width: 52px; }
  .dash-row { font-size: 12px; padding-left: 12px; padding-right: 12px; }
  /* two metrics is all a phone has room for without truncating every title */
  .dash-row > :nth-child(4),
  .dash-row > :nth-child(5) { display: none; }
}

/* ---------- perks ---------- */

.perk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 34px;
  text-align: left;
}

.perk {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 22px;
}

.perk-icon {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--pc, var(--house)) 13%, transparent);
  color: var(--pc, var(--house));
  margin-bottom: 12px;
}

.perk-icon svg { width: 20px; height: 20px; }

.perk h3 {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.feature .perk p {
  font-size: 0.94rem;
  color: var(--muted);
  margin: 0;
  max-width: none;
}

/* ---------- apply band ---------- */

.apply { padding: 64px 0 72px; }

.apply-card {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 48px;
  text-align: center;
}

.apply-card h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
}

.apply-card > p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
  margin: 0 auto 8px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin: 34px 0 34px;
  text-align: left;
}

.step {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 20px;
}

.step b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: var(--house);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
}

.step h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.step p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.apply-note {
  font-size: 0.88rem;
  color: var(--dim);
  margin: 16px 0 0;
}

@media (max-width: 900px) {
  .apply-card { padding: 32px 24px; }
}

.ask-head {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 38px 0 -12px;
}

/* narrow screens: the three-note fan is wider than the card, so shrink the
   whole row as one unit rather than restacking it */
@media (max-width: 620px) {
  .col-stickies {
    transform: scale(0.78);
    transform-origin: center top;
    min-height: 0;
    padding: 16px 0 0;
    /* scale() keeps the full-size layout height — trim the dead space it
       leaves at the bottom of the card */
    margin-bottom: -40px;
  }
}

/* ---------- hero: who's already on board ---------- */

.partner-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pl-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* the row is a flex wrap so a second and third partner drop in without
   touching the layout */
.partner-logos .col-pill { margin-right: 0; }

/* ---------- the gap: a post elsewhere vs. a post here ---------- */

/* wider than the rest of the page and wider on the demo side than
   .feature-grid: two cards and an arrow have to fit next to each other before
   they stack, and the feed post replica needs real width to read */
.gap .wrap { max-width: 1240px; }

.gap-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.7fr;
  gap: 48px;
  align-items: center;
}

.gap-grid > * { min-width: 0; }

.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 8px;
}

.compare > * { min-width: 0; }

/* both columns stretch so the two captions sit on one line and the cards end
   level, whichever one has more in it */
.cmp { display: flex; flex-direction: column; }
.cmp > .cmp-card,
.cmp > .post-demo { flex: 1; }
.cmp > .post-demo { display: flex; }
.cmp > .post-demo > .post-sheet { flex: 1; }

.gap-arrow { align-self: center; }

.cmp-cap {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 10px;
  text-align: center;
}

.cmp-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 16px;
}

/* a generic social post: no platform mark, no platform colour, nothing to
   identify which app this is meant to be */
.sp-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sp-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: var(--chip);
  overflow: hidden;
}

.sp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sp-who { flex: 1; min-width: 0; display: block; }
.sp-name { display: block; font-size: 14px; font-weight: 700; }
.sp-meta { display: block; font-size: 11.5px; color: var(--dim); }

.sp-dots {
  flex: none;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--inactive);
}

.sp-body {
  font-size: 13.5px;
  line-height: 20px;
  color: var(--muted);
  margin: 0 0 14px;
}

/* views, likes, comments — and nothing you can act on */
.sp-counts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--dim);
}

.sp-counts b {
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.gap-arrow {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 62px;
  color: var(--ink);
}

.gap-arrow svg {
  width: 100%;
  height: 40px;
  overflow: visible;
}

.gap-arrow-label {
  /* the sticky-note ink style: bold italic in the page's own face, not a
     handwriting font the page doesn't otherwise use */
  font-size: 15px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.2px;
  color: var(--ink);
  white-space: nowrap;
}

/* the replica is drawn for a 440px column; in half of one it needs to come
   down a step or the headline eats the card */
.compare .post-demo .post-sheet { max-width: none; }
.compare .fp { padding: 4px 0; }
.compare .fp-title { font-size: 19px; line-height: 25px; }
.compare .fp-body { font-size: 13.5px; line-height: 20px; }
.compare .fp-sticky { width: 92px; }
.compare .fp-btn { padding: 7px 14px; }
.compare .guide-sheet,
.compare .sheet { padding-left: 16px; padding-right: 16px; }

@media (max-width: 1000px) {
  .gap-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  /* elsewhere on top, the arrow turns to point down at what replaces it */
  .compare { grid-template-columns: 1fr; gap: 18px; justify-items: center; }
  .compare .cmp { width: 100%; max-width: 420px; }
  .gap-arrow { transform: rotate(72deg); }
  .gap-arrow-label { transform: rotate(-72deg); }
}

/* ---------- neutrality: same bill, opposite stamps ---------- */

.neutral {
  padding: 72px 0 8px;
  text-align: center;
}

.neutral h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 18px;
}

.neutral p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 40rem;
  margin: 0 auto 14px;
}

.board {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 36px;
  margin-top: 44px;
}

.board-note {
  opacity: 0;
  translate: 0 -24px;
  transition: opacity 0.5s ease, translate 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.board-note.in { opacity: 1; translate: 0 0; }

/* the sticky's own shadow tightens as it lands, same as the homepage board */
.board-note .sticky {
  position: relative;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.16);
  transition: box-shadow 0.5s ease;
}

.board-note.in .sticky { box-shadow: var(--shadow-sticky); }

.stamp {
  position: absolute;
  right: -20px;
  bottom: -16px;
  padding: 5px 11px;
  border-radius: 6px;
  border: 2.5px solid currentColor;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--surface);
  rotate: -9deg;
  opacity: 0;
  scale: 1.3;
}

.stamped .stamp {
  animation: stamp-in 0.34s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}

@keyframes stamp-in {
  from { opacity: 0; scale: 1.3; }
  to { opacity: 1; scale: 1; }
}

.stamp-support { color: var(--signed); }
.stamp-oppose { color: var(--veto); }

.neutral .board-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 172px;
  /* clears the stamp, which hangs off the sticky's bottom-right corner */
  margin: 38px auto 0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--muted);
}

.neutral .board-by img,
.by-mark {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--chip);
}

/* the mark in the middle carries no stamp — that is the whole point */
.board-mark {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
}

.board-mark img { width: 40px; height: 40px; }

.board-mark span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

@media (prefers-reduced-motion: reduce) {
  .board-note { opacity: 1; translate: 0 0; transition: none; }
  .stamp { opacity: 1; scale: 1; }
  .stamped .stamp { animation: none; }
}

@media (max-width: 620px) {
  .board { gap: 18px; }
  .neutral .board-by { max-width: 132px; font-size: 11.5px; }
  .board-mark img { width: 32px; height: 32px; }
}

/* two notes plus the stamp overhang don't fit a phone side by side, so the
   board turns into a column and the mark still sits between the two sides */
@media (max-width: 520px) {
  .board {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 36px;
  }
  .board-mark { flex-direction: row; gap: 10px; padding: 4px 0; }
  .neutral .board-by { margin-top: 30px; max-width: 220px; }
}

/* ---------- tap indicator, reused off the homepage's .ip-finger ---------- */

.tap-finger {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(120, 120, 128, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.55);
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}

.tapping .tap-finger { animation: tap-press 0.55s ease forwards; }

@keyframes tap-press {
  0% { opacity: 0; transform: scale(0.5); }
  35% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.15); }
}

/* the Call pill at the bottom of the script sheet */
.guide-actions { position: relative; }

#tp-call { transition: transform 0.15s ease, filter 0.15s ease; }
.tapping #tp-call { transform: scale(0.94); filter: brightness(0.92); }

#tp-finger { right: 26px; top: -2px; }

/* ---------- dashboard table sweep ---------- */

.dash-row { transition: background 0.35s ease; }
.dash-row.lit { background: var(--chip); }

@media (prefers-reduced-motion: reduce) {
  .dash-row.lit { background: none; }
}

/* ---------- the one link for your bio ---------- */

.bio-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 36px auto 44px;
  width: max-content;
  max-width: 100%;
}

.bio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 14px 20px;
  text-align: left;
}

.bio-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--chip);
}

.bio-text { display: block; min-width: 0; }
.bio-name { display: block; font-size: 15px; font-weight: 800; }

.bio-line {
  display: block;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--muted);
}

.link-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--chip);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.link-chip svg { width: 15px; height: 15px; flex: none; }

.link-chip.copied {
  background: color-mix(in srgb, var(--signed) 16%, transparent);
  color: var(--signed);
}

.link-chip.copied span { visibility: hidden; }

.link-chip.copied::after {
  content: 'Copied';
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
}

#bio-finger { bottom: -6px; left: 50%; margin-left: -4px; }

/* ---------- apply steps come in one after the other ---------- */

.reveal .step {
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.5s ease, translate 0.5s ease;
}

.reveal.in .step { opacity: 1; translate: 0 0; }
.reveal.in .step:nth-child(2) { transition-delay: 0.1s; }
.reveal.in .step:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal .step { opacity: 1; translate: 0 0; transition: none; }
}

/* ---------- the seam: private card vs. public card ---------- */
/* app/bill/[id].tsx puts Private Content and Public Content in two sections of
   one screen; here they sit side by side so the tracker half and the partner
   half can be pointed at separately. */

.seam-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  max-width: 940px;
  margin: 36px auto 0;
  text-align: left;
}

.seam-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 18px 20px 14px;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

/* the partner half: quiet until the demo switches it on */
.seam-public.lit {
  border-color: var(--house);
  box-shadow: 0 8px 26px color-mix(in srgb, var(--house) 20%, transparent);
}

.seam-head {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.seam-ico {
  display: inline-flex;
  color: var(--dim);
}

.seam-ico svg { width: 15px; height: 15px; display: block; }

.seam-public.lit .seam-ico { color: var(--house); }

.seam-who {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dim);
}

.seam-who::before { content: "\00b7"; margin-right: 6px; }

.seam-chip {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--house) 14%, transparent);
  color: var(--house);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0;
  scale: 0.86;
  transition: opacity 0.35s ease, scale 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.seam-chip.on { opacity: 1; scale: 1; }

.seam-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  opacity: 0;
  translate: 0 6px;
  transition: opacity 0.4s ease, translate 0.4s ease;
}

.seam-head + .seam-row { border-top: 0; }
.seam-row.in { opacity: 1; translate: 0 0; }

.seam-k {
  flex: none;
  width: 98px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--dim);
  padding-top: 3px;
}

.seam-v {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13.5px;
  line-height: 19px;
}

.seam-v.seam-text {
  display: block;
  color: var(--muted);
}

.seam-bullet { display: block; }
.seam-bullet::before { content: "\2022"; margin-right: 6px; color: var(--dim); }
.seam-bullet + .seam-bullet { margin-top: 4px; }

.seam-pill {
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.seam-pill.p-high {
  background: color-mix(in srgb, var(--alert) 16%, transparent);
  color: var(--alert);
}

.seam-pill.p-oppose {
  background: color-mix(in srgb, var(--veto) 14%, transparent);
  color: var(--veto);
}

.seam-tag {
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--chip);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.seam-owner {
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
}

/* the shared .avatar is sized for a legislator row — shrink it to fit here */
.seam-owner .avatar {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  font-size: 10.5px;
  border-width: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .seam-row { opacity: 1; translate: 0 0; transition: none; }
  .seam-chip { opacity: 1; scale: 1; transition: none; }
}

@media (max-width: 780px) {
  .seam-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .seam-card { padding: 16px 16px 12px; }
  .seam-k { width: 80px; }
  .seam-v { font-size: 13px; }
}

/* ---------- apply card ---------- */
/* .check-list is the shared primitive now; the apply card wants it centered
   and a step larger than the default */

.apply-card .check-list {
  max-width: 40rem;
  margin: 30px auto 0;
  gap: 12px;
}

.apply-card .check-list li { font-size: 1rem; }

.apply-card .check-list .tick {
  width: 22px;
  height: 22px;
  border-radius: 11px;
  margin-top: 2px;
  font-size: 12px;
}

/* ---------- hero notes stack ---------- */

.hero-note + .hero-note { margin-top: 6px; }

/* the closing "not a partner yet" line needs air under the ask list */
.apply-card .check-list + .apply-note { margin-top: 28px; }

/* keep the arrow with its label when the hero note wraps */
.hero-note .text-link { white-space: nowrap; }
