/* An interactive, compact adaptation of the native app's screens. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 4px; }
button:disabled { cursor: default; }
.hero { grid-template-columns: 1fr 1fr; gap: 50px; padding-block: 42px 40px; }
.app-showcase { --app-gold: #a67519; --app-navy: #1b2a4a; width: min(100%, 440px); justify-self: center; min-width: 0; scroll-margin-top: 26px; }
.showcase-topline { display: flex; align-items: center; justify-content: space-between; padding: 0 5px 15px; gap: 12px; }
.showcase-topline > span { font-size: .75rem; letter-spacing: 1.8px; color: var(--gold-text); }
.tour-control { display: flex; align-items: center; gap: 7px; min-height: 32px; background: transparent; padding: 4px 0 4px 9px; border: 0; color: var(--muted); font-size: .75rem; }
.tour-control:hover { color: var(--navy); }
.tour-control > span { font-size: 14px; color: var(--gold-text); }
.app-window { overflow: hidden; border: 1px solid #ddd9d1; border-radius: 20px; background: #f7f7f8; box-shadow: 0 18px 55px -20px rgba(7, 27, 54, .2), 0 2px 5px rgba(7, 27, 54, .04); }
.app-masthead { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-bottom: 1px solid #eaeaec; padding: 17px 21px; }
.app-masthead > span:first-child { font-family: var(--serif); font-size: 22px; letter-spacing: 1px; color: var(--app-navy); }
.preview-badge { font-size: .75rem; letter-spacing: 1px; color: #77706a; }
.app-content { min-height: 449px; padding: 19px; }
.demo-panel { min-height: 411px; animation: screen-enter .45s ease both; }
.demo-panel:focus { outline-offset: 4px; }
.demo-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 17px; }
.demo-section-heading h3 { font-family: Georgia, serif; font-weight: 600; font-size: 20px; letter-spacing: -.45px; line-height: 1.25; margin: 0; color: #17243b; }
.demo-location { font-size: .75rem; line-height: 1.4; text-align: right; color: #687181; }
.demo-eyebrow { font-size: .75rem; line-height: 1.5; letter-spacing: 1px; font-weight: 500; }
.election-preview { position: relative; overflow: hidden; padding: 20px 21px 18px; background: var(--app-navy); color: #fff; border-radius: 10px; }
.election-preview::after { content: ''; position: absolute; width: 180px; height: 180px; border: 1px solid rgba(232,181,71,.2); border-radius: 50%; right: -70px; top: -65px; pointer-events: none; }
.election-preview > .demo-eyebrow { color: #e8c57b; }
.election-preview h4 { font-family: var(--serif); font-weight: 400; font-size: 35px; line-height: 1.07; margin: 9px 0 10px; letter-spacing: -.5px; }
.election-preview p { font-size: .875rem; line-height: 1.5; color: #d0d7e1; margin: 0 0 17px; }
.election-preview button { display: flex; justify-content: space-between; gap: 18px; width: 100%; border: 0; border-top: 1px solid #546079; padding: 12px 0 0; color: #f0cc82; background: none; font-size: .875rem; text-align: left; }
.quiz-prompt { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; border: 1px solid #e6d7b5; background: #fff9ed; padding: 13px; border-radius: 10px; margin: 13px 0 17px; transition: transform .2s, background .2s; }
.quiz-prompt:hover { transform: translateY(-2px); background: #fff3d8; }
.quiz-spark { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; font-size: 30px; color: #9b701e; }
.quiz-prompt > span:nth-child(2) { flex: 1; }
.quiz-prompt strong { display: block; font-size: .875rem; line-height: 1.4; font-weight: 600; }
.quiz-prompt small { display: block; font-size: .75rem; line-height: 1.5; color: #687181; margin-top: 3px; }
.quiz-prompt > span:last-child { font-size: 24px; color: #9b701e; }
.demo-small-heading { font-size: .75rem; letter-spacing: 1.2px; color: #606c7e; margin: 0 0 10px; }
.home-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.home-shortcuts button { display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 5px 7px; padding: 11px; background: #fff; border: 1px solid #e0e2e7; border-radius: 9px; text-align: left; }
.home-shortcuts button:hover { border-color: #bc9951; }
.home-shortcuts strong { font-size: .875rem; font-weight: 500; }
.home-shortcuts small { grid-column: 1 / -1; font-size: .75rem; line-height: 1.5; color: #687181; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
[data-icon] svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.home-shortcuts [data-icon] { color: var(--app-gold); }
.demo-intro { font-size: .875rem; line-height: 1.5; color: #687181; margin-bottom: 16px; }
.government-levels { display: grid; gap: 9px; }
.government-levels button { display: flex; align-items: center; gap: 13px; text-align: left; padding: 12px 14px; border-radius: 9px; background: white; border: 1px solid #e1e2e7; transition: background .2s, border-color .2s, transform .2s; }
.government-levels button[aria-pressed="true"] { background: #fff8e9; border-color: #d2b16e; transform: translateX(3px); }
.government-levels button > [data-icon] { width: 36px; height: 36px; background: #f1f3f6; color: #34435c; border-radius: 50%; }
.government-levels button[aria-pressed="true"] > [data-icon] { background: #f4e7c9; color: #90661b; }
.government-levels button > span:nth-child(2) { flex: 1; }
.government-levels strong { display: block; font-size: .9375rem; font-weight: 600; }
.government-levels small { display: block; margin-top: 3px; font-size: .75rem; color: #687181; }
.government-levels button > span:last-child { font-size: 23px; color: #8e95a1; }
.office-detail { margin-top: 17px; padding-left: 14px; border-left: 2px solid #d6b366; animation: detail-enter .35s ease both; }
.office-detail .demo-eyebrow { color: var(--app-gold); }
.office-detail h4 { margin: 7px 0; font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.1; }
.office-detail p { font-size: .875rem; line-height: 1.6; color: #687181; margin: 0; }
.bill-filters { display: flex; gap: 8px; margin-bottom: 15px; }
.bill-filters button { flex: 1; border: 1px solid #dadddf; border-radius: 20px; font-size: .8125rem; line-height: 1.4; padding: 9px 7px; background: #fff; }
.bill-filters button[aria-pressed="true"] { background: var(--app-navy); color: white; border-color: var(--app-navy); }
.sample-bill { padding: 17px; border: 1px solid #e1e3e8; border-radius: 11px; background: white; }
.bill-topline { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.bill-topline > span { color: var(--app-gold); font-size: .75rem; letter-spacing: .55px; }
.save-bill { display: flex; align-items: center; gap: 5px; min-height: 30px; padding: 3px; border: 0; background: transparent; font-size: .75rem; color: #687181; }
.save-bill [data-icon] svg { width: 16px; height: 18px; }
.save-bill[aria-pressed="true"] { color: #90661b; }
.save-bill[aria-pressed="true"] svg { fill: #f4dfab; }
.sample-bill h4 { font-family: Georgia, serif; font-size: 21px; font-weight: 500; line-height: 1.3; margin: 12px 0 10px; }
.sample-bill > p { min-height: 63px; font-size: .875rem; line-height: 1.6; color: #687181; margin-bottom: 19px; }
.bill-stage-caption { display: flex; justify-content: space-between; font-size: .75rem; gap: 10px; color: #687181; margin-bottom: 14px; }
.bill-stage-caption strong { color: var(--app-navy); font-weight: 500; }
.bill-progress { display: flex; justify-content: space-between; align-items: center; position: relative; }
.bill-progress-track { position: absolute; top: 6px; height: 2px; left: 7px; right: 7px; background: #e4e6e9; }
.bill-progress-track > span { display: block; width: 0; height: 100%; background: #bc902e; transition: width .75s cubic-bezier(.2,.65,.3,1); }
.stage-dot { position: relative; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #dddfe4; transition: background .4s, border-color .4s; }
.stage-dot.completed { border-color: #ba902d; background: #e8c36f; }
.progress-endpoints { display: flex; justify-content: space-between; font-size: .75rem; color: #687181; margin-top: 9px; }
.advance-bill { width: 100%; display: flex; align-items: center; justify-content: space-between; border: 0; border-top: 1px solid #ede6d8; padding: 16px 0 0; margin-top: 19px; background: transparent; color: #916719; font-size: .875rem; }
.advance-bill:hover { color: var(--app-navy); }
.bill-impact { display: flex; gap: 10px; align-items: center; padding: 17px 2px 0; }
.bill-impact > [data-icon] { color: #a77821; }
.bill-impact strong { display: block; font-size: .8125rem; font-weight: 500; }
.bill-impact small { display: block; font-size: .75rem; line-height: 1.5; color: #687181; margin-top: 4px; }
.quiz-progress-label, .quiz-scale-labels { display: flex; justify-content: space-between; gap: 10px; color: #687181; font-size: .75rem; line-height: 1.5; }
.quiz-progress-track { width: 100%; height: 4px; background: #e2e4e8; border-radius: 5px; margin: 9px 0 23px; overflow: hidden; }
.quiz-progress-track span { display: block; height: 100%; width: 50%; background: #c79b3c; transition: width .5s; }
.quiz-topic { display: inline-block; color: #926817; background: #f7ecd5; padding: 6px 9px; border-radius: 5px; letter-spacing: 1px; font-size: .75rem; }
.quiz-statement { font-family: Georgia, serif; font-weight: 500; font-size: 22px; line-height: 1.35; min-height: 90px; margin: 15px 0 20px; }
.quiz-scale { margin: 0; padding: 0; border: 0; }
.quiz-scale legend { font-size: .875rem; margin-bottom: 11px; }
.quiz-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-bottom: 8px; }
.quiz-options button { border: 1px solid #d9dce2; background: white; font-size: .9375rem; border-radius: 9px; min-height: 43px; transition: transform .2s, background .2s; }
.quiz-options button[aria-pressed="true"] { background: var(--app-navy); color: white; border-color: var(--app-navy); transform: translateY(-3px); }
.quiz-answer-label { color: #687181; font-size: .75rem; margin-block: 17px; min-height: 18px; }
.quiz-next, .quiz-restart { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--app-navy); background: var(--app-navy); color: white; padding: 12px 15px; border-radius: 7px; font-size: .875rem; }
.quiz-next:disabled { background: #e7e9ed; color: #758092; border-color: #e0e3e9; }
.result-spark { display: block; font-size: 38px; color: #bd902f; margin: 10px 0 3px; }
#quiz-result-view h4 { font-family: var(--serif); font-weight: 400; font-size: 35px; line-height: 1.05; margin: 0 0 21px; }
.answer-chart > div:not(.answer-track) { display: flex; justify-content: space-between; font-size: .75rem; gap: 10px; color: #687181; }
.answer-chart strong { color: var(--app-navy); font-weight: 500; }
.answer-track { height: 6px; width: 100%; border-radius: 10px; background: #e2e4e8; overflow: hidden; margin: 8px 0 16px; }
.answer-track span { display: block; height: 100%; background: #caa044; width: 0; transition: width .7s ease; }
#quiz-result-view > p { font-size: .875rem; color: #687181; line-height: 1.65; margin: 0 0 17px; }
.demo-tablist { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid #e2e4e9; padding: 8px 9px 10px; gap: 3px; }
.demo-tablist button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 51px; gap: 5px; font-size: .75rem; white-space: nowrap; border: 0; background: transparent; color: #747e90; border-radius: 7px; transition: background .2s, color .2s; }
.demo-tablist button[aria-selected="true"] { color: #8b6215; background: #faf2e1; }
.demo-tablist button:hover { background: #f3f3f6; }
.tour-progress { background: #e9dfcb; height: 3px; }
.tour-progress > span { display: block; background: #b98a2b; width: 0; height: 100%; }
.showcase-caption { display: flex; gap: 14px; margin-top: 22px; padding-inline: 3px; min-height: 61px; }
.showcase-index { flex-shrink: 0; font-size: .75rem; letter-spacing: .9px; color: var(--gold-text); padding-top: 5px; }
.showcase-caption h3 { font-size: 25px; line-height: 1.12; letter-spacing: -.3px; margin: 0 0 7px; }
.showcase-caption p { font-size: .875rem; color: var(--muted); margin: 0; line-height: 1.5; }
.demo-disclaimer { font-size: .75rem; color: #727986; margin: 13px 0 0; padding-left: 3px; }
.feature-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; padding: 9px 0; border: 0; border-top: 1px solid var(--line); background: transparent; min-height: 42px; line-height: 1.5; }
.feature-footer:hover { color: var(--navy); }
.feature-footer > span { font-size: 20px; }
@keyframes screen-enter { from { opacity: .3; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes detail-enter { from { opacity: .5; transform: translateX(-5px); } to { opacity: 1; transform: none; } }
@media (min-width: 1600px) { .hero { min-height: 825px; } }
@media (max-width: 1100px) {
  .hero { gap: 28px; grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(66px, 8.2vw, 91px); }
  .app-content { padding: 16px; }
  .showcase-caption h3 { font-size: 23px; }
}
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 48px; }
  .hero-copy { max-width: 620px; }
  .hero h1 { font-size: clamp(65px, 12vw, 98px); }
  .app-showcase { max-width: 440px; width: 100%; }
}
@media (max-width: 480px) {
  .hero { gap: 38px; }
  .hero h1 { font-size: clamp(59px, 16.4vw, 78px); }
  .app-content { padding: 15px; min-height: 467px; }
  .demo-panel { min-height: 437px; }
  .app-masthead { padding: 16px; }
  .app-masthead > span:first-child { font-size: 21px; }
  .showcase-topline > span { letter-spacing: 1px; }
  .election-preview { padding: 19px 17px 17px; }
  .election-preview h4 { font-size: 33px; }
  .demo-section-heading { flex-wrap: wrap; gap: 4px 12px; }
  .demo-section-heading h3 { font-size: 19px; }
  .sample-bill { padding: 14px; }
  .quiz-statement { font-size: 21px; }
  .quiz-options { gap: 7px; }
  .showcase-caption { gap: 11px; }
  .showcase-caption h3 { font-size: 24px; }
}
@media (max-width: 360px) {
  .app-masthead { padding: 14px 12px; }
  .app-masthead > span:first-child { font-size: 19px; }
  .preview-badge { font-size: .75rem; letter-spacing: 0; }
  .app-content { padding: 12px; }
  .showcase-topline { padding-inline: 0; gap: 6px; }
  .showcase-topline > span { letter-spacing: .5px; }
  .tour-control { padding-left: 0; }
  .demo-tablist { padding-inline: 3px; gap: 0; }
  .demo-tablist button { font-size: .75rem; padding-inline: 1px; }
  .home-shortcuts { gap: 8px; }
  .home-shortcuts button { padding: 10px 8px; gap: 5px; }
  .sample-bill h4 { font-size: 20px; }
  .bill-topline { align-items: flex-start; }
  .bill-topline > span { max-width: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-panel, .office-detail { animation: none; }
  .bill-progress-track > span, .answer-track span, .quiz-progress-track span, .stage-dot { transition: none; }
}
/* Keep each screen steady as the tour changes, with native-style internal scrolling. */
.app-content { height: 510px; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d4cfc4 transparent; }
.demo-panel { min-height: 0; }
