@font-face { font-family: Geist; src: url(../media/fonts/Geist-Regular.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Geist; src: url(../media/fonts/Geist-Medium.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #000;
  --ink-2: #1e1e1f;
  --muted: #5b5f68;
  --page: #fafafa;
  --navy: #010517;
  --card: rgba(38, 41, 48, .88);
  --mist: #b1c3cd;
  --line: rgba(0, 0, 0, .1);
  --gutter: 32px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink-2);
  font: 400 15px/1.45 Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  letter-spacing: -.02em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; margin: 0; }
p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid #2bb3c0; outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1376px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 36px; text-decoration: none; }
.skip:focus { top: 12px; }

/* labels with a dot, as on the Framer site */
.label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; letter-spacing: -.04em; color: var(--ink-2); margin-bottom: 18px; }
.label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .45; }
.label.on-dark { color: #fff; }

/* four small dots in the corners of a card */
.dots { position: relative; }
.dots::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  --dot: radial-gradient(circle, rgba(255, 255, 255, .95) 1.6px, transparent 2.1px);
  background: var(--dot) top left / 6px 6px no-repeat, var(--dot) top right / 6px 6px no-repeat,
              var(--dot) bottom left / 6px 6px no-repeat, var(--dot) bottom right / 6px 6px no-repeat;
}

