:root {
  --site-header-height: 59px;
  --background: 24 5% 6%;
  --foreground: 24 10% 95%;
  --card: 24 5% 10%;
  --card-foreground: 24 10% 95%;
  --popover: 24 5% 6%;
  --popover-foreground: 24 10% 95%;
  --primary: 24 100% 50%;
  --primary-foreground: 24 10% 10%;
  --secondary: 24 5% 15%;
  --secondary-foreground: 24 10% 95%;
  --muted-color: 24 5% 15%;
  --muted-foreground: 24 5% 65%;
  --accent: 24 100% 50%;
  --accent-foreground: 24 10% 10%;
  --border: 24 5% 20%;
  --input: 24 5% 20%;
  --ring: 24 100% 50%;
  --bg: #121212;
  --bg-soft: #1c160c;
  --surface: #1a1a1a;
  --surface-blue: #222222;
  --ink: hsl(var(--foreground));
  --muted: #a3a3a3;
  --soft: #858585;
  --line: #333333;
  --line-strong: #454545;
  --blue: #f97316;
  --blue-dark: #ea580c;
  --cyan: #fb923c;
  --green: #22c55e;
  --green-soft: #153923;
  --purple: #f59e0b;
  --amber: #f97316;
  --danger-soft: #2b1b12;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.2);
  --radius: 0.75rem;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}

/* First-run activation guide */
.onboarding-guide {
  background: #1a1a1a;
  border: 1px solid #3f3f46;
  border-top: 3px solid #f97316;
  bottom: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
  color: #f5f5f4;
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 20px;
  position: fixed;
  right: 22px;
  width: min(380px, calc(100vw - 32px));
  z-index: 70;
}

.onboarding-guide[hidden],
.onboarding-launcher[hidden] {
  display: none;
}

.onboarding-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.onboarding-head h2 {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.25;
  margin: 0;
}

.onboarding-head .panel-kicker {
  margin-bottom: 6px;
}

.onboarding-close,
.onboarding-launcher {
  align-items: center;
  background: #262626;
  border: 1px solid #404040;
  color: #d4d4d4;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.onboarding-close {
  border-radius: 6px;
  font-size: 20px;
  height: 34px;
  width: 34px;
}

.onboarding-close:hover,
.onboarding-launcher:hover {
  border-color: #f97316;
  color: #fb923c;
}

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

.onboarding-steps li {
  align-items: center;
  background: #171717;
  border: 1px solid #333333;
  display: grid;
  gap: 12px;
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 11px 12px;
}

.onboarding-steps li > span {
  align-items: center;
  background: #262626;
  border: 1px solid #404040;
  border-radius: 50%;
  color: #a3a3a3;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 12px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.onboarding-steps strong,
.onboarding-steps small {
  display: block;
}

.onboarding-steps strong {
  color: #f5f5f4;
  font-size: 13px;
}

.onboarding-steps small {
  color: #a3a3a3;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 2px;
}

.onboarding-steps li.is-complete {
  border-color: rgba(34, 197, 94, 0.42);
}

.onboarding-steps li.is-complete > span {
  background: #153923;
  border-color: #22c55e;
  color: #86efac;
}

.onboarding-launcher {
  border-radius: 50%;
  bottom: 22px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
  font-size: 22px;
  height: 48px;
  position: fixed;
  right: 22px;
  width: 48px;
  z-index: 69;
}

@media (max-width: 560px) {
  .onboarding-guide {
    bottom: 10px;
    left: 10px;
    padding: 17px;
    right: 10px;
    width: auto;
  }

  .onboarding-launcher {
    bottom: 14px;
    right: 14px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-header-height) + 16px);
}

body {
  background:
    radial-gradient(circle at 82% 8%, rgba(14, 165, 163, 0.12), transparent 28%),
    radial-gradient(circle at 14% 16%, rgba(37, 99, 235, 0.1), transparent 30%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 46%, #f6f8fb 100%);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
  margin: 0;
  padding-top: var(--site-header-height);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.page-shell {
  overflow: hidden;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(219, 228, 239, 0.82);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
}

main [id] {
  scroll-margin-top: calc(var(--site-header-height) + 16px);
}

.brand,
.nav-links,
.hero-actions,
.trust-row,
.console-actions,
.memo-title-row,
.header-actions,
.site-footer nav,
.footer-brand {
  align-items: center;
  display: flex;
}

.brand {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  gap: 10px;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, #0f172a, var(--blue));
  border-radius: 7px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
  color: #ffffff;
  display: inline-flex;
  font-family: var(--mono);
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav-links {
  color: var(--muted);
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--blue);
}

.header-action,
.primary-button,
.secondary-button,
.ghost-button,
.fetch-button,
.plan-button {
  align-items: center;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
  white-space: nowrap;
}

.header-actions {
  gap: 10px;
}

.signin-link {
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  padding: 10px 4px;
  white-space: nowrap;
}

.signin-link:hover {
  color: var(--blue);
}

.header-action,
.primary-button,
.fetch-button,
.plan-button {
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
  color: #ffffff;
}

.header-action:hover,
.primary-button:hover,
.fetch-button:hover,
.plan-button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.fetch-button:disabled,
.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  background: #d8e0ee;
  box-shadow: none;
  color: #6f7d92;
  cursor: wait;
  transform: none;
}

.secondary-button,
.ghost-button {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  color: #172033;
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.hero-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(246, 248, 251, 0.72)),
    linear-gradient(120deg, rgba(37, 99, 235, 0.08), transparent 42%),
    linear-gradient(300deg, rgba(14, 165, 163, 0.1), transparent 46%);
  display: grid;
  gap: clamp(34px, 6vw, 80px);
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  min-height: calc(100vh - 74px);
  padding: clamp(54px, 7vw, 104px) clamp(20px, 5vw, 72px) 54px;
  position: relative;
}

.account-modal[hidden] {
  display: none;
}

.account-modal {
  inset: 0;
  position: fixed;
  z-index: 80;
}

.account-modal-backdrop {
  background: rgba(17, 23, 43, 0.42);
  inset: 0;
  position: absolute;
}

.account-dialog {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
  left: 50%;
  max-width: 560px;
  padding: 28px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100vw - 32px), 560px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.account-dialog h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.account-dialog p {
  color: var(--muted);
  line-height: 1.58;
}

.auth-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
}

.email-auth-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.email-register-card .primary-button {
  margin-top: 4px;
  width: 100%;
}

.email-register-card.is-login .register-only {
  display: none;
}

.login-only {
  display: none;
}

.email-register-card.is-login .login-only {
  display: inline-flex;
  justify-content: center;
}

.account-setting-block {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: #191919;
}

.account-setting-block + .account-setting-block {
  margin-top: 4px;
}

.account-setting-block strong {
  color: #ffffff;
}

.account-setting-block p {
  margin: 0;
  font-size: 0.8125rem;
}

.danger-zone {
  border-color: rgba(239, 68, 68, 0.4);
}

.danger-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(239, 68, 68, 0.56);
  border-radius: 7px;
  background: rgba(127, 29, 29, 0.32);
  color: #fecaca;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
}

.danger-button:hover {
  background: rgba(185, 28, 28, 0.48);
  color: #ffffff;
}

