:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f5f2;
  color: #141a1c;
  --ink: #141a1c;
  --muted: #526064;
  --line: #dce2de;
  --blue: #3978ff;
  --button: #245bd2;
  --gradient: linear-gradient(105deg, #3978ff 5%, #7ba6ff 48%, #c7f456 105%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 74px; border-bottom: 1px solid var(--line); }
.site-header a { text-decoration: none; }
.brand { font-size: 1.1rem; font-weight: 800; }
nav { display: flex; align-items: center; gap: 20px; font-size: .875rem; font-weight: 700; }
.nav-pill { padding: 11px 16px; background: var(--ink); color: #fff; border-radius: 999px; white-space: nowrap; }
.nav-link:hover, .brand:hover { color: var(--button); }
.nav-pill:hover { background: #354044; }

.hero { text-align: center; padding: clamp(45px, 8vw, 88px) 0 46px; }
.hero h1 { font-size: clamp(2.75rem, 7.1vw, 5.5rem); line-height: .99; letter-spacing: -.065em; }
.hero h1 span {
  display: inline-block;
  color: var(--button);
  background: var(--gradient);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-inline: .04em;
}
.hero p { max-width: 550px; margin: 20px auto 0; color: var(--muted); line-height: 1.55; font-size: 1.1rem; }
.lookup-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.panel, .guide { border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 3vw, 30px); }
.panel { background: white; min-width: 0; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.1; letter-spacing: -.04em; }
h3 { font-size: 1.18rem; line-height: 1.3; letter-spacing: -.02em; }
.search-panel label { display: block; font-size: .875rem; font-weight: bold; margin: 20px 0 8px; }
.input-row { display: flex; gap: 9px; }
input { flex: 1; min-width: 0; width: 100%; color: var(--ink); padding: 11px 12px; border: 1px solid #bbc7c0; border-radius: 8px; }
input::placeholder { color: #626e70; }
input[aria-invalid="true"] { border-color: #a13b30; }
button { min-height: 46px; padding: 11px 19px; border: 0; border-radius: 8px; color: #fff; background: var(--button); font-weight: bold; box-shadow: 0 8px 24px #3978ff29; cursor: pointer; }
button:hover:enabled { background: #1949ac; }
button:disabled { cursor: wait; opacity: .65; }
.hint, .form-status { margin-top: 11px; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.form-status[data-error] { color: #8c2922; }
.guide { background: linear-gradient(105deg, #edf3ff, #f3f9e7); border-color: #dce4df; }
.guide h2 { font-size: clamp(1.3rem, 2.8vw, 1.65rem); }
.guide ul { margin: 16px 0 0; padding-left: 20px; color: #354247; line-height: 1.45; }
.guide li + li { margin-top: 7px; }
.guide li::marker { color: var(--button); }

.results { margin-top: 26px; }
.company-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.company-heading > div { min-width: 0; }
.company-heading h2, .company-heading p, dd, .risk-list li { overflow-wrap: anywhere; }
#company-fullname:not(:empty) { margin-top: 9px; color: var(--muted); line-height: 1.45; }
.company-status { max-width: 340px; padding: 8px 12px; background: #eef3ff; border-radius: 8px; font-size: .875rem; line-height: 1.45; font-weight: bold; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.report-card h3 { margin-bottom: 14px; }
.facts { display: grid; gap: 10px; }
.facts > div { display: grid; grid-template-columns: minmax(0, 125px) minmax(0, 1fr); gap: 10px; }
dt { font-size: .875rem; color: var(--muted); line-height: 1.5; }
dd, .person, .risk-list { line-height: 1.45; }
.person + .person { margin-top: 8px; }
.person-note { color: var(--muted); font-size: .875rem; }
details { border-top: 1px solid var(--line); padding-top: 11px; margin-top: 12px; }
summary { cursor: pointer; font-weight: bold; }
#founders { margin-top: 9px; }
.risk-list { margin: 0; padding-left: 18px; }
.risk-list li + li { margin-top: 7px; }
.risk-alert::marker { color: #a13b30; }
.finance-panel { margin-top: 14px; }
.finance-header, .finance-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.finance-header { justify-content: space-between; }
.finance-header h3 { margin-bottom: 5px; }
.finance-note { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.finance-controls { margin: 18px 0 10px; }
.finance-controls label { font-size: .875rem; font-weight: bold; }
.finance-controls select {
  min-height: 42px; padding: 7px 12px; border: 1px solid #bbc7c0; border-radius: 8px;
  color: var(--ink); background: white; font: inherit;
}
.finance-controls a { color: var(--button); font-size: .875rem; text-underline-offset: 3px; }
.finance-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
  gap: 8px; margin-top: 14px;
}
.finance-summary:empty { display: none; }
.finance-summary > div { padding: 11px; border-radius: 8px; background: #eef3ff; min-width: 0; }
.finance-summary dd { font-weight: bold; overflow-wrap: anywhere; margin-top: 4px; }
.finance-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 8px; font-size: .875rem; }
.finance-table th, .finance-table td { text-align: left; vertical-align: top; padding: 8px 4px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.finance-table th:first-child { width: 3.2rem; }
.finance-table th:last-child { width: 34%; }
.finance-table :is(th, td):last-child { text-align: right; font-variant-numeric: tabular-nums; }
.finance-source { margin-top: 15px; }
.site-footer { margin-top: auto; padding: 38px 0 24px; }
.site-footer a { display: inline-block; padding-top: 17px; border-top: 1px solid var(--line); width: 100%; color: var(--muted); font-size: .875rem; text-underline-offset: 3px; }
.site-footer p { margin-top: 8px; font-size: .8125rem; line-height: 1.4; color: var(--muted); }

@media (max-width: 740px) {
  .shell { width: calc(100% - 36px); }
  .lookup-layout, .report-grid { grid-template-columns: minmax(0, 1fr); }
  .company-heading { flex-direction: column; }
}
@media (max-width: 460px) {
  .site-header { min-height: 63px; gap: 8px; }
  .nav-link { display: none; }
  .nav-pill { padding: 9px 10px; font-size: .8125rem; }
  .hero { padding-bottom: 34px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.75rem); }
  .hero p { font-size: 1rem; }
  .input-row { flex-direction: column; }
  .facts > div { grid-template-columns: minmax(0, 100px) minmax(0, 1fr); }
}
@media (forced-colors: active) {
  .hero h1 span { background: none; color: CanvasText; -webkit-text-fill-color: currentColor; }
}
