:root {
  --bg: #fff4ea;
  --surface: #ffffff;
  --surface-soft: #fbfaf8;
  --text: #151515;
  --muted: #5f5d59;
  --muted-soft: #8b8881;
  --line: #e8e5df;
  --line-strong: #ddd8cf;
  --brand: #ff6418;
  --brand-strong: #c94000;
  --brand-soft: #fff2e8;
  --brand-pale: #fff8f2;
  --success: #168857;
  --success-soft: #eefaf4;
  --warning: #b84b08;
  --danger: #d33812;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 18px rgba(31, 24, 16, 0.04), 0 1px 4px rgba(31, 24, 16, 0.02);
  --btn-shadow: 0 6px 14px rgba(255, 100, 24, 0.1);
  --btn-shadow-hover: 0 8px 18px rgba(255, 100, 24, 0.14);
  --modal-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  --rail-width: 210px;
  --signed-in-page-inset: 16px;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: #fff;
  min-height: 100vh;
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 101, 24, 0.12), transparent 26%),
    radial-gradient(circle at 8% 80%, rgba(255, 156, 108, 0.12), transparent 28%);
}

.shell {
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 1;
}

.app-layout {
  position: relative;
  display: flex;
  min-height: calc(100vh - 62px);
  min-width: 0;
  isolation: isolate;
  background: #fff;
  overflow: hidden;
}

.app-layout::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, #fff4eb 0%, #fbe3d1 100%);
  border-radius: 16px 16px 0 0;
}

.app-layout::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border: 1px solid rgba(70, 42, 18, 0.15);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 34px, transparent 104px);
  mask-image: linear-gradient(to bottom, #000 0, #000 34px, transparent 104px);
}

main.shell {
  padding-bottom: 3.8rem;
}

.logged-out main.shell,
body:not(.logged-out) main.shell {
  padding-bottom: 0;
}

.left-rail {
  position: relative;
  z-index: 5;
  width: var(--rail-width);
  flex: 0 0 var(--rail-width);
  align-self: stretch;
  margin: 16px 0 16px 14px;
  border: 1px solid #f1e5d6;
  border-radius: 16px;
  box-shadow: 0 12px 30px -20px rgba(120, 72, 30, 0.35);
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 1rem 0.85rem;
}

.left-rail::after {
  display: none;
}


.left-rail-nav {
  display: grid;
  gap: 0.45rem;
}

.rail-user-email {
  margin-top: auto;
  padding: 0.72rem 0.4rem 0;
  border-top: 1px solid rgba(223, 208, 193, 0.9);
  color: #7a7771;
  font-size: 0.8rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.rail-email-text {
  margin: 0;
}

.rail-signin-prompt {
  border: 0;
  background: transparent;
  color: #7a7771;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0;
  width: 100%;
  cursor: pointer;
  text-align: center;
}

.rail-signin-prompt:hover {
  text-decoration: underline;
}

.left-rail-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 2.25rem;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  padding: 0.48rem 1rem;
  font: inherit;
  color: #66584d;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.left-rail-item:hover {
  background: var(--brand-pale);
  border-color: rgba(255, 145, 83, 0.18);
  color: #4f453d;
}

.left-rail-item:focus-visible {
  outline: none;
  border-color: rgba(255, 106, 26, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.14);
}

.left-rail-item.is-current {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 8px 16px rgba(255, 100, 24, 0.18);
  color: #fff;
}

.left-rail-item.is-current:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}



.left-rail-icon {
  display: inline-flex;
}

.left-rail-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-content {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 1.6rem 1.4rem 1.25rem;
  background: transparent;
}

