/* RiskFi temporary landing page, in the RiskFi brand kit (version 1, October 2026).
   One strong blue and almost nothing else: off-white on blue, ink and body grey on white,
   mint as the one accent on blue (the lit path in the illustration). Source Serif 4 for the word and
   headlines, Inter for reading, IBM Plex Mono for labels. No gradients, no shadows. */

:root {
  --blue: #1230E8;
  --off: #F2F4FF;
  --mint: #2CF4DD;
  --ink: #0B1020;
  --body: #374151;
  --muted: #6B7280;
  --ground: #F3F5FB;
  --line: #D5DBE7;
  --white: #FFFFFF;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;

  --wrap: 1184px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 8vw, 112px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--body);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; display: flex; flex-direction: column; }
main > :last-child { flex: 1 0 auto; }
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }
a:hover { opacity: .86; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: var(--radius); }
.site-header a:focus-visible, .hero a:focus-visible { outline-color: var(--off); }
h1, h2, h3, p, figure { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; padding: 10px 14px; border-radius: var(--radius); background: var(--off); color: var(--blue); font-weight: 700; }
.skip:focus { left: 8px; }

.label { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--radius); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.btn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn--light { background: var(--off); color: var(--blue); }

/* The logo: the return curve with the word to its right, centred on it.
   Off-white on blue in the header; the blue tile with the word in ink on white. */
.lockup { display: inline-flex; align-items: center; gap: .32em; padding: 12px 0; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: -.01em; color: var(--off); white-space: nowrap; }
.lockup img { display: block; flex: none; width: 40px; height: 40px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--blue); border-bottom: 1px solid rgba(242, 244, 255, .16); }
.site-header .wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav a { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 12px 16px; border: 1px solid rgba(242, 244, 255, .55); border-radius: var(--radius); color: var(--off); }
@media (max-width: 640px) { .site-header { position: static; } }

/* Hero */
.hero { overflow: hidden; background: var(--blue); color: var(--off); padding: clamp(56px, 7vw, 104px) 0 clamp(56px, 6vw, 88px); }
.hero--short { padding: clamp(48px, 5.5vw, 80px) 0; }
.hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 4vw, 56px); }
.hero__copy { flex: 1.3 1 440px; min-width: 0; }
.hero__figure { flex: 1 1 380px; min-width: 0; }
.hero__figure svg { display: block; width: 100%; height: auto; max-width: 560px; margin: 0 auto; }
/* On desktop the illustration takes the right half, whole, and no taller than the screen allows:
   the header, the hero's padding and the illustration fit in one screen. */
@media (min-width: 960px) {
  .hero { padding-top: 48px; padding-bottom: 48px; }
  .hero__figure svg { max-width: min(600px, calc(100vh - 72px - 96px - 24px)); margin: 0 0 0 auto; }
}
.hero .label { color: rgba(242, 244, 255, .72); }
.hero h1 { margin-top: 20px; font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1.06; font-weight: 600; letter-spacing: -.015em; color: var(--off); text-wrap: balance; }
.hero--short h1 { font-size: clamp(36px, 4.4vw, 56px); }
.hero__lede { margin-top: 24px; max-width: 32em; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: rgba(242, 244, 255, .88); }
.hero .btn { margin-top: 36px; }

/* The illustration: a position among the things it depends on, with one path lit in mint
   and a dot travelling along it. */
.pic-dot { display: none; }
@supports (offset-path: path('M0 0L1 1')) {
  .pic-dot {
    display: block;
    offset-path: path('M348.6 67.8C349 95 348.5 122 345.4 147.9C341.5 176 332 202 319.6 221.2C301 245 275 259 250 270');
    offset-rotate: 0deg;
    animation: travel 3.8s cubic-bezier(.45, 0, .55, 1) infinite;
  }
}
.pic-halo { transform-box: fill-box; transform-origin: center; animation: halo 3.8s ease-out infinite; }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes halo { 0% { transform: scale(1); opacity: .55; } 45%, 100% { transform: scale(2.1); opacity: 0; } }

/* What we do */
.about { padding: var(--section) 0; background: var(--white); }
.about .label { color: var(--blue); }
.about__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px clamp(24px, 3vw, 48px); margin-top: 28px; }
.about__item { padding-top: 20px; border-top: 2px solid var(--ink); }
.about__item h2 { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.2; color: var(--ink); }
.about__item p { margin-top: 10px; font-size: 17px; }

/* Contact */
.contact { background: var(--ground); padding: var(--section) 0; }
.contact__grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(32px, 5vw, 72px); }
.contact__copy { flex: 1 1 300px; min-width: 0; max-width: 440px; }
.contact .label { color: var(--blue); }
.contact h2 { margin-top: 14px; font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3vw, 34px); line-height: 1.15; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.contact__copy p { margin-top: 16px; font-size: 17px; }
.contact__copy a { color: var(--blue); font-weight: 700; }
.contact__details { flex: 1.6 1 420px; min-width: 0; margin: 0; padding: clamp(20px, 2.6vw, 32px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 20px; }
.contact__details dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact__details dd { margin: 6px 0 0; font-size: 17px; color: var(--ink); }
.contact__details a { color: var(--blue); font-weight: 700; }

/* Footer */
.site-footer { padding: 32px 0 48px; background: var(--ground); border-top: 1px solid var(--line); font-size: 14px; color: #5B6472; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 48px; }
.site-footer__brand { flex: 1 1 420px; min-width: 0; }
.site-footer .lockup { font-size: 24px; color: var(--ink); }
.site-footer .lockup img { width: 32px; height: 32px; }
.site-footer__legal { margin-top: 10px; max-width: 70ch; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-weight: 600; color: var(--body); }
.site-footer nav a { padding: 12px 0; }

/* Legal page */
.legal { padding: clamp(48px, 6vw, 88px) 0 var(--section); }
.legal__body { max-width: 720px; }
.legal__meta { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 32px; }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); color: var(--ink); margin: 40px 0 12px; }
.legal p, .legal li { color: var(--body); line-height: 1.65; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 12px 20px; padding: 0; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pic-halo { animation: none; }
  .pic-dot { display: none; }
}
