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

/* Nocturne, rendered light: the neutral and accent ramps flipped end for end.
   Values are the resolved ones from the design handoff — see
   documentation/210-Dashboard.md. */
:root {
  --color-bg: #f3f5fe;
  --color-surface: #fbfcff;
  --color-text: #14151f;
  --color-divider: #b6bbd2;
  /* The Final Factor blue (the client's mockups of 2026-10-12, documentation/design/): the
     accent of every page, so that what follows the sign-in page is not another colour. */
  --brand-900: #0b1b3f;
  --brand-700: #163a8f;
  --brand-600: #1a47c8;
  --brand-500: #2563eb;
  --brand-300: #7ea2f0;
  --brand-100: #e4ecfb;
  --brand-50: #f4f7fe;
  --color-accent: var(--brand-600);
  --color-accent-300: var(--brand-700);
  --color-accent-400: var(--brand-500);
  --color-neutral-300: #3f424d;
  --color-neutral-400: #52566a;
  --color-neutral-500: #6b6f85;
  --color-neutral-600: #8a8fa5;
  --color-neutral-700: #b6bbd2;
  --color-neutral-800: #d3d8ea;
  --color-neutral-900: #e6eaf6;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(33, 35, 46, 0.06);

  --warn-bg: #fdf6e7;
  --warn-border: #e3cf9a;
  --warn-text: #6d5518;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 16px/1.55 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Never the browser default ring. */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ==== The signed-in shell ====
   A white top bar with the brand and the account, the dark side navigation of the mockup
   (documentation/design/2026-10-12-final-factor/dashboard.png), and the page on a pale ground. */
.brand-lockup { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; height: 40px; width: auto; }

body.app { background: #f2f5fb; }
.app-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--brand-100);
}
.app-top .brand-logo { height: 34px; }
.app-user { margin-left: auto; display: flex; align-items: center; gap: 14px; min-width: 0; }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 600;
  flex: none;
}
.app-user-name { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.app-user-hello { font-size: 12px; color: var(--color-neutral-500); }
.app-user-email { font-size: 14px; font-weight: 500; color: var(--brand-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-user-links { display: flex; align-items: center; gap: 4px; margin-left: 10px; padding-left: 14px; border-left: 1px solid var(--brand-100); }
.app-user-links form { margin: 0; }
.top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  color: var(--color-neutral-400);
  background: none;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.top-link:hover { color: var(--brand-700); background: var(--brand-50); }
.top-link .icon { width: 17px; height: 17px; }

.app-frame { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  padding: 20px 14px 18px;
  background: linear-gradient(180deg, #10306f 0%, #0b1b3f 100%);
  color: #c9d6f2;
}
.side-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 15px;
  color: #c9d6f2;
  text-decoration: none;
}
a.side-item:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.side-item.is-active, a.side-item.is-active:hover { color: #fff; background: var(--brand-600); box-shadow: 0 6px 16px rgba(26, 71, 200, 0.35); }
.side-item.is-soon { color: rgba(201, 214, 242, 0.5); }
.side-item .icon { width: 20px; height: 20px; }
.soon {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.10);
  color: inherit;
  white-space: nowrap;
}
.side-foot { margin-top: auto; padding: 16px 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.10); }
.side-foot .brand-logo { height: 30px; }
.side-foot p { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: rgba(201, 214, 242, 0.8); }

.app-main { min-width: 0; padding: 24px 28px 48px; }
.app-main > .signin-alert, .app-main > .signin-notice { margin-bottom: 20px; }

/* ---- The front page ---- */
/* The banner: the hero of the sign-in page again, on its drawn ground, as a card. */
.banner {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 34px 40px 26px;
  border-radius: 16px;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(8, 24, 70, 0.92) 0%, rgba(8, 24, 70, 0.78) 45%, rgba(8, 24, 70, 0.35) 100%),
    repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.08) 0 22px, rgba(255, 255, 255, 0) 22px 44px),
    linear-gradient(165deg, #1f4fb8 0%, #163a8f 45%, #0b1b3f 100%);
}
.banner .eyebrow { margin-bottom: 12px; color: rgba(255, 255, 255, 0.72); }
.banner .hero-title { max-width: none; margin-bottom: 10px; font-size: 40px; color: #fff; }
.banner .hero-title-accent { color: var(--brand-300); }
.banner .hero-lead { max-width: 62ch; margin-bottom: 22px; font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.banner .hero-search { max-width: 900px; border-color: transparent; }
.banner-compact { padding: 24px 40px; }
.banner-compact .hero-title { margin-bottom: 14px; font-size: 28px; }

.quick-links {
  list-style: none;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
}
.quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 22px 2px 0;
  margin-right: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  line-height: 1.3;
  color: #fff;
  text-decoration: none;
}
.quick-links li:last-child .quick-link { border-right: 0; margin-right: 0; padding-right: 0; }
.quick-link:hover { color: #fff; }
.quick-link .icon-tile { width: 38px; height: 38px; background: rgba(255, 255, 255, 0.14); color: #fff; }
.quick-link.is-soon { color: rgba(255, 255, 255, 0.6); }
.quick-link.is-soon .soon { margin-left: 4px; }

.dash { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.dash-main, .dash-aside { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.dash-main .card { margin-bottom: 0; }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--brand-100);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(11, 27, 63, 0.04);
}
.kpi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--brand-900); }
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-100);
  color: var(--brand-600);
  flex: none;
}
.icon-tile-sm { width: 32px; height: 32px; border-radius: 8px; }
.icon-tile-sm .icon { width: 16px; height: 16px; }
.kpi-value { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--brand-900); font-variant-numeric: tabular-nums; }
.kpi-label { margin: 0; font-size: 13px; color: var(--color-neutral-500); }