.site-header {
  backdrop-filter: saturate(140%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  min-height: 62px;
  margin-top: 0;
  margin-bottom: 0;
  background: #fff;
  border-bottom: 0;
  box-shadow: 0 8px 18px -16px rgba(40, 28, 18, 0.48);
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  padding: 0 2.4rem 0 1.15rem;
}

.rail-menu-btn {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.2rem;
}

.rail-menu-btn span {
  width: 0.92rem;
  height: 2px;
  border-radius: 999px;
  background: #4b4842;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.header-user-email {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.2;
  color: #6d6d6d;
  text-align: right;
  max-width: min(34ch, 40vw);
  overflow-wrap: anywhere;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: clamp(2.35rem, 4.4vw, 3rem);
  overflow: hidden;
}

.brand-logo {
  display: block;
  width: clamp(160px, 18vw, 220px);
  height: auto;
  margin: 0 0 0 -32px;
  transform: none;
}

.brand-logo.is-missing {
  display: none;
}

.brand-fallback {
  display: none;
  color: var(--brand-strong);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-fallback.is-visible {
  display: inline-block;
}

.card {
  background: #fffdfa;
  border: 1px solid rgba(238, 216, 198, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero {
  min-height: 0;
  margin: 0.25rem 0 0.9rem;
  padding: 1.55rem 2.55rem;
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(560px, 1.08fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
  background:
    radial-gradient(circle at 91% 30%, rgba(255, 97, 24, 0.12), transparent 18%),
    linear-gradient(90deg, #fff 0%, #fff 74%, #fff7f2 100%);
}

.hero-copy {
  max-width: 590px;
}

.hero-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.65rem, 2.2vw, 2.4rem);
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-steps::before {
  content: '';
  position: absolute;
  top: 2.68rem;
  left: 16.666%;
  right: 16.666%;
  height: 0.38rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 100, 24, 0.08), rgba(255, 100, 24, 0.13), rgba(255, 100, 24, 0.08));
}

.hero-step-card {
  position: relative;
  display: flex;
  min-height: 148px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  background: transparent;
  text-align: center;
}

.hero-step-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.55rem;
  height: 3.55rem;
  margin: 0.9rem auto 0.6rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 42%, rgba(255, 241, 232, 0.96) 43% 100%);
  color: var(--brand);
  box-shadow: 0 0 22px rgba(255, 100, 24, 0.06);
}

.hero-step-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-step-icon-filled {
  background: radial-gradient(circle, var(--brand) 0 40%, rgba(255, 241, 232, 0.96) 41% 100%);
}

.hero-step-icon-filled svg {
  color: #fff;
  width: 1.7rem;
  height: 1.7rem;
  stroke-width: 2.7;
}

.hero-step-number {
  position: absolute;
  top: 0.65rem;
  left: calc(50% - 1.95rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.46rem;
  height: 1.46rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  transform: none;
}

.hero-step-card h2,
.hero-step-card p {
  width: min(10.25rem, 100%);
}

.hero-step-card h2 {
  margin: 0 0 0.45rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.hero-step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.28;
}

.eyebrow {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  margin: 0;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.eyebrow span,
.read-status span,
.status.success::before,
.status.warning::before,
.status.error::before {
  content: '';
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--brand);
  display: inline-block;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1 {
  margin: 1.35rem 0 0.9rem;
  font-size: clamp(2.4rem, 4.15vw, 3.15rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-copy h1 {
  margin-top: 0.65rem;
}

.hero-copy .eyebrow {
  margin-bottom: 0.9rem;
}

h2 {
  margin: 0;
  font-size: 1.17rem;
  letter-spacing: -0.025em;
}

p {
  color: var(--muted);
  line-height: 1.48;
}

.hero-copy p:not(.eyebrow) {
  max-width: 670px;
  font-size: 1.02rem;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.2rem;
}

.flow-card {
  min-height: 304px;
  padding: 1.85rem 1.85rem 1.9rem;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.78rem;
  margin-bottom: 1.15rem;
}

.card-title-row p {
  margin: 0.48rem 0 0;
}

.number-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.68rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.upload-zone {
  border: 1.5px dashed #ddd8cf;
  border-radius: 12px;
  background: #fcfbf9;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.44rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.upload-zone input {
  display: none;
}

.upload-zone:hover,
.upload-zone.dragging {
  border-color: var(--brand);
  background: var(--brand-pale);
  box-shadow: inset 0 0 0 1px rgba(255, 100, 24, 0.14);
  transform: translateY(-1px);
}

.upload-icon,
.file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--line);
}

.upload-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.3rem;
}

.upload-icon svg,
.file-icon svg {
  width: 1.22rem;
  height: 1.22rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-title {
  color: var(--text);
  font-weight: 700;
}

.upload-subtitle {
  font-size: 0.84rem;
  color: var(--muted);
}

.preview.selected-file {
  min-height: 67px;
  margin: 0.85rem 0 0;
  padding: 0.78rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.88rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.preview.hidden {
  display: none;
}

.file-icon {
  width: 2.6rem;
  height: 2.6rem;
  background: var(--brand-soft);
  border-color: transparent;
}

.preview img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.preview img.hidden + .file-details {
  grid-column: 2;
}

.file-details {
  min-width: 0;
}

.preview figcaption {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-pdf {
  display: inline-flex;
  margin-top: 0.14rem;
  color: var(--brand-strong);
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
}

.preview-pdf.hidden {
  display: none;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn {
  font: inherit;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 2.6rem;
  border-radius: 10px;
  padding: 0.62rem 1rem;
  font-weight: 700;
  box-shadow: var(--btn-shadow);
}

.primary-btn {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
}

.secondary-btn {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
}

.ghost-btn {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.site-header .ghost-btn {
  min-height: unset;
  padding: 0.5rem 0.86rem;
  font-size: 0.92rem;
}

.site-header #auth-toggle-btn {
  border-color: transparent;
  background: transparent;
  color: #111;
  padding-inline: 0.35rem;
  font-weight: 500;
  box-shadow: none;
}

.site-header #create-account-btn {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  padding-inline: 0.98rem;
  font-weight: 700;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  opacity: 0.98;
  box-shadow: var(--btn-shadow-hover);
  transform: translateY(-1px);
}

.primary-btn:disabled,
.secondary-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.review-toolbar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.extraction-spinner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf8;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 600;
}

.spinner-dot {
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid rgba(255, 100, 24, 0.25);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: billie-spin 0.9s linear infinite;
}

@keyframes billie-spin {
  to {
    transform: rotate(360deg);
  }
}

.read-status {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  color: var(--success);
  font-size: 0.83rem;
  font-weight: 500;
}

.read-status span {
  background: var(--success);
}

.review-form {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.92rem;
}

.review-form label {
  display: grid;
  gap: 0.58rem;
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 700;
}

.review-form input,
.review-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.76rem 0.84rem;
  color: var(--text);
  font: inherit;
  background: #fff;
}

.review-form textarea {
  resize: vertical;
  min-height: 4.8rem;
}

.review-form input:focus,
.review-form textarea:focus {
  outline: 2px solid rgba(255, 100, 24, 0.18);
  outline-offset: 1px;
  border-color: var(--brand);
}

.field-help {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.payment-charge-summary {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf5;
}
.payment-charge-summary div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.payment-charge-summary strong {
  color: var(--text);
  font-weight: 800;
}
.payment-charge-summary .payment-charge-total {
  margin-top: 0.2rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.payment-charge-summary .payment-charge-total strong {
  color: var(--brand-strong);
}
.payment-charge-summary p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.form-note {
  margin: 0;
  padding: 0.82rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf8;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.38;
}

.actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.status {
  min-height: 2.62rem;
  margin: 0.85rem 0 0;
  padding: 0.74rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf8;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.status:empty {
  display: none;
}

.status.success,
.status.warning,
.status.error {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.status.success {
  border-color: #bfe8d2;
  background: var(--success-soft);
  color: var(--success);
}

.status.success::before {
  background: var(--success);
}

.status.warning {
  border-color: #ffc9a7;
  background: var(--brand-soft);
  color: var(--warning);
}

.status.warning::before {
  background: var(--brand);
}

.status.error {
  border-color: #f3b49f;
  background: #fff0eb;
  color: var(--danger);
}

.status.error::before {
  background: var(--danger);
}

.account-page {
  padding: 0.45rem 0 0;
}

#home-content.signed-in-home {
  padding-top: 0.45rem;
}

.account-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.back-home-btn,
.danger-ghost {
  min-height: 2.14rem;
  padding: 0.43rem 0.82rem;
}

.danger-ghost {
  color: var(--danger);
}

.history-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 2.25rem);
  letter-spacing: -0.055em;
}

.history-heading p:not(.eyebrow) {
  margin-bottom: 0;
}

.upload-heading {
  margin-bottom: 1rem;
}

.history-card {
  overflow: hidden;
}

.history-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.history-item:last-child {
  border-bottom: 0;
}

.history-item p,
.history-item small {
  margin: 0;
}

.history-primary {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.48rem;
}

.history-amount {
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-badge::before {
  content: '';
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 999px;
  background: currentColor;
}

.status-badge.is-processing {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.status-badge.is-sent {
  background: var(--success-soft);
  color: var(--success);
}

.status-badge.is-unsuccessful {
  /* Use a cooler crimson instead of the brand-adjacent danger token so it does not read as orange. */
  background: #fee2e2;
  color: #b91c1c;
}

.status-badge.is-unknown {
  background: #f3f4f6;
  color: #60646c;
}

.payee {
  color: var(--text);
  font-weight: 700;
}

.mailing-address {
  margin-top: 0.28rem !important;
  color: var(--muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
  align-items: center;
  margin-top: 0.62rem !important;
  font-size: 0.78rem;
  color: var(--muted-soft);
}


.history-side {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.87rem;
}

.history-topline {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  line-height: 1;
}


.history-sep {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: var(--muted-soft);
}


.source-chip {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.source-chip::before {
  color: var(--muted-soft);
}



.source-chip {
  display: inline-block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.source-chip::before {
  content: none;
}

.source-chip.is-forwarded {
  color: var(--muted);
}

.source-chip.is-uploaded {
  color: var(--muted);
}

.view-btn {
  min-height: 1.75rem;
  padding: 0.34rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  box-shadow: var(--btn-shadow);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  cursor: pointer;
}

.view-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(20, 20, 28, 0.12);
  border-color: var(--line-strong);
}

.history-empty {
  margin: 0;
  padding: 1.4rem;
  text-align: center;
}

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

.hidden {
  display: none !important;
}

.auth-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 20;
  background: rgba(17, 17, 15, 0.36);
  backdrop-filter: blur(5px);
}

.auth-modal.hidden {
  display: none;
}

.auth-modal-card {
  width: min(491px, 92vw);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--modal-shadow);
}

.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.auth-header h2 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
}

.auth-header p {
  margin: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1.45rem;
  line-height: 1;
}

.icon-btn:hover {
  color: var(--text);
  background: #f4f2ee;
}

.auth-form {
  margin-top: 0;
}

/* Keep iOS Safari from auto-zooming focused fields inside modal dialogs without changing desktop modal sizing. */
@media (hover: none) and (pointer: coarse) {
  .auth-modal input:not([type="checkbox"]):not([type="radio"]),
  .auth-modal textarea,
  .auth-modal select,
  .auth-modal .stripe-element-shell {
    font-size: 16px;
  }
}

.auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.auth-helper {
  margin: -0.2rem 0 0;
  text-align: center;
  font-size: 0.85rem;
}

.link-text {
  color: var(--brand-strong);
  font-weight: 800;
}

code {
  border-radius: 8px;
  background: #f2f2f2;
  padding: 0.12rem 0.4rem;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .hero-copy {
    max-width: 720px;
  }
}

@media (max-width: 920px) {
  .shell {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 1.55rem;
  }

  .hero-steps {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .hero-step-card {
    min-height: auto;
    padding: 0.9rem 1rem 0.9rem 5.3rem;
  }

  .hero-steps::before,
  .hero-step-card:not(:last-child)::before,
  .hero-step-card:not(:last-child)::after {
    display: none;
  }

  .hero-step-icon {
    position: absolute;
    left: 2.2rem;
    top: 50%;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    transform: translateY(-50%);
  }

  .hero-step-icon svg {
    width: 1.45rem;
    height: 1.45rem;
  }

  .hero-step-number {
    top: 0.6rem;
    left: 0.6rem;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.74rem;
  }

  .flow-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    background: #fff;
  }
  .site-header {
    min-height: 56px;
    margin-top: 0;
  }

  .site-header-inner {
    min-height: 54px;
    padding: 0 1rem;
  }

  .rail-menu-btn {
    display: inline-flex;
    margin-right: 0.55rem;
  }

  .site-header-inner .brand {
    margin-right: auto;
  }

  .left-rail {
    position: fixed;
    top: 56px;
    left: 0;
    width: 202px;
    bottom: 0;
    z-index: 25;
    margin: 0;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding-top: 1rem;
  }

  body.rail-open .left-rail {
    transform: translateX(0);
  }

  .app-content {
    margin-left: 0;
    padding-top: 0;
  }
  .left-rail-nav {
    grid-template-columns: 1fr;
  }

  .header-right {
    gap: 0.25rem;
  }

  .header-user-email {
    max-width: min(28ch, 48vw);
    font-size: 0.8rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .site-header .ghost-btn {
    padding: 0.42rem 0.58rem;
    font-size: 0.82rem;
  }

  .site-header #auth-toggle-btn {
    padding-inline: 0.2rem;
  }

  .site-header #create-account-btn {
    padding-inline: 0.62rem;
  }

  .brand-logo {
    width: 130px;
  }

  .hero,
  .flow-card,
  .auth-modal-card {
    padding: 1.35rem;
  }

  .hero {
    gap: 0.8rem;
  }

  .hero-step-card {
    padding: 0.85rem 0.9rem 0.85rem 5rem;
  }

  .hero-step-icon {
    left: 2rem;
    width: 2.75rem;
    height: 2.75rem;
  }

  .hero-step-number {
    left: 0.6rem;
  }

  h1 {
    font-size: 2.1rem;
  }

  .actions,
  .review-toolbar,
  .account-actions {
    flex-wrap: wrap;
  }

  .auth-actions {
    grid-template-columns: 1fr;
  }

  .history-item,
  .preview.selected-file {
    grid-template-columns: 1fr;
  }

  .history-side {
    justify-items: start;
    padding-top: 0;
  }
}

.preview.has-image .file-icon {
  display: none;
}


.card-title-row-large h2 { font-size: 1.17rem; letter-spacing: -0.025em; margin-bottom: 0; }
.card-title-row-large .muted { font-size: 1rem; max-width: none; }
.review-pay-btn { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; border-radius: 10px; min-height: 2.2rem; padding: .44rem .9rem; }

@media (max-width: 980px) {
  .account-actions { flex-direction: column; align-items: stretch; }
}


/* Signed-in footer */
.bp-signed-footer {
  display: none;
}

body:not(.logged-out) .app-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: calc(var(--signed-in-page-inset) - 0.45rem);
  padding-bottom: 0;
}

body:not(.logged-out) .bp-signed-footer {
  --bp-footer-icon-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: auto;
  min-height: calc(var(--bp-footer-icon-size) + 2.3rem);
  padding: 1.15rem 0;
  color: #76685d;
}

.bp-signed-footer__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  opacity: 0.48;
  text-decoration: none;
}

.bp-signed-footer__brand img {
  display: block;
  width: 28px;
  height: 28px;
  filter: grayscale(1) saturate(0);
  object-fit: contain;
  transform: translateY(1px);
}

.bp-signed-footer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  min-height: var(--bp-footer-icon-size);
}

.bp-signed-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--bp-footer-icon-size);
  color: #6f6257;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: color 140ms ease;
}

