:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #607084;
  --paper: #fbf9f3;
  --surface: #ffffff;
  --line: #d9dfdf;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --gold: #d4952c;
  --coral: #d45d4a;
  --blue: #2f6f9f;
  --shadow: 0 18px 45px rgba(24, 33, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(24, 33, 47, 0.1);
  background: rgba(251, 249, 243, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.top-nav {
  display: flex;
  gap: 8px;
}

.top-nav a {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: #e7f2ef;
  color: var(--teal-dark);
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.icon-button svg,
.primary-action svg,
.secondary-action svg,
.print-button svg,
.guide-card svg,
.quick-help-card svg,
.notice-band svg,
.resource-links svg,
.trust-row svg,
.trust-card svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.menu-button {
  display: none;
}

.app-hero {
  position: relative;
  display: grid;
  min-height: 590px;
  align-items: end;
  overflow: hidden;
  background: #173f45;
}

.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 24, 31, 0.84), rgba(9, 24, 31, 0.3) 58%, rgba(9, 24, 31, 0.72)),
    url("https://images.unsplash.com/photo-1573497620053-ea5300f94f21?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 74px;
  color: #fff;
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 6.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-content p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
}

.hero-content .hero-helper {
  max-width: 620px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  font-weight: 750;
}

.hero-actions,
.zip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 800;
}

.primary-action,
.secondary-action,
.print-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 16px;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.primary-action {
  background: var(--teal);
  color: #fff;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--teal-dark);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.notice-band {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 1120px;
  margin: -34px auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 5;
}

.notice-band p {
  margin: 0;
  color: #334155;
}

.notice-band svg {
  margin-top: 3px;
  color: var(--teal);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(245px, 310px) minmax(0, 1fr);
  gap: 24px;
  max-width: 1120px;
  margin: 72px auto 0;
  padding: 0 20px;
}

.scenario-panel,
.guide-view,
.phrase-section,
.help-section,
.resources,
.quick-help-section,
.rights-card-section,
.contact-section,
.trust-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.scenario-panel {
  align-self: start;
  padding: 22px;
}

.scenario-panel h2,
.section-heading h2,
.help-copy h2,
.resources h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.scenario-list {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.scenario-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.scenario-button:hover,
.scenario-button:focus-visible {
  background: #f2f7f5;
}

.scenario-button.is-active {
  border-color: rgba(15, 118, 110, 0.24);
  background: #e7f2ef;
  color: var(--teal-dark);
}

.scenario-button svg {
  width: 18px;
  height: 18px;
}

.guide-view {
  padding: 28px;
}

.guide-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.guide-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff5df;
  color: #835115;
  font-size: 0.82rem;
  font-weight: 900;
}