.danger-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.login-risk-check {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.login-risk-check[hidden] {
  display: none;
}

.modal-close {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  padding: 8px 10px;
  position: absolute;
  right: 16px;
  top: 16px;
}

.account-note {
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  margin: 16px 0 0;
  padding: 11px 12px;
}

.hero-section::before {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 163, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 28px;
  content: "";
  height: 520px;
  position: absolute;
  right: -220px;
  top: 76px;
  transform: rotate(-9deg);
  width: 520px;
  z-index: -1;
}

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

.eyebrow,
.panel-kicker,
.memo-label,
.plan-kicker {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(44px, 6.4vw, 82px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 16px;
}

h3 {
  font-size: 19px;
  font-weight: 850;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.hero-lede,
.section-copy p,
.feature-grid p,
.workflow-body p,
.plan li,
.faq-grid p,
.memo-disclaimer,
.form-note {
  color: var(--muted);
  line-height: 1.62;
}

.hero-lede {
  font-size: 20px;
  max-width: 660px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 28px;
}

.trust-row {
  color: var(--muted);
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span,
.status-pill,
.memo-badge {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #40506a;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}

.status-pill,
.memo-badge {
  background: linear-gradient(135deg, var(--green-soft), #eefcff);
  border-color: rgba(18, 168, 121, 0.24);
  color: #0b7554;
}

.tool-console,
.memo-preview,
.plan,
.feature-grid article,
.audience-grid article,
.workflow-body,
.faq-grid article,
.boundary-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(219, 228, 239, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero-console {
  align-self: center;
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 30px);
  position: relative;
}

.hero-console::before {
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  border-radius: var(--radius) var(--radius) 0 0;
  content: "";
  height: 5px;
  left: -1px;
  position: absolute;
  right: -1px;
  top: -1px;
}

.console-topbar,
.context-title {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.console-topbar {
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  padding-bottom: 18px;
}

.workflow-strip {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 18px;
  overflow: hidden;
}

.workflow-strip span {
  align-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 850;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 10px 8px;
  text-align: center;
}

.workflow-strip span:last-child {
  border-right: 0;
}

.workflow-strip strong {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
}

.console-topbar h2 {
  font-size: 25px;
  margin: 0;
}

.lookup-form {
  display: grid;
  gap: 14px;
}

.paste-importer {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(14, 165, 163, 0.04)),
    #fbfdff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.paste-importer textarea {
  margin-top: 7px;
}

.paste-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.input-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 180px minmax(0, 1fr);
}

label {
  color: #26364d;
  display: block;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 7px;
}

input,
select,
textarea {
  background: #fbfdff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  min-height: 46px;
  outline: none;
  padding: 12px 13px;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.fetch-button {
  width: 100%;
}

.form-note {
  font-size: 13px;
  margin: -2px 0 2px;
}

.transaction-receipt {
  background:
    linear-gradient(180deg, #ffffff, rgba(248, 251, 255, 0.98)),
    linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(14, 165, 163, 0.05));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(36, 69, 138, 0.08);
  margin: 18px 0;
  overflow: hidden;
}

.receipt-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px;
}

.receipt-type {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 8px;
}

.receipt-status {
  align-items: center;
  color: var(--soft);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  margin: 0;
}

.receipt-status span {
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
  display: inline-block;
  height: 9px;
  width: 9px;
}

.receipt-status strong {
  color: var(--muted);
}

.receipt-amount {
  min-width: 180px;
  text-align: right;
}

.receipt-amount strong {
  color: var(--ink);
  display: block;
  font-family: var(--mono);
  font-size: clamp(20px, 3vw, 29px);
  font-weight: 900;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.receipt-amount > span {
  color: var(--soft);
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 850;
  margin-top: 7px;
  text-transform: uppercase;
}

.receipt-rows {
  display: grid;
}

.receipt-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 140px minmax(0, 1fr);
  min-width: 0;
  padding: 14px 18px;
}

.receipt-row:last-child {
  border-bottom: 0;
}

.receipt-row > span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
}

.receipt-row strong {
  color: var(--ink);
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.42;
  min-width: 0;
  overflow-wrap: anywhere;
}

.receipt-value {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.copy-mini {
  background: #f8fafc;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  min-height: 30px;
  padding: 6px 9px;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.copy-mini:hover {
  background: #ffffff;
  border-color: var(--blue);
  color: var(--blue);
}

.context-panel {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 18px;
}

.context-title {
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.context-title span:first-child {
  color: var(--ink);
}

.context-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  color: #9a3412;
  display: none;
  font-size: 13px;
  line-height: 1.5;
  margin: 4px 0 0;
  padding: 10px 12px;
}

.context-warning.is-visible {
  display: block;
}

.checkbox-row {
  align-items: start;
  color: var(--muted);
  display: grid;
  font-weight: 650;
  gap: 10px;
  grid-template-columns: 18px 1fr;
  line-height: 1.48;
  margin-top: 4px;
}

.checkbox-row input {
  height: 18px;
  min-height: 18px;
  padding: 0;
  width: 18px;
}

.evidence-panel {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(14, 165, 163, 0.03)),
    #fbfdff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 15px;
}

.evidence-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.evidence-head strong {
  font-size: 14px;
}

.evidence-head span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

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

.evidence-grid .checkbox-row {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 0;
  padding: 10px;
}

.console-actions {
  gap: 12px;
  margin-top: 18px;
}

.compact-button {
  min-height: 36px;
  padding: 8px 12px;
}

.history-panel {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 18px;
  overflow: hidden;
}

.history-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 15px 16px;
}

.history-head strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.history-head p,
.history-status,
.empty-history {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.history-list {
  display: grid;
}

.history-item {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 16px;
}

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

.history-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.history-item span {
  color: var(--muted);
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.history-actions {
  display: flex;
  gap: 8px;
}

.history-status,
.empty-history {
  padding: 12px 16px;
}

.referral-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
}

.referral-panel[hidden] {
  display: none;
}

.referral-panel > div:first-child > strong {
  display: block;
  margin-bottom: 6px;
}

.referral-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.referral-stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.referral-stats div {
  padding: 12px;
}

.referral-stats span {
  color: var(--soft);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.referral-stats strong {
  display: block;
  font-family: var(--mono);
  overflow-wrap: anywhere;
}

.referral-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.optional-label {
  color: var(--soft);
  font-size: 11px;
  font-weight: 500;
  margin-left: 5px;
}

.support-tools {
  align-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(14, 165, 163, 0.05));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 18px;
  padding: 16px;
}

.support-tools strong {
  display: block;
  margin-bottom: 4px;
}

.support-tools p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.logo-strip {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--soft);
  display: grid;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  padding: 22px clamp(20px, 5vw, 72px);
  text-align: center;
}

.memo-section,
.audience-section,
.workflow-section,
.features-section,
.pricing-section,
.boundary-section,
.faq-section {
  padding: clamp(58px, 8vw, 106px) clamp(20px, 5vw, 72px);
}

.audience-section {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.audience-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.audience-grid article {
  min-height: 250px;
  padding: 26px;
  position: relative;
}

.audience-grid article::after {
  background: var(--blue);
  border-radius: 999px;
  content: "";
  height: 3px;
  left: 26px;
  position: absolute;
  right: 26px;
  top: 0;
}

.audience-grid article:nth-child(2)::after {
  background: var(--cyan);
}

.audience-grid article:nth-child(3)::after {
  background: var(--amber);
}

.audience-grid article:nth-child(4)::after {
  background: var(--green);
}

.audience-grid span {
  color: var(--blue);
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 18px;
}

.audience-grid p {
  color: var(--muted);
  line-height: 1.62;
  margin: 0;
}

.memo-section {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: 0.72fr 1.28fr;
}

.section-copy {
  max-width: 740px;
}

.section-copy.centered {
  margin: 0 auto 34px;
  max-width: 790px;
  text-align: center;
}

.memo-preview {
  padding: clamp(20px, 4vw, 36px);
}

.memo-download-page {
  margin: 0 auto;
  max-width: 980px;
  padding: 40px 22px;
}

.memo-export-panel {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.export-status {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 0;
  padding: 11px 13px;
}

.document-ribbon {
  background: linear-gradient(90deg, #eef5ff, #f8fbff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 10px 12px;
  text-transform: uppercase;
}

.memo-title-row {
  justify-content: space-between;
  margin-bottom: 20px;
}

.memo-title-row h3 {
  font-size: 27px;
  margin-bottom: 0;
}

.memo-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 0;
}

.memo-section-label {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 20px 0 10px;
  text-transform: uppercase;
}

.packet-status {
  background: linear-gradient(135deg, #ffffff, #f1f6fd);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 20px;
  overflow: hidden;
}

.packet-status div {
  border-right: 1px solid var(--line);
  min-width: 0;
  padding: 14px;
}

.packet-status div:last-child {
  border-right: 0;
}

.packet-status span {
  color: var(--soft);
  display: block;
  font-size: 11px;
  font-weight: 850;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.packet-status strong {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.memo-fields {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 0 18px;
}

.memo-fields div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 146px minmax(0, 1fr);
  padding: 14px 0;
}

.memo-fields div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.memo-fields dt {
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
}

.memo-fields dd {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}

.memo-fields a {
  color: var(--blue);
}

.review-checklist {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  margin-bottom: 18px;
  overflow: hidden;
}

.review-checklist div {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.review-checklist div:last-child {
  border-bottom: 0;
}

.review-checklist strong {
  font-size: 13px;
}

.review-checklist span {
  background: var(--danger-soft);
  border-radius: 999px;
  color: #74511b;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
  white-space: nowrap;
}

.review-checklist span.is-complete {
  background: var(--green-soft);
  color: #0b7554;
}

.memo-disclaimer {
  background: var(--danger-soft);
  border: 1px solid #f4deb0;
  border-radius: var(--radius);
  color: #74511b;
  font-size: 13px;
  margin: 0;
  padding: 14px 16px;
}

.workflow-section {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.05), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.feature-grid,
.pricing-grid,
.audience-grid,
.faq-grid {
  display: grid;
  gap: 18px;
}

.workflow-timeline {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1040px;
  position: relative;
}

.workflow-timeline::before {
  background: linear-gradient(180deg, var(--blue), var(--cyan), var(--green));
  border-radius: 999px;
  bottom: 24px;
  content: "";
  left: 28px;
  position: absolute;
  top: 24px;
  width: 3px;
}

.workflow-card {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: 58px minmax(0, 1fr);
  position: relative;
}

.workflow-card::before {
  background: #ffffff;
  border: 3px solid var(--blue);
  border-radius: 999px;
  content: "";
  height: 17px;
  left: 20px;
  position: absolute;
  top: 32px;
  width: 17px;
  z-index: 1;
}

.workflow-card:nth-child(2)::before {
  border-color: var(--cyan);
}

.workflow-card:nth-child(3)::before {
  border-color: var(--amber);
}

.workflow-card:nth-child(4)::before,
.workflow-card:nth-child(5)::before {
  border-color: var(--green);
}

.workflow-body {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(219, 228, 239, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.workflow-body p {
  color: var(--muted);
  line-height: 1.62;
}

.workflow-meta {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
}

.workflow-meta span {
  color: #43536d;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
}

.feature-grid article,
.faq-grid article {
  padding: 26px;
}

.module-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 16px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.module-badge.free {
  background: var(--green-soft);
  color: #0b7554;
}

.module-badge.paid {
  background: #eff6ff;
  color: var(--blue);
}

.module-badge.mixed {
  background: var(--danger-soft);
  color: #805618;
}

.feature-grid article:nth-child(1) {
  border-top: 4px solid var(--blue);
}

.feature-grid article:nth-child(2) {
  border-top: 4px solid var(--cyan);
}

.feature-grid article:nth-child(3) {
  border-top: 4px solid var(--amber);
}

.feature-grid article:nth-child(4) {
  border-top: 4px solid var(--green);
}

.step-number {
  color: var(--blue);
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 20px;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.pricing-section {
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.05), transparent 35%),
    linear-gradient(280deg, rgba(14, 165, 163, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
}

.pricing-grid {
  align-items: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  position: relative;
}

.plan.highlighted {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 28px 76px rgba(37, 99, 235, 0.16);
  transform: translateY(-10px);
}

.price {
  color: var(--ink);
  font-size: 32px;
  font-weight: 900;
  margin: 4px 0 18px;
}

.plan ul {
  display: grid;
  gap: 11px;
  margin: 0 0 26px;
  padding-left: 18px;
}

.plan-button {
  margin-top: auto;
  width: 100%;
}

.boundary-section {
  background: #101827;
  color: #ffffff;
}

.boundary-card {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(14, 165, 163, 0.14)),
    #121d32;
  border-color: rgba(255, 255, 255, 0.12);
  display: grid;
  gap: clamp(24px, 5vw, 68px);
  grid-template-columns: 0.95fr 1.05fr;
  padding: clamp(28px, 5vw, 52px);
}

.boundary-card .section-copy p,
.boundary-list span {
  color: #b8c4d8;
}

.boundary-card .eyebrow {
  background: linear-gradient(90deg, #93c5fd, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.boundary-list div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  padding: 18px;
}

.boundary-list strong {
  display: block;
  margin-bottom: 6px;
}

.boundary-list span {
  line-height: 1.54;
}

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

.site-footer {
  align-items: start;
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 32px clamp(20px, 5vw, 72px);
}

.site-footer p {
  margin: 14px 0 0;
}

.site-footer nav {
  gap: 22px;
  font-size: 14px;
  font-weight: 750;
}

@media (max-width: 1180px) {
  .hero-section,
  .memo-section,
  .boundary-card {
    grid-template-columns: 1fr;
  }

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

  .hero-console {
    max-width: 920px;
  }

  .feature-grid,
  .audience-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan.highlighted {
    transform: none;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    position: static;
  }

  .nav-links {
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    width: 100%;
  }

  .header-actions {
    width: 100%;
  }

  .header-action {
    flex: 1;
  }

  .signin-link {
    flex: 0 0 auto;
  }

  .hero-section {
    min-height: auto;
  }

  .input-grid,
  .logo-strip,
  .workflow-strip,
  .workflow-timeline,
  .audience-grid,
  .feature-grid,
  .pricing-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .receipt-head {
    align-items: stretch;
    flex-direction: column;
  }

  .receipt-amount {
    text-align: left;
  }

  .receipt-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .logo-strip {
    text-align: left;
  }

  .packet-status,
  .memo-fields {
    grid-template-columns: 1fr;
  }

  .packet-status div {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .packet-status div:last-child {
    border-bottom: 0;
  }

  .memo-fields div,
  .memo-fields div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .memo-fields div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-actions,
  .console-actions,
  .support-tools,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .account-options,
  .email-auth-row,
  .referral-actions,
  .referral-stats {
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .memo-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .memo-fields div {
    grid-template-columns: 1fr;
  }
}

/* SaaSLand dark visual theme. Layout and functional selectors remain unchanged. */
body {
  background: #121212;
  color: hsl(var(--foreground));
  font-size: 16px;
}

.page-shell {
  background: #121212;
}

.site-header {
  background: rgba(18, 18, 18, 0.9);
  border-bottom-color: #222222;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.brand {
  color: #ffffff;
}

.brand-mark {
  background: linear-gradient(135deg, #f97316, #d97706);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.25);
}

.nav-links,
.signin-link {
  color: #a3a3a3;
}

.nav-links a:hover,
.signin-link:hover,
.site-footer a:hover {
  color: #f97316;
}

.header-action,
.primary-button,
.fetch-button,
.plan-button {
  background: #f97316;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.2);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.header-action:hover,
.primary-button:hover,
.fetch-button:hover,
.plan-button:hover {
  background: #ea580c;
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.28);
}

.secondary-button,
.ghost-button {
  background: #262626;
  border-color: #3d3d3d;
  color: #f5f5f5;
  font-size: 14px;
  font-weight: 600;
}

.secondary-button:hover,
.ghost-button:hover {
  background: #2e2e2e;
  border-color: rgba(249, 115, 22, 0.55);
  color: #fb923c;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.fetch-button:disabled,
.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  background: #333333;
  color: #777777;
}

.hero-section {
  background:
    radial-gradient(circle at 50% 30%, rgba(249, 115, 22, 0.11), transparent 28%),
    radial-gradient(circle at 18% 72%, rgba(194, 65, 12, 0.12), transparent 21%),
    radial-gradient(circle at 84% 18%, rgba(251, 146, 60, 0.08), transparent 19%),
    linear-gradient(180deg, #121212 0%, #1c160c 100%);
}

.hero-section::before {
  background: rgba(249, 115, 22, 0.12);
  border: 0;
  border-radius: 999px;
  filter: blur(90px);
  height: 420px;
  right: -120px;
  top: 80px;
  transform: none;
  width: 420px;
}

.hero-copy {
  animation: fadeIn 0.6s ease-out both;
}

.eyebrow,
.panel-kicker,
.memo-label,
.plan-kicker {
  background: none;
  color: #f97316;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

h1 {
  background: linear-gradient(90deg, #fb923c, #f97316, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.04;
}

h2 {
  color: #ffffff;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.12;
}

h3 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.hero-lede {
  color: #d1d5db;
  font-size: clamp(16px, 1.45vw, 20px);
}

.section-copy p,
.feature-grid p,
.audience-grid p,
.workflow-body p,
.plan li,
.faq-grid p,
.memo-disclaimer,
.form-note {
  color: #a3a3a3;
  font-size: 14px;
  line-height: 1.7;
}

.trust-row span,
.status-pill,
.memo-badge {
  background: rgba(38, 38, 38, 0.86);
  border-color: #3a3a3a;
  color: #d4d4d4;
}

.status-pill,
.memo-badge {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
  color: #fb923c;
}

.tool-console,
.memo-preview,
.plan,
.feature-grid article,
.audience-grid article,
.workflow-body,
.faq-grid article,
.boundary-card {
  background: #1a1a1a;
  border-color: #333333;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
  color: #f5f5f5;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.plan:hover,
.feature-grid article:hover,
.audience-grid article:hover,
.faq-grid article:hover,
.workflow-body:hover {
  border-color: rgba(249, 115, 22, 0.42);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.hero-console {
  animation: fadeIn 0.7s 0.08s ease-out both;
  background: rgba(26, 26, 26, 0.96);
  border-color: rgba(249, 115, 22, 0.25);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.34),
    0 0 48px rgba(249, 115, 22, 0.08);
}

.hero-console::before {
  background: linear-gradient(90deg, #f97316, #fb923c, #d97706);
}

.console-topbar {
  border-bottom-color: #333333;
}

.workflow-strip,
.paste-importer,
.context-panel,
.evidence-panel,
.login-risk-check,
.auth-card {
  background: #222222;
  border-color: #333333;
}

.workflow-strip span {
  border-right-color: #333333;
  color: #a3a3a3;
}

.workflow-strip strong {
  color: #f97316;
}

label {
  color: #a3a3a3;
  font-size: 14px;
  font-weight: 500;
}

input,
select,
textarea {
  background: #181818;
  border-color: #3b3b3b;
  color: #f5f5f5;
}

input[type="checkbox"] {
  accent-color: #f97316;
}

input::placeholder,
textarea::placeholder {
  color: #737373;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
}

select {
  color-scheme: dark;
}

.transaction-receipt {
  background: linear-gradient(180deg, #1f1f1f, #181818);
  border-color: #333333;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

.receipt-head,
.receipt-row {
  border-color: #333333;
}

.receipt-type,
.receipt-amount strong,
.receipt-row strong,
.context-title span:first-child {
  color: #f5f5f5;
}

.receipt-status,
.receipt-status strong,
.receipt-row > span,
.receipt-amount > span,
.context-title {
  color: #8f8f8f;
}

.copy-mini {
  background: #262626;
  border-color: #404040;
  color: #a3a3a3;
}

.copy-mini:hover {
  background: #2d2d2d;
  border-color: #f97316;
  color: #fb923c;
}

.context-warning,
.memo-disclaimer {
  background: #2b1b12;
  border-color: rgba(249, 115, 22, 0.28);
  color: #fdba74;
}

.evidence-grid .checkbox-row {
  background: #1a1a1a;
  border-color: #363636;
}

.evidence-head strong,
.history-head strong,
.history-item strong,
.support-tools strong {
  color: #f5f5f5;
}

.checkbox-row {
  color: #b3b3b3;
}

.support-tools,
.history-panel,
.referral-panel,
.export-status,
.account-note {
  background: #222222;
  border-color: #333333;
}

.support-tools p,
.history-head p,
.history-status,
.empty-history,
.history-item span,
.export-status,
.account-note {
  color: #a3a3a3;
}

.history-head,
.history-item,
.referral-stats div {
  border-color: #333333;
}

.referral-stats {
  background: #333333;
}

.referral-stats div {
  background: #1a1a1a;
}

.referral-panel > div:first-child > strong,
.referral-stats strong {
  color: #f5f5f5;
}

.logo-strip {
  background: #171717;
  border-color: #2f2f2f;
  color: #8f8f8f;
}

.audience-section,
.workflow-section,
.features-section,
.faq-section {
  background: #121212;
  border-color: #2f2f2f;
}

.memo-section,
.pricing-section {
  background: linear-gradient(180deg, #181818 0%, #121212 100%);
}

.audience-grid article::after,
.audience-grid article:nth-child(2)::after,
.audience-grid article:nth-child(3)::after,
.audience-grid article:nth-child(4)::after {
  background: #f97316;
}

.audience-grid span,
.step-number,
.memo-section-label,
.memo-fields a {
  color: #f97316;
}

.document-ribbon,
.packet-status {
  background: #222222;
  border-color: #333333;
  color: #a3a3a3;
}

.packet-status div,
.memo-fields,
.memo-fields div,
.review-checklist,
.review-checklist div,
.workflow-meta {
  border-color: #333333;
}

.packet-status span,
.memo-fields dt {
  color: #858585;
}

.packet-status strong,
.memo-fields dd,
.review-checklist strong {
  color: #ededed;
}

.review-checklist span {
  background: #2b1b12;
  color: #fdba74;
}

.review-checklist span.is-complete {
  background: #153923;
  color: #86efac;
}

.workflow-timeline::before {
  background: linear-gradient(180deg, #f97316, #ea580c, #d97706);
}

.workflow-card::before,
.workflow-card:nth-child(2)::before,
.workflow-card:nth-child(3)::before,
.workflow-card:nth-child(4)::before,
.workflow-card:nth-child(5)::before {
  background: #121212;
  border-color: #f97316;
}

.workflow-meta span {
  color: #a3a3a3;
}

.module-badge.free,
.module-badge.paid,
.module-badge.mixed {
  background: rgba(249, 115, 22, 0.11);
  color: #fb923c;
}

.feature-grid article:nth-child(1),
.feature-grid article:nth-child(2),
.feature-grid article:nth-child(3),
.feature-grid article:nth-child(4) {
  border-top-color: #f97316;
}

.pricing-section {
  background:
    radial-gradient(circle at 78% 22%, rgba(249, 115, 22, 0.08), transparent 24%),
    linear-gradient(180deg, #222222 0%, #121212 100%);
}

.plan.highlighted {
  border-color: rgba(249, 115, 22, 0.62);
  box-shadow: 0 18px 50px rgba(249, 115, 22, 0.12);
}

.price {
  color: #ffffff;
}

.boundary-section {
  background: #0d0d0d;
}

.boundary-card {
  background:
    radial-gradient(circle at 85% 20%, rgba(249, 115, 22, 0.1), transparent 25%),
    #1a1a1a;
}

.boundary-card .section-copy p,
.boundary-list span {
  color: #a3a3a3;
}

.boundary-card .eyebrow {
  background: none;
  color: #f97316;
}

.boundary-list div {
  background: #222222;
  border-color: #333333;
}

.account-modal-backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.account-dialog {
  background: #1a1a1a;
  border-color: #3a3a3a;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.account-dialog h2 {
  color: #ffffff;
}

.account-dialog p {
  color: #a3a3a3;
}

.modal-close {
  background: #262626;
  border-color: #404040;
  color: #d4d4d4;
}

.modal-close:hover {
  border-color: #f97316;
  color: #fb923c;
}

.site-footer {
  background: #121212;
  border-top-color: #2f2f2f;
  color: #a3a3a3;
}

.site-footer a {
  color: #a3a3a3;
}

.legal-consent-row,
.purchase-legal-consent {
  align-items: flex-start;
  background: #151515;
  border: 1px solid #333333;
  border-radius: 8px;
  color: #b8b8b8;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  gap: 10px;
  line-height: 1.55;
  padding: 12px 14px;
}

.legal-consent-row input,
.purchase-legal-consent input {
  accent-color: #f97316;
  flex: 0 0 auto;
  height: 16px;
  margin: 2px 0 0;
  width: 16px;
}

.legal-consent-row a,
.purchase-legal-consent a {
  color: #fb923c;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(251, 146, 60, 0.45);
  text-underline-offset: 3px;
}

.legal-consent-row:focus-within,
.purchase-legal-consent:focus-within {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.purchase-legal-consent {
  margin-top: 18px;
}

.legal-page {
  background: #121212;
  color: #f5f5f4;
}

.legal-page .site-header {
  position: fixed;
}

.legal-page .site-header + .legal-main {
  padding-top: var(--site-header-height, 70px);
}

.legal-page .header-action {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.legal-main {
  background:
    radial-gradient(circle at 78% 2%, rgba(249, 115, 22, 0.13), transparent 24%),
    linear-gradient(180deg, #121212 0, #15120f 420px, #121212 760px);
  min-height: 100vh;
}

.legal-hero {
  margin: 0 auto;
  max-width: 1120px;
  padding: clamp(72px, 9vw, 120px) 28px clamp(46px, 6vw, 76px);
}

.legal-hero h1 {
  color: #ffffff;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 14px 0 24px;
  max-width: 980px;
}

.legal-hero > p:not(.eyebrow) {
  color: #c4c4c4;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  max-width: 780px;
}

.legal-meta {
  border-bottom: 1px solid #333333;
  border-top: 1px solid #333333;
  color: #a3a3a3;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin-top: 38px;
  padding: 18px 0;
}

.legal-meta strong {
  color: #f5f5f4;
}

.legal-meta a,
.legal-content a {
  color: #fb923c;
}

.legal-layout {
  align-items: start;
  display: grid;
  gap: clamp(30px, 5vw, 72px);
  grid-template-columns: 220px minmax(0, 820px);
  justify-content: center;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 28px 96px;
}

.legal-sidebar {
  border-left: 2px solid #f97316;
  display: grid;
  gap: 5px;
  padding: 8px 0 8px 18px;
  position: sticky;
  top: calc(var(--site-header-height, 70px) + 28px);
}

.legal-sidebar p {
  color: #f97316;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 9px;
  text-transform: uppercase;
}

.legal-sidebar a {
  border-radius: 6px;
  color: #a3a3a3;
  font-size: 13px;
  font-weight: 650;
  padding: 8px 10px;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.legal-sidebar a:hover {
  background: #222222;
  color: #ffffff;
}

.legal-content {
  display: grid;
  gap: 26px;
}

.legal-document {
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  padding: clamp(24px, 5vw, 48px);
  scroll-margin-top: calc(var(--site-header-height, 70px) + 24px);
  transition: border-color 180ms ease;
}

.legal-document:hover {
  border-color: rgba(249, 115, 22, 0.42);
}

.legal-document h2 {
  color: #ffffff;
  font-size: clamp(1.75rem, 3.5vw, 2.7rem);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 10px 0 32px;
}

.legal-document h3 {
  color: #f5f5f4;
  font-size: 1rem;
  line-height: 1.4;
  margin: 30px 0 8px;
}

.legal-document p,
.legal-document li {
  color: #b3b3b3;
  font-size: 14px;
  line-height: 1.8;
}

.legal-document p {
  margin: 0 0 14px;
}

.legal-document ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 18px;
  padding-left: 21px;
}

.legal-document li::marker {
  color: #f97316;
}

.legal-warning {
  align-items: flex-start;
  background: #24180f;
  border: 1px solid #6b3412;
  border-left: 3px solid #f97316;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  margin-top: 26px;
  padding: 18px 20px;
}

.legal-warning strong {
  color: #fb923c;
}

.legal-warning span {
  color: #d6d3d1;
  font-size: 13px;
  line-height: 1.65;
}

.legal-contact {
  background:
    radial-gradient(circle at 90% 0, rgba(249, 115, 22, 0.12), transparent 32%),
    #1a1a1a;
}

@media (max-width: 900px) {
  .legal-nav {
    order: 3;
    width: 100%;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    background: rgba(18, 18, 18, 0.96);
    border-bottom: 1px solid #333333;
    border-left: 0;
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 10px 0;
    position: sticky;
    top: var(--site-header-height, 70px);
    z-index: 8;
  }

  .legal-sidebar p {
    display: none;
  }

  .legal-sidebar a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .legal-hero,
  .legal-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .legal-hero h1 {
    font-size: 2.55rem;
  }

  .legal-document {
    padding: 22px 18px;
  }

  .legal-document h2 {
    font-size: 1.85rem;
  }
}

.purchase-workspace {
  width: min(1180px, calc(100% - 48px));
  margin: 56px auto 0;
  padding-top: 44px;
  border-top: 1px solid #333333;
}

.purchase-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 42px;
  align-items: end;
}

.purchase-heading h3 {
  max-width: 720px;
  margin: 8px 0 14px;
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.purchase-heading p,
.credit-package > p,
.payment-verification p {
  color: #a3a3a3;
}

.payment-method-picker {
  align-items: center;
  background:
    linear-gradient(110deg, rgba(249, 115, 22, 0.08), transparent 36%),
    #181818;
  border: 1px solid #333333;
  border-radius: 8px;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.7fr);
  margin: 24px 0;
  padding: 20px;
}

.payment-method-picker > div > strong {
  color: #ffffff;
  display: block;
  margin-top: 5px;
}

.payment-method-picker label {
  color: #a3a3a3;
  font-size: 12px;
  font-weight: 700;
}

.payment-method-picker select {
  margin-top: 7px;
  width: 100%;
}

.crypto-payment-preview {
  border-top: 1px solid #333333;
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 18px;
}

.crypto-payment-preview[hidden] {
  display: none;
}

.crypto-payment-preview > div {
  display: grid;
  gap: 5px;
}

.crypto-payment-preview span {
  color: #8f8f8f;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.crypto-payment-preview strong,
.crypto-payment-preview code {
  color: #ffffff;
}

.crypto-address-row {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto !important;
}

.crypto-address-row span {
  grid-column: 1 / -1;
}

.crypto-address-row code {
  background: #111111;
  border: 1px solid #333333;
  border-radius: 6px;
  overflow-wrap: anywhere;
  padding: 11px 12px;
}

.crypto-payment-preview > p {
  color: #a3a3a3;
  font-size: 12px;
  grid-column: 1 / -1;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 720px) {
  .payment-method-picker,
  .crypto-payment-preview {
    grid-template-columns: 1fr;
  }

  .crypto-address-row {
    grid-template-columns: 1fr !important;
  }
}

.purchase-safety {
  display: grid;
  gap: 7px;
  padding: 18px 20px;
  background: #171717;
  border-left: 3px solid #f97316;
}

.purchase-safety strong {
  color: #f5f5f5;
}

.purchase-safety span {
  color: #a3a3a3;
  font-size: 0.82rem;
  line-height: 1.55;
}

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

.credit-package {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 330px;
  padding: 26px;
  overflow: hidden;
  flex-direction: column;
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.04), transparent 42%),
    #1a1a1a;
  border: 1px solid #333333;
  border-radius: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.credit-package:hover {
  border-color: rgba(249, 115, 22, 0.52);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  transform: translateY(-3px);
}

.credit-package.featured {
  border-color: rgba(249, 115, 22, 0.72);
  box-shadow: 0 16px 42px rgba(249, 115, 22, 0.1);
}

.package-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  padding: 7px 12px;
  background: #f97316;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.package-label {
  margin: 0 0 15px;
  color: #fb923c !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.credit-package h4 {
  margin: 0;
  color: #ffffff;
  font-size: 1.55rem;
}

.package-price {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 18px 0;
}

.package-price strong {
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
}

.package-price span {
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 700;
}

.credit-package > p:not(.package-label) {
  margin: 0 0 24px;
  line-height: 1.65;
}

.paypal-buy-button {
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  padding: 12px 18px;
  background: #f97316;
  border: 1px solid #f97316;
  border-radius: 7px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.paypal-buy-button:hover {
  background: #ea580c;
  border-color: #ea580c;
  transform: translateY(-1px);
}

.paypal-buy-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.payment-verification {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 34px;
  margin-top: 24px;
  padding: 26px;
  background: #171717;
  border: 1px solid rgba(249, 115, 22, 0.42);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.payment-verification[hidden] {
  display: none;
}

.payment-verification h4 {
  margin: 6px 0 12px;
  color: #ffffff;
  font-size: 1.35rem;
}

.payment-verification form {
  display: grid;
  gap: 9px;
}

.payment-verification label {
  color: #a3a3a3;
  font-size: 0.82rem;
  font-weight: 600;
}

.payment-verification input {
  min-width: 0;
  margin-bottom: 7px;
  background: #121212;
  border-color: #404040;
  color: #f5f5f5;
}

.payment-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}

.payment-actions .secondary-button,
.payment-actions .primary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.purchase-status-row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding-bottom: 12px;
  border-bottom: 1px solid #333333;
}

.purchase-status-row p {
  margin: 0;
  color: #a3a3a3;
}

.purchase-status-row p[data-tone="success"] {
  color: #86efac;
}

.purchase-status-row p[data-tone="warning"] {
  color: #fdba74;
}

.customer-orders {
  display: grid;
}

.customer-order {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.45fr) minmax(220px, 0.7fr);
  gap: 22px;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid #2f2f2f;
}

.customer-order-main,
.customer-order-values,
.customer-order-meta {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.customer-order-main strong,
.customer-order-values strong {
  overflow-wrap: anywhere;
  color: #f5f5f5;
}

.customer-order-main > span:not(.order-status),
.customer-order-values span,
.customer-order-meta span {
  overflow-wrap: anywhere;
  color: #858585;
  font-size: 0.78rem;
}

.customer-order-meta {
  justify-items: end;
  text-align: right;
}

.order-status {
  width: max-content;
  padding: 4px 7px;
  border: 1px solid rgba(249, 115, 22, 0.34);
  border-radius: 999px;
  color: #fdba74;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.order-status-paid {
  border-color: rgba(34, 197, 94, 0.34);
  color: #86efac;
}

.order-status-cancelled {
  border-color: rgba(239, 68, 68, 0.32);
  color: #fca5a5;
}

.empty-order-state {
  margin: 0;
  padding: 26px 0;
  color: #858585;
}

@media (max-width: 900px) {
  .purchase-heading,
  .payment-verification {
    grid-template-columns: 1fr;
  }

  .credit-package-grid {
    grid-template-columns: 1fr;
  }

  .credit-package {
    min-height: 0;
  }

  .customer-order {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 0.45fr);
  }

  .customer-order-meta {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .purchase-workspace {
    width: min(100% - 32px, 1180px);
  }

  .credit-package,
  .payment-verification {
    padding: 20px;
  }

  .payment-actions,
  .purchase-status-row {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-actions > *,
  .purchase-status-row .text-button {
    width: 100%;
  }

  .customer-order {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .customer-order-meta {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

.page-shell main > section:not(.hero-section):not(.logo-strip) {
  position: relative;
}

.page-shell main > section:not(.hero-section):not(.logo-strip) > .section-copy .eyebrow,
.contact-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.page-shell main > section:not(.hero-section):not(.logo-strip) > .section-copy .eyebrow::before,
.contact-copy .eyebrow::before {
  width: 28px;
  height: 2px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, #f97316, #fdba74);
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.42);
  content: "";
}

.page-shell main > section:not(.hero-section):not(.logo-strip) > .section-copy h2,
.contact-copy h2 {
  position: relative;
}

.page-shell main > section:not(.hero-section):not(.logo-strip) > .section-copy h2::after,
.contact-copy h2::after {
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 18px;
  border-radius: 3px;
  background: linear-gradient(90deg, #f97316, rgba(249, 115, 22, 0));
  content: "";
}

.section-copy.centered h2::after {
  margin-right: auto;
  margin-left: auto;
}

.batch-section,
.contact-section {
  padding: 88px max(24px, calc((100vw - 1180px) / 2));
}

.batch-section {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.055) 0, transparent 19%),
    linear-gradient(315deg, rgba(249, 115, 22, 0.035) 0, transparent 16%),
    #0f0f0f;
  border-block: 1px solid #2b2b2b;
}

.batch-section::before,
.batch-section::after,
.contact-section::before,
.contact-section::after {
  position: absolute;
  z-index: 0;
  width: 124px;
  height: 72px;
  pointer-events: none;
  content: "";
}

.batch-section::before,
.contact-section::before {
  top: 28px;
  right: max(20px, calc((100vw - 1240px) / 2));
  border-top: 1px solid rgba(249, 115, 22, 0.58);
  border-right: 1px solid rgba(249, 115, 22, 0.58);
}

.batch-section::after,
.contact-section::after {
  bottom: 28px;
  left: max(20px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(249, 115, 22, 0.3);
  border-left: 1px solid rgba(249, 115, 22, 0.3);
}

.batch-section > .section-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-bottom: 34px;
}

.batch-workspace {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(249, 115, 22, 0.025), transparent 18%),
    #1a1a1a;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.36),
    0 0 42px rgba(249, 115, 22, 0.045);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 0.65s ease-out both;
}

.batch-workspace::before {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #f97316 0%, #fb923c 28%, rgba(249, 115, 22, 0.12) 72%, transparent 100%);
  content: "";
}

.batch-workspace:hover {
  border-color: rgba(249, 115, 22, 0.48);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.42),
    0 0 52px rgba(249, 115, 22, 0.07);
}

.batch-project-bar {
  position: relative;
  padding: 26px 28px;
  border-bottom: 1px solid #333333;
  background:
    linear-gradient(120deg, rgba(249, 115, 22, 0.09), transparent 36%),
    #171717;
}

.batch-project-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.batch-project-heading span {
  color: #fb923c;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.batch-project-heading strong {
  color: #ededed;
  font-size: 0.9375rem;
}

.batch-project-fields {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.45fr) minmax(260px, 1fr);
  gap: 16px;
}

.batch-project-fields label {
  display: grid;
  gap: 8px;
}

.batch-project-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

#batchProjectStatus[data-tone="success"] {
  color: #86efac;
}

#batchProjectStatus[data-tone="warning"] {
  color: #fdba74;
}

.batch-access-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 21px 28px 18px 32px;
  border-bottom: 1px solid rgba(249, 115, 22, 0.34);
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0.13), transparent 48%),
    #24170f;
}

.batch-access-bar::before {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 3px;
  background: #f97316;
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.55);
  content: "";
}

.batch-access-bar > div {
  min-width: 0;
}

.batch-access-bar span,
.batch-access-bar strong {
  display: block;
}

.batch-access-bar span {
  margin-bottom: 5px;
  color: #fb923c;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.batch-access-bar strong {
  color: #f5f5f5;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.batch-access-bar.is-locked {
  border-bottom-color: #444444;
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0.055), transparent 42%),
    #202020;
}

.batch-access-bar.is-locked span {
  color: #fb923c;
}

.batch-import-panel {
  padding: 28px;
  border-bottom: 1px solid #333333;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.014), transparent 38%),
    #181818;
}

.batch-input-grid,
.batch-context,
.contact-grid {
  display: grid;
  gap: 18px;
}

.batch-input-grid {
  grid-template-columns: minmax(220px, 0.45fr) minmax(220px, 0.55fr);
  margin-bottom: 18px;
}

.batch-import-panel > label,
.batch-input-grid label,
.batch-context label,
.contact-form label {
  display: grid;
  gap: 8px;
  color: #b8b8b8;
  font-size: 0.875rem;
  font-weight: 600;
}

.batch-import-panel textarea {
  min-height: 150px;
  resize: vertical;
}

.file-button {
  position: relative;
  min-height: 48px;
  align-self: end;
  place-items: center;
  border: 1px dashed #525252;
  border-radius: 8px;
  background: #222222;
  color: #ededed !important;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.file-button:hover {
  border-color: #f97316;
  background: #2b1b12;
  color: #fb923c !important;
}

.file-button::before {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #f97316;
  border-left: 2px solid #f97316;
  content: "";
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.batch-actions,
.contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.batch-import-panel .batch-actions {
  margin-top: 18px;
}

#batchStatus[data-tone="success"],
#contactStatus[data-tone="success"] {
  color: #86efac;
}

#batchStatus[data-tone="warning"],
#contactStatus[data-tone="warning"] {
  color: #fdba74;
}

.batch-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #333333;
  background: #171717;
}

.batch-summary div {
  position: relative;
  min-height: 94px;
  padding: 20px 24px;
  border-right: 1px solid #333333;
}

.batch-summary div::before {
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.56), transparent);
  content: "";
}

.batch-summary div:last-child {
  border-right: 0;
}

.batch-summary span,
.batch-summary strong {
  display: block;
}

.batch-summary span {
  color: #858585;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.batch-summary strong {
  margin-top: 8px;
  color: #ffffff;
  font-size: 1.75rem;
  text-shadow: 0 0 20px rgba(249, 115, 22, 0.16);
}

.batch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 24px;
  border-bottom: 1px solid #333333;
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0.035), transparent 44%),
    #222222;
}

.batch-filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.batch-filter {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #a3a3a3;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.batch-filter:hover,
.batch-filter.is-active {
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(249, 115, 22, 0.1);
  color: #fb923c;
}

.batch-context {
  grid-template-columns: minmax(170px, 0.8fr) minmax(220px, 1fr) minmax(240px, 1.2fr) auto;
  align-items: end;
  padding: 22px 24px;
  border-bottom: 1px solid #333333;
  background: #151515;
}

.batch-context[hidden] {
  display: none;
}

.batch-table-wrap {
  overflow-x: auto;
}

.batch-table {
  width: 100%;
  min-width: 1260px;
  border-collapse: collapse;
  color: #d4d4d4;
  font-size: 0.8125rem;
}

.batch-table th,
.batch-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #2f2f2f;
  text-align: left;
  vertical-align: top;
}

.batch-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #201b18;
  color: #858585;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
}

.batch-table th:first-child {
  box-shadow: inset 3px 0 0 rgba(249, 115, 22, 0.72);
}

.batch-table tbody tr {
  transition: background 0.2s ease;
}

.batch-table tbody tr:hover {
  background: #202020;
}

.batch-table td:nth-child(1) {
  width: 42px;
}

.batch-table td:nth-child(2) {
  width: 165px;
}

.batch-table td:nth-child(3) {
  width: 180px;
}

.batch-table td:nth-child(8) {
  width: 130px;
}

.batch-table td strong,
.batch-table td a {
  display: block;
}

.batch-table td a {
  margin-top: 5px;
  color: #fb923c;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
}

.batch-transaction-cell {
  display: grid;
  gap: 7px;
}

.batch-transaction-cell .batch-network-select {
  min-width: 155px;
}

.batch-retry-button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fdba74;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.batch-retry-button:hover {
  color: #ffffff;
}

.batch-retry-button:disabled {
  color: #666666;
  cursor: not-allowed;
}

.batch-table input:not([type="checkbox"]),
.batch-table select {
  width: 100%;
  min-width: 142px;
  min-height: 38px;
  padding: 8px 10px;
  border-color: #3d3d3d;
  border-radius: 6px;
  background: #181818;
  font-size: 0.8125rem;
}

.batch-chain-fact {
  color: #b8b8b8;
  line-height: 1.5;
}

.batch-status-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid #444444;
  border-radius: 999px;
  background: #262626;
  color: #b8b8b8;
  font-size: 0.6875rem;
  font-weight: 800;
  white-space: nowrap;
}

.batch-status-badge.is-ready {
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

.batch-status-badge.is-review {
  border-color: rgba(249, 115, 22, 0.38);
  background: rgba(249, 115, 22, 0.1);
  color: #fdba74;
}

.batch-status-badge.is-failed {
  border-color: rgba(239, 68, 68, 0.38);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.batch-status-badge.is-pending,
.batch-status-badge.is-fetching {
  color: #a3a3a3;
}

.batch-empty {
  padding: 52px 24px !important;
  color: #858585;
  text-align: center !important;
  background:
    linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.035), transparent);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(420px, 1.25fr);
  gap: 72px;
  align-items: start;
  overflow: hidden;
  background:
    linear-gradient(225deg, rgba(249, 115, 22, 0.055) 0, transparent 22%),
    #121212;
}

.contact-copy,
.contact-form {
  position: relative;
  z-index: 1;
}

.contact-copy {
  padding-left: 24px;
}

.contact-copy::before {
  position: absolute;
  top: 2px;
  bottom: 4px;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, #f97316, rgba(249, 115, 22, 0.08));
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.28);
  content: "";
}

.contact-copy h2 {
  max-width: 620px;
  margin: 10px 0 18px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.contact-copy > p:not(.eyebrow) {
  color: #a3a3a3;
  font-size: 1rem;
  line-height: 1.75;
}

.contact-copy > a {
  display: inline-block;
  margin-top: 22px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(249, 115, 22, 0.45);
  color: #fb923c;
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-copy > a:hover {
  border-color: #f97316;
  color: #fdba74;
}

.contact-form {
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.055), transparent 32%),
    #1a1a1a;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.34),
    0 0 42px rgba(249, 115, 22, 0.045);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 0.65s 0.08s ease-out both;
}

.contact-form::before,
.contact-form::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.contact-form::before {
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f97316 45%, #fb923c 65%, transparent);
}

.contact-form::after {
  right: 18px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  border-right: 1px solid rgba(249, 115, 22, 0.48);
  border-bottom: 1px solid rgba(249, 115, 22, 0.48);
}

.contact-form:hover {
  border-color: rgba(249, 115, 22, 0.44);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(249, 115, 22, 0.065);
}

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

.contact-full {
  grid-column: 1 / -1;
}

.optional-label {
  color: #737373;
  font-size: 0.75rem;
  font-weight: 500;
}

.contact-form textarea {
  resize: vertical;
}

.contact-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-actions {
  justify-content: space-between;
  margin-top: 20px;
}

.contact-actions p {
  max-width: 460px;
  margin: 0;
  color: #858585;
  font-size: 0.8125rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-console,
  .batch-workspace,
  .contact-form {
    animation: none;
  }
}

@media (max-width: 980px) {
  .batch-toolbar,
  .batch-access-bar,
  .contact-actions {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .batch-project-fields label:last-child {
    grid-column: 1 / -1;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

@media (max-width: 680px) {
  .batch-section,
  .contact-section {
    padding: 64px 16px;
  }

  .batch-section::before,
  .batch-section::after,
  .contact-section::before,
  .contact-section::after {
    width: 54px;
    height: 36px;
  }

  .batch-import-panel,
  .contact-form {
    padding: 20px;
  }

  .batch-project-bar {
    padding: 22px 20px;
  }

  .batch-project-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .batch-project-fields {
    grid-template-columns: 1fr;
  }

  .batch-project-fields label:last-child {
    grid-column: auto;
  }

  .batch-project-actions,
  .batch-project-actions > button {
    width: 100%;
  }

  .batch-access-bar {
    padding: 18px 20px;
  }

  .batch-access-bar .secondary-button {
    width: 100%;
  }

  .batch-input-grid,
  .batch-context,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .batch-summary div:nth-child(2) {
    border-right: 0;
  }

  .batch-summary div:nth-child(-n + 2) {
    border-bottom: 1px solid #333333;
  }

  .batch-toolbar {
    padding: 16px;
  }

  .batch-filter-group,
  .batch-actions,
  .batch-actions > button,
  .contact-actions,
  .contact-actions > button {
    width: 100%;
  }

  .batch-filter {
    flex: 1 1 calc(50% - 6px);
  }

  .contact-full {
    grid-column: auto;
  }

  .contact-copy {
    padding-left: 17px;
  }
}

/* Workspace-first product redesign */
body {
  background: #0d0d0d;
}

.page-shell {
  background: #0d0d0d;
}

.site-header {
  min-height: 58px;
  padding: 10px clamp(18px, 2.2vw, 34px);
  background: rgba(13, 13, 13, 0.94);
  border-bottom: 1px solid #2d2d2d;
  backdrop-filter: blur(14px);
}

.brand {
  color: #f5f5f5;
  font-size: 17px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  background: #171717;
  border: 2px solid #f97316;
  border-radius: 7px;
  box-shadow: none;
  color: #f97316;
}

.nav-links {
  gap: 4px;
  padding: 5px;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 8px;
  color: #d4d4d4;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(245, 158, 11, 0.13);
  color: #fbbf24;
}

.nav-links a.is-active {
  background: #f59e0b;
  color: #171717;
  box-shadow: 0 5px 16px rgba(245, 158, 11, 0.16);
}

.header-actions {
  gap: 13px;
}

.header-credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d4d4d4;
  font-size: 12px;
  white-space: nowrap;
}

.header-credit-badge i {
  color: #f97316;
  font-size: 15px;
}

.signin-link {
  padding: 9px 10px;
  color: #d4d4d4;
  font-size: 13px;
}

.header-action {
  min-height: 38px;
  padding: 9px 15px;
  box-shadow: none;
  font-size: 13px;
}

.hero-section {
  display: block;
  min-height: auto;
  padding: 22px clamp(18px, 2.2vw, 34px) 34px;
  background: #0d0d0d;
}

.hero-section::before {
  display: none;
}

.hero-copy {
  display: flex;
  max-width: none;
  margin: 0 auto 18px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.hero-copy .eyebrow {
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0 0 5px;
  color: #f5f5f5;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.14;
}

.hero-lede {
  margin: 0;
  color: #a3a3a3;
  font-size: 14px;
}

.hero-copy .trust-row {
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 18px;
}

.hero-copy .trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #b8b8b8;
  font-size: 11px;
  font-weight: 500;
}

.hero-copy .trust-row i {
  color: #cfcfcf;
  font-size: 15px;
}

.hero-console {
  display: grid;
  grid-template-columns: minmax(270px, 0.9fr) minmax(320px, 1.08fr) minmax(300px, 1fr);
  grid-template-areas:
    "top top top"
    "workflow workflow workflow"
    "lookup receipt context"
    ". . actions"
    "history history history"
    "referral referral referral"
    "support support support";
  gap: 12px;
  width: 100%;
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-console::before {
  display: none;
}

.console-topbar {
  grid-area: top;
  min-height: 0;
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid #252525;
}

.console-topbar .panel-kicker {
  margin-bottom: 4px;
}

.console-topbar h2 {
  color: #d4d4d4;
  font-size: 13px;
  font-weight: 600;
}

.status-pill {
  padding: 5px 9px;
  background: #152514;
  border-color: #32542b;
  color: #a3d77e;
  font-size: 10px;
}

.workflow-strip {
  grid-area: workflow;
  display: none;
}

.lookup-form,
.transaction-receipt,
.context-panel {
  min-width: 0;
  margin: 0;
  padding: 16px;
  background: #161616;
  border: 1px solid #303030;
  border-radius: 8px;
  box-shadow: none;
}

.lookup-form {
  grid-area: lookup;
  align-content: start;
}

.transaction-receipt {
  grid-area: receipt;
  overflow: visible;
}

.context-panel {
  grid-area: context;
}

.workspace-panel-heading {
  display: flex;
  gap: 10px;
  min-width: 0;
  margin-bottom: 15px;
  align-items: flex-start;
}

.workspace-panel-heading > span {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  background: #292017;
  border: 1px solid rgba(249, 115, 22, 0.42);
  border-radius: 5px;
  color: #fb923c;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.workspace-panel-heading h3 {
  margin: 1px 0 3px;
  color: #f3f3f3;
  font-size: 14px;
  line-height: 1.25;
}

.workspace-panel-heading h3 small {
  color: #9a9a9a;
  font-size: 11px;
  font-weight: 500;
}

.workspace-panel-heading p {
  margin: 0;
  color: #858585;
  font-size: 10px;
  line-height: 1.45;
}

.context-title {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.context-title > div {
  min-width: 0;
  flex: 1;
}

.context-title em {
  flex: 0 0 auto;
  padding: 4px 7px;
  background: #222222;
  border-radius: 4px;
  color: #a3a3a3;
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
}

.paste-importer {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.lookup-form {
  gap: 11px;
}

.lookup-form .input-grid {
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 9px;
}

.lookup-form textarea {
  min-height: 128px;
}

.lookup-form .paste-actions {
  margin-top: 8px;
}

.lookup-form .paste-actions button {
  min-height: 34px;
  padding: 8px 11px;
  font-size: 11px;
}

.lookup-form .fetch-button {
  min-height: 40px;
  box-shadow: none;
}

.lookup-form .fetch-button i,
.console-actions button i {
  margin-right: 6px;
  font-size: 15px;
}

.hero-console label {
  margin-bottom: 5px;
  color: #b8b8b8;
  font-size: 10px;
  font-weight: 600;
}

.hero-console input,
.hero-console select,
.hero-console textarea {
  min-height: 38px;
  padding: 9px 10px;
  background: #121212;
  border-color: #363636;
  border-radius: 6px;
  color: #ededed;
  font-size: 12px;
}

.hero-console textarea {
  resize: vertical;
}

.hero-console input:focus,
.hero-console select:focus,
.hero-console textarea:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.hero-console .form-note {
  color: #777777;
  font-size: 9px;
  line-height: 1.45;
}

.receipt-panel-heading {
  margin: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid #2d2d2d;
}

.receipt-head {
  padding: 15px 0 13px;
  background: transparent;
  border-bottom: 1px solid #2d2d2d;
}

.receipt-type {
  color: #8d8d8d;
  font-size: 9px;
  text-transform: uppercase;
}

.receipt-status {
  color: #d4d4d4;
  font-size: 11px;
}

.receipt-status span {
  width: 7px;
  height: 7px;
  background: #84cc56;
  box-shadow: none;
}

.receipt-amount strong {
  color: #ffffff;
  font-size: 19px;
}

.receipt-amount > span {
  color: #858585;
  font-size: 9px;
}

.receipt-rows {
  padding: 0;
}

.receipt-row {
  min-height: 42px;
  padding: 8px 0;
  grid-template-columns: 92px minmax(0, 1fr);
  border-bottom-color: #292929;
}

.receipt-row > span {
  color: #858585;
  font-size: 10px;
}

.receipt-row strong {
  overflow-wrap: anywhere;
  color: #d8d8d8;
  font-size: 10px;
  line-height: 1.45;
}

.receipt-value {
  min-width: 0;
}

.copy-mini {
  padding: 3px 6px;
  background: transparent;
  border-color: #3a3a3a;
  color: #9a9a9a;
  font-size: 8px;
}

.context-panel > label:not(.checkbox-row) {
  margin-top: 9px;
}

.context-panel > label:nth-of-type(1) {
  margin-top: 0;
}

.context-panel textarea {
  min-height: 68px;
}

.evidence-panel {
  margin-top: 12px;
  padding: 11px;
  background: #121212;
  border-color: #303030;
  border-radius: 6px;
}

.evidence-head {
  margin-bottom: 8px;
}

.evidence-head strong {
  color: #d8d8d8;
  font-size: 10px;
}

.evidence-head span {
  color: #777777;
  font-size: 9px;
}

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

.checkbox-row {
  min-height: 0;
  gap: 7px;
  margin: 0;
  color: #a3a3a3;
  font-size: 9px;
}

.checkbox-row input {
  width: 14px;
  height: 14px;
  min-height: 14px;
  padding: 0;
  accent-color: #f97316;
}

.evidence-panel > label[for="evidenceNotes"],
.evidence-panel > textarea {
  display: none;
}

.attestation-row {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #292929;
}

.console-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) auto;
  gap: 8px;
  margin: 0;
}

.console-actions button {
  min-height: 40px;
  padding: 9px 12px;
  box-shadow: none;
  font-size: 11px;
}

.history-panel {
  grid-area: history;
  margin-top: 5px;
  padding: 15px 17px;
  background: #151515;
  border-color: #2e2e2e;
  border-radius: 8px;
}

.history-head {
  padding-bottom: 10px;
}

.history-head strong {
  color: #ededed;
  font-size: 12px;
}

.history-head p,
.history-status {
  color: #858585;
  font-size: 9px;
}

.referral-panel {
  grid-area: referral;
}

.support-tools {
  grid-area: support;
}

.finance-workspace-shell {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  width: min(1440px, 100%);
  margin: 26px auto 0;
  overflow: hidden;
  background: #151515;
  border: 1px solid #303030;
  border-radius: 8px;
}

.finance-nav {
  display: flex;
  padding: 13px 9px;
  flex-direction: column;
  gap: 3px;
  background: #121212;
  border-right: 1px solid #303030;
}

.finance-nav a {
  display: flex;
  min-height: 38px;
  padding: 9px 10px;
  align-items: center;
  gap: 9px;
  border-left: 2px solid transparent;
  border-radius: 5px;
  color: #969696;
  font-size: 10px;
  font-weight: 600;
}

.finance-nav a i {
  color: #777777;
  font-size: 14px;
}

.finance-nav a:hover,
.finance-nav a.is-active {
  background: #1c1c1c;
  border-left-color: #f97316;
  color: #ededed;
}

.finance-nav a.is-active i {
  color: #f97316;
}

.batch-section {
  padding: 76px clamp(18px, 2.2vw, 34px);
  background: #101010;
  border-block-color: #292929;
}

.batch-section::before,
.batch-section::after,
.contact-section::before,
.contact-section::after {
  display: none;
}

.batch-section > .section-copy {
  max-width: 900px;
  padding-left: 0;
}

.batch-section > .section-copy::before {
  display: none;
}

.batch-section .section-copy h2 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(28px, 3.4vw, 46px);
}

.batch-workspace {
  min-width: 0;
  margin: 0;
  background: #151515;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.batch-project-bar,
.batch-access-bar,
.batch-import-panel,
.batch-summary,
.batch-toolbar,
.batch-table-wrap {
  border-color: #303030;
}

.batch-project-bar {
  background: #171717;
}

.batch-summary {
  background: #121212;
}

.batch-summary div {
  background: transparent;
}

.batch-summary strong {
  color: #ffffff;
}

.batch-summary div:nth-child(1) strong {
  color: #a3d77e;
}

.batch-summary div:nth-child(2) strong {
  color: #60a5fa;
}

.batch-summary div:nth-child(3) strong {
  color: #fb923c;
}

.batch-summary div:nth-child(4) strong {
  color: #f87171;
}

.batch-table thead {
  background: #121212;
}

.batch-table th {
  color: #858585;
}

.batch-table td {
  color: #b8b8b8;
}

.logo-strip {
  border-block: 1px solid #292929;
}

.audience-section,
.memo-section,
.workflow-section,
.features-section,
.pricing-section,
.boundary-section,
.contact-section,
.faq-section {
  padding-top: 86px;
  padding-bottom: 86px;
}

.feature-grid article,
.audience-grid article,
.workflow-body,
.plan,
.faq-grid article {
  border-radius: 8px;
  box-shadow: none;
}

.memo-preview {
  border-radius: 8px;
}

.purchase-workspace {
  width: min(1180px, calc(100% - 36px));
}

@media (max-width: 1180px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero-copy .trust-row {
    justify-content: flex-start;
  }

  .hero-console {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "top top"
      "lookup receipt"
      "context context"
      "actions actions"
      "history history"
      "referral referral"
      "support support";
  }

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

  .context-panel .context-title,
  .context-panel .evidence-panel,
  .context-panel .context-warning,
  .context-panel .attestation-row {
    grid-column: 1 / -1;
  }

  .context-panel > label {
    align-self: end;
  }
}

@media (max-width: 820px) {
  .site-header {
    gap: 10px;
    position: fixed;
    inset: 0 0 auto;
  }

  .header-actions {
    width: auto;
    margin-left: auto;
  }

  .header-credit-badge {
    display: none;
  }

  .nav-links {
    position: static;
    gap: 3px;
    padding-bottom: 2px;
  }

  .nav-links a {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .hero-copy .trust-row {
    gap: 11px 16px;
  }

  .hero-console {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "lookup"
      "receipt"
      "context"
      "actions"
      "history"
      "referral"
      "support";
  }

  .context-panel {
    display: block;
  }

  .context-panel > label:not(.checkbox-row) {
    margin-top: 9px;
  }

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

  .console-actions #loadDemo {
    grid-column: 1 / -1;
  }

  .finance-workspace-shell {
    grid-template-columns: 1fr;
  }

  .finance-nav {
    overflow-x: auto;
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid #303030;
  }

  .finance-nav a {
    flex: 0 0 auto;
    border-bottom: 2px solid transparent;
    border-left: 0;
  }

  .finance-nav a:hover,
  .finance-nav a.is-active {
    border-bottom-color: #f97316;
    border-left-color: transparent;
  }

  .batch-section {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
  }

  .header-action {
    padding: 8px 10px;
    font-size: 11px;
  }

  .signin-link {
    font-size: 11px;
  }

  .hero-copy .trust-row span {
    font-size: 10px;
  }

  .lookup-form,
  .transaction-receipt,
  .context-panel {
    padding: 13px;
  }

  .lookup-form .input-grid {
    grid-template-columns: 1fr;
  }

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

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

  .console-actions #loadDemo {
    grid-column: auto;
  }

  .receipt-row {
    grid-template-columns: 76px minmax(0, 1fr);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media print {
  @page {
    margin: 18mm;
    size: A4;
  }

  body {
    background: #ffffff !important;
    color: #111827;
    padding-top: 0 !important;
  }

  .site-header,
  .hero-section,
  .logo-strip,
  .audience-section,
  .section-copy,
  .workflow-section,
  .features-section,
  .pricing-section,
  .boundary-section,
  .batch-section,
  .contact-section,
  .faq-section,
  .site-footer {
    display: none !important;
  }

  .memo-section {
    display: block;
    padding: 0;
  }

  .memo-preview {
    background: #ffffff !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #111827 !important;
    padding: 0;
  }

  .memo-preview h3,
  .memo-preview strong,
  .memo-preview dd,
  .memo-preview dt,
  .memo-preview p,
  .memo-preview span {
    color: #111827 !important;
  }

  .packet-status,
  .document-ribbon,
  .review-checklist,
  .review-checklist div {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
  }

  .document-ribbon,
  .memo-disclaimer {
    background: #ffffff !important;
    border-color: #cbd5e1;
  }

  .memo-badge {
    background: #ffffff;
    border-color: #94a3b8;
    color: #334155;
  }

  .memo-fields {
    break-inside: avoid;
  }

  .memo-fields a {
    color: #111827;
    text-decoration: none;
  }
}