.bp-signed-footer__link:hover {
  color: var(--brand-strong);
}

.bp-signed-footer__copy {
  display: inline-flex;
  align-items: center;
  min-height: var(--bp-footer-icon-size);
  color: #998b7e;
  font-size: 0.82rem;
  line-height: 1;
}

/* Logged-out landing page */
.logged-out .app-layout {
  display: block;
}
.logged-out .left-rail,
.logged-out .rail-menu-btn {
  display: none;
}
.logged-out .app-content {
  padding: 0 1.6rem;
}
.logged-out-landing { display: none; }
.logged-out .logged-out-landing { display: block; }

.logged-out .flow-grid {
  max-width: calc(100vw - var(--rail-width) - 2.85rem);
  margin: 0 auto 1.2rem;
}

.logged-out-only { display: none; }
.logged-out .logged-out-only { display: grid; }
.logged-out #explanation-features.logged-out-only { display: block; }

.bpC-hero { text-align: center; padding: 48px 64px 32px; max-width: 1100px; margin: 0 auto; }
.bpC-h1 { font-size: 84px; font-weight: 800; letter-spacing: -0.045em; line-height: 0.92; margin: 8px 0 24px; white-space: nowrap; }
.bpC-h1 .ai { color: #F26B1F; font-style: italic; }
.bpC-sub { font-size: 19px; color: #6B5A4D; max-width: 560px; margin: 24px auto 0; line-height: 1.5; }
.bp-howit-band {
  background: #ffffff;
  padding: 52px 0 57px;
  position: relative;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 58px auto 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-shadow: 0 -8px 18px rgba(24, 16, 10, 0.08), 0 10px 20px rgba(24, 16, 10, 0.11);
}

.bp-howit-band::before,
.bp-howit-band::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 107, 31, 0.45), transparent);
}

