:root {
  --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;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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;
}

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: sticky;
  top: 0;
  z-index: 20;
}

.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);
}

.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-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(4, 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;
}

@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;
  }

  .site-header,
  .hero-section,
  .logo-strip,
  .audience-section,
  .section-copy,
  .workflow-section,
  .features-section,
  .pricing-section,
  .boundary-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;
  }
}
