/* Finlee website. Palette and type match the app (composeApp ui/theme). No external requests. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage_extrabold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --porcelain: #F2F4FA;
  --paper: #FFFFFF;
  --line: #DCE0EE;
  --ink: #141B4D;
  --muted: #585F80;
  --cobalt: #2B44E0;
  --cobalt-deep: #1A2BA8;
  --cobalt-tint: #E7EAFE;
  --on-cobalt-muted: #D5DAF9;
  --halo: #FFCC33;
  --halo-tint: #FFF4D1;
  --amber-ink: #8A5600;
  --roma-ink: #C0245E;
  --roma-tint: #FDE6EE;
  --mint-ink: #08774F;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --text: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
}
a { color: var(--cobalt-deep); text-underline-offset: 3px; }
a:hover { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
h2 { font-size: 1.55rem; margin-top: 2.2em; }
h3 { font-size: 1.15rem; margin-top: 1.6em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }
code { font-size: .9em; background: var(--cobalt-tint); padding: .1em .35em; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Header and footer */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.45rem/1 var(--display); }
.brand img { width: 36px; height: 36px; }
.lang { font-weight: 600; font-size: .95rem; text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; font-size: .95rem; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
.site-footer a { color: var(--ink); }

/* Home */
.pill { display: inline-block; font-weight: 600; font-size: .9rem; background: var(--halo-tint); color: var(--amber-ink); border-radius: 999px; padding: 5px 14px; margin-bottom: 18px; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 28px 0 24px; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 32em; }
.tile { background: var(--cobalt); color: #fff; border-radius: 28px; padding: 26px; box-shadow: 0 24px 48px -28px rgba(26, 43, 168, .55); }
.tile-head { display: flex; align-items: center; gap: 10px; color: var(--on-cobalt-muted); font-weight: 600; font-size: .95rem; margin-bottom: 18px; }
.tile-head img { width: 28px; height: 28px; border-radius: 8px; outline: 2px solid rgba(255,255,255,.25); }
.bubble { border-radius: 18px; padding: 12px 16px; margin: 0 0 12px; max-width: 88%; font-size: .98rem; line-height: 1.45; }
.bubble.agent { background: var(--paper); color: var(--ink); border-bottom-left-radius: 6px; }
.bubble.me { background: var(--cobalt-deep); color: #fff; margin-left: auto; border-bottom-right-radius: 6px; }
.meter { margin-top: 16px; background: rgba(255,255,255,.12); border-radius: 14px; padding: 12px 14px; font-size: .9rem; color: var(--on-cobalt-muted); }
.meter .bar { height: 8px; border-radius: 99px; background: var(--cobalt-deep); margin-top: 8px; overflow: hidden; }
.meter .bar span { display: block; height: 100%; width: 62%; background: var(--halo); border-radius: 99px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 0; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.trust { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust div { padding: 4px 0 0 16px; border-left: 3px solid var(--cobalt-tint); font-size: .97rem; color: var(--muted); }
.trust strong { display: block; color: var(--ink); font-weight: 600; }

/* Documents */
.banner { background: var(--halo-tint); color: var(--amber-ink); font-weight: 600; text-align: center; padding: 10px 16px; font-size: .95rem; border-bottom: 1px solid #F3E2A9; }
.doc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 48px); }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.6rem); }
.doc h2:first-of-type { margin-top: 1.4em; }
.ph { background: var(--halo-tint); color: var(--amber-ink); padding: 0 .3em; border-radius: 4px; font-weight: 600; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; background: var(--porcelain); }
.toc { background: var(--porcelain); border-radius: 14px; padding: 16px 20px; font-size: .95rem; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }

/* Return-to-app pages */
.center { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 24px 0; }
.status { max-width: 460px; }
.status .icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 20px; font: 800 2rem/1 var(--display); }
.status .ok { background: var(--cobalt-tint); color: var(--cobalt-deep); }
.status .err { background: var(--roma-tint); color: var(--roma-ink); }
.button { display: inline-block; background: var(--cobalt); color: #fff; font-weight: 600; text-decoration: none; padding: 14px 26px; border-radius: 999px; margin: 8px 0 16px; }
.button:hover { background: var(--cobalt-deep); color: #fff; }
.small { font-size: .92rem; }
[hidden] { display: none !important; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .features { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border-bottom: 0; padding: 4px 0; }
  tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  td:first-child { font-weight: 600; }
}
