:root {
  --ink: #142033;
  --muted: #617083;
  --line: #d9e0e6;
  --surface: #ffffff;
  --surface-soft: #f7faf9;
  --wash: #eef5f3;
  --green: #0f766e;
  --green-dark: #095a54;
  --gold: #d2a33a;
  --danger: #9c2f2f;
  --header: rgba(255, 255, 255, .88);
  --input: #ffffff;
  --hero-glow: rgba(18, 128, 113, .13);
  --shadow: 0 24px 70px rgba(20, 32, 51, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
}

* { box-sizing: border-box; }
html { width: 100%; max-width: 100%; overflow-x: hidden; background: var(--wash); }
body { width: 100%; max-width: 100%; margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--ink); background: var(--wash); transition: color .2s ease, background .2s ease; }
a { color: inherit; }
button, input, textarea { font: inherit; }
img, svg { max-width: 100%; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 18% 12%, var(--hero-glow), transparent 34rem),
    radial-gradient(circle at 88% 78%, rgba(210, 163, 58, .09), transparent 30rem),
    var(--wash);
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
}

.landing-brand {
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -.02em;
  text-decoration: none;
}
.landing-brand span { color: var(--green); font-weight: 650; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(20, 32, 51, .07);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--green); }
.theme-toggle-icon {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

.find-stage {
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.find-core {
  width: min(900px, 100%);
  transform: translateY(-2vh);
  text-align: center;
}

.find-kicker {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.find-core h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 86px);
  line-height: .96;
  font-weight: 500;
  letter-spacing: 0;
}

.find-intro {
  width: min(640px, 100%);
  margin: 24px auto 34px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.find-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--input);
  box-shadow: var(--shadow);
}

.find-form:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 107, 87, .12), var(--shadow);
}

.find-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 20px 22px;
  color: var(--ink);
  background: transparent;
  font-size: 18px;
}

.find-form input::placeholder { color: #7a8796; opacity: 1; }

.find-form button, .button {
  min-width: 116px;
  border: 0;
  padding: 18px 28px;
  color: #fff;
  background: var(--green);
  border-radius: 11px;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.find-form button:hover, .button:hover { background: var(--green-dark); }
.find-form button:disabled { cursor: wait; opacity: .75; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.alert {
  margin: 18px auto 0;
  width: min(760px, 100%);
  padding: 13px 16px;
  border-left: 3px solid var(--danger);
  color: var(--danger);
  background: var(--surface);
  text-align: left;
}

.quiet-footer {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 20px 24px 28px;
  color: var(--muted);
  font-size: 13px;
}

.research-overlay[hidden] { display: none; }
.research-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--wash) 94%, transparent);
  backdrop-filter: blur(8px);
}
.research-state { width: min(520px, calc(100% - 40px)); text-align: center; }
.research-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 26px;
  border: 2px solid #bdd3cb;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
.research-state strong { display: block; font-size: 24px; }
.research-state span { display: block; margin-top: 8px; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .research-mark { animation: none; border-color: var(--green); } }

.profile-page { background: var(--wash); min-height: 100vh; }
.profile-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px max(24px, calc((100vw - 1180px) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.wordmark { font-weight: 800; text-decoration: none; }
.profile-header > *, .profile-header nav, .profile-header nav a { min-width: 0; }
.profile-header nav { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 20px; }

.profile-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 72px; }
.profile-hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, var(--surface) 0%, var(--surface-soft) 58%, var(--hero-glow) 100%);
  box-shadow: 0 16px 50px rgba(20, 32, 51, .08);
}
.profile-hero > *, .profile-main, .profile-main > section, .facts, .plain-list, .details-table-wrap { min-width: 0; }
.logo-frame {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 32, 51, .1);
}
.business-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
}
.profile-title { min-width: 0; }
.profile-subtitle { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 0; overflow-wrap: anywhere; color: var(--muted); line-height: 1.5; }
.profile-subtitle span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.profile-hero h1 {
  margin: 0;
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .98;
  font-weight: 500;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.profile-meta { display: grid; justify-items: end; gap: 9px; min-width: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; text-align: right; line-height: 1.55; }
.confidence { color: var(--green); font-weight: 750; text-transform: capitalize; }

.profile-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 50px rgba(20, 32, 51, .07);
}
.profile-main { margin-top: 34px; padding: clamp(26px, 4vw, 52px); }
.profile-main h2 { margin: 0 0 20px; font-size: 22px; }
.profile-main > section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.profile-main > section:first-child { padding-top: 0; }
.summary { margin: 0 0 38px; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 24px; line-height: 1.5; }