/* pill buttons with the round arrow */
.pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 6px 6px 18px;
  border-radius: 36px; background: var(--navy); color: #fff; text-decoration: none; font-size: 15px; white-space: nowrap;
  transition: background-color .2s ease;
}
.pill-arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--mist); color: var(--navy); transition: transform .25s ease; }
.pill-arrow svg { width: 15px; height: 15px; }
.pill:hover { background: #10172f; }
.pill:hover .pill-arrow { transform: rotate(45deg); }
.pill-glass { background: rgba(1, 5, 23, .26); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.pill-glass:hover { background: rgba(1, 5, 23, .42); }
.pill-glass .pill-arrow { background: #fff; }

/* ---- header */
.site-header { position: relative; z-index: 5; }
.site-header .header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.site-header.on-media { position: absolute; inset: 0 0 auto; background: linear-gradient(rgba(1, 5, 23, .3), rgba(1, 5, 23, .12)); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.brand img { width: 74px; height: auto; }
.main-nav { display: flex; gap: 26px; }
.main-nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); padding: 10px 0; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.on-media .main-nav a { color: #fff; }
.site-header:not(.on-media) { background: var(--page); border-bottom: 1px solid var(--line); }

/* ---- hero */
.hero { position: relative; min-height: max(600px, 72vh); display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: #9db0b4 url(../media/hero-poster.webp) center / cover no-repeat; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .24), rgba(0, 0, 0, .28) 45%, rgba(0, 0, 0, .5)); }
.hero-inner { position: relative; padding-top: 120px; padding-bottom: 22px; }
.hero h1 { font-size: clamp(44px, 5.2vw, 74px); line-height: 1.1; letter-spacing: -.06em; max-width: 10.5em; margin-bottom: 34px; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.glass {
  width: 208px; padding: 22px 22px; border-radius: 4px; font-size: 14px; line-height: 1.4; letter-spacing: -.03em;
  background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  text-shadow: 0 1px 2px rgba(1, 5, 23, .25);
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-side { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; }
.hero-social, .motion-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: rgba(1, 5, 23, .18);
  border: 0; padding: 0; cursor: pointer; transition: background-color .2s ease;
}
.hero-social svg { width: 18px; height: 18px; }
.motion-toggle svg { width: 14px; height: 14px; }
.hero-social:hover, .motion-toggle:hover { background: rgba(1, 5, 23, .4); }
.motion-toggle .when-paused, .motion-toggle[aria-pressed="true"] .when-playing { display: none; }
.motion-toggle[aria-pressed="true"] .when-paused { display: block; }

/* ---- logo row */
.logos { background: var(--page); border-bottom: 1px solid var(--line); }
.logo-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 22px 64px; padding-top: 26px; padding-bottom: 26px; }
.logo-row a { display: block; padding: 4px; border-radius: 4px; }
.logo-row img { height: 50px; width: auto; max-width: 160px; object-fit: contain; }
.logo-row li:first-child img { height: 60px; }
.logo-row li:nth-child(4) img { height: 22px; }
.logo-row li:nth-child(2) img, .logo-row li:nth-child(3) img { height: 34px; }

/* ---- introduction */
.intro { padding: 96px 0 104px; }
.intro-grid { max-width: 1040px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; }
.intro .label, .intro h2 { grid-column: 1 / 8; }
.intro h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.04em; color: var(--ink); }
.intro-copy { grid-column: 4 / 11; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 44px; max-width: 420px; }
.intro-copy p { font-size: 15px; }
.intro-action { grid-column: 4 / 11; margin-top: 32px; }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 80px; }
.stats li { border-top: 1px solid var(--line); padding-top: 18px; }
.stat-num { display: block; font-size: clamp(36px, 4vw, 52px); font-weight: 500; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.stat-label { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; max-width: 220px; }

/* ---- platforms */
.platforms { position: relative; background: var(--navy) url(../media/platforms-bg.webp) center / cover no-repeat; color: #fff; padding: 72px 0 120px; }
.platforms-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 40px; align-items: start; }
.platforms-intro { position: sticky; top: 40px; }
.platforms h2 { font-size: clamp(36px, 3.4vw, 48px); line-height: 1.2; letter-spacing: -.04em; margin-bottom: 14px; }
.platforms-intro p:not(.label) { max-width: 240px; color: rgba(255, 255, 255, .9); }
.platform-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.platform {
  display: flex; flex-direction: column; height: 100%; border-radius: 4px; text-decoration: none; color: #fff;
  background: var(--card); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.platform:hover { transform: translateY(-3px); background: rgba(46, 50, 59, .92); box-shadow: inset 0 0 0 1px rgba(177, 195, 205, .4); }
.platform-head { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 20px 16px; border-bottom: 1px solid rgba(255, 255, 255, .45); }
.platform-name { font-size: 23px; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; }
.platform-name sup { font-size: .55em; vertical-align: .55em; margin-left: 1px; }
.platform-head svg { width: 17px; height: 17px; transition: transform .25s ease; }
.platform:hover .platform-head svg { transform: translateX(3px); }
.platform-art { display: grid; place-items: center; height: 168px; padding: 18px; }
.platform-art img { width: auto; height: auto; }
.icon-wide img { width: 130px; }
.icon-square img { width: 104px; }
.icon-app img { width: 120px; border-radius: 26px; }
.icon-logo img { width: 150px; }
.platform-body { display: flex; flex-direction: column; gap: 14px; padding: 0 24px 24px; flex: 1; }
.platform-text { color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.45; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12px; letter-spacing: -.01em; padding: 4px 10px; border-radius: 20px; color: var(--mist); box-shadow: inset 0 0 0 1px rgba(177, 195, 205, .35); }
.platform-site { margin-top: auto; font-size: 13px; color: rgba(255, 255, 255, .6); }

/* ---- news */
.news { padding: 96px 0 110px; }
.news h2 { font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -.04em; line-height: 1.1; color: var(--ink); margin-bottom: 40px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s ease, transform .2s ease; }
.news-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0, 0, 0, .18), 0 10px 30px -18px rgba(1, 5, 23, .45); }
.news-card img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; background: #e9ecef; }
.news-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.news-date { font-size: 13px; color: var(--muted); }
.news-card h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.03em; color: var(--ink); }
.news-card h3 a { text-decoration: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; }
.news-card h3 a:focus-visible { outline: none; }
.news-card:focus-within { outline: 2px solid #2bb3c0; outline-offset: 3px; }
.news-link { margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 4px; font-size: 14px; color: #0b5f73; }
.news-link svg { width: 14px; height: 14px; }

/* ---- footer */
.site-footer { background: var(--navy); color: #fff; padding: 36px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 32px; padding-bottom: 90px; }
.footer-brand img { width: 74px; height: auto; }
.footer-nav ul { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.footer-nav a, .footer-contact a, .footer-legal a { color: #fff; text-decoration: none; }
.footer-nav a, .footer-legal a { display: inline-block; padding: 4px 0; }
.footer-nav a:hover, .footer-contact a:hover, .footer-legal a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-title { font-size: 23px; line-height: 1.2; letter-spacing: -.03em; max-width: 440px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.footer-cols h3 { font-size: 14px; letter-spacing: -.04em; margin-bottom: 14px; color: rgba(255, 255, 255, .7); }
.footer-cols p { font-size: 14px; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .75); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- text pages */
.doc { max-width: 760px; padding-top: 72px; padding-bottom: 110px; }
.doc h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.05em; color: var(--ink); }
.doc-updated { margin-top: 14px; color: var(--muted); font-size: 14px; }
.doc h2 { font-size: 20px; letter-spacing: -.03em; color: var(--ink); margin: 40px 0 10px; }
.doc p { font-size: 16px; line-height: 1.65; letter-spacing: -.01em; }
.doc h1 + .doc-updated + p { margin-top: 36px; }
.not-found h1 { margin-bottom: 18px; }
.link-list { margin-top: 22px; display: grid; gap: 10px; }
.link-list a { color: #0b5f73; text-underline-offset: 3px; }

/* a Surety address that was not built as a page: show the Surety app instead */
.surety-mode body > :not(main), .surety-mode main > :not(.surety-fallback) { display: none !important; }
.surety-fallback iframe { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; z-index: 100; }

/* ---- smaller screens */
@media (max-width: 1100px) {
  .platforms-grid { grid-template-columns: 1fr; }
  .platforms-intro { position: static; }
  .platforms-intro p:not(.label) { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .intro .label, .intro h2, .intro-copy, .intro-action { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  :root { --gutter: 20px; }
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 14px; }
  .hero { min-height: 100svh; min-height: max(620px, 100svh); }
  .hero-inner { padding-bottom: 20px; }
  .hero h1 { margin-bottom: 22px; }
  .hero-cards { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
  .glass { width: auto; padding: 18px 16px; font-size: 13px; }
  .hero-actions { width: 100%; }
  .hero-actions .pill { flex: 1 1 auto; justify-content: space-between; }
  .hero-side { top: 84px; transform: none; right: 14px; }
  .logo-row { gap: 18px 34px; padding-top: 22px; padding-bottom: 22px; }
  .logo-row img { height: 40px; max-width: 120px; }
  .logo-row li:first-child img { height: 48px; }
  .logo-row li:nth-child(4) img { height: 17px; }
  .logo-row li:nth-child(2) img, .logo-row li:nth-child(3) img { height: 26px; }
  .intro { padding: 64px 0 72px; }
  .intro-copy { grid-template-columns: 1fr; gap: 14px; margin-top: 26px; max-width: none; }
  .stats { grid-template-columns: 1fr; gap: 0; margin-top: 48px; }
  .stats li { display: grid; grid-template-columns: 110px 1fr; align-items: baseline; gap: 14px; padding: 16px 0; }
  .stat-label { margin-top: 0; }
  .platforms { padding: 60px 0 72px; }
  .platform-list { grid-template-columns: 1fr; }
  .platform-art { height: 140px; }
  .news { padding: 64px 0 72px; }
  .news h2 { margin-bottom: 26px; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-bottom: 56px; }
  .footer-cols { margin-top: 28px; }
  .doc { padding-top: 48px; padding-bottom: 72px; }
}
@media (max-width: 380px) {
  .hero-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
