:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #111827;
  --text: #1f2937;
  --muted: #64748b;
  --line: #dbe3ee;
  --line-strong: #cbd5e1;
  --mcd-red: #da291c;
  --mcd-red-dark: #a91410;
  --mcd-gold: #ffbc0d;
  --blue: #2563eb;
  --green: #0f9f6e;
  --amber-soft: #fff5cf;
  --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 20px 60px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 188, 13, 0.16), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 44%);
  color: var(--text);
  font-family: "Open Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  margin-bottom: 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-lockup img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(218, 41, 28, 0.16);
}

.brand-lockup strong,
h1,
h2,
h3 {
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
  line-height: 1.1;
}

.brand-lockup strong {
  font-size: 1rem;
}

.brand-lockup small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.topbar-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topbar-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.pill-link,
.text-link {
  color: var(--mcd-red);
  font-weight: 900;
  text-decoration: none;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.pill-link:hover,
.text-link:hover {
  text-decoration: underline;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.intro-panel,
.panel,
.result-card,
.empty-state,
.offer-map article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.intro-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  min-height: 350px;
  overflow: hidden;
  background:
    linear-gradient(122deg, rgba(15, 23, 42, 0.98), rgba(55, 19, 17, 0.94)),
    #111827;
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.intro-copy {
  align-self: center;
  padding: clamp(28px, 5vw, 48px) 0 clamp(28px, 5vw, 48px) clamp(28px, 5vw, 48px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--mcd-gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 640px;
  margin-bottom: 14px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro-copy p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.65;
}

.brand-showcase {
  display: grid;
  place-items: center;
  padding-right: 34px;
}

.brand-token {
  width: min(100%, 256px);
  height: auto;
  border-radius: 36px;
  box-shadow: 0 20px 46px rgba(8, 13, 22, 0.24);
}

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

.lookup-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.primary-panel {
  border-top: 4px solid var(--mcd-red);
}

.compact-panel {
  border-top: 4px solid var(--mcd-gold);
}

.panel-heading {
  margin-bottom: 2px;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.field-group {
  display: grid;
  gap: 7px;
}

label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

label span {
  color: var(--mcd-red);
}

input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

input:hover {
  background: #fcfdff;
}

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

.primary-action,
.secondary-action,
.support-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 2px;
  padding: 0 18px;
  border-radius: 7px;
  font-weight: 900;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.primary-action {
  border: 1px solid var(--mcd-red);
  background: var(--mcd-red);
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(218, 41, 28, 0.16);
}

.primary-action:hover {
  background: var(--mcd-red-dark);
  border-color: var(--mcd-red-dark);
}

.secondary-action {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
}

.secondary-action:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.support-action {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--mcd-red);
  font-weight: 900;
  text-decoration: none;
}

.support-action:hover {
  border-color: var(--mcd-red);
  background: #fff7f6;
}

.result-region {
  margin: 18px 0;
}

.empty-state {
  min-height: 96px;
  display: grid;
  align-items: center;
  padding: 22px;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state strong {
  color: var(--ink);
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
}

.empty-state span {
  margin-top: 4px;
  color: var(--muted);
}

.result-card {
  padding: 22px;
}

.hidden {
  display: none;
}

.result-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.result-title h2 {
  margin-bottom: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.82rem;
  font-weight: 900;
}

.badge.warning {
  background: #fff7ed;
  color: #c2410c;
}

.badge.error {
  background: #fef2f2;
  color: #b91c1c;
}

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

.detail-item {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.detail-item span,
.offer-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-item strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.offer-list {
  margin-top: 14px;
  padding: 14px;
  border-radius: 7px;
  background: var(--amber-soft);
}

.offer-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.offer-list li {
  padding: 8px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #7c2d12;
  font-weight: 900;
}

.employee-record + .employee-record {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.email-suggestions {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.email-suggestions div {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.email-suggestions span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.email-suggestions strong {
  overflow-wrap: anywhere;
}

.message {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.menu-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.menu-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.menu-panel-heading span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-panel-heading strong {
  color: var(--ink);
}

.menu-groups {
  display: grid;
  gap: 10px;
}

.menu-group {
  padding: 12px;
  border-radius: 7px;
  background: var(--surface-soft);
}

.menu-group h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1rem;
}

.menu-group p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.menu-group ul {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.menu-group li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.menu-group li span {
  color: var(--mcd-red);
  font-weight: 900;
}

.menu-group li strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.menu-group li em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.offer-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.offer-map article {
  padding: 18px;
}

.offer-map span {
  color: var(--mcd-red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.offer-map h3 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: 1.14rem;
}

.offer-map p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(6px);
}

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

.verify-modal {
  position: relative;
  width: min(100%, 520px);
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--mcd-red);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.26);
}

.verify-modal h2 {
  margin-bottom: 10px;
  font-size: 1.65rem;
}

.verify-modal p {
  color: var(--muted);
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
}

.modal-close:hover {
  background: var(--surface-soft);
}

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

.modal-actions .primary-action,
.modal-actions .secondary-action {
  flex: 1 1 190px;
  text-decoration: none;
}

.anf-shell {
  display: grid;
  gap: 16px;
}

.anf-heading {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(122deg, rgba(15, 23, 42, 0.98), rgba(55, 19, 17, 0.94)),
    #111827;
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.anf-heading h1 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.anf-heading p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.anf-filter {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
}

select {
  width: 100%;
  min-height: 50px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 18px)
      21px / 7px 7px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 13px)
      21px / 7px 7px no-repeat,
    #ffffff;
  color: var(--text);
  font: inherit;
  appearance: none;
}

select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
  outline: none;
}

.anf-table-wrap {
  overflow: hidden;
}

.table-summary {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
}

.anf-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.anf-table th,
.anf-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.anf-table th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.anf-table td {
  color: var(--ink);
  font-weight: 500;
}

.anf-table td:first-child {
  font-weight: 700;
  white-space: nowrap;
}

.anf-table td:nth-child(3) {
  color: #334155;
  font-weight: 600;
}

@media (max-width: 960px) {
  .workspace,
  .intro-panel {
    grid-template-columns: 1fr;
  }

  .brand-showcase {
    padding: 0 28px 24px;
  }

  .brand-token {
    width: min(45%, 190px);
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 24px, 640px);
    padding-top: 14px;
  }

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

  .topbar-meta {
    justify-content: flex-start;
  }

  .intro-copy {
    padding: 28px 28px 8px;
  }

  h1 {
    font-size: clamp(2.4rem, 13vw, 3.5rem);
  }

  .detail-grid,
  .offer-map {
    grid-template-columns: 1fr;
  }

  .menu-group li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .anf-filter {
    grid-template-columns: 1fr;
  }
}
