:root {
  color-scheme: light;
  --surface: #ffffff;
  --surface-alt: #f4f7fc;
  --ink: #1e293b;
  --text: #475569;
  --text-muted: #64748b;
  --border: rgba(15, 23, 42, .08);
  --line-control: rgba(15, 23, 42, .16);
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eef3ff;
  --indigo: #4338ca;
  --success: #047857;
  --success-bg: #e8f8f0;
  --warn: #92400e;
  --warn-bg: #fff4df;
  --danger: #b91c1c;
  --danger-bg: #fff0f0;
  --radius: 18px;
  --shadow: 0 20px 50px -18px rgba(15, 23, 42, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--surface-alt);
  color: var(--text);
  font: 1rem/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4 { margin: 0 0 .55em; color: var(--ink); line-height: 1.2; }
h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.25rem);
  font-weight: 660;
  line-height: 1.14;
  letter-spacing: -.022em;
  overflow-wrap: anywhere;
}
h2 { font-size: clamp(1.4rem, 2.2vw, 1.95rem); font-weight: 650; letter-spacing: -.018em; }
h3 { font-size: 1.08rem; font-weight: 640; letter-spacing: -.01em; }
p { margin: 0 0 .95em; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue-dark); text-underline-offset: .2em; }
a:hover { color: var(--indigo); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button:disabled { cursor: wait; opacity: .65; }
img, svg { vertical-align: middle; }
code, pre { font: .88em/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; }
small { font-size: .81rem; }
[hidden], .hidden { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(30, 41, 59, .07);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.header-inner, .header-actions, .main-nav { display: flex; align-items: center; }
.header-inner { min-height: 78px; justify-content: space-between; gap: 14px; }
.header-actions { flex: none; gap: 10px; }
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { flex: 0 0 auto; width: 50px; height: 50px; color: var(--blue); }
.brand-lockup {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 48px;
  line-height: 1;
}
.brand-head {
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
  line-height: 1;
}
.brand-name {
  display: inline-block;
  margin-top: 3px;
  color: #0f172a;
  font-size: 1.32rem;
  font-weight: 840;
  letter-spacing: -.032em;
  line-height: .88;
}
.brand-sup {
  position: static;
  top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 5.5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
  color: #fff;
  font-size: .61rem;
  font-weight: 780;
  letter-spacing: .01em;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(10, 102, 230, .2);
}
.brand-sub {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: -1px;
  color: #475569;
  font-size: .69rem;
  font-weight: 560;
  letter-spacing: -.005em;
  line-height: 1.12;
}
.brand-sub span { display: block; white-space: nowrap; }
.main-nav { gap: 2px; min-width: 0; }
.main-nav a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--text);
  font-size: .84rem;
  font-weight: 610;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav [aria-current] { background: var(--blue-soft); color: var(--blue-dark); }
.language-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #f0f2f6;
}
.language-switch a {
  padding: 3px 7px;
  color: var(--text-muted);
  font-size: .69rem;
  font-weight: 730;
  text-decoration: none;
}
.language-switch [aria-current] {
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .13);
}
.skip-link {
  position: fixed;
  z-index: 40;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  transform: translateY(-180%);
  background: var(--surface);
}
.skip-link:focus { transform: translateY(0); }

.main-content { flex: 1; padding: clamp(35px, 5vw, 72px) 0 clamp(60px, 8vw, 110px); }
.page-heading { margin-bottom: clamp(24px, 3vw, 42px); }
.page-heading h1 { margin-bottom: 14px; }
.lead { max-width: 64ch; color: var(--text); font-size: clamp(1rem, 1.45vw, 1.18rem); }
.page-section { margin-top: clamp(52px, 7vw, 92px); }
.card, .callout {
  min-width: 0;
  padding: clamp(20px, 2.65vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-wrap: anywhere;
}
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; }
.callout p { max-width: 72ch; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: .9rem;
  font-weight: 670;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn svg { flex: none; }
.btn-sm { min-height: 37px; padding-inline: 12px; border-radius: 9px; font-size: .83rem; }
.btn-primary, .btn-success { background: var(--blue); color: #fff; }
.btn-primary:hover, .btn-success:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { border-color: var(--line-control); background: var(--surface); color: var(--ink); }
.btn-outline:hover { border-color: #b8cafa; background: var(--blue-soft); color: var(--blue-dark); }
.header-account { background: #eef4ff; color: #1d4ed8; border-color: #d4e2ff; border-radius: 999px; padding-inline: 16px; }
.header-account:hover, .header-account[aria-current] { background: var(--blue); color: #fff; border-color: var(--blue); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.text-link { font-weight: 660; }
.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .19em;
  cursor: pointer;
}

.form-group { min-width: 0; margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--ink); font-size: .85rem; font-weight: 640; }
.form-control {
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--line-control);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: .91rem;
}
.form-control:disabled { background: var(--surface-alt); color: var(--text-muted); }
.form-control::placeholder { color: var(--text-muted); opacity: 1; }
.form-control:focus { border-color: var(--blue); }
textarea.form-control { resize: vertical; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-alt);
}
.tab-btn {
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: .84rem;
  font-weight: 640;
  cursor: pointer;
}
.tab-btn:hover { color: var(--blue-dark); }
.tab-btn.active { border-color: var(--border); background: var(--surface); color: var(--blue-dark); box-shadow: 0 1px 2px rgba(15, 23, 42, .10); }

.alert { margin-bottom: 14px; padding: 12px 15px; border: 1px solid var(--border); border-radius: 11px; }
.alert-info, .badge-info { background: var(--blue-soft); color: var(--blue-dark); }
.alert-success, .badge-success { background: var(--success-bg); color: var(--success); }
.alert-warn, .badge-warn { background: var(--warn-bg); color: var(--warn); }
.alert-danger, .badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-neutral { background: #edf0f5; color: var(--text); }
.badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 660;
  line-height: 1.4;
}
.badge::before { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); content: ""; }
.badge-info::before { background: var(--blue); }
.badge-success::before { background: #059669; }
.badge-warn::before { background: #d97706; }
.badge-danger::before { background: #dc2626; }

.table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 13px;
}
table { width: 100%; border-collapse: collapse; background: var(--surface); color: var(--text); font-size: .9rem; text-align: left; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--border); vertical-align: middle; }
thead th { background: var(--surface-alt); color: var(--ink); font-size: .79rem; font-weight: 690; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: #f8faff; }
.muted, .kpi-label { color: var(--text-muted); }
.kpi-num { color: var(--ink); font-size: clamp(1.45rem, 3vw, 2.3rem); font-weight: 730; }
.action-result:not(:empty) { margin-top: 16px; }
.code-block {
  padding: 12px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-alt);
}

.site-footer {
  padding: clamp(40px, 5.5vw, 70px) 0 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  font-size: .87rem;
}
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr .88fr 1fr; gap: 22px 34px; }
.footer-grid strong { display: block; margin-bottom: 11px; color: var(--ink); }
.footer-grid a:not(.brand-logo) { display: block; margin-bottom: 6px; color: var(--text); overflow-wrap: anywhere; text-decoration: none; }
.footer-grid a:not(.brand-logo):hover { color: var(--blue-dark); text-decoration: underline; }
.footer-grid .footer-brand { margin-bottom: 12px; }
.footer-grid .brand-mark { width: 46px; height: 46px; }
.footer-grid .brand-lockup { height: 44px; }
.footer-grid .brand-name { font-size: 1.2rem; }
.footer-grid .brand-sup { font-size: .57rem; padding: 2px 5px; }
.footer-grid .brand-sub { font-size: .65rem; }
.footer-grid p { margin-bottom: 9px; }
.footer-note { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .81rem; }

