/* DapezSolution: research desk. Navy + brass on paper; serif display, humanist sans body. */
:root {
  --bg: #fbfcfe;
  --surface: #f0f3f9;
  --ink: #141b2e;
  --muted: #55607a;
  --blue: #1f3f96;
  --blue-deep: #13285f;
  --gold: #a57c22;
  --red: #8a2433;
  --line: #d5dbe8;
  --on-blue: #ffffff;
  --display: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1424;
    --surface: #161e33;
    --ink: #e9edf7;
    --muted: #a3adc4;
    --blue: #8fa9f2;
    --blue-deep: #1a2a5a;
    --gold: #d9b45a;
    --red: #e58a97;
    --line: #2a3450;
    --on-blue: #0e1424;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand svg { width: 38px; height: 38px; }
.brand-name { font-family: var(--display); font-size: 1.25rem; }
.brand-name b { color: var(--blue); }
.brand-name i { color: var(--gold); font-style: normal; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.lang { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; border: 1px solid var(--line); padding: 4px 9px; border-radius: 3px; color: var(--ink) !important; }
.nav .btn-sm { color: var(--on-blue); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 0.9rem; padding: 6px 12px; border-radius: 3px; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; background: var(--blue); color: var(--on-blue); text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 3px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.btn-sm { padding: 7px 14px; font-size: 0.9rem; background: var(--blue); color: var(--on-blue) !important; border-radius: 3px; font-weight: 700; }
.btn-ghost { display: inline-block; color: var(--blue); font-weight: 700; text-decoration: none; padding: 13px 4px; }
.btn-ghost:hover { text-decoration: underline; }

/* Type */
.eyebrow { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 0 0 12px; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 20px; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--blue); }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.2; margin: 0 0 12px; text-wrap: balance; }
h3 { font-size: 1.12rem; margin: 0 0 8px; }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 36em; margin: 0 0 28px; }
.sub { color: var(--muted); max-width: 40em; margin: 0 0 32px; }
p { max-width: 42em; }