.print-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.guide-view h2 {
  margin: 20px 0 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.guide-summary {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.guide-card {
  min-height: 315px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdfb;
}

.guide-card.accent {
  border-color: rgba(47, 111, 159, 0.25);
  background: #eef6fb;
}

.guide-card h3 {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 14px;
  font-size: 1rem;
  letter-spacing: 0;
}

.guide-card h3 svg {
  color: var(--teal);
}

.guide-card ul,
.guide-card ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 19px;
  color: #334155;
}

.source-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.phrase-section,
.amendments-section,
.quick-help-section,
.rights-card-section,
.help-section,
.resources,
.about-section,
.contact-section,
.trust-section {
  max-width: 1120px;
  margin: 24px auto 0;
  padding: 28px;
}

.quick-help-section {
  margin-top: 72px;
}

.quick-help-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.quick-help-card {
  min-height: 215px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdfb;
}

.quick-help-card svg {
  width: 28px;
  height: 28px;
  color: var(--teal);
}

.quick-help-card h3 {
  margin: 16px 0 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.quick-help-card p {
  margin: 10px 0 0;
  color: #475569;
}

.amendments-section {
  border: 1px solid rgba(47, 111, 159, 0.22);
  border-radius: 8px;
  background: #f8fbfb;
}

.section-heading p:not(.section-label) {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

.amendment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.amendment-card {
  min-height: 208px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.amendment-card span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7f2ef;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.amendment-card h3 {
  margin: 14px 0 0;
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.amendment-card p {
  margin: 10px 0 0;
  color: #475569;
}

.phrase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.phrase-grid.compact {
  margin-top: 16px;
}

.phrase-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.phrase-card:hover,
.phrase-card:focus-visible {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.1);
}

.phrase-card span {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.phrase-card strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.copy-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.spanish-phrases {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.spanish-phrases h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.rights-card-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(285px, 380px);
  gap: 24px;
  align-items: center;
  background: #f8fbfb;
}

.rights-card-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.rights-card-copy p:not(.section-label) {
  max-width: 620px;
  margin: 14px 0 20px;
  color: var(--muted);
}

.wallet-card {
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(24, 33, 47, 0.12);
}

.wallet-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.wallet-card ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: #243244;
  font-weight: 800;
}

.wallet-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.help-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 28px;
  align-items: center;
  background: #173f45;
  color: #fff;
}

.help-copy p:not(.section-label) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
}

.zip-form {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.zip-form label,
.feedback-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 850;
}

.zip-form input,
.zip-form select,
.feedback-form input,
.feedback-form textarea {
  width: min(100%, 220px);
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.zip-form select {
  width: 100%;
}

.state-row,
.topic-row {
  margin-top: 16px;
}

.form-note {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.privacy-note {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 750;
}

.privacy-note.dark {
  color: var(--muted);
}

.legal-results {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.legal-results-empty,
.legal-results-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.legal-results-heading h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.25rem;
}

.legal-results-warning {
  margin-top: 10px;
  color: #ffe5a8;
  font-weight: 800;
}

.legal-results-tip {
  margin-top: 10px;
  color: #d8fff9;
  font-weight: 800;
}

.legal-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.legal-result-card {
  display: grid;
  align-content: start;
  min-height: 245px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.legal-result-card span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-result-card h3 {
  margin: 10px 0 0;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.2;
}

.topic-match {
  width: fit-content;
  margin-top: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(216, 255, 249, 0.13);
  color: #d8fff9;
  font-size: 0.8rem;
}

.legal-result-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.legal-result-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 38px;
  margin-top: 16px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}

.legal-result-card a:hover,
.legal-result-card a:focus-visible {
  background: rgba(255, 255, 255, 0.13);
}

.legal-result-card svg {
  width: 17px;
  height: 17px;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.resource-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
  font-weight: 800;
}

.resource-links a:hover,
.resource-links a:focus-visible {
  border-color: rgba(15, 118, 110, 0.34);
  background: #f2f7f5;
  color: var(--teal-dark);
}

.trust-section {
  border-color: rgba(47, 111, 159, 0.2);
  background: #f8fbfb;
}

.trust-copy {
  max-width: 820px;
}

.trust-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.trust-copy p:not(.section-label) {
  margin: 14px 0 0;
  color: var(--muted);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.trust-card {
  min-height: 205px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.trust-card svg {
  width: 26px;
  height: 26px;
  color: var(--blue);
}

.trust-card h3 {
  margin: 14px 0 0;
  font-size: 1.06rem;
}

.trust-card p {
  margin: 10px 0 0;
  color: #475569;
}

.last-updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 850;
}

.about-section {
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: var(--surface);
}

.about-copy {
  max-width: 820px;
}

.about-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: 0;
}

.about-copy p:not(.section-label) {
  margin: 16px 0 0;
  color: #475569;
  font-size: 1.05rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.contact-copy p:not(.section-label) {
  margin: 14px 0 0;
  color: var(--muted);
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-details a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 850;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  background: #e7f2ef;
}

.contact-details svg {
  width: 18px;
  height: 18px;
}

.feedback-form {
  display: grid;
  gap: 10px;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border-color: var(--line);
  resize: vertical;
}

.feedback-form .primary-action {
  width: fit-content;
}

.feedback-status {
  color: var(--teal-dark);
  font-weight: 800;
}

.site-footer {
  max-width: 1120px;
  margin: 28px auto 0;
  padding: 0 20px 36px;
  color: var(--muted);
}

.site-footer strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.site-footer p {
  max-width: 980px;
  margin: 8px 0 0;
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 18px;
  }

  .top-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    display: none;
    width: min(260px, calc(100vw - 36px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .top-nav.is-open {
    display: grid;
  }

  .menu-button {
    display: inline-grid;
  }

  .workspace,
  .help-section,
  .rights-card-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .scenario-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-grid,
  .amendment-grid,
  .quick-help-grid,
  .legal-results-grid,
  .trust-grid,
  .phrase-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .app-hero {
    min-height: 540px;
  }

  .hero-content {
    padding-bottom: 58px;
  }

  .notice-band {
    margin: -24px 14px 0;
  }

  .workspace,
  .amendments-section,
  .quick-help-section,
  .rights-card-section,
  .phrase-section,
  .help-section,
  .resources,
  .about-section,
  .contact-section,
  .trust-section {
    margin-top: 20px;
  }

  .scenario-list,
  .guide-grid,
  .amendment-grid,
  .quick-help-grid,
  .legal-results-grid,
  .trust-grid,
  .phrase-grid {
    grid-template-columns: 1fr;
  }

  .guide-view,
  .scenario-panel,
  .amendments-section,
  .quick-help-section,
  .rights-card-section,
  .phrase-section,
  .help-section,
  .resources,
  .about-section,
  .contact-section,
  .trust-section {
    padding: 20px;
  }

  .guide-card {
    min-height: auto;
  }

  .zip-row {
    align-items: stretch;
  }

  .zip-form input,
  .feedback-form .primary-action,
  .zip-row .primary-action {
    width: 100%;
  }
}

@media print {
  .site-header,
  .app-hero,
  .notice-band,
  .scenario-panel,
  .quick-help-section,
  .amendments-section,
  .phrase-section,
  .rights-card-section,
  .help-section,
  .resources,
  .about-section,
  .contact-section,
  .trust-section,
  .site-footer,
  .print-button {
    display: none;
  }

  body {
    background: #fff;
  }

  .workspace,
  .guide-grid {
    display: block;
    margin: 0;
    padding: 0;
  }

  .guide-view,
  .guide-card {
    border: 0;
    padding: 0;
  }

  .guide-card {
    margin-top: 22px;
  }

  body.print-card .site-header,
  body.print-card .app-hero,
  body.print-card .notice-band,
  body.print-card .workspace,
  body.print-card .quick-help-section,
  body.print-card .amendments-section,
  body.print-card .phrase-section,
  body.print-card .help-section,
  body.print-card .resources,
  body.print-card .about-section,
  body.print-card .contact-section,
  body.print-card .trust-section,
  body.print-card .site-footer {
    display: none;
  }

  body.print-card .rights-card-section {
    display: block;
    border: 0;
    margin: 0;
    padding: 0;
    background: #fff;
  }

  body.print-card .rights-card-copy {
    display: none;
  }

  body.print-card .wallet-card {
    width: 3.5in;
    min-height: 2in;
    box-shadow: none;
  }
}