@media (max-width: 1120px) {
  .header-inner { flex-wrap: wrap; min-height: 0; gap: 7px 14px; padding: 9px 0 7px; }
  .main-nav { order: 1; flex-basis: 100%; flex-wrap: wrap; gap: 4px; }
}
@media (max-width: 900px) {
  .grid-4, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .main-content { padding-top: 34px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .header-inner { gap: 4px 8px; }
  .header-actions { gap: 5px; }
  .brand-logo { gap: 8px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-lockup { height: 40px; }
  .brand-name { font-size: 1.08rem; margin-top: 2px; }
  .brand-sup { font-size: .54rem; padding: 1.5px 4.5px; }
  .brand-sub { font-size: .6rem; line-height: 1.1; }
  .header-account { padding-inline: 8px; }
  .header-account svg { display: none; }
  .main-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { flex: 0 0 auto; padding: 6px 10px; font-size: .78rem; }
  .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: clamp(2rem, 8.7vw, 2.55rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
/* Homepage hero and report sample */
.main-home {
  padding-top: clamp(40px, 5.6vw, 80px);
  background: radial-gradient(ellipse 630px 400px at 77% 0, #edf2ff, transparent 100%), var(--surface);
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(22px, 5vw, 72px);
}
.hero-copy { min-width: 0; }
.hero-context {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 17px;
  padding: 4px 11px;
  border: 1px solid #dbe5fd;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: .77rem;
  font-weight: 720;
}
.hero-context::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}
.hero-copy h1 { margin-bottom: 17px; }
.hero-copy h1 span { display: block; color: var(--blue-dark); }
.hero-copy .lead { max-width: 47ch; margin-bottom: 22px; }
.hero-actions .btn { min-height: 47px; padding-inline: 16px; }
.hero-cta {
  background: linear-gradient(100deg, var(--blue), var(--indigo));
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .62);
}
.hero-cta:hover { background: linear-gradient(100deg, var(--blue-dark), var(--indigo)); }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 18px;
  margin: 27px 0 0;
}
.hero-facts div { display: flex; flex-direction: column-reverse; gap: 1px; padding-right: 14px; }
.hero-facts div:not(:last-child) { border-right: 1px solid var(--border); }
.hero-facts dd { margin: 0; color: var(--ink); font-size: 1.43rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.hero-facts dt { color: var(--text-muted); font-size: .79rem; }

.sample-window {
  position: relative;
  min-width: 0;
  border: 1px solid #e3e8f3;
  border-radius: 21px;
  background: var(--surface);
  box-shadow: 0 26px 64px -23px rgba(33, 51, 96, .22), 0 5px 14px rgba(31, 45, 80, .04);
}
.sample-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 11px 19px;
  border-bottom: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  background: #fbfcff;
}
.sample-mark, .finding-icon, .drop-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.sample-mark, .drop-icon { width: 33px; height: 33px; }
.sample-chrome h2 { flex: 1; margin: 0; font-size: .99rem; font-weight: 730; letter-spacing: -.018em; }
.sample-position {
  flex: none;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: .73rem;
  font-weight: 640;
}
.sample-position code { color: var(--ink); }
.sample-tabs { display: flex; gap: 14px; padding: 0 19px; border-bottom: 1px solid var(--border); }
.sample-tabs button {
  margin-bottom: -1px;
  padding: 8px 1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text);
  font-size: .83rem;
  font-weight: 650;
  cursor: pointer;
}
.sample-tabs button[aria-selected="true"] { border-color: var(--blue); color: var(--blue-dark); }
.sample-body { min-height: 248px; padding: 15px 18px 0; }
.sample-request {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
  padding: 11px 13px;
  border: 1px solid #dfe8fc;
  border-radius: 10px;
  background: #f5f7ff;
}
.sample-request > span { color: var(--blue-dark); font-size: .72rem; font-weight: 690; }
.sample-request > strong { color: var(--ink); font-size: .91rem; font-weight: 720; line-height: 1.35; }
.sample-findings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.sample-finding {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fbfcfe;
}
.finding-icon { width: 28px; height: 28px; border-radius: 8px; }
.sample-match .finding-icon { color: var(--success); background: var(--success-bg); }
.sample-excluded .finding-icon { color: var(--danger); background: var(--danger-bg); }
.sample-review .finding-icon { color: var(--warn); background: var(--warn-bg); }
.sample-finding h3 { margin: 0 0 3px; font-size: .84rem; line-height: 1.35; overflow-wrap: anywhere; }
.sample-finding p, .sample-source-view p { margin: 0; color: var(--text); font-size: .77rem; line-height: 1.43; overflow-wrap: anywhere; }
.sample-note { margin: 0; padding: 10px 18px 13px; color: var(--text-muted); font-size: .76rem; }
.sample-source-view > div { padding: 9px 12px; border-bottom: 1px solid var(--border); }
.sample-source-view > div:first-child { background: var(--surface-alt); border-radius: 9px; border-bottom: 0; }
.sample-source-view strong, .sample-source-view a { color: var(--ink); font-size: .85rem; font-weight: 690; }
.sample-source-view a { color: var(--blue-dark); }

/* Shared analysis form */
.home-launch { margin-top: clamp(23px, 3vw, 40px); }
.analyze-card { padding: clamp(18px, 2.35vw, 29px); box-shadow: var(--shadow); }
#tz-analyze-form { scroll-margin-top: 124px; }
.analyze-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 13px 18px;
  margin-bottom: 15px;
}
.analyze-heading h2 { margin-bottom: 4px; font-size: 1.28rem; }
.analyze-heading p { font-size: .88rem; }
.analyze-card .mode-tabs { max-width: 100%; margin: 0; background: #f1f3f8; }
.analyze-card .mode-tabs .tab-btn { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 6px; }
.analyze-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: end;
  gap: 13px;
}
.analyze-controls:has(.analyze-catalog) {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr) max-content;
}
.analyze-controls .form-group { margin-bottom: 0; }
.analyze-controls .alert { grid-column: 1 / -1; order: 1; margin: 0; }
.form-submit { min-height: 52px; padding-inline: 24px; }
.analyze-source { min-width: 0; }
.drop-zone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 12px;
  border: 1px dashed #a8b9d9;
  border-radius: 11px;
  background: #f7f9ff;
}
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--blue); background: var(--blue-soft); }
.drop-zone:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.drop-copy { min-width: 0; color: var(--ink); font-size: .85rem; line-height: 1.35; }
.drop-copy small { display: block; margin-top: 3px; color: var(--text-muted); font-size: .73rem; }
.drop-copy [data-file-name] { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 11px;
}
.form-examples { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--text-muted); font-size: .8rem; }
.form-region-details { font-size: .8rem; color: var(--text-muted); }
.form-region-details summary {
  cursor: pointer;
  list-style: none;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.form-region-details summary::-webkit-details-marker { display: none; }
.form-region-details[open] summary { color: var(--blue-dark); }
.form-region-inner { margin-top: 8px; min-width: 240px; }

@media (max-width: 1000px) {
  .home-hero { gap: 25px; }
  .analyze-controls:has(.analyze-catalog) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .hero-copy .lead { max-width: 55ch; }
  .sample-body { min-height: 0; }
}
@media (max-width: 670px) {
  .main-home { padding-top: 32px; }
  .analyze-controls, .analyze-controls:has(.analyze-catalog) { grid-template-columns: minmax(0, 1fr); }
  .analyze-top { gap: 10px; }
}
@media (max-width: 520px) {
  .hero-copy .lead { margin-bottom: 16px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { min-height: 43px; padding-inline: 11px; font-size: .83rem; }
  .hero-facts { gap: 10px; margin-top: 18px; }
  .hero-facts div { padding-right: 8px; }
  .hero-facts dt { font-size: .72rem; }
  .sample-chrome { gap: 8px; min-height: 52px; padding: 9px 11px; }
  .sample-mark { width: 28px; height: 28px; }
  .sample-chrome h2 { font-size: .89rem; }
  .sample-position { padding-inline: 5px; font-size: .66rem; }
  .sample-tabs { padding-inline: 11px; }
  .sample-body { padding: 11px 10px 0; }
  .sample-request { margin-bottom: 8px; padding: 8px 9px; }
  .sample-findings { gap: 6px; }
  .sample-finding { grid-template-columns: 20px minmax(0, 1fr); gap: 5px; padding: 8px 6px; }
  .finding-icon { width: 20px; height: 20px; border-radius: 6px; }
  .finding-icon svg { width: 13px; height: 13px; }
  .sample-finding h3 { font-size: .75rem; }
  .sample-finding p { font-size: .71rem; }
  .sample-note { padding-inline: 11px; }
  .analyze-card .mode-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .analyze-card .mode-tabs .tab-btn { gap: 4px; padding-inline: 3px; font-size: .75rem; line-height: 1.25; }
  .analyze-card .mode-tabs .tab-btn svg { flex: none; width: 14px; height: 14px; }
}
/* Homepage sections below the analysis form */
.home-content-section { margin-block-start: clamp(58px, 7.5vw, 108px); }
.home-content-section h2 {
  margin-block-end: 27px;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.evidence-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.evidence-timeline li {
  position: relative;
  min-width: 0;
  padding-inline-end: clamp(12px, 2.25vw, 32px);
}
.evidence-timeline li:not(:last-child)::after {
  position: absolute;
  inset-block-start: 24px;
  inset-inline: 115px 14px;
  height: 1px;
  background: #c7d5f0;
  content: "";
}
.evidence-step-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 15px;
  color: var(--blue-dark);
  font: 645 1.5rem/1 ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.home-section-icon {
  display: inline-grid;
  flex: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: var(--blue-dark);
  background: var(--blue-soft);
}
.evidence-timeline h3 { margin-block-end: 7px; font-size: 1.12rem; }
.evidence-timeline p { max-width: 31ch; }

.feature-bento, .audience-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.feature-panel {
  grid-column: span 5;
  min-width: 0;
  padding: clamp(20px, 2.6vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
}
.feature-panel h3 { margin: 13px 0 7px; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.feature-panel p { max-width: 48ch; }
.feature-evidence {
  grid-column: span 7;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--blue-soft);
  box-shadow: 0 20px 50px -18px rgba(15, 23, 42, .14);
}
.feature-evidence h3 { max-width: 24ch; font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
.feature-evidence .home-section-icon { color: var(--surface); background: var(--blue-dark); }
.feature-evidence-path {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 11px 0 0;
  padding: 1px;
  border-radius: 13px;
  overflow: hidden;
  list-style: none;
  background: #dbe4fb;
}
.feature-evidence-path li {
  display: flex;
  align-items: center;
  min-height: 49px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: .89rem;
  font-weight: 620;
}
.feature-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block-start: 12px;
}
.feature-formats span {
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-muted);
  font: 650 .75rem/1.5 ui-monospace, monospace;
}
.feature-api-link { font-size: .88rem; font-weight: 690; }
.home-audience-title {
  margin: clamp(28px, 4vw, 46px) 0 14px;
  font-size: clamp(1.3rem, 2vw, 1.68rem);
}
.audience-bento article {
  grid-column: span 5;
  padding: clamp(17px, 2vw, 29px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.audience-bento article:nth-child(3n + 1) { grid-column: span 7; background: var(--surface-alt); }
.audience-bento h4 { margin: 0 0 5px; font-size: 1.06rem; }
.audience-bento p { max-width: 53ch; }

.home-obsidian {
  --obsidian: #0b1020;
  padding-block: clamp(46px, 6.6vw, 94px);
  background: var(--obsidian);
  color: #b6c2d8;
  box-shadow: 0 0 0 100vmax var(--obsidian);
  clip-path: inset(0 -100vmax);
}
.home-obsidian h2 { max-width: 29ch; color: #f2f5ff; }
.home-comparison.table-wrap {
  border: 1px solid #2a344e;
  border-radius: 15px;
}
.home-comparison:focus-visible { outline-color: #a1bbff; }
.home-comparison table { min-width: 42rem; background: #121a2e; color: #cbd5e8; }
.home-comparison td, .home-comparison th { padding: 17px 15px; border-block-end: 1px solid #2a344e; }
.home-comparison thead th { background: #151e34; color: #f2f5ff; }
.home-comparison tbody th { width: 24%; color: #f2f5ff; font-weight: 650; }
.home-comparison tbody tr:hover { background: #172239; }
.home-comparison th:nth-child(2), .home-comparison td:nth-child(2) { background: #1a2641; color: #e6edff; }
.home-comparison-label { display: none; }
.home-comparison-value {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
}
.home-comparison-mark svg { display: block; width: 19px; height: 19px; }
.home-comparison-yes { color: #65d7ab; }
.home-comparison-no { color: #f2a097; }
.home-comparison-context { color: #98aad1; }
.home-data-policy {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: start;
  gap: 17px;
  margin-block-start: clamp(26px, 4vw, 52px);
  padding-block-start: clamp(24px, 3.5vw, 42px);
  border-block-start: 1px solid #2a344e;
}
.home-data-policy .home-section-icon { background: #1a2641; color: #b8caff; }
.home-data-policy h2 { max-width: none; margin-block-end: 8px; font-size: clamp(1.18rem, 2.3vw, 1.59rem); }
.home-data-policy p { max-width: 79ch; }
.home-data-policy a { align-self: center; color: #c2d2ff; font-size: .92rem; font-weight: 650; }
.home-data-policy a:hover { color: #fff; }

.home-questions {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 26px clamp(24px, 5vw, 70px);
}
.home-questions h2 { margin: 0; }
.home-question-list { border-block-start: 1px solid var(--border); }
.home-question-list details { border-block-end: 1px solid var(--border); }
.home-question-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 13px 3px;
  list-style: none;
  color: var(--ink);
  font-weight: 660;
  cursor: pointer;
}
.home-question-list summary::-webkit-details-marker { display: none; }
.home-question-list svg { flex: none; color: var(--blue-dark); }
.home-question-plus {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 200ms ease;
}
.home-question-list [open] .home-question-plus { transform: scaleY(0); }
.home-question-list p { max-width: 68ch; margin: 0; padding: 0 29px 16px 3px; }

@supports (interpolate-size: allow-keywords) and selector(details::details-content) {
  .home-question-list { interpolate-size: allow-keywords; }
  .home-question-list details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 250ms ease, content-visibility 250ms allow-discrete;
  }
  .home-question-list details[open]::details-content { block-size: auto; }
}

@media (max-width: 850px) {
  .home-content-section h2 { margin-block-end: 20px; }
  .evidence-timeline { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .evidence-timeline li {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: start;
    column-gap: 13px;
    padding: 0 0 18px;
  }
  .evidence-timeline li:last-child { padding-block-end: 0; }
  .evidence-timeline li:not(:last-child)::after {
    inset-block-start: 20px;
    inset-inline: 48px auto;
    width: 1px;
    height: 100%;
  }
  .evidence-step-mark { z-index: 1; grid-row: span 2; margin: 0; gap: 8px; font-size: 1rem; }
  .evidence-step-mark > span:first-child { width: 20px; }
  .evidence-step-mark .home-section-icon { width: 40px; height: 40px; border-radius: 12px; }
  .evidence-timeline h3 { margin-block: 2px 4px; }
  .evidence-timeline p { max-width: 57ch; grid-column: 2; }
  .feature-panel { grid-column: span 6; }
  .feature-evidence { grid-column: 1 / -1; grid-row: auto; }
  .home-questions { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .home-data-policy { grid-template-columns: 48px minmax(0, 1fr); }
  .home-data-policy h2 { margin-block-end: 7px; }
  .home-data-policy a { grid-column: 2; }
}

@media (max-width: 540px) {
  .feature-panel, .audience-bento article, .audience-bento article:nth-child(3n + 1) { grid-column: 1 / -1; }
  .home-comparison table, .home-comparison tbody { display: block; min-width: 0; }
  .home-comparison thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .home-comparison tbody tr { display: block; }
  .home-comparison tbody tr > * { border-bottom: 1px solid #2a344e; }
  .home-comparison tbody th { display: block; width: 100%; padding: 10px 11px; background: #151e34; }
  .home-comparison td {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr);
    gap: 8px;
    align-items: start;
    padding: 10px 11px;
    font-size: .8rem;
  }
  .home-comparison-label { display: block; color: #e6edff; font-weight: 650; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  .home-question-plus { transition: none; }
  .home-question-list details::details-content { transition: none; }
}

/* Pricing and methodology */
.price-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 36px;
}
.price-intro .lead { margin-bottom: 0; }

.price-offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.price-offers-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}
.price-offer {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface);
}
.price-offer h2 {
  margin-bottom: 12px;
  font-size: 1.23rem;
  line-height: 1.3;
  text-wrap: balance;
}
.price-offer-recommended {
  border-color: rgba(37, 99, 235, .38);
  box-shadow: var(--shadow);
}
.price-recommendation {
  position: absolute;
  inset: 0 auto auto clamp(22px, 3vw, 34px);
  transform: translateY(-50%);
  max-width: calc(100% - 38px);
  margin: 0;
  padding: 4px 10px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: .75rem;
  font-weight: 650;
}
.price-offer .price-value {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: clamp(2.06rem, 3.9vw, 2.9rem);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.05em;
  line-height: 1.05;
}
.price-value span { color: var(--text-muted); font-size: .58em; font-weight: 650; letter-spacing: 0; }
.price-credits { margin: 0 0 8px; color: var(--blue-dark); font-size: .88rem; font-weight: 650; }
.price-description { margin: 0 0 20px; color: var(--text); font-size: .94rem; line-height: 1.55; }
.price-offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: auto; }
.price-offer-actions .text-link { font-size: .89rem; }
.price-offer-compact { background: var(--surface-alt); }
.price-offer-compact .price-value { font-size: clamp(1.7rem, 3vw, 2.17rem); }
.price-offer-compact .price-description { max-width: 48ch; }

.price-invoice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: clamp(26px, 5vw, 70px);
  margin-top: clamp(60px, 7vw, 96px);
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
  scroll-margin-top: 105px;
}
.price-invoice-intro, .price-invoice-controls { min-width: 0; }
.price-invoice-intro h2 { max-width: 20ch; }
.price-invoice-intro p { max-width: 42ch; }
.price-invoice-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }

.reference-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.reference-icon svg { width: 22px; height: 22px; }

.product-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  padding-block: clamp(8px, 3vw, 32px);
}
.product-heading h1 { text-wrap: balance; }
.product-heading .lead { margin-bottom: 23px; }
.product-pipeline {
  min-width: 0;
  padding: clamp(24px, 3vw, 35px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.product-pipeline h2 { margin-bottom: 20px; font-size: 1.22rem; }
.product-pipeline p { font-size: .94rem; }
.product-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 21px;
  padding: 0;
  list-style: none;
}
.product-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: .79rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
}
.product-steps .pipeline-icon { margin: 0; }
.pipeline-arrow {
  position: absolute;
  inset: 15px -.78rem auto auto;
  width: 1.16rem;
  height: 12px;
  color: var(--text-muted);
}
.product-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(56px, 7vw, 94px);
  scroll-margin-top: 105px;
}
.product-method {
  min-width: 0;
  padding: clamp(24px, 3vw, 35px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
}
.product-method p { max-width: 54ch; }
.product-pilot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: clamp(40px, 6vw, 78px);
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius);
  background: var(--blue-soft);
  overflow-wrap: anywhere;
  scroll-margin-top: 105px;
}

/* Legal and API reference */
.reference-page {
  --reference-inset: clamp(23px, 4vw, 46px);
  max-width: 1072px;
  margin-inline: auto;
}
.reference-heading { margin-bottom: clamp(22px, 4vw, 40px); }
.reference-heading h1 { margin: 0; }
.reference-heading .lead { margin: 12px 0 0; }
.reference-category { margin-bottom: 10px; color: var(--blue-dark); font-size: .88rem; font-weight: 660; }
.reference-draft { margin-top: 15px; }
.legal-reference .reference-heading h1 { max-width: 31ch; text-wrap: balance; }
.legal-layout {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 3.2fr);
  gap: clamp(22px, 4vw, 48px);
}
.document-nav {
  position: sticky;
  top: 105px;
  align-self: start;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-alt);
}
.document-nav p { margin: 0 0 6px 7px; color: var(--ink); font-size: .88rem; font-weight: 710; }
.document-nav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.document-nav a {
  display: block;
  padding: 7px;
  border-radius: 8px;
  color: var(--text);
  font-size: .875rem;
  line-height: 1.45;
  text-decoration: none;
}
.document-nav a:hover { background: var(--blue-soft); color: var(--blue-dark); text-decoration: underline; }
.document-body {
  min-width: 0;
  padding: 3px var(--reference-inset) 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.document-body section { max-width: 74ch; padding-block: clamp(20px, 3vw, 32px); scroll-margin-top: 105px; }
.document-body section + section { border-top: 1px solid var(--border); }
.document-body section:target h2 { color: var(--blue-dark); }
.document-body h2 { margin-bottom: 10px; font-size: clamp(1.2rem, 2vw, 1.48rem); }
.document-body p { max-width: 74ch; line-height: 1.72; }
.document-body a { overflow-wrap: anywhere; }

.api-reference .reference-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px 26px;
}
.api-reference .reference-heading .lead { max-width: 58ch; }
.reference-button-icon { flex: 0 0 18px; width: 18px; height: 18px; }
.api-reference-table { border-radius: var(--radius); background: var(--surface); }
.api-reference-table table { width: 100%; table-layout: fixed; }
.api-reference-table th:first-child { width: 100px; }
.api-reference-table th:nth-child(2) { width: 38%; }
.api-reference-table th, .api-reference-table td { padding: 13px 16px; vertical-align: middle; }
.api-reference-table td:nth-child(2) { color: var(--ink); overflow-wrap: anywhere; }
.api-reference-table td:nth-child(3) { overflow-wrap: anywhere; }
.api-reference-table tbody tr:hover { background: var(--surface-alt); }
.api-method {
  display: inline-block;
  min-width: 3.2rem;
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: .72rem;
  font-weight: 680;
  text-align: center;
}
@media (max-width: 930px) {
  .price-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-offers:not(.price-offers-secondary) > :last-child { grid-column: 1 / -1; }
  .product-overview { grid-template-columns: minmax(0, 1fr); }
  .product-steps { max-width: 560px; }
}
@media (max-width: 700px) {
  .price-invoice, .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .document-nav { position: static; }
  .document-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
  .document-nav a { text-decoration: underline; }
  .api-reference-table th:first-child { width: 70px; }
  .api-reference-table th, .api-reference-table td { padding: 11px 8px; }
}
@media (max-width: 530px) {
  .price-offers, .price-invoice-fields, .product-methods { grid-template-columns: minmax(0, 1fr); }
  .price-offers:not(.price-offers-secondary) > :last-child { grid-column: auto; }
  .price-offer-recommended { margin-top: 7px; }
  .price-invoice-controls button { width: 100%; }
  .product-steps { gap: 5px; }
  .product-steps li { font-size: .73rem; }
  .product-steps .pipeline-icon { width: 35px; height: 35px; border-radius: 10px; }
  .product-steps .pipeline-icon svg { width: 19px; height: 19px; }
  .pipeline-arrow { inset: 11px -.45rem auto auto; width: .84rem; }
}
/* Workspace */
.workspace-page {
  --workspace-gap: clamp(14px, 2vw, 24px);
  --workspace-inset: clamp(18px, 2.6vw, 30px);
  --workspace-line: rgba(15, 23, 42, .08);
  font-variant-numeric: tabular-nums;
}
.workspace-layout {
  display: grid;
  grid-template-columns: minmax(174px, 200px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 3.4vw, 48px);
}
.workspace-main,
.workspace-page .form-group {
  min-width: 0;
}
.workspace-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--workspace-line);
  border-radius: 15px;
  background: var(--surface);
}
.workspace-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  padding: 8px 9px;
  border-radius: 9px;
  color: var(--text);
  font-size: .86rem;
  font-weight: 620;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.workspace-nav a:hover {
  background: var(--surface-alt);
  color: var(--ink);
}
.workspace-nav [aria-current], .workspace-nav .related-section {
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.workspace-nav svg,
.workspace-symbol svg,
.workspace-control-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.workspace-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
}
.workspace-page .workspace-masthead {
  margin: 0 0 var(--workspace-gap);
  padding: 2px 0 18px;
  border-bottom: 1px solid var(--workspace-line);
  overflow-wrap: anywhere;
}
.workspace-masthead h1 {
  margin: 0 0 6px;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}
.workspace-masthead .lead { font-size: .98rem; }
.workspace-masthead .actions { justify-content: flex-start; }
.workspace-panel, .report-results, .report-evidence > .card {
  padding: var(--workspace-inset);
}
.workspace-panel + .workspace-panel,
.workspace-overview + .workspace-panel {
  margin-top: var(--workspace-gap);
}
.workspace-panel-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 18px;
}
.workspace-panel-heading h2,
.report-evidence h2,
.account-page .auth-grid h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing: -.025em;
}
.workspace-page .table-wrap {
  max-width: 100%;
  border-color: var(--workspace-line);
  border-radius: 12px;
  overscroll-behavior-inline: contain;
}
.workspace-page table {
  min-width: 32rem;
  font-size: .89rem;
}
.workspace-page .report-results table { min-width: 38rem; }
.workspace-page th, .workspace-page td {
  padding: 10px 13px;
  border-color: var(--workspace-line);
}
.workspace-page thead th {
  background: var(--surface-alt);
  color: var(--text);
  font-size: .8rem;
  font-weight: 650;
}
.workspace-page tbody tr {
  height: 52px;
  transition: background-color .15s ease;
}
.workspace-page tbody tr:hover { background: #f8faff; }
.workspace-page .workspace-panel td,
.workspace-page .report-results td { vertical-align: middle; }
.workspace-panel td .actions { gap: 6px 12px; }
.workspace-page .workspace-source { width: 57%; overflow-wrap: anywhere; }
.workspace-panel thead th,
.workspace-panel td code,
.workspace-panel .badge,
.workspace-panel .workspace-text-link { white-space: nowrap; }
.workspace-text-link {
  color: var(--blue-dark);
  font-size: .86rem;
  font-weight: 650;
  text-decoration: none;
}
.workspace-text-link span { margin-inline-start: .2em; }
.workspace-text-link:hover { text-decoration: underline; }
.workspace-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(15, 23, 42, .12);
  border-radius: 12px;
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: .9rem;
}
.workspace-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--workspace-gap);
}
.workspace-metric {
  display: flex;
  flex-direction: column;
  min-height: 147px;
  padding: clamp(14px, 2vw, 20px);
}
.workspace-overview .workspace-balance {
  border-color: #dbe7fd;
  background: var(--blue-soft);
}
.workspace-metric-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}
.workspace-metric-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: .87rem;
  line-height: 1.35;
}
.workspace-symbol {
  display: grid;
  flex: 0 0 33px;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.workspace-balance .workspace-symbol { background: var(--surface); }
.workspace-metric .kpi-num {
  margin: auto 0 0;
  padding-top: 10px;
  color: var(--ink);
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  line-height: 1;
  font-weight: 740;
  letter-spacing: -.045em;
}
.workspace-package {
  margin: 12px 0 8px;
  color: var(--ink);
  font-size: .94rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.workspace-metric .workspace-text-link { margin-top: auto; }
.workspace-api-example {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--workspace-line);
}
.workspace-api-example summary {
  cursor: pointer;
  color: var(--text);
  font-size: .88rem;
  font-weight: 650;
}
.workspace-api-example .code-block { margin-bottom: 0; }
.workspace-panel #history, .workspace-panel #keys { scroll-margin-top: 105px; }
.account-page .auth-grid {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: var(--workspace-gap);
  align-items: start;
  max-width: 900px;
}
.account-page .auth-grid > .card { padding: var(--workspace-inset); }
.account-page .auth-grid > .card:first-child { box-shadow: var(--shadow); }
.account-page .auth-grid h2 { margin-bottom: 18px; }
.catalog-file input[type="file"] { background: var(--surface-alt); }
.catalog-file input::file-selector-button {
  margin-inline-end: 9px;
  padding: 5px 9px;
  border: 1px solid var(--workspace-line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--blue-dark);
  font: inherit;
}

/* Analysis report */
.report-page .report-heading h1 { font-size: clamp(1.9rem, 3.4vw, 2.65rem); }
.report-heading .workspace-heading > div:first-child {
  flex: 1 1 24rem;
  min-width: 0;
}
.report-heading .report-id {
  display: inline-flex;
  gap: .35em;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: .82rem;
}
.report-object { margin: 0 0 5px; color: var(--ink); font-weight: 650; }
.report-heading .muted { font-size: .89rem; }
.report-source-note { margin: 0 0 12px; font-size: .84rem; }
.report-body > * + * { margin-top: var(--workspace-gap); }
.report-page .report-metrics { gap: 12px; }
.report-metrics > .card {
  min-width: 0;
  min-height: 114px;
  padding: clamp(12px, 1.75vw, 18px);
}
.report-metrics .kpi-label {
  color: var(--text);
  font-size: .79rem;
  line-height: 1.35;
}
.report-metrics .kpi-num {
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.1;
  font-weight: 740;
  letter-spacing: -.045em;
}
.report-metrics .badge { margin-top: 5px; }
.report-evidence { gap: var(--workspace-gap); }
.report-evidence ul { padding-inline-start: 1.1em; overflow-wrap: anywhere; }
.report-evidence li + li { margin-top: 5px; }
.report-evidence h3 { margin-bottom: 0; }
.report-results-heading p { margin: 6px 0 0; }
.report-results .tabs { margin: 0 0 16px; }
.report-results tr.anchor-row { background: #fff8ea; }
.report-results .paywall-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--workspace-line);
  border-radius: 12px;
  background: var(--surface-alt);
}
.report-results .paywall-box p { max-width: 70ch; }

@media (max-width: 920px) {
  .workspace-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .workspace-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  .workspace-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-overview .workspace-balance { grid-column: 1 / -1; }
  .workspace-metric { min-height: 124px; }
  .account-page .auth-grid, .report-evidence { grid-template-columns: minmax(0, 1fr); }
  .report-page .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .workspace-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-nav a { padding-inline: 7px; font-size: .81rem; }
  .workspace-nav svg { width: 16px; height: 16px; flex-basis: 16px; }
  .workspace-metric-heading { align-items: flex-start; }
  .workspace-symbol { display: none; }
  .workspace-page .workspace-masthead { padding-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-page tbody tr { transition: none; }
}

@media (max-width: 640px) {
  .workspace-page table.workspace-responsive {
    display: block;
    min-width: 0;
  }
  .workspace-responsive thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .workspace-responsive tbody { display: block; }
  .workspace-page .workspace-responsive tbody tr {
    display: block;
    height: auto;
    padding: 7px 0;
    border-block-end: 1px solid var(--workspace-line);
  }
  .workspace-page .workspace-responsive tbody tr:last-child { border-block-end: 0; }
  .workspace-page .workspace-responsive td {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr);
    align-items: start;
    gap: 10px;
    padding: 6px 10px;
    border: 0;
    overflow-wrap: anywhere;
  }
  .workspace-page .workspace-responsive td[data-column-label=""] { display: block; }
  .workspace-responsive td:not([data-column-label=""])::before {
    content: attr(data-column-label) / "";
    color: var(--text-muted);
    font-size: .76rem;
    font-weight: 660;
    line-height: 1.45;
  }
  .workspace-cell-value { min-width: 0; }
  .workspace-page .workspace-responsive .workspace-source { width: auto; }
  .workspace-panel .workspace-responsive td code { white-space: normal; }
}

/* =========================================================================
   Sprint 5 — premium layer: status pills, sector showcase, product flow,
   hero depth and micro-interactions. Local assets only, no external fonts.
   ========================================================================= */
:root {
  --ok: #059669;
  --wait: #d97706;
  --bad: #dc2626;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 16px -8px rgba(15, 23, 42, .10);
  --shadow-lg: 0 1px 2px rgba(15, 23, 42, .04), 0 28px 60px -22px rgba(15, 23, 42, .22);
}

/* micro status pills with a dot */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .01em;
}
.status-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.status-ok { color: var(--ok); background: #e8f8f0; }
.status-wait { color: var(--wait); background: #fff4df; }
.status-bad { color: var(--bad); background: #fff0f0; }

/* hero depth: faint engineering grid fading out + floating preview */
.main-home { position: relative; isolation: isolate; }
.main-home::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto 0;
  height: 680px;
  background-image:
    linear-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  content: "";
  pointer-events: none;
}
.sample-window {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.sample-window::before {
  display: block;
  height: 34px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 19px 17px, #f87171 4.5px, transparent 5.5px),
    radial-gradient(circle at 37px 17px, #fbbf24 4.5px, transparent 5.5px),
    radial-gradient(circle at 55px 17px, #34d399 4.5px, transparent 5.5px),
    var(--surface-alt);
  content: "";
}
@media (min-width: 981px) and (prefers-reduced-motion: no-preference) {
  .sample-window { animation: sample-float 7s ease-in-out infinite; }
  @keyframes sample-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
}
.hero-cta { box-shadow: 0 14px 30px -12px rgba(37, 99, 235, .55); }
.hero-cta:hover { transform: translateY(-1px); }
.analyze-card { box-shadow: var(--shadow-lg); border-color: rgba(15, 23, 42, .06); }
.drop-zone { transition: border-color .15s, background-color .15s, box-shadow .15s; }
.drop-zone:hover, .drop-zone.is-dragging {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

/* section heads */
.section-head { max-width: 62ch; margin-block-end: clamp(22px, 3vw, 36px); }
.section-head h2 { margin-block-end: 10px; }
.section-head p { color: var(--text); font-size: 1.04rem; }

/* sector showcase */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sector-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sector-live:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.sector-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: var(--blue-dark);
  background: linear-gradient(145deg, #eef3ff, #e2e9ff);
}
.sector-card .status-pill { position: absolute; top: 16px; right: 16px; }
.sector-card h3 { margin: 12px 0 4px; font-size: .98rem; }
.sector-card p { margin: 0; max-width: 44ch; font-size: .84rem; line-height: 1.44; }
.sector-soon {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
}
.sector-soon .sector-icon { color: var(--text-muted); background: #eef0f4; }
.sector-soon h3, .sector-soon p { opacity: .78; }

/* /about flow diagram */
.product-flow { margin-block-start: clamp(34px, 5vw, 64px); }
.product-flow h2 { margin-block-end: 18px; }
.flow-figure {
  margin: 0;
  padding: clamp(14px, 2.4vw, 30px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, var(--surface-alt));
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.flow-figure svg { display: block; width: 100%; min-width: 560px; max-width: 920px; height: auto; margin-inline: auto; }
.flow-figure text { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }

/* depth and motion on existing cards */
.feature-panel, .audience-bento article { transition: transform .2s ease, box-shadow .2s ease; }
.feature-panel:hover, .audience-bento article:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.feature-evidence { justify-content: flex-start; }
.feature-evidence .feature-evidence-path { margin-top: auto; }
.feature-evidence p { margin-bottom: 22px; }
.evidence-step-mark .home-section-icon { box-shadow: var(--shadow-sm); background: #fff; border: 1px solid var(--border); }
.home-content-section h2 { margin-block-end: 22px; }
.home-obsidian { background-image: radial-gradient(ellipse 720px 260px at 85% 0, rgba(67, 56, 202, .22), transparent 100%); }

@media (max-width: 980px) {
  .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .sector-grid { grid-template-columns: minmax(0, 1fr); }
  .sample-window::before { height: 28px; }
  .main-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { flex: none; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .sector-card, .feature-panel, .audience-bento article, .hero-cta { transition: none; }
  .sample-window { animation: none; }
}

/* pricing rhythm: equal-height cards, actions pinned to the bottom */
.price-offer { display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.price-offer:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.price-offer-body { flex: 1 1 auto; }
.price-offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; padding-top: 22px; }
.price-offer-recommended { box-shadow: 0 0 0 1px rgba(37, 99, 235, .35), var(--shadow-lg); background: linear-gradient(180deg, #f6f9ff 0, #fff 140px); }
@media (prefers-reduced-motion: reduce) { .price-offer { transition: none; } }

/* report header: keep the source reference to one calm line */
.source-ref { display: inline-block; max-width: min(100%, 62ch); overflow: hidden; vertical-align: bottom; text-overflow: ellipsis; white-space: nowrap; }

/* /about ecosystem: shared engine + 4 core products + 7 modules */
.eco-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(24px, 4.5vw, 58px);
  padding-block: clamp(6px, 2.5vw, 24px);
}
.eco-kicker {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.eco-section { margin-top: clamp(46px, 6vw, 76px); scroll-margin-top: 96px; }
.eco-sec-head { max-width: 66ch; margin-bottom: 22px; }
.eco-sec-head h2 { margin-bottom: 8px; }
.eco-sec-head p { margin: 0; font-size: .96rem; }
.eco-core-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.eco-core-card {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.eco-core-card.is-engine {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #f3f7ff 0%, #fff 60%);
}
.eco-core-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.eco-icon-box {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.eco-core-card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.eco-core-card p { margin: 0 0 14px; font-size: .92rem; line-height: 1.54; }
.eco-core-card .text-link { margin-top: auto; align-self: flex-start; font-size: .88rem; text-decoration: none; }
.eco-core-card .text-link:hover { text-decoration: underline; }

.eco-addons-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.eco-addon-card {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--surface-alt);
}
.eco-addon-card.is-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  background: linear-gradient(120deg, #eef4ff 0%, #effaf4 100%);
}
.eco-addon-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.eco-addon-card.is-wide .eco-addon-top { margin-bottom: 0; flex: none; }
.eco-addon-circle {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 6px 16px -10px rgba(10, 102, 230, .25);
}
.eco-mini-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: #e0ecff;
  color: var(--blue-dark);
  font-size: .72rem;
  font-weight: 660;
}
.eco-addon-card h3 { margin: 0 0 6px; font-size: 1.02rem; font-weight: 660; }
.eco-addon-card p { margin: 0; font-size: .89rem; line-height: 1.5; }

@media (max-width: 960px) {
  .eco-hero, .eco-core-grid { grid-template-columns: minmax(0, 1fr); }
  .eco-addons-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .eco-addons-grid { grid-template-columns: minmax(0, 1fr); }
  .eco-addon-card.is-wide { flex-direction: column; align-items: flex-start; }
}