.bp-howit-band::before {
  top: 0;
}

.bp-howit-band::after {
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(242, 107, 31, 0.12), transparent);
}

.bp-howit-head {
  max-width: 1240px;
  margin: 0 auto 29px;
  padding: 0 56px;
  text-align: left;
}

.bp-howit-h2 {
  color: #1a1410;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  text-align: left;
}

.bp-howit-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 56px;
}

.bp-howit-card {
  background: #3d4654;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 40px -28px rgba(40, 50, 70, 0.38);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "ico num"
    "title title"
    "desc desc";
  row-gap: 7px;
  column-gap: 10px;
}

.bp-howit-ico {
  grid-area: ico;
  justify-self: start;
  align-self: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(242, 107, 31, 0.16);
  color: #f26b1f;
  border: 1px solid rgba(242, 107, 31, 0.22);
  display: grid;
  place-items: center;
}

.bp-howit-num {
  grid-area: num;
  align-self: center;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f26b1f;
  text-transform: uppercase;
}

.bp-howit-title {
  grid-area: title;
  color: #fffaf1;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.bp-howit-desc {
  grid-area: desc;
  color: rgba(255, 250, 241, 0.74);
  font-size: 13.5px;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 980px) {
  .bpC-hero { padding: 32px 28px 8px; }
  .bpC-h1 { font-size: 56px; white-space: normal; }
  .bp-howit-band {
    margin-top: 48px;
    padding: 39px 0 45px;
  }

  .bp-howit-row {
    grid-template-columns: 1fr;
  }

  .bp-howit-head,
  .bp-howit-row {
    padding: 0 24px;
  }
}