/* Sections */
.hero .wrap { padding-block: 72px 64px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start; }
.hero .wrap > * { min-width: 0; }
.page-head .wrap { padding-block: 56px 24px; }
section.band { border-top: 1px solid var(--line); }
section.band > .wrap { padding-block: 64px; }
section.tint { background: var(--surface); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Fact sheet */
.sheet { background: var(--surface); border-top: 3px solid var(--gold); padding: 22px 24px 8px; }
.sheet h2 { font-family: var(--body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; font-weight: 700; }
.sheet .row { display: grid; grid-template-columns: 8.5em 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.97rem; }
.sheet dl { margin: 0; }
.sheet dt { color: var(--muted); }
.sheet dd { margin: 0; font-weight: 600; }

/* Grids */
.grid { display: grid; gap: 32px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.grid > * { min-width: 0; }
.item { border-top: 1px solid var(--line); padding-top: 16px; }
.item h3 { color: var(--blue); }
.item p { color: var(--muted); margin: 0; font-size: 1rem; }
.item .meta { display: block; margin-top: 10px; font-size: 0.85rem; color: var(--gold); font-weight: 700; letter-spacing: 0.04em; }
.item a.more { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 0.95rem; text-decoration: none; }

/* Service detail */
.service { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; padding-block: 48px; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; }
.service > * { min-width: 0; }
.service .num { font-family: var(--display); color: var(--gold); font-size: 1rem; margin-bottom: 6px; }
.service dl { margin: 0; display: grid; grid-template-columns: 9em 1fr; gap: 10px 16px; font-size: 0.98rem; }
.service dt { color: var(--muted); }
.service dd { margin: 0; }
.service ul { margin: 0; padding-left: 20px; }
.service li { margin-bottom: 6px; }

/* Report cards */
.reports { display: grid; gap: 20px; }
.report { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border-top: 3px solid var(--gold); padding: 22px 24px; }
.report span { display: block; }
.report:hover .report-title { color: var(--blue); text-decoration: underline; }
.report-meta { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.report-title { font-family: var(--display); font-size: 1.4rem; line-height: 1.25; margin-bottom: 8px; }
.report-desc { color: var(--muted); font-size: 1rem; margin-bottom: 12px; max-width: 46em; }
.report-cta { color: var(--blue); font-weight: 700; font-size: 0.95rem; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filters button { font: inherit; font-size: 0.9rem; background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.empty { color: var(--muted); font-size: 0.97rem; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.plan { border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.plan.pro { border-color: var(--blue); border-top: 4px solid var(--blue); }
.plan h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin: 0; color: var(--ink); }
.price { font-family: var(--display); font-size: 2rem; color: var(--blue); font-variant-numeric: tabular-nums; }
.price small { font-family: var(--body); font-size: 0.95rem; color: var(--muted); }
.plan ul { margin: 0; padding-left: 20px; flex: 1; }
.plan li { margin-bottom: 8px; }
.fine { font-size: 0.88rem; color: var(--muted); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; padding-left: 44px; position: relative; max-width: 40em; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.contact-list li { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list span { color: var(--muted); }
.contact-list strong { word-break: break-word; }

/* Prose pages */
.prose h2 { margin-top: 44px; font-size: 1.6rem; }
.prose h3 { margin-top: 28px; color: var(--blue); }
.prose li { max-width: 40em; margin-bottom: 6px; }

/* CTA band */
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; }
.site-footer .wrap { padding-block: 36px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap > * { min-width: 0; }
.site-footer h4 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 0.84rem; }
.site-footer .legal p { margin: 0 0 6px; max-width: none; }

@media (max-width: 900px) {
  .hero .wrap, .service { grid-template-columns: 1fr; gap: 32px; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px max(20px, env(safe-area-inset-left, 0px)) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .nav .btn-sm, .nav .lang { width: auto; margin-top: 8px; padding: 7px 14px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .g2, .g3, .g4, .plans { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  section.band > .wrap { padding-block: 48px; }
  .hero .wrap { padding-block: 48px; }
  .sheet .row, .contact-list li, .service dl { grid-template-columns: 1fr; gap: 2px; }
}

/* Custom reports */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); background: var(--bg); padding: 5px 12px; border-radius: 999px; font-size: 0.9rem; color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 22px; position: relative; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

/* Hero news panel */
.news { background: var(--surface); border-top: 3px solid var(--gold); padding: 20px 24px 18px; }
.news-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.news-head h2 { font-family: var(--body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0; font-weight: 700; }
.news-head span { font-size: 0.8rem; color: var(--muted); }
.news ul { list-style: none; padding: 0; margin: 0; }
.news li { display: grid; grid-template-columns: 3.6em 1fr; column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.95rem; line-height: 1.45; }
.news-date { color: var(--gold); font-weight: 700; font-size: 0.82rem; padding-top: 2px; font-variant-numeric: tabular-nums; }
.news li a { color: var(--ink); text-decoration: none; }
.news li a:hover { color: var(--blue); text-decoration: underline; }
.news-src { grid-column: 2; font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.news-more { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.news-more:hover { text-decoration: underline; }

/* Indicator strip */
.ticker { background: var(--blue-deep); color: #e9edf7; border-bottom: 1px solid var(--line); }
.ticker .wrap { display: flex; align-items: center; gap: 24px; padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
.ticker .wrap::-webkit-scrollbar { display: none; }
.ticker ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 28px; flex: none; }
.ticker li { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.tk-k { color: #a9b6d6; }
.tk-v { font-weight: 700; color: #ffffff; }
.tk-c { color: #a9b6d6; font-size: 0.8rem; }
.tk-c.up { color: #6fd29a; }
.tk-c.down { color: #f08c98; }
.tk-asof { order: -1; flex: none; padding-right: 20px; border-right: 1px solid rgba(255,255,255,0.2); white-space: nowrap; font-size: 0.75rem; color: #a9b6d6; letter-spacing: 0.04em; }

@media (min-width: 901px) {
  .ticker .wrap { gap: 18px; }
  .ticker ul { gap: 20px; }
  .ticker li { font-size: 0.82rem; gap: 6px; }
}
.ticker .wrap { max-width: 1240px; }