.panels { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.panel { min-width: 0; padding: 18px 20px; background: #fff; border: 1px solid var(--brand-100); border-radius: 14px; }
.panel h2 { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--brand-900); }
.panel .stat-head h2 { margin: 0; }
.panel-soon { display: flex; flex-direction: column; border-style: dashed; background: #fbfcff; }
.soon-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px 8px; text-align: center; }
.soon-body .icon { width: 28px; height: 28px; color: var(--brand-300); }
.soon-body p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--color-neutral-500); }
.soon-body .soon { margin: 0; background: var(--brand-100); color: var(--brand-700); }

.donut-wrap { display: flex; align-items: center; gap: 24px; padding: 6px 0; }
.donut { position: relative; width: 176px; height: 176px; border-radius: 50%; flex: none; }
.donut::after { content: ""; position: absolute; inset: 30px; border-radius: 50%; background: #fff; }
.donut-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-900);
  font-variant-numeric: tabular-nums;
}
.donut-center small { font-size: 12px; font-weight: 400; color: var(--color-neutral-500); }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.legend-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-neutral-300); }
a.legend-label:hover { color: var(--brand-600); }
.legend-share { font-weight: 500; color: var(--brand-900); font-variant-numeric: tabular-nums; }

.report-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.report-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--brand-50); }
.report-row:last-child { border-bottom: 0; }
.report-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.report-name { font-size: 14px; color: var(--brand-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-meta { font-size: 12px; color: var(--color-neutral-500); }

.promo { padding: 22px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #1b4ec5 0%, #0b1b3f 100%); }
.promo h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.promo p { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.btn-light { height: 42px; padding: 0 18px; font-size: 14px; color: var(--brand-700); background: #fff; box-shadow: none; }
.btn-light:hover { color: var(--brand-700); background: var(--brand-50); }

.search-card .search { gap: 18px; }
.search-card .results-block { margin-top: 22px; }

@media (max-width: 1200px) {
  .dash { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panels { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .app-frame { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 8px 12px; }
  .side-nav { flex-direction: row; gap: 2px; }
  .side-item { padding: 8px 12px; font-size: 14px; white-space: nowrap; }
  .side-item.is-soon, .side-foot { display: none; }
  .app-main { padding: 16px; }
  .app-user-name, .top-link span { display: none; }
  .banner, .banner-compact { padding: 24px 20px; }
  .banner .hero-title { font-size: 30px; }
  .quick-links { display: none; }
  .panels { grid-template-columns: 1fr; }
  .search-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .search-grid, .kpis { grid-template-columns: 1fr; }
}

/* ---- Ranked lists ---- */
.stat-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.stat-head h2 { margin: 0; font-size: 16px; font-weight: 500; color: var(--color-text); }
.stat-caption { font-size: 13px; color: var(--color-neutral-500); white-space: nowrap; }

.stat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }

.stat-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 8px;
  margin: 0 -8px;
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
}
a.stat-link { cursor: pointer; }
a.stat-link:hover { background: var(--color-neutral-900); }

.stat-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.stat-label { color: var(--color-text); min-width: 0; }
.stat-value { color: var(--color-neutral-400); font-variant-numeric: tabular-nums; }

/* The sector labels are long enough to wrap, so this column truncates. */
.stat-col-sectors .stat-line { gap: 12px; }
.stat-col-sectors .stat-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-col-sectors .stat-value { flex: none; }

.bar { height: 4px; background: var(--color-neutral-900); border-radius: 2px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--color-accent); border-radius: 2px; }

/* ---- Search form ---- */
.search { display: flex; flex-direction: column; gap: 16px; }
.search-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 20px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neutral-400);
}
.field input, .field select {
  width: 100%;
  height: 40px;
  padding: 6px 10px;
  font: inherit;
  font-size: 16px;
  color: var(--color-text);
  caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}
.field input::placeholder { color: var(--color-neutral-600); }
.field input:hover, .field select:hover {
  border-color: color-mix(in srgb, var(--color-text) 45%, transparent);
}
.field input:focus-visible, .field select:focus-visible {
  border-color: var(--color-accent);
  outline-offset: 0;
}

.search-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Outlined, never filled — the accent is a line here, not a ground. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 28px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.btn-primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.btn-primary:active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }

.btn-ghost { color: var(--color-accent); padding: 0 3px; }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }

.filter-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-neutral-400);
}
.filter-status .icon { width: 14px; height: 14px; color: var(--color-accent); flex: none; }
.filter-hint { font-size: 14px; color: var(--color-neutral-600); }


/* ---- Notices ---- */
.notice {
  padding: 12px 14px;
  font-size: 15px;
  background: var(--color-surface);
  border: 1px solid var(--color-neutral-800);
  border-radius: var(--radius-md);
  color: var(--color-neutral-400);
}
.notice.warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }

/* ---- Results ---- */
.results-block { display: flex; flex-direction: column; gap: 14px; }
.results-head { margin: 0; font-size: 15px; color: var(--color-neutral-400); }

.btn-link { color: var(--color-accent-300); font-size: 15px; text-decoration: none; white-space: nowrap; }
.btn-link:hover { color: var(--color-accent); text-decoration: underline; }

/* An action sitting inside a table row, next to links. Outlined like the rest of
   the buttons here — the accent is a line, not a ground — and one step quieter
   than .btn-primary, which owns the search. A <button> arrives with the
   browser's own chrome (its own font, its filled background), so unlike an
   anchor it has to be told all of it. */
.btn-quiet {
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  padding: 3px 10px;
  color: var(--color-accent-300);
  white-space: nowrap;
  background: transparent;
  border: 1px solid var(--color-neutral-700);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn-quiet:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 8%, transparent);
}
.btn-quiet:active { background: color-mix(in srgb, var(--color-accent) 16%, transparent); }

/* button_to wraps its button in a form, which would otherwise take the width of
   the cell and push anything beside it onto its own line. */
form.button_to { display: inline-block; }

table.results {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-neutral-800);
  border-radius: var(--radius-md);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 15px;
}
table.results th, table.results td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--color-neutral-800);
  vertical-align: top;
}
table.results th {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neutral-400);
  background: var(--color-bg);
}
table.results tr:last-child td { border-bottom: 0; }
table.results tbody tr:hover td { background: var(--color-neutral-900); }
table.results a { color: var(--color-accent-300); text-decoration: none; }
table.results a:hover { color: var(--color-accent); }

/* Registry numbers line up and stay legible next to Greek text. */
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 12px;
  color: var(--color-accent);
  background: var(--color-neutral-900);
  border-radius: 999px;
}

.pager { display: flex; gap: 16px; align-items: center; }

/* ---- Detail page ----
   Stacked with margins rather than the landing's flex gap: the view is a flat
   list of optional sections, so each one carries its own spacing. */
.page-head { margin-bottom: 24px; }
.page-head h1 { margin: 0 0 4px; font-size: 26px; font-weight: 500; letter-spacing: -0.015em; }
.muted { color: var(--color-neutral-400); margin: 0; font-size: 15px; }

.card {
  margin-bottom: 16px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--brand-100);
  border-radius: 14px;
}
.card h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-900);
}
.card table.results { border: 0; border-radius: 0; }

dl.detail { display: grid; grid-template-columns: 200px 1fr; gap: 8px 20px; margin: 0; font-size: 15px; }
dl.detail dt { color: var(--color-neutral-400); }
dl.detail dd { margin: 0; }
@media (max-width: 600px) { dl.detail { grid-template-columns: 1fr; gap: 2px 0; } dl.detail dd { margin-bottom: 10px; } }