/* Homepage footer */
.bp-footer {
  position: relative;
  z-index: 1;
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  background: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.bp-footer.logged-out-only {
  display: none;
}

.logged-out .bp-footer.logged-out-only {
  display: block;
}

.bp-footer__cta {
  position: relative;
  min-height: 234px;
  padding: 0;
  border-top: 1px solid #f4dfc4;
  border-bottom: 1px solid #f0dfc9;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 100, 24, 0.12), transparent 26%),
    linear-gradient(180deg, #fff8f3 0%, #fff2e6 48%, #ffeede 100%);
  display: flex;
  align-items: center;
}

.bp-footer__cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(72px, 10vw, 150px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 56px;
}

.bp-footer__cta-heading {
  flex: 0 1 auto;
  margin: 0;
  color: #1a1410;
  font-size: clamp(2rem, 2.45vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.bp-footer__cta-heading span {
  color: var(--brand);
  font-style: italic;
  margin-inline-end: 0.12em;
}

.bp-footer__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 3rem;
  min-width: 0;
  padding: 0.82rem 1.35rem;
  border: 0;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--btn-shadow);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.bp-footer__button:hover {
  background: #ed5b10;
  box-shadow: var(--btn-shadow-hover);
  transform: translateY(-1px);
}

.bp-footer__ribbon {
  --bp-footer-icon-size: 40px;
  min-height: 61px;
  padding: 6px clamp(28px, 5.45vw, 112px);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.bp-footer__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
}

.bp-footer__brand img {
  display: block;
  width: 40px;
  height: 40px;
  margin-left: 0;
  object-fit: contain;
  transform: translateY(1px);
}

.bp-footer__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  min-height: var(--bp-footer-icon-size);
}

.bp-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--bp-footer-icon-size);
  color: #6b5a4d;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: color 140ms ease;
}