.table-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.table-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 4vw, 40px); font-weight: 500; }
.table-heading p:last-child { max-width: 380px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; text-align: right; }
.details-table-wrap { width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.business-details-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.business-details-table tr { border-bottom: 1px solid var(--line); }
.business-details-table tr:last-child { border-bottom: 0; }
.business-details-table th,
.business-details-table td { min-width: 0; padding: 18px 20px; vertical-align: top; overflow-wrap: anywhere; line-height: 1.55; text-align: left; }
.business-details-table th { width: 235px; color: var(--muted); background: var(--surface-soft); font-size: 12px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.business-details-table td { color: var(--ink); background: var(--surface); }
.business-details-table a { color: var(--green); text-underline-offset: 3px; }
.summary-cell { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.65 !important; }
.capitalize { text-transform: capitalize; }
.table-list { margin: 0; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fact { min-width: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { padding-right: 24px; }
.fact:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.fact-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.fact-value { overflow-wrap: anywhere; line-height: 1.5; }
.fact-value a { color: var(--green-dark); }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chip-list li { min-width: 0; max-width: 100%; overflow-wrap: anywhere; padding: 8px 10px; border: 1px solid #c8d7d2; color: var(--green-dark); background: #f6faf8; font-size: 14px; }
.plain-list { margin: 0; padding-left: 19px; line-height: 1.65; }
.plain-list li, .plain-list a { overflow-wrap: anywhere; }
.plain-list li + li { margin-top: 8px; }
.disclosure { margin-top: 28px; padding-top: 20px; overflow-wrap: anywhere; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.55; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.refresh-form { margin: 0; }
.refresh-form .button { height: 100%; }
.refresh-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.profile-alert { margin: 0 0 24px; }
.button.secondary { color: var(--ink); background: transparent; border: 1px solid var(--ink); }
.ownership-callout { margin-top: 34px; padding: 28px !important; border: 1px solid color-mix(in srgb, var(--green) 25%, var(--line)); border-radius: 16px; background: var(--surface-soft); }
.ownership-callout p { max-width: 720px; overflow-wrap: anywhere; line-height: 1.65; }
.correction-action { margin: 18px 0 0; font-size: 14px; }
.profile-actions .button, .ownership-callout .button {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.simple-page { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0; }
.simple-page h1 { overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 48px; font-weight: 500; }
.simple-page p, .simple-page li, .simple-page a { overflow-wrap: anywhere; line-height: 1.7; }
.claim-form { display: grid; gap: 10px; margin-top: 30px; }
.claim-form label { margin-top: 10px; font-weight: 750; }
.claim-form input, .claim-form textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #b8c5cb;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--input);
}
.claim-form textarea { resize: vertical; }
.claim-form .button { justify-self: start; margin-top: 14px; }
.claim-form .attestation { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.55; }
.claim-form .attestation input { width: auto; margin-top: 5px; }
.field-help { margin: 0; color: var(--muted); font-size: 13px; }
.retention-note { padding: 12px 14px; border-left: 3px solid var(--green); background: var(--surface-soft); color: var(--muted); font-size: 13px; }
code { padding: 2px 5px; background: var(--surface-soft); overflow-wrap: anywhere; }

html[data-theme="dark"] {
  --ink: #edf7f4;
  --muted: #a7bbb5;
  --line: #2b4641;
  --surface: #11221f;
  --surface-soft: #172c28;
  --wash: #091512;
  --green: #62d4bd;
  --green-dark: #8be3d1;
  --gold: #efc96c;
  --danger: #ff9b9b;
  --header: rgba(9, 21, 18, .88);
  --input: #132722;
  --hero-glow: rgba(98, 212, 189, .12);
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  color-scheme: dark;
}
html[data-theme="dark"] .business-logo,
html[data-theme="dark"] .logo-frame { background: #f7faf9; }
html[data-theme="dark"] .button { color: #071310; background: var(--green); }
html[data-theme="dark"] .button.secondary { color: var(--ink); background: transparent; border-color: var(--ink); }
html[data-theme="dark"] .find-form button { color: #071310; }

@media (max-width: 760px) {
  .find-stage { padding: 34px 16px; }
  .find-core { transform: translateY(-5vh); }
  .landing-header { width: calc(100% - 32px); padding: 16px 0; }
  .find-core h1 { font-size: 49px; }
  .find-intro { margin: 18px auto 26px; }
  .find-form { grid-template-columns: 1fr; padding: 8px; }
  .find-form input { padding: 18px 12px; font-size: 16px; }
  .find-form input::placeholder { font-size: 11px; }
  .find-form button { width: 100%; }
  .quiet-footer { flex-wrap: wrap; gap: 12px 20px; padding-inline: 16px; }
  .profile-header { flex-direction: column; align-items: stretch; padding: 18px 20px; }
  .header-actions { justify-content: space-between; gap: 14px; }
  .profile-header nav { width: auto; justify-content: flex-start; }
  .profile-shell { width: min(100% - 28px, 1180px); padding-top: 34px; }
  .profile-hero { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 20px; border-radius: 20px; }
  .logo-frame { width: 72px; height: 72px; padding: 7px; border-radius: 17px; }
  .business-logo { border-radius: 11px; }
  .profile-meta { grid-column: 1 / -1; }
  .profile-meta { text-align: left; }
  .profile-main { padding: 28px 22px; }
  .table-heading { align-items: start; flex-direction: column; gap: 8px; }
  .table-heading p:last-child { text-align: left; }
  .business-details-table,
  .business-details-table tbody,
  .business-details-table tr,
  .business-details-table th,
  .business-details-table td { display: block; width: 100%; }
  .business-details-table tr { padding: 0; }
  .business-details-table th { padding: 14px 16px 6px; border: 0; }
  .business-details-table td { padding: 8px 16px 16px; }
  .facts { grid-template-columns: 1fr; }
  .fact:nth-child(odd), .fact:nth-child(even) { padding: 18px 0; border-left: 0; }
}

@media (max-width: 360px) {
  .profile-header { padding-inline: 14px; }
  .profile-shell { width: calc(100% - 20px); }
  .profile-hero { grid-template-columns: 1fr; }
  .logo-frame { width: 64px; height: 64px; }
  .profile-meta { grid-column: auto; }
  .profile-main { padding: 24px 16px; }
  .profile-actions, .refresh-form, .profile-actions .button, .refresh-form .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
}
