@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --paper: #f6f5f0;
  --surface: #fffefa;
  --ink: #20282b;
  --muted: #727a7b;
  --muted-light: #a4a9a6;
  --teal: #254a47;
  --teal-dark: #193c39;
  --teal-soft: #e8efeb;
  --line: #e4e5df;
  --warning: #9e5b38;
  --warning-bg: #fbf2eb;
  --success: #3c7561;
  --shadow: 0 18px 54px rgba(36, 49, 45, .055);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.topbar {
  min-height: 72px;
  padding: 0 clamp(22px, 5.4vw, 82px);
  border-bottom: 1px solid rgba(37, 74, 71, .1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: -.025em; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--teal); border-radius: 50%; color: var(--teal); font-size: 14px; font-weight: 800; }
.top-link { color: var(--teal); font-size: 12px; font-weight: 700; text-decoration: none; }
.top-link span, .source-link span { display: inline-block; margin-left: 4px; font-size: 14px; }

.page-shell { width: min(100% - 40px, 920px); margin: 0 auto; }
.hero { padding: clamp(56px, 9vw, 104px) 0 36px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #687471; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #b28b5b; box-shadow: 0 0 0 4px rgba(178, 139, 91, .13); }
h1 { margin: 22px 0 14px; font-size: clamp(42px, 7vw, 68px); line-height: 1.03; letter-spacing: -.065em; font-weight: 800; }
h1 span { color: var(--teal); }
.hero-copy { margin: 0; color: #747b7d; font-size: 15px; line-height: 1.75; }

.lookup-card { position: relative; padding: 27px 30px 23px; border: 1px solid rgba(37, 74, 71, .09); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.field-label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 800; }
.search-row { display: flex; gap: 10px; }
.input-wrap { position: relative; flex: 1; }
.search-icon { position: absolute; top: 50%; left: 17px; width: 20px; height: 20px; color: #8d9692; transform: translateY(-50%); pointer-events: none; }
input { width: 100%; min-height: 54px; padding: 0 16px 0 48px; border: 1px solid #dfe3dc; border-radius: 10px; outline: none; background: #fff; color: var(--ink); font: inherit; font-size: 14px; transition: border-color .18s, box-shadow .18s; }
input::placeholder { color: #a5aaa7; }
input:focus { border-color: #78978c; box-shadow: 0 0 0 3px rgba(86, 128, 112, .13); }
button { border: 0; cursor: pointer; font: inherit; }
.search-row button { min-width: 210px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 0 20px; border-radius: 10px; background: var(--teal); color: white; font-size: 13px; font-weight: 800; transition: background .18s, transform .18s; }
.search-row button:hover { background: var(--teal-dark); transform: translateY(-1px); }
.search-row button:focus-visible { outline: 3px solid rgba(37, 74, 71, .3); outline-offset: 3px; }
.search-row button:disabled { cursor: wait; opacity: .78; transform: none; }
.button-arrow { font-size: 17px; font-weight: 500; }
.form-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; color: #929996; font-size: 10px; }
.secure-note { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.secure-note svg { width: 14px; height: 14px; }
.form-message { display: none; margin: 12px 0 0; color: var(--warning); font-size: 12px; line-height: 1.5; }
.form-message.is-visible { display: block; }

.result-area { margin-top: 27px; }
.company-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); animation: reveal .32s ease both; }
.company-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 27px 30px 23px; border-bottom: 1px solid var(--line); }
.company-kicker { margin: 0 0 8px; color: #929996; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.company-head h2 { max-width: 650px; margin: 0; font-size: clamp(21px, 4vw, 30px); line-height: 1.25; letter-spacing: -.045em; }
.status-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; margin-top: 3px; padding: 8px 11px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font-size: 10px; font-weight: 800; }
.status-pill::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ''; }
.status-pill.is-risk { background: var(--warning-bg); color: var(--warning); }
.section-pad { padding: 24px 30px; }
.section-title { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; font-size: 12px; font-weight: 800; letter-spacing: -.01em; }
.section-title::before { width: 17px; height: 2px; background: #af9066; content: ''; }
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px 24px; }
.fact-label { display: block; margin-bottom: 6px; color: #939b98; font-size: 10px; font-weight: 700; }
.fact-value { display: block; overflow-wrap: anywhere; color: #30383a; font-size: 12px; font-weight: 700; line-height: 1.5; }
.fact-address { grid-column: span 2; }
.address-flag { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 8px; border-radius: 6px; background: var(--teal-soft); color: var(--teal); font-size: 9px; font-weight: 800; }
.address-flag.is-risk { background: var(--warning-bg); color: var(--warning); }
.activity { margin-top: 20px; padding-top: 17px; border-top: 1px solid #eeefea; }
.activity .fact-value { font-weight: 600; }
.termination-note { margin: 8px 0 0; color: #8a6a57; font-size: 10px; }

.risk-panel { margin: 0 20px 22px; padding: 19px 20px; border: 1px solid #f0d9c8; border-radius: 12px; background: var(--warning-bg); }
.risk-panel.is-clear { border-color: #d9e6df; background: #f1f6f2; }
.risk-heading { display: flex; align-items: flex-start; gap: 12px; }
.risk-mark { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(158, 91, 56, .12); color: var(--warning); font-size: 14px; font-weight: 800; }
.is-clear .risk-mark { background: rgba(60, 117, 97, .12); color: var(--success); }
.risk-heading h3 { margin: 2px 0 4px; color: #623c2c; font-size: 14px; letter-spacing: -.02em; }
.is-clear .risk-heading h3 { color: #315d4c; }
.risk-heading p { margin: 0; color: #876d5c; font-size: 10px; line-height: 1.55; }
.is-clear .risk-heading p { color: #637c6f; }
.risk-list { margin: 14px 0 0 40px; padding: 0; color: #704c3a; font-size: 11px; line-height: 1.65; }
.risk-list li + li { margin-top: 5px; }

.people-section { border-top: 1px solid var(--line); }
.people-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.person-card { padding: 14px 15px; border: 1px solid #e9ebe5; border-radius: 10px; background: #fff; }
.person-name { display: block; font-size: 12px; font-weight: 800; line-height: 1.5; }
.person-detail { display: block; margin-top: 5px; color: #858d89; font-size: 10px; line-height: 1.5; }
.person-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.mini-badge { padding: 4px 7px; border-radius: 5px; background: var(--warning-bg); color: var(--warning); font-size: 9px; font-weight: 800; }
.empty-text { margin: 0; color: #929996; font-size: 11px; }

.details-list { border-top: 1px solid var(--line); }
.details-list details { border-bottom: 1px solid var(--line); }
.details-list details:last-child { border-bottom: 0; }
.details-list summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 30px; cursor: pointer; list-style: none; font-size: 11px; font-weight: 800; }
.details-list summary::-webkit-details-marker { display: none; }
.details-list summary::after { color: var(--teal); content: '+'; font-size: 18px; font-weight: 500; }
.details-list details[open] summary::after { content: '−'; }
.detail-content { padding: 0 30px 20px; color: #68716d; font-size: 11px; line-height: 1.65; }
.detail-content p { margin: 0; }
.detail-content p + p { margin-top: 8px; }
.detail-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.detail-list li { padding: 10px 12px; border-radius: 8px; background: #f7f8f5; }
.detail-list strong { color: var(--ink); }
.detail-hint { color: #959d99; }

.privacy-note { display: flex; align-items: flex-start; gap: 12px; max-width: 680px; margin: 30px auto 58px; padding: 0 8px; }
.privacy-icon { flex: 0 0 auto; width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #9fa9a2; border-radius: 50%; color: #6e7b74; font-family: Georgia, serif; font-size: 12px; font-style: italic; }
.privacy-note p { margin: 1px 0 0; color: #89908e; font-size: 10px; line-height: 1.65; }
.site-footer { padding: 22px 20px 27px; border-top: 1px solid rgba(37, 74, 71, .1); text-align: center; }
.source-link { display: inline-block; color: var(--teal); font-size: 11px; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.disclaimer { margin: 8px auto 17px; color: #949a98; font-size: 9px; line-height: 1.5; }
.footer-brand { color: #9aa09d; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.footer-brand span { padding: 0 4px; color: #b28b5b; }
.loading-card, .empty-card { display: flex; align-items: center; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: #727a77; font-size: 12px; }
.spinner { width: 19px; height: 19px; border: 2px solid #dce5df; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 680px) {
  .topbar { min-height: 62px; padding-inline: 18px; }
  .brand { gap: 8px; font-size: 10px; }
  .brand-mark { width: 26px; height: 26px; }
  .top-link { font-size: 10px; }
  .page-shell { width: min(100% - 28px, 920px); }
  .hero { padding-top: 59px; padding-bottom: 27px; }
  .hero-copy { max-width: 420px; margin-inline: auto; font-size: 13px; }
  .desktop-break { display: none; }
  .lookup-card { padding: 20px 17px 18px; border-radius: 14px; }
  .search-row { flex-direction: column; }
  .search-row button { min-height: 50px; min-width: 0; }
  .form-meta { align-items: flex-start; flex-direction: column; font-size: 9px; }
  .company-head { flex-direction: column; gap: 12px; padding: 22px 20px 19px; }
  .status-pill { margin: 0; }
  .section-pad { padding: 20px; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
  .fact-address { grid-column: span 2; }
  .risk-panel { margin: 0 12px 14px; padding: 16px; }
  .risk-list { margin-left: 0; padding-left: 18px; }
  .people-columns { grid-template-columns: 1fr; }
  .details-list summary { padding: 15px 20px; }
  .detail-content { padding: 0 20px 18px; }
  .privacy-note { margin: 24px auto 43px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