.bp-footer__link:hover {
  color: var(--brand);
}

.bp-footer__copy {
  display: inline-flex;
  align-items: center;
  min-height: var(--bp-footer-icon-size);
  color: #9a8978;
  font-size: 0.85rem;
  line-height: 1;
}

@media (max-width: 980px) {
  .bp-footer__cta {
    min-height: unset;
    padding: 38px 0;
  }

  .bp-footer__cta-inner {
    align-items: center;
    flex-direction: column;
    gap: 20px;
    padding: 0 24px;
    text-align: center;
  }

  .bp-footer__button {
    min-width: 0;
    min-height: 2.8rem;
    padding: 0.76rem 1.1rem;
    border-radius: 12px;
    font-size: 0.92rem;
  }

  .bp-footer__ribbon {
    min-height: unset;
    padding: 10px 24px;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .bp-footer__cta-heading {
    font-size: 2rem;
  }

  .bp-footer__ribbon {
    align-items: flex-start;
    flex-direction: column;
  }

  .bp-footer__nav {
    gap: 12px;
  }
}

#payment-content .account-actions { margin-bottom: 0.65rem; }
.payment-card { display: grid; justify-items: stretch; margin-bottom: 1rem; padding: 1.4rem; background: #fff; }
.payment-empty { display: grid; justify-items: start; gap: 0.7rem; padding: 0; text-align: left; }
.payment-empty .muted { margin: 0; }
.payment-card .saved-card-details { width: 100%; }
.payment-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; align-items: stretch; margin: 0 0 1.2rem; }
.payment-profile-block { position: relative; display: flex; flex-direction: column; height: 100%; padding: 0.95rem; border: 1px solid var(--line); border-radius: 14px; background: #fffdfa; }
.payment-profile-block h4 { margin: 0 0 0.75rem; padding-right: 7.5rem; font-size: 0.98rem; }
.saved-card-label { position: absolute; top: 0.82rem; right: 0.85rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 1.65rem; margin: 0; padding: 0.28rem 0.5rem; border: 1px solid rgba(255, 112, 26, 0.35); border-radius: 999px; background: rgba(255, 112, 26, 0.1); color: var(--brand-strong); font-size: 0.75rem; font-weight: 800; line-height: 1; }
.card-brand-pill { color: var(--brand-strong); }
.card-last4 { color: var(--brand-strong); letter-spacing: 0.02em; }
.saved-card-metadata { display: grid; grid-template-columns: max-content 1fr; align-content: start; min-height: 8.7rem; gap: 0.28rem 0.85rem; margin: 0 0 0.65rem; padding-top: 0.65rem; border-top: 1px solid var(--line); }
.saved-card-metadata dt { color: var(--muted); font-size: 0.8rem; }
.saved-card-metadata dd { margin: 0; font-weight: 700; font-size: 0.85rem; }
.payment-profile-note { max-width: 32rem; margin: 0.7rem 0 0; font-size: 0.78rem; line-height: 1.35; }
.payment-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.2rem; align-items: start; }
.payment-actions { align-items: stretch; flex-wrap: wrap; }
.payment-actions--profile { justify-content: flex-start; }
.payment-actions .secondary-btn,
.payment-actions .ghost-btn { min-height: 2.6rem; padding: 0.62rem 1rem; }
.payment-modal-section { border-top: 1px solid var(--line); padding-top: 0.8rem; margin-top: 0.8rem; }
.payment-modal-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.payment-modal-section h3 { margin: 0 0 0.2rem; font-size: 0.98rem; }
.payment-modal-section p { margin: 0 0 0.6rem; font-size: 0.84rem; line-height: 1.35; }
.payment-address-row { display: grid; grid-template-columns: minmax(0, 1.45fr) 5.5rem minmax(0, 1.05fr); column-gap: 0.75rem; row-gap: 0.45rem; align-items: end; }
.payment-address-row > label { min-width: 0; }
.payment-address-row input { width: 100%; min-width: 0; }
.review-form label.checkbox-row { display: flex !important; align-items: center; gap: 0.55rem; font-size: 0.82rem; font-weight: 500; margin-top: 0.05rem; white-space: nowrap; }
.review-form label.checkbox-row input[type="checkbox"] { width: 1.05rem; height: 1.05rem; margin: 0; padding: 0; border: 0; flex: 0 0 auto; }
.review-form label.checkbox-row span { order: 1; }
.stripe-element-shell { border: 1px solid var(--line-strong); border-radius: 10px; padding: 0.75rem; color: var(--muted); background: #fff; }
.stripe-element-shell:empty { min-height: 3.2rem; }
#payment-form label { margin-bottom: 0.4rem; }
#payment-form .actions { margin-top: 0.25rem; }
@media (max-width: 760px) {
  .payment-profile-grid,
  .payment-action-grid { grid-template-columns: 1fr; }
  .payment-profile-block { height: auto; }
  .payment-profile-block h4 { padding-right: 0; }
  .saved-card-metadata { min-height: 0; }
  .saved-card-label { position: static; margin: 0 0 0.75rem; }
  .payment-address-row { grid-template-columns: 1fr; }
  .review-form label.checkbox-row { align-items: flex-start; white-space: normal; }
}

@media (max-width: 980px) {
  .logged-out .flow-grid {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .logged-out .app-content {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  body:not(.logged-out) .app-content {
    min-height: calc(100vh - 56px);
    padding-top: 0;
  }

  body:not(.logged-out) .bp-signed-footer {
    flex-direction: column;
    gap: 8px;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .bp-signed-footer__nav {
    gap: 14px;
  }
}

/* Legal pages */
.legal-page-content {
  width: 100%;
  padding: 0.45rem 0 2rem;
}

.logged-out .legal-page-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
}

.legal-heading {
  margin-bottom: 1rem;
}

.legal-heading .eyebrow {
  margin: 0 0 0.35rem;
  color: var(--brand-strong);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-card {
  width: 100%;
  padding: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.7;
}

.legal-card p {
  max-width: none;
  margin: 0 0 1rem;
  color: #4f453d;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-route .bp-footer__cta {
  display: none;
}

.legal-route.logged-out .app-content {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 62px);
}

.legal-route.logged-out .legal-page-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.legal-route.logged-out .legal-card {
  flex: 1 1 auto;
}

html.initial-legal-route #home-content,
html.initial-legal-route #account-content,
html.initial-legal-route #payment-content {
  display: none !important;
}

html.initial-legal-route .bp-footer__cta {
  display: none !important;
}

html.initial-legal-route .app-content {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 62px);
}

html.initial-legal-route #legal-content.hidden {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
}

html.initial-legal-route #legal-content.hidden .legal-card {
  flex: 1 1 auto;
}