ul.plain { margin: 0; padding-left: 18px; font-size: 15px; }
.objective { color: var(--color-neutral-400); max-width: 78ch; font-size: 15px; }

a { color: var(--color-accent-300); text-decoration: none; }
a:hover { color: var(--color-accent); }

/* ---- Sign in ---- */
/* The one page reachable without a session (documentation/360). Narrow and centred
   rather than filling the shell: there is one decision to make on it. */
.signin { max-width: 360px; margin: 32px auto 48px; }
.signin-title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
}
.signin-form { display: flex; flex-direction: column; gap: 16px; }
.signin-form .btn { align-self: flex-start; margin-top: 4px; }

.signin-alert, .signin-notice {
  margin: 0 0 16px;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid;
  border-radius: var(--radius-md);
}
.signin-alert { color: var(--warn-text); background: var(--warn-bg); border-color: var(--warn-border); }
.signin-notice { color: var(--color-neutral-300); background: var(--color-neutral-900); border-color: var(--color-neutral-800); }

.signin-note { margin: 24px 0 0; font-size: 14px; color: var(--color-neutral-500); }


/* ---- Accounts ---- */
.page-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.page-title { margin: 0; font-size: 20px; font-weight: 600; }
.page-head .btn { margin-left: auto; }

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 12px;
  color: var(--color-neutral-400);
  background: var(--color-neutral-900);
  border-radius: 999px;
}

.row-actions { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.row-actions form { margin: 0; }
/* A link, not a button: destructive, but not the thing the eye should land on first. */
.btn-danger { color: var(--warn-text); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.btn-danger:hover { text-decoration: underline; }

.field-hint { margin: 0; font-size: 13px; color: var(--color-neutral-500); }
.field-check { display: flex; align-items: center; gap: 10px; }
.field-check input { width: auto; height: auto; margin: 0; }
.field-check label { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--color-text); }

.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 4px; }

/* ==== Public pages: the sign-in page ====
   Full-bleed, unlike the signed-in panel. The right-hand "photograph" is drawn — gradients and
   two sets of glass lines — until the client supplies one; it then goes into --hero-photo and
   the gradients stay behind it as the fade. */
body.public {
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.icon { width: 20px; height: 20px; flex: none; }

.site-head {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 48px;
  background: #fff;
  border-bottom: 1px solid var(--brand-100);
}
.site-head .brand-logo { height: 42px; }
.site-head-divider { width: 1px; height: 30px; background: var(--color-neutral-800); flex: none; }
.site-tagline { margin: 0 0 0 auto; font-size: 15px; color: var(--color-neutral-500); }

/* ---- Hero ---- */
.hero {
  --hero-photo: none;
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 56px;
  align-items: center;
  padding: 64px 48px 56px;
  background-image:
    linear-gradient(90deg, #fff 0%, #fff 36%, rgba(255, 255, 255, 0.72) 50%, rgba(255, 255, 255, 0) 66%),
    var(--hero-photo),
    repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.11) 0 22px, rgba(255, 255, 255, 0) 22px 44px),
    repeating-linear-gradient(22deg, rgba(8, 30, 90, 0.14) 0 2px, rgba(8, 30, 90, 0) 2px 52px),
    linear-gradient(165deg, #e6eefb 0%, #a9c3ec 30%, #3b6fd1 60%, #0f2f78 100%);
  background-size: cover;
  background-position: center;
}

.hero-copy { max-width: 760px; }
.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-700);
}
/* Three lines, the last one the accent word alone, as the mockup sets it. */
.hero-title {
  max-width: 560px;
  margin: 0 0 22px;
  font-size: 58px;
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-900);
}
.hero-title-accent { color: var(--brand-500); }
.hero-lead {
  margin: 0 0 32px;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-neutral-300);
}

.hero-search {
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 18px;
  background: #fff;
  border: 1px solid var(--brand-100);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(11, 27, 63, 0.10);
}
.hero-search-icon { color: var(--brand-700); display: inline-flex; }
.hero-search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  padding: 0 6px;
  font: inherit;
  font-size: 16px;
  color: var(--color-text);
  background: transparent;
}
.hero-search input::placeholder { color: var(--color-neutral-600); }
.hero-search input:focus-visible { outline: none; }
.hero-search:focus-within { border-color: var(--brand-500); }

