@font-face {
  font-family: "Mazza Serif";
  src: url("/fonts/dejavu/DejaVuSerif.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Mazza Serif";
  src: url("/fonts/dejavu/DejaVuSerif-Italic.ttf") format("truetype");
  font-display: swap;
  font-style: italic;
  font-weight: 400;
}

@font-face {
  font-family: "Mazza Serif";
  src: url("/fonts/dejavu/DejaVuSerif-Bold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Mazza Sans";
  src: url("/fonts/liberation/LiberationSans-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Mazza Sans";
  src: url("/fonts/liberation/LiberationSans-Bold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Mazza Mono";
  src: url("/fonts/dejavu/DejaVuSansMono.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --bg: #fdfcf9;
  --bg-alt: #f5f1e8;
  --surface: #ffffff;
  --surface-warm: #ede6d3;
  --surface-strong: #08263c;
  --text: #2a2a28;
  --black: #161717;
  --muted: #66635c;
  --line: #e4dcc9;
  --gold: #c9993b;
  --gold-light: #e5b359;
  --gold-soft: #f7ead0;
  --blue: #08263c;
  --blue-soft: #133855;
  --green: #157a6e;
  --danger: #a63a3a;
  --shadow: 0 18px 42px rgba(8, 38, 60, 0.12);
  --radius: 8px;
  --page-max: 1180px;
  --font-sans: "Mazza Sans", "Liberation Sans", "DejaVu Sans", Arial, sans-serif;
  --font-display: "Mazza Serif", "DejaVu Serif", Georgia, serif;
  --font-mono: "Mazza Mono", "DejaVu Sans Mono", ui-monospace, monospace;
  --weight-medium: 400;
  --weight-semibold: 500;
  --weight-bold: 500;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

main > *,
.hero > *,
.grid > *,
.pricing-panel > *,
.copay-panel > *,
.matrix-wrap > *,
.submission-grid > *,
.admin-tools > *,
.admin-login > * {
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background:
    linear-gradient(180deg, #fdfcf9 0%, #f5f1e8 52%, #fdfcf9 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
}

body.admin-body {
  background: var(--bg-alt);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 5vw, 56px);
  background: rgba(253, 252, 249, 0.94);
  border-bottom: 1px solid rgba(8, 38, 60, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  display: block;
  width: 156px;
  max-width: 48vw;
  height: auto;
}

.admin-link {
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition:
    color 140ms ease,
    transform 140ms ease;
}

.admin-link:hover {
  color: var(--gold);
  transform: translateY(-1px);
}

main {
  display: grid;
  gap: 28px;
  width: 100%;
  max-width: var(--page-max);
  min-width: 0;
  margin: 0 auto;
  padding: 28px clamp(16px, 5vw, 56px) 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.72fr);
  gap: 22px;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
}

.hero-copy,
.benefits,
.admin-panel,
.admin-submission {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-shell,
.form-shell {
  border: 0;
  background: transparent;
  min-width: 0;
  max-width: 100%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
  padding: clamp(28px, 4vw, 52px);
  background:
    linear-gradient(140deg, rgba(6, 31, 49, 0.98) 0%, rgba(8, 38, 60, 0.96) 48%, rgba(26, 56, 67, 0.94) 72%, rgba(201, 153, 59, 0.88) 132%),
    url("/assets/logo.png") right 7% bottom 12% / min(300px, 46vw) auto no-repeat;
  color: var(--bg);
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 4.1rem;
  line-height: 1.03;
  font-weight: 400;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.95rem;
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: var(--weight-semibold);
}

.lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(253, 252, 249, 0.88);
  font-size: 1.08rem;
  font-weight: 400;
}

.hero-actions,
.form-actions,
.admin-actions,
.submission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(8, 38, 60, 0.14);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.primary {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  color: #17110a;
}

.primary:hover:not(:disabled) {
  background: linear-gradient(90deg, #d2a241, #edbf67);
}

.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.secondary:hover:not(:disabled) {
  border-color: rgba(201, 153, 59, 0.48);
  background: #fffaf0;
  color: var(--blue);
}

.hero .secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.hero .secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.46);
}

.benefits {
  display: grid;
  gap: 14px;
  overflow: visible;
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.benefits div {
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 98px;
  padding: 18px 20px;
  border: 1px solid rgba(8, 38, 60, 0.09);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(253, 252, 249, 0.92)),
    var(--surface);
  box-shadow: 0 14px 30px rgba(8, 38, 60, 0.1);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.benefits div:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 153, 59, 0.38);
  box-shadow: 0 20px 38px rgba(8, 38, 60, 0.14);
}

.benefits strong {
  color: var(--blue);
  font-size: 1.18rem;
  font-weight: var(--weight-semibold);
}

.benefits span {
  color: var(--muted);
}

.section-shell,
.form-shell {
  padding: clamp(22px, 4vw, 40px) 0;
}

.urgency {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 40px);
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  color: var(--blue);
}

.urgency p {
  max-width: 780px;
  margin: 10px 0 0;
  color: rgba(8, 38, 60, 0.72);
}

.urgency span {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid #fdfcf9;
  border-radius: var(--radius);
  background: rgba(253, 252, 249, 0.2);
  color: #fdfcf9;
  font-weight: var(--weight-semibold);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.toolbar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.segment {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: var(--weight-semibold);
  transition:
    background 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.segment:hover {
  background: rgba(255, 255, 255, 0.74);
  color: var(--blue);
}

.segment.active {
  background: var(--surface-strong);
  color: #fff;
  box-shadow: 0 8px 16px rgba(8, 38, 60, 0.14);
}

.pricing-panel,
.copay-panel {
  min-width: 0;
  max-width: 100%;
  margin-top: 18px;
}

.pricing-surface {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(8, 38, 60, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(253, 252, 249, 0.92)),
    var(--surface);
  box-shadow:
    0 22px 42px rgba(8, 38, 60, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease;
}

.pricing-surface:hover {
  border-color: rgba(201, 153, 59, 0.2);
  box-shadow:
    0 28px 52px rgba(8, 38, 60, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.pricing-surface > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
  color: #fff;
}

.pricing-surface > header strong {
  display: block;
  font-size: 1.05rem;
  font-weight: var(--weight-semibold);
}

.pricing-surface > header span:not(.pill) {
  display: block;
  margin-top: 2px;
  color: rgba(253, 252, 249, 0.74);
  font-size: 0.84rem;
  font-weight: var(--weight-medium);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
  white-space: normal;
}

.matrix-wrap {
  max-width: 100%;
  overflow-x: auto;
  padding: 10px;
  scrollbar-color: var(--gold) transparent;
}

.matrix-table {
  width: 100%;
  min-width: 780px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text);
  font-size: 0.88rem;
}

.price-matrix {
  min-width: 920px;
}

.matrix-table th,
.matrix-table td {
  padding: 8px 10px;
  border-right: 1px solid rgba(8, 38, 60, 0.08);
  border-bottom: 1px solid rgba(8, 38, 60, 0.07);
  background: rgba(255, 255, 255, 0.74);
  text-align: center;
  white-space: nowrap;
}

.matrix-table .product-gap {
  width: 14px;
  min-width: 14px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  pointer-events: none;
}

.matrix-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg-alt);
  color: var(--blue);
  text-align: left;
  font-weight: var(--weight-semibold);
}

.matrix-table tbody tr:nth-child(even) th,
.matrix-table tbody tr:nth-child(even) td {
  background: rgba(245, 241, 232, 0.78);
}

.matrix-table tbody tr:nth-child(even) th {
  background: #eee7d8;
}

.matrix-table tbody tr:hover th,
.matrix-table tbody tr:hover td {
  background: #fff8ea;
}

.matrix-table tbody tr:hover th {
  color: var(--blue);
}

.matrix-table tbody tr:hover .product-gap {
  background: transparent !important;
}

.matrix-table td {
  font-weight: var(--weight-medium);
}

.price-pick {
  width: 100%;
  min-height: 34px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: var(--weight-semibold);
  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.price-pick:hover,
.price-pick:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(201, 153, 59, 0.42);
  background: #fffaf0;
  color: var(--blue);
  box-shadow: 0 8px 18px rgba(8, 38, 60, 0.08);
}

.price-pick.selected {
  border-color: rgba(201, 153, 59, 0.7);
  background: var(--gold-soft);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(201, 153, 59, 0.12);
}

.matrix-table thead th {
  color: var(--muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 400;
  text-transform: uppercase;
}

.matrix-table .corner-cell {
  border-top-left-radius: 12px;
  background: transparent;
}

.product-head {
  color: #fff !important;
  font-size: 0.82rem !important;
  letter-spacing: 0;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  background-clip: padding-box !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.product-head.prata {
  background: #b9b8b4 !important;
}

.product-head.ouro {
  background: linear-gradient(90deg, var(--gold), var(--gold-light)) !important;
}

.product-head.platinum {
  background: #575756 !important;
}

.matrix-table thead tr:nth-child(2) th {
  background: #fbfaf6;
}

.matrix-table thead tr:nth-child(2) th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fbfaf6;
  color: var(--muted);
}

.matrix-table tr:last-child th:first-child {
  border-bottom-left-radius: 12px;
}

.matrix-table tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

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

.source-note a {
  color: var(--blue);
  font-weight: var(--weight-semibold);
}

.copay-matrix {
  min-width: 780px;
}

.copay-matrix tbody th {
  min-width: 220px;
}

.mobile-product-cards,
.mobile-copay-cards {
  display: none;
}

.mobile-product-card {
  overflow: hidden;
  border: 1px solid rgba(8, 38, 60, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 32px rgba(8, 38, 60, 0.1);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.mobile-product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 153, 59, 0.28);
  box-shadow: 0 22px 40px rgba(8, 38, 60, 0.14);
}

.mobile-product-card > header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 12px 14px;
  color: #fff;
  text-align: center;
}

.mobile-product-card > header strong {
  font-size: 1rem;
  font-weight: var(--weight-semibold);
}

.mobile-product-card > header span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: var(--weight-medium);
  text-align: center;
}

.mobile-product-card.prata > header {
  background: #b9b8b4;
}

.mobile-product-card.ouro > header {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.mobile-product-card.platinum > header {
  background: #575756;
}

.mobile-price-list {
  display: grid;
}

.mobile-column-heads {
  display: grid;
  grid-template-columns: 74px repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid rgba(8, 38, 60, 0.08);
  background: rgba(237, 230, 211, 0.62);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
}

.mobile-column-heads.compact {
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 0.75fr));
}

.mobile-price-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid rgba(8, 38, 60, 0.07);
  text-align: center;
}

.mobile-price-row:nth-child(even),
.mobile-copay-row:nth-child(even) {
  background: rgba(245, 241, 232, 0.72);
}

.mobile-price-row:last-child,
.mobile-copay-row:last-child {
  border-bottom: 0;
}

.mobile-price-row > strong {
  align-self: center;
  color: var(--blue);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

.mobile-price-options,
.mobile-copay-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-price-options span,
.mobile-copay-values span {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(8, 38, 60, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.mobile-price-options em,
.mobile-copay-values em {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: var(--weight-semibold);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.mobile-price-options b,
.mobile-copay-values b {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: var(--weight-semibold);
}

.mobile-price-options .price-pick {
  min-height: 38px;
  padding: 3px 6px;
}

.mobile-copay-row {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid rgba(8, 38, 60, 0.07);
  text-align: center;
}

.mobile-copay-row > strong {
  color: var(--blue);
  font-weight: var(--weight-semibold);
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.form-intro {
  position: sticky;
  top: 94px;
}

.form-intro p:not(.eyebrow) {
  color: var(--muted);
}

form {
  display: grid;
  gap: 18px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

legend {
  padding: 0 8px;
  color: var(--blue);
  font-weight: var(--weight-semibold);
}

.grid {
  display: grid;
  gap: 16px;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--blue);
  font-weight: var(--weight-medium);
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #cfc7bb;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(201, 153, 59, 0.52);
  background: #fffdf8;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(201, 153, 59, 0.3);
  outline-offset: 2px;
}

.file-field {
  position: relative;
  cursor: pointer;
}

.file-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px;
  border: 1px solid #cfc7bb;
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  min-height: 36px;
  padding: 0;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
  color: #fff;
}

.file-button::before {
  content: "";
  position: absolute;
  top: 9px;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.file-button::after {
  content: "";
  position: absolute;
  bottom: 8px;
  width: 18px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-radius: 0 0 3px 3px;
}

.file-name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: var(--weight-medium);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-field:hover .file-control {
  border-color: rgba(201, 153, 59, 0.5);
  background: #fffdf8;
  box-shadow: 0 10px 22px rgba(8, 38, 60, 0.08);
}

.file-field:focus-within .file-control {
  outline: 3px solid rgba(201, 153, 59, 0.3);
  outline-offset: 2px;
}

input[type="file"] {
  max-width: 100%;
  overflow: hidden;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.choice input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.choice:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.choice:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 153, 59, 0.48);
  box-shadow: 0 10px 22px rgba(8, 38, 60, 0.08);
}

.dependents-area {
  display: grid;
  gap: 14px;
}

.dependents-list {
  display: grid;
  gap: 14px;
}

.dependent-followup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.dependent-followup.invalid {
  border-color: rgba(166, 58, 58, 0.54);
  background: #fff8f6;
  box-shadow: 0 10px 22px rgba(166, 58, 58, 0.08);
}

.dependent-followup p {
  margin: 0;
  color: var(--blue);
  font-weight: var(--weight-semibold);
}

.dependent-followup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dependent-yes,
.dependent-no {
  min-height: 42px;
  min-width: 92px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--blue);
  box-shadow: none;
}

.dependent-yes {
  border-color: rgba(201, 153, 59, 0.46);
}

.dependent-yes:hover:not(:disabled) {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 10px 22px rgba(8, 38, 60, 0.08);
}

.dependent-no {
  border-color: rgba(8, 38, 60, 0.14);
}

.dependent-no:hover:not(:disabled),
.dependent-no.active {
  border-color: rgba(201, 153, 59, 0.54);
  background: var(--gold-soft);
  color: var(--blue);
  box-shadow: 0 10px 22px rgba(8, 38, 60, 0.08);
}

.dependent-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #ddd3c4;
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.dependent-panel:hover {
  border-color: rgba(201, 153, 59, 0.34);
  box-shadow: 0 14px 28px rgba(8, 38, 60, 0.08);
}

.dependent-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.remove-dependent {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #efd2d2;
  border-radius: var(--radius);
  background: #fff6f6;
  color: var(--danger);
  cursor: pointer;
  font-weight: var(--weight-semibold);
  transition:
    background 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.remove-dependent:hover {
  transform: translateY(-1px);
  border-color: #eab3b3;
  background: #fff0f0;
}

.quote-preview {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(201, 153, 59, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(245, 241, 232, 0.72)),
    var(--surface);
  box-shadow: 0 14px 30px rgba(8, 38, 60, 0.07);
}

.quote-preview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.quote-preview-head div {
  min-width: 0;
}

.quote-preview span,
.quote-preview-plan,
.quote-preview p {
  color: var(--muted);
}

.quote-preview-head span {
  display: block;
  margin-bottom: 2px;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.quote-preview-head strong {
  display: block;
  color: var(--blue);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: var(--weight-semibold);
  line-height: 1.05;
}

.quote-preview-bills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.quote-preview-bills span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(8, 38, 60, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.quote-preview-bills b {
  color: var(--text);
  font-weight: var(--weight-semibold);
}

.quote-preview p {
  margin: 0;
}

.consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-weight: var(--weight-medium);
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.form-actions {
  justify-content: space-between;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: var(--weight-medium);
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--green);
}

.submit-button {
  min-width: 180px;
}

.success-dialog,
.summary-dialog {
  width: min(720px, calc(100vw - 32px));
  border: 0;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.success-dialog {
  width: min(480px, calc(100vw - 32px));
}

.success-dialog::backdrop,
.summary-dialog::backdrop {
  background: rgba(16, 24, 32, 0.62);
}

.success-dialog p {
  color: var(--muted);
}

.summary-dialog {
  position: relative;
  max-height: min(780px, calc(100dvh - 32px));
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(253, 252, 249, 0.96)),
    var(--surface);
}

.summary-header,
.summary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.summary-header {
  margin-bottom: 18px;
}

.summary-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--blue);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.summary-close:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(201, 153, 59, 0.42);
  background: #fffaf0;
}

.summary-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.summary-block {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(8, 38, 60, 0.1);
  border-radius: var(--radius);
  background: rgba(245, 241, 232, 0.54);
}

.summary-block.wide {
  grid-column: 1 / -1;
}

.summary-block h3 {
  margin-bottom: 12px;
  color: var(--blue);
}

.summary-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.summary-list div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.summary-list dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.summary-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}

.summary-empty {
  margin: 0;
  color: var(--muted);
}

.quote-summary-block {
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(245, 241, 232, 0.72));
}

.summary-money-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.summary-money-grid div,
.summary-breakdown div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(8, 38, 60, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.summary-money-grid span,
.summary-breakdown span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.summary-money-grid strong,
.summary-breakdown strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-weight: var(--weight-semibold);
}

.summary-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.summary-dependents {
  display: grid;
  gap: 12px;
}

.summary-dependents article {
  padding: 12px;
  border: 1px solid rgba(8, 38, 60, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.summary-dependents strong {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
}

.summary-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.admin-main {
  max-width: var(--page-max);
  margin: 0 auto;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.admin-hero p {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-hero h1 {
  font-size: 2.2rem;
  line-height: 1.08;
}

.admin-panel {
  padding: 22px;
}

.admin-panel,
.admin-submission {
  overflow: hidden;
}

.admin-panel.hidden,
.hidden {
  display: none !important;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.stats span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--blue);
  font-weight: var(--weight-semibold);
}

.submissions-list {
  display: grid;
  gap: 14px;
}

.admin-submission {
  padding: 18px;
  box-shadow: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.admin-submission h2 {
  font-family: var(--font-sans);
  font-size: 1.22rem;
  font-weight: var(--weight-semibold);
  line-height: 1.22;
}

.admin-submission h3 {
  margin: 18px 0 8px;
  color: var(--blue);
  font-size: 0.98rem;
}

.admin-submission:hover {
  border-color: rgba(201, 153, 59, 0.32);
  box-shadow: 0 16px 34px rgba(8, 38, 60, 0.08);
}

.submission-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.submission-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--blue);
  font-weight: var(--weight-semibold);
}

.submission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.info-block {
  position: relative;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.info-block.copyable {
  cursor: copy;
}

.info-block.copyable:hover,
.info-block.copyable:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(201, 153, 59, 0.42);
  background: #fffdf8;
  box-shadow: 0 10px 22px rgba(8, 38, 60, 0.08);
  outline: none;
}

.info-block.copied {
  border-color: rgba(36, 125, 84, 0.35);
  background: rgba(245, 252, 248, 0.95);
}

.info-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.info-block strong {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.info-block span {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-weight: var(--weight-medium);
}

.copy-button {
  position: relative;
  display: inline-block;
  width: 24px;
  min-width: 24px;
  height: 24px;
  border: 1px solid rgba(201, 153, 59, 0.28);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
  color: var(--blue);
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.copy-button::before,
.copy-button::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.copy-button::before {
  top: 5px;
  left: 8px;
  background: rgba(255, 250, 240, 0.95);
}

.copy-button::after {
  top: 8px;
  left: 5px;
  background: rgba(255, 250, 240, 0.72);
}

.info-block.copyable:hover .copy-button,
.info-block.copyable:focus-visible .copy-button {
  border-color: rgba(201, 153, 59, 0.6);
  background: rgba(244, 198, 88, 0.22);
}

.info-block.copied .copy-button {
  border-color: rgba(36, 125, 84, 0.36);
  background: rgba(232, 247, 239, 0.95);
  color: #247d54;
}

.documents-list {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.documents-list a {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue);
  text-decoration: none;
  font-weight: var(--weight-semibold);
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.documents-list a:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 153, 59, 0.4);
  background: #fffaf0;
  box-shadow: 0 10px 22px rgba(8, 38, 60, 0.08);
}

.documents-list small {
  color: var(--muted);
  font-weight: var(--weight-medium);
}

.submission-actions {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.submission-actions label {
  min-width: 0;
}

.submission-actions textarea {
  min-height: 44px;
  resize: vertical;
}

.history {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-submission {
  padding: 0;
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-submission[open] {
  box-shadow: 0 16px 34px rgba(8, 38, 60, 0.08);
}

.submission-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.submission-summary::-webkit-details-marker {
  display: none;
}

.submission-summary::before {
  content: "+";
  display: inline-flex;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-height: 28px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--blue);
  font-weight: var(--weight-semibold);
}

.admin-submission[open] .submission-summary::before {
  content: "-";
}

.submission-person {
  min-width: 0;
}

.submission-person span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.submission-person h2 {
  margin: 0;
}

.submission-person p {
  margin: 5px 0 0;
  color: var(--muted);
}

.submission-summary-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.submission-summary-metrics > span:not(.status-badge) {
  display: grid;
  gap: 2px;
  min-width: 92px;
  padding: 8px 10px;
  border: 1px solid rgba(8, 38, 60, 0.08);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.submission-summary-metrics small {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.submission-summary-metrics strong {
  color: var(--blue);
  font-size: 0.98rem;
}

.submission-detail {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.admin-detail-section {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(8, 38, 60, 0.08);
  border-radius: var(--radius);
  background: rgba(253, 252, 249, 0.74);
}

.admin-detail-section h3 {
  margin: 0 0 10px;
}

.finance-section {
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(245, 241, 232, 0.72));
}

.admin-money-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.admin-money-grid div,
.admin-breakdown div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(8, 38, 60, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.admin-money-grid span,
.admin-breakdown span,
.admin-empty {
  color: var(--muted);
}

.admin-money-grid strong,
.admin-breakdown strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-weight: var(--weight-semibold);
}

.admin-breakdown,
.admin-dependents {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.admin-dependents article {
  padding: 12px;
  border: 1px solid rgba(8, 38, 60, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.admin-dependents article > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
}

.admin-empty {
  margin: 0;
}

@media (max-width: 980px) {
  h1 {
    font-size: 3rem;
  }

  .hero,
  .form-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .form-intro {
    position: static;
  }

  .grid.three,
  .submission-actions,
  .submission-grid {
    grid-template-columns: 1fr;
  }

  .quote-preview-bills,
  .summary-money-grid,
  .admin-money-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-breakdown {
    grid-template-columns: 1fr;
  }

  .price-matrix {
    min-width: 840px;
  }

  .copay-matrix {
    min-width: 720px;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    padding: 12px 14px;
  }

  main {
    gap: 20px;
    padding: 14px 12px 44px;
  }

  h1 {
    font-size: 2.08rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 1.5rem;
    line-height: 1.18;
  }

  .brand img {
    width: 128px;
  }

  .hero {
    gap: 12px;
  }

  .hero-copy {
    min-height: 330px;
    padding: 24px 16px 36px;
    background:
      linear-gradient(140deg, rgba(6, 31, 49, 0.98) 0%, rgba(8, 38, 60, 0.96) 52%, rgba(26, 56, 67, 0.94) 78%, rgba(201, 153, 59, 0.88) 138%),
      url("/assets/logo.png") right 12px bottom 14px / 132px auto no-repeat;
  }

  .lead {
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .form-actions .button,
  .admin-actions .button,
  .submission-actions .button {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1 1 136px;
  }

  .grid.two,
  .admin-login,
  .admin-tools {
    grid-template-columns: 1fr;
  }

  .quote-preview-head,
  .quote-preview-bills,
  .summary-money-grid,
  .admin-money-grid,
  .submission-summary {
    grid-template-columns: 1fr;
  }

  .submission-summary::before {
    grid-row: auto;
  }

  .submission-summary-metrics {
    justify-content: stretch;
  }

  .submission-summary-metrics > span:not(.status-badge),
  .submission-summary-metrics .status-badge {
    flex: 1 1 120px;
  }

  .admin-login .button {
    width: 100%;
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .benefits div {
    min-height: auto;
    padding: 13px;
  }

  .benefits strong {
    font-size: 0.96rem;
  }

  .benefits span {
    font-size: 0.86rem;
  }

  .section-heading,
  .urgency,
  .admin-hero,
  .submission-header {
    align-items: start;
    flex-direction: column;
  }

  .section-shell,
  .form-shell {
    padding: 20px 0;
  }

  .urgency {
    padding: 20px 16px;
  }

  .urgency span {
    width: 100%;
    text-align: center;
  }

  .toolbar {
    display: grid;
    width: 100%;
  }

  .segment {
    width: 100%;
  }

  .pricing-surface > header {
    align-items: start;
    flex-direction: column;
    padding: 14px;
  }

  .price-desktop,
  .copay-desktop {
    display: none;
  }

  .mobile-product-cards,
  .mobile-copay-cards {
    display: grid;
    gap: 14px;
    padding: 10px;
  }

  .mobile-column-heads,
  .mobile-column-heads.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-column-heads > span:first-child {
    grid-column: 1 / -1;
  }

  .mobile-price-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mobile-price-row > strong,
  .mobile-copay-row > strong {
    justify-self: center;
  }

  .mobile-price-options,
  .mobile-copay-values {
    justify-content: center;
  }

  fieldset {
    padding: 16px;
  }

  .dependent-followup-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .dependent-yes,
  .dependent-no {
    min-width: 0;
  }

  .form-actions {
    align-items: stretch;
  }

  .summary-dialog {
    width: min(100vw - 20px, 720px);
    padding: 18px;
  }

  .summary-header,
  .summary-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-header {
    align-items: start;
  }

  .summary-close {
    position: absolute;
    top: 14px;
    right: 14px;
  }

  .summary-content {
    grid-template-columns: 1fr;
  }

  .summary-actions .button {
    width: 100%;
  }

  .documents-list a {
    flex-direction: column;
  }

  .status-badge {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .dependent-followup-actions {
    grid-template-columns: 1fr;
  }

  .price-matrix {
    min-width: 700px;
  }

  .copay-matrix {
    min-width: 620px;
  }
}