.hero-features {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.hero-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 18px 4px 0;
  margin-right: 18px;
  border-right: 1px solid var(--color-neutral-800);
  font-size: 13px;
  line-height: 1.35;
  color: var(--color-neutral-300);
}
.hero-features li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-features .icon { width: 26px; height: 26px; color: var(--brand-600); }

/* The filled button of the new look. .btn-primary is still outlined on the pages that have not
   been redone yet. */
.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 26px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #2058d8 0%, var(--brand-700) 100%);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(26, 71, 200, 0.28);
  cursor: pointer;
  white-space: nowrap;
}
.btn-brand:hover { background: linear-gradient(180deg, #1b4ec5 0%, #12317a 100%); }
.btn-brand:active { box-shadow: none; }
.btn-brand .icon { width: 18px; height: 18px; }
.btn-block { width: 100%; }

/* ---- The sign-in card ---- */
.signin-card {
  padding: 36px 40px 28px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(11, 27, 63, 0.22);
}
.signin-brand { margin-bottom: 26px; }
.signin-brand .brand-logo { height: 32px; }
.signin-card .signin-title { margin: 0 0 22px; font-size: 28px; font-weight: 700; color: var(--brand-900); }
.signin-card .signin-form { gap: 18px; }

.control { position: relative; display: flex; align-items: center; }
.control-icon {
  position: absolute;
  left: 14px;
  display: inline-flex;
  color: var(--color-neutral-500);
  pointer-events: none;
}
.control-icon .icon { width: 18px; height: 18px; }
.signin-card .field input {
  height: 50px;
  padding-left: 44px;
  padding-right: 44px;
  border-radius: 10px;
  border-color: var(--color-neutral-800);
}
.signin-card .field input:focus-visible { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); outline: none; }
.control-toggle {
  position: absolute;
  right: 6px;
  display: inline-flex;
  padding: 8px;
  color: var(--color-neutral-500);
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.control-toggle:hover { color: var(--brand-700); background: var(--brand-50); }
.control-toggle .icon { width: 18px; height: 18px; }
.control-toggle .icon-eye-off { display: none; }
.is-revealed .control-toggle .icon-eye { display: none; }
.is-revealed .control-toggle .icon-eye-off { display: inline; }
.signin-card .btn-brand { margin-top: 8px; }

.signin-help { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--brand-700); }
.signin-card .signin-note { margin: 18px 0 0; text-align: center; font-size: 13px; }

/* ---- The figures strip ---- */
.site-foot {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 30px 48px;
  background: var(--brand-50);
  border-top: 1px solid var(--brand-100);
}
.foot-figure { display: flex; align-items: center; gap: 16px; }
.foot-figure p { margin: 0; }
.foot-figure-lead {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-left: 22px;
  border-left: 4px solid var(--brand-600);
}
.foot-value { font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; color: var(--brand-900); font-variant-numeric: tabular-nums; }
.foot-label { font-size: 16px; color: var(--brand-900); }
.foot-figure-icon { padding-left: 48px; border-left: 1px solid var(--color-neutral-800); }
.foot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--brand-100);
  color: var(--brand-600);
}
.foot-icon .icon { width: 24px; height: 24px; }
.foot-small { font-size: 13px; color: var(--color-neutral-400); }
.foot-value-sm { font-size: 24px; line-height: 1.1; font-weight: 700; color: var(--brand-900); font-variant-numeric: tabular-nums; }
.foot-motto {
  margin: 0 0 0 auto;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-neutral-500);
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 32px; }
  .signin-card { max-width: 440px; }
  .site-head, .site-foot { padding-left: 32px; padding-right: 32px; }
  .hero-title { font-size: 46px; }
}
@media (max-width: 720px) {
  .site-head { padding: 14px 20px; gap: 14px; }
  .site-tagline { display: none; }
  .site-head-divider { display: none; }
  .hero { padding: 36px 20px; background-image:
    linear-gradient(180deg, #fff 0%, #fff 55%, rgba(255, 255, 255, 0) 80%),
    linear-gradient(165deg, #e6eefb 0%, #a9c3ec 30%, #3b6fd1 60%, #0f2f78 100%); }
  .hero-title { font-size: 36px; }
  .hero-search { flex-wrap: wrap; padding: 10px; }
  .hero-search .btn-brand { width: 100%; }
  .hero-features li { width: 50%; margin: 0; padding: 8px 0; border-right: 0; }
  .signin-card { padding: 28px 22px; }
  .site-foot { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 20px; }
  .foot-figure-icon { padding-left: 0; border-left: 0; }
  .foot-motto { margin-left: 0; }
}
