/* Sequin landing page: brand tokens, buttons and illustrations first,
   then the page layout and its light and dark themes. */

:root {
  --navy-950: #12133a;
  --navy-900: #1b1d4b;
  --navy-850: #24275e;
  --navy-800: #2a2d66;
  --navy-700: #33366a;
  --navy-600: #45477a;
  --navy-500: #5c5e8c;
  --navy-300: #9a9cc0;
  --navy-150: #d0d1e2;
  --navy-100: #e2e3ee;
  --navy-50: #f4f5fa;
  --navy-00: #f9f9fc;
  --white: #ffffff;
  --green-400: #13e52f;
  --green-300: #8cfa9a;
  --green-700: #067314;

  --space-50: 4px;
  --space-75: 8px;
  --space-100: 12px;
  --space-200: 16px;
  --space-300: 24px;
  --space-400: 32px;
  --space-600: 48px;
  --space-700: 64px;
  --space-800: 80px;
  --space-900: 96px;

  --radius-12: 12px;
  --radius-24: 24px;
  --radius-48: 48px;
  --radius-full: 9999px;

  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Barlow", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green-400); outline-offset: 2px; }

.skip-link {
  position: absolute; left: var(--space-200); top: -64px; z-index: 100;
  padding: var(--space-75) var(--space-100); border-radius: var(--radius-12);
  background: var(--green-400); color: var(--navy-900); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-200); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--space-300)); margin: 0 auto; padding: 0 var(--space-300); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 18px; border-radius: var(--radius-12); border: 1px solid transparent;
  font: 600 17px/24px var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn img { width: 20px; height: 20px; }
.btn--sm { padding: 6px 14px; font-size: 15px; line-height: 22px; }
.btn--lg { padding: 13px 22px; font-size: 19px; line-height: 26px; }
.btn--pill { border-radius: var(--radius-full); }
.btn--primary { background: var(--green-400); color: var(--navy-900); }
.btn--primary:hover { background: var(--green-300); }
.btn--secondary { background: var(--navy-800); color: var(--white); border-color: var(--navy-500); }
.btn--secondary:hover { border-color: var(--navy-150); }
.btn--ghost-light { background: var(--white); color: var(--navy-900); border-color: var(--navy-100); }
.btn--ghost-light:hover { border-color: var(--navy-600); }
.btn--ghost-dark { background: transparent; color: var(--white); border-color: var(--navy-500); }
.btn--ghost-dark:hover { border-color: var(--navy-150); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; text-decoration: none;
}
.arrow-link::after { content: "→"; transition: transform 300ms var(--ease); }
.arrow-link:hover::after { transform: translateX(3px); }

/* Small uppercase label above section titles */
.eyebrow {
  display: inline-block; padding: 3px 8px; border-radius: 6px;
  font: 600 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid currentColor;
}

/* Icon tile used on cards */
.icon-tile {
  display: inline-flex; padding: var(--space-100); border-radius: var(--radius-12);
  background: var(--navy-900);
}
.icon-tile img { width: 24px; height: 24px; }

/* Avatar with initials, light weight like the app */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border-radius: var(--radius-full);
  font: 400 13px/1 var(--font); letter-spacing: 0.02em;
  background: var(--navy-700); color: var(--white);
}
.avatar--a { background: #3b5bdb; }
.avatar--b { background: #0c8577; }
.avatar--c { background: #a04ac8; }
.avatar--d { background: #c2570c; }
.avatar--lg { width: 56px; height: 56px; font-size: 20px; }

/* App window mockup (contacts list + detail) */
.app {
  background: var(--navy-950); color: var(--white);
  border: 1px solid var(--navy-700); border-radius: var(--radius-24);
  box-shadow: 0 40px 80px -30px rgba(10, 11, 40, 0.7);
  overflow: hidden; font-size: 14px; line-height: 20px;
}
.app__bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--navy-700); }
.app__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--navy-700); }
.app__body { display: grid; grid-template-columns: 240px 1fr; min-height: 340px; }
.app__list { border-right: 1px solid var(--navy-700); padding: var(--space-200) var(--space-100); display: flex; flex-direction: column; gap: 4px; }
.app__search {
  margin: 0 4px 8px; padding: 8px 12px; border-radius: 10px;
  background: var(--navy-850); color: var(--navy-300); font-size: 13px;
}
.app__row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.app__row.is-selected { background: var(--navy-800); }
.app__row b { display: block; font-weight: 500; }
.app__row small { display: block; color: var(--navy-300); font-size: 12px; line-height: 16px; }
.app__detail { padding: var(--space-400); display: flex; flex-direction: column; gap: var(--space-300); }
.app__person { display: flex; align-items: center; gap: var(--space-200); }
.app__person h4 { margin: 0; font: 500 22px/28px var(--font); }
.app__person small { color: var(--navy-300); }
.app__chip {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 3px 10px; border-radius: var(--radius-full);
  background: var(--navy-800); color: var(--navy-150); font-size: 12px; line-height: 18px;
}
.app__chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--navy-150); }
.app__label { font: 600 11px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-300); }
.app__cert {
  display: flex; justify-content: space-between; gap: var(--space-200);
  padding: 10px 12px; border: 1px solid var(--navy-700); border-radius: 10px;
  font-family: var(--mono); font-size: 12px; color: var(--navy-150);
}
.app__cert span:last-child { color: var(--navy-300); }
.app__actions { display: flex; gap: 8px; margin-top: auto; }
.app__btn { padding: 7px 14px; border-radius: 10px; background: var(--navy-800); border: 1px solid var(--navy-600); font-weight: 500; font-size: 13px; }

/* Floating card that overlaps the app window */
.float-card {
  background: var(--white); color: var(--navy-900);
  border: 1px solid var(--navy-100); border-radius: 16px;
  box-shadow: 0 24px 48px -16px rgba(10, 11, 40, 0.45);
  padding: var(--space-200); font-size: 13px; line-height: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.float-card__head { display: flex; align-items: center; gap: 10px; }
.float-card__head b { font-weight: 600; font-size: 14px; }
.float-card__steps { display: flex; flex-direction: column; gap: 6px; }
.float-card__steps li { display: flex; align-items: center; gap: 8px; color: var(--navy-600); }
.float-card__steps li::before {
  content: "✓"; display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 700;
  background: var(--green-400); color: var(--navy-900);
}

/* Feature illustrations (pure HTML/CSS). Each sits in a fixed-height stage. */
.ill { position: relative; height: 220px; display: flex; align-items: center; justify-content: center; overflow: hidden; }

/* 1. Contacts instead of keys */
.ill-contacts { flex-direction: column; gap: 8px; }
.ill-contacts .row {
  display: flex; align-items: center; gap: 10px; width: 220px;
  padding: 8px 10px; border-radius: 12px; font-size: 13px; line-height: 18px;
  background: var(--ill-card, var(--white)); border: 1px solid var(--ill-line, var(--navy-100));
  color: var(--ill-text, var(--navy-900));
}
.ill-contacts .row:nth-child(2) { transform: translateX(18px); }
.ill-contacts .row:nth-child(3) { transform: translateX(-12px); opacity: 0.75; }
.ill-contacts .keyline {
  position: absolute; inset: auto 0 14px; text-align: center;
  font: 11px/1 var(--mono); color: var(--ill-muted, var(--navy-300)); text-decoration: line-through; opacity: 0.8;
}

/* 2. Guided verification */
.ill-verify { flex-direction: column; gap: 10px; }
.ill-verify .step {
  display: flex; align-items: center; gap: 10px; width: 230px;
  padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 18px;
  background: var(--ill-card, var(--white)); border: 1px solid var(--ill-line, var(--navy-100));
  color: var(--ill-text, var(--navy-900));
}
.ill-verify .step i {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; font: normal 700 11px/1 var(--font);
  background: var(--green-400); color: var(--navy-900);
}
.ill-verify .step.is-next i { background: transparent; border: 1.5px solid var(--ill-muted, var(--navy-300)); color: var(--ill-muted, var(--navy-300)); }
.ill-verify .step.is-next { opacity: 0.7; }
.ill-verify .fp { font-family: var(--mono); letter-spacing: 0.04em; }

/* 3. Built in Rust, designed in Slint */
.ill-code {
  align-items: stretch; justify-content: center; padding: 28px 24px 0;
}
.ill-code .win {
  width: 260px; border-radius: 12px 12px 0 0; overflow: hidden;
  background: var(--navy-950); border: 1px solid var(--navy-700); border-bottom: 0;
  font: 12px/20px var(--mono); color: var(--navy-150);
}
.ill-code .tabs { display: flex; border-bottom: 1px solid var(--navy-700); }
.ill-code .tabs span { padding: 7px 12px; color: var(--navy-300); }
.ill-code .tabs span.on { color: var(--white); background: var(--navy-850); }
.ill-code pre { margin: 0; padding: 10px 12px; font: inherit; }
.ill-code .k { color: var(--green-300); }
.ill-code .s { color: var(--navy-300); }

/* People, not keys diagram */
.people-diagram { width: 100%; max-width: 440px; aspect-ratio: 1; position: relative; }
.people-diagram svg { width: 100%; height: 100%; }

/* Scrolling ticker */
.ticker { overflow: hidden; white-space: nowrap; }
.ticker__track { display: inline-flex; gap: var(--space-600); animation: ticker 40s linear infinite; padding-right: var(--space-600); }
.ticker__track span { display: inline-flex; align-items: center; gap: var(--space-600); }
.ticker__track span::after { content: "✦"; color: var(--green-400); }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 720px) {
  .app__body { grid-template-columns: 1fr; }
  .app__list { border-right: 0; border-bottom: 1px solid var(--navy-700); }
  .app__list .app__row:nth-child(n+4) { display: none; }
  .app__detail { padding: var(--space-300); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .arrow-link::after { transition: none; }
  .btn:hover, .btn:active { transform: none; }
  .ticker__track { animation: none; }
}

/* Page layout: centred logo bar, centred headline with the subheading on the
   left and the call to action on the right below it, a product shot, a
   bordered three-column feature grid, a two-card block and a one-line
   footer. Follows the system light or dark mode, or the visitor's choice. */

/* Theme tokens. Light values first. Dark values apply when the system is
   dark (unless the visitor picked light), or when the visitor picked dark. */
:root {
  color-scheme: light;
  --only-light: inline;
  --only-dark: none;
  --inverse-bg: var(--navy-900);
  --inverse-text: var(--white);
  --inverse-muted: var(--navy-150);
  --inverse-btn-bg: var(--white);
  --inverse-btn-text: var(--navy-900);
  --inverse-btn-hover: var(--navy-50);
  --bg: var(--navy-00);
  --surface: var(--white);
  --surface-2: var(--navy-50);
  --border: var(--navy-100);
  --text: var(--navy-900);
  --text-muted: var(--navy-600);
  --text-subtle: var(--navy-500);
  --nav-bg: rgba(249, 249, 252, 0.88);
  --glow: rgba(19, 229, 47, 0.14);
  --frame-from: var(--navy-50);
  --btn2-bg: var(--white);
  --btn2-text: var(--navy-900);
  --btn2-border: var(--navy-100);
  --btn2-border-hover: var(--navy-600);
  --link-accent: var(--green-700);
  --ill-bg: var(--navy-50);
  --ill-card: var(--white);
  --ill-line: var(--navy-100);
  --ill-text: var(--navy-900);
  --ill-muted: var(--navy-300);
  /* App mockup, matching the Sequin desktop app */
  --app-bg: #eef3fb;
  --app-side: #ffffff;
  --app-side-2: #f8fafd;
  --app-card: #ffffff;
  --app-line: #e2e7ef;
  --app-text: #111827;
  --app-muted: #6b7280;
  --app-accent: #2563eb;
  --app-accent-soft: #e8f0ff;
  /* Hero sequin glimmer colour (r, g, b) */
  --sequin-glint: 1, 184, 25;
  /* Prototype Fund logo is black on transparent: keep it in light, invert it in dark */
  --badge-filter: none;
  --code-bg: var(--navy-50);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --only-light: none;
    --only-dark: inline;
    --inverse-bg: var(--navy-00);
    --inverse-text: var(--navy-900);
    --inverse-muted: var(--navy-600);
    --inverse-btn-bg: var(--navy-900);
    --inverse-btn-text: var(--white);
    --inverse-btn-hover: var(--navy-800);
    --bg: var(--navy-950);
    --surface: var(--navy-900);
    --surface-2: var(--navy-850);
    --border: var(--navy-800);
    --text: var(--white);
    --text-muted: var(--navy-150);
    --text-subtle: var(--navy-300);
    --nav-bg: rgba(18, 19, 58, 0.92);
    --glow: rgba(19, 229, 47, 0.18);
    --frame-from: var(--navy-850);
    --btn2-bg: transparent;
    --btn2-text: var(--white);
    --btn2-border: var(--navy-500);
    --btn2-border-hover: var(--navy-150);
    --link-accent: var(--green-400);
    --ill-bg: var(--navy-850);
    --ill-card: var(--navy-800);
    --ill-line: var(--navy-700);
    --ill-text: var(--white);
    --ill-muted: var(--navy-300);
    --app-bg: #0f141d;
    --app-side: #161c27;
    --app-side-2: #131923;
    --app-card: #1a2130;
    --app-line: #273041;
    --app-text: #e7ebf2;
    --app-muted: #97a1b3;
    --app-accent: #5b93ff;
    --app-accent-soft: rgba(91, 147, 255, 0.16);
    --sequin-glint: 140, 250, 154;
    --badge-filter: invert(1);
    --code-bg: var(--navy-950);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --only-light: none;
  --only-dark: inline;
  --inverse-bg: var(--navy-00);
  --inverse-text: var(--navy-900);
  --inverse-muted: var(--navy-600);
  --inverse-btn-bg: var(--navy-900);
  --inverse-btn-text: var(--white);
  --inverse-btn-hover: var(--navy-800);
  --bg: var(--navy-950);
  --surface: var(--navy-900);
  --surface-2: var(--navy-850);
  --border: var(--navy-800);
  --text: var(--white);
  --text-muted: var(--navy-150);
  --text-subtle: var(--navy-300);
  --nav-bg: rgba(18, 19, 58, 0.92);
  --glow: rgba(19, 229, 47, 0.18);
  --frame-from: var(--navy-850);
  --btn2-bg: transparent;
  --btn2-text: var(--white);
  --btn2-border: var(--navy-500);
  --btn2-border-hover: var(--navy-150);
  --link-accent: var(--green-400);
  --ill-bg: var(--navy-850);
  --ill-card: var(--navy-800);
  --ill-line: var(--navy-700);
  --ill-text: var(--white);
  --ill-muted: var(--navy-300);
  --app-bg: #0f141d;
  --app-side: #161c27;
  --app-side-2: #131923;
  --app-card: #1a2130;
  --app-line: #273041;
  --app-text: #e7ebf2;
  --app-muted: #97a1b3;
  --app-accent: #5b93ff;
  --app-accent-soft: rgba(91, 147, 255, 0.16);
  --sequin-glint: 140, 250, 154;
  --badge-filter: invert(1);
  --code-bg: var(--navy-950);
}

/* Show the logo or icon that matches the active theme */
.only-light { display: var(--only-light); }
.only-dark { display: var(--only-dark); }

body { background: var(--bg); color: var(--text); }

.btn--theme { background: var(--btn2-bg); color: var(--btn2-text); border-color: var(--btn2-border); }
.btn--theme:hover { border-color: var(--btn2-border-hover); }

.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; }
.nav__logo { grid-column: 2; display: block; }
.nav__logo img { width: 112px; height: auto; }
.theme-switch {
  grid-column: 3; justify-self: end;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border-radius: var(--radius-full);
  background: transparent; color: var(--text-muted); border: 1px solid var(--border); cursor: pointer;
  transition: color 300ms var(--ease), border-color 300ms var(--ease);
}
.theme-switch:hover { color: var(--text); border-color: var(--text-subtle); }
.theme-switch svg { width: 20px; height: 20px; }

.hero { padding: var(--space-800) 0 0; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 300px; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none;
}
/* Sequin pattern behind the hero, fading out before the mockup */
.hero__sequins {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 75%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 75%);
}
/* Same width as the mockup below */
.hero__head { position: relative; max-width: 800px; margin: 0 auto; }
.hero h1 {
  text-align: center; text-wrap: balance;
  font-weight: 600; letter-spacing: -0.02em;
  font-size: 72px; line-height: 78px;
}
.hero__row { margin-top: var(--space-400); display: flex; align-items: center; justify-content: space-between; gap: var(--space-400); }
.hero p { max-width: 520px; font-size: 20px; line-height: 30px; color: var(--text-muted); }
.hero__cta { flex: none; display: flex; align-items: center; gap: var(--space-300); }
/* Leaf shape: top left and bottom right 2x rounder than the usual 12px, the others half */
/* Brand green, a little lighter towards the top right like the logo mark
   and a little darker along the bottom, with a soft dark green edge */
.hero__cta .btn {
  --cta-fill:
    linear-gradient(180deg, rgba(6, 115, 20, 0) 45%, rgba(6, 115, 20, 0.16) 100%),
    linear-gradient(65deg, var(--green-400) 0%, var(--green-400) 35%, #52f069 100%);
  border-radius: 24px 6px 24px 6px;
  border-color: rgba(6, 115, 20, 0.5);
  background: var(--cta-fill);
  transition: filter 300ms var(--ease), transform 300ms var(--ease);
}
.hero__cta .btn:hover { background: var(--cta-fill); filter: brightness(1.05); }
.hero__release { font-size: 15px; line-height: 22px; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--text-subtle); }
.hero__release:hover { color: var(--text); text-decoration-color: currentColor; }
.frame {
  position: relative; max-width: 800px; margin: var(--space-600) auto 0; padding: 8px 8px 0;
  border-radius: 28px 28px 0 0; border: 1px solid var(--border); border-bottom: 0;
  background: linear-gradient(180deg, var(--frame-from), var(--bg));
}

/* Simplified copy of the Sequin desktop app: contact list and a contact's certificates */
.sq {
  height: 380px; /* cut off below the certificates, like a cropped screenshot */
  border: 1px solid var(--app-line); border-bottom: 0; border-radius: 14px 14px 0 0; overflow: hidden;
  background: var(--app-bg); color: var(--app-text); text-align: left;
  font-size: 13px; line-height: 18px;
}
.sq svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sq__body { display: grid; grid-template-columns: 250px 1fr; height: 100%; }
.sq__side { background: var(--app-side); border-right: 1px solid var(--app-line); padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.sq__nav { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid transparent; border-radius: 8px; font-weight: 500; }
.sq__nav.is-on { background: var(--app-accent-soft); color: var(--app-accent); border-color: color-mix(in srgb, var(--app-accent) 30%, transparent); }
.sq__search { display: flex; gap: 6px; margin-top: 8px; }
.sq__field { flex: 1; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--app-line); border-radius: 8px; color: var(--app-muted); }
.sq__square { display: inline-flex; align-items: center; justify-content: center; width: 32px; border: 1px solid var(--app-line); border-radius: 8px; }
.sq__filter { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 6px 10px; border: 1px solid var(--app-line); border-radius: 8px; }
.sq__filter span { margin-left: auto; color: var(--app-muted); }
.sq__list { margin-top: 4px; border: 1px solid var(--app-line); border-radius: 8px; overflow: hidden; background: var(--app-side-2); flex: 1; }
.sq__contact { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--app-line); background: var(--app-side); }
.sq__contact b { display: block; font-weight: 500; }
.sq__contact small { display: block; font-size: 11px; line-height: 14px; color: var(--app-muted); }
.sq__contact > svg:last-child { margin-left: auto; color: var(--app-muted); }
.sq__contact.is-on { background: var(--app-accent-soft); color: var(--app-accent); box-shadow: inset 3px 0 var(--app-accent); }
.sq__contact.is-on small, .sq__contact.is-on > svg:last-child { color: var(--app-accent); }
.sq__check { width: 14px; height: 14px; flex: none; border: 1px solid var(--app-line); border-radius: 4px; background: var(--app-card); }
.sq__main { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 32px 0; }
.sq__avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--app-line); }
.sq__name { font-size: 22px; line-height: 28px; font-weight: 600; }
.sq__card { width: 100%; max-width: 460px; margin-top: 8px; padding: 4px 16px; background: var(--app-card); border: 1px solid var(--app-line); border-radius: 12px; box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.35); }
.sq__card h5 { margin: 0; padding: 10px 0; font-size: 13px; font-weight: 600; }
.sq__cert { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--app-line); }
.sq__cert > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.sq__cert small { display: block; color: var(--app-muted); }
.sq__fp { font: 11px/16px var(--mono); color: var(--app-muted); white-space: nowrap; }

.why { padding: var(--space-900) 0; border-top: 1px solid var(--border); }
.why .eyebrow { color: var(--text-muted); }
.why h2 { max-width: 900px; margin: 0 0 var(--space-700); font-size: 52px; line-height: 56px; font-weight: 500; letter-spacing: -0.02em; }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--radius-24); overflow: hidden; background: var(--surface); }
.why__item + .why__item { border-left: 1px solid var(--border); }
.why__item .ill { background: var(--ill-bg); border-bottom: 1px solid var(--border); height: 260px; }
.why__text { padding: var(--space-400); display: flex; flex-direction: column; gap: var(--space-100); }
.why__text h3 { font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: -0.01em; }
.why__text p { font-size: 16px; line-height: 24px; color: var(--text-muted); }

.finale { padding: 0 0 var(--space-900); }
.finale__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-300); }
.panel { border-radius: var(--radius-24); padding: var(--space-600); display: flex; flex-direction: column; gap: var(--space-300); align-items: flex-start; }
.panel h2 { font-size: 24px; line-height: 30px; font-weight: 600; }
.panel p { font-size: 17px; line-height: 26px; }
.panel--install { background: var(--surface); border: 1px solid var(--border); }
.panel--install p { color: var(--text-muted); }

/* Command line with a copy button */
.cmd {
  margin-top: auto; align-self: stretch;
  display: flex; align-items: center; gap: var(--space-100);
  padding: 6px 6px 6px var(--space-200);
  background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius-12);
}
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 14px/22px var(--mono); color: var(--text); }
.cmd code::before { content: "$ "; color: var(--text-subtle); }
.cmd__copy {
  flex: none; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  font: 600 14px/20px var(--font); color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 300ms var(--ease);
}
.cmd__copy:hover { border-color: var(--text-subtle); }

/* Prototype Fund badge at the end of the page */
.pf-badge { display: inline-flex; align-items: center; gap: var(--space-100); color: var(--text-subtle); }
.pf-badge img { width: auto; height: 26px; filter: var(--badge-filter); opacity: 0.85; transition: opacity 300ms var(--ease); }
.pf-badge:hover img { opacity: 1; }
.panel--code { background: var(--inverse-bg); color: var(--inverse-text); }
.panel--code p { color: var(--inverse-muted); }
.panel--code .btn { margin-top: auto; background: var(--inverse-btn-bg); color: var(--inverse-btn-text); }
.panel--code .btn:hover { background: var(--inverse-btn-hover); }
/* GitLab mark drawn in the button's text colour */
.icon-gitlab {
  width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url(assets/icon-gitlab.svg) center / contain no-repeat;
  mask: url(assets/icon-gitlab.svg) center / contain no-repeat;
}

.footer { border-top: 1px solid var(--border); padding: var(--space-400) 0; color: var(--text-muted); font-size: 14px; line-height: 20px; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-300); }
.footer__row > a { flex: none; }
.footer__row > a img { width: 120px; height: auto; }
.footer ul { display: flex; flex-wrap: wrap; gap: var(--space-100) var(--space-400); font-size: 15px; font-weight: 500; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-200) var(--space-300); margin-top: var(--space-300); padding-top: var(--space-300); border-top: 1px solid var(--border); font-size: 13px; color: var(--text-subtle); }

@media (max-width: 1080px) {
  .hero__row { flex-direction: column; align-items: center; text-align: center; gap: var(--space-300); }
  .why__grid, .finale__grid { grid-template-columns: minmax(0, 1fr); }
  .why__item + .why__item { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 820px) {
  .sq__body { grid-template-columns: minmax(0, 1fr); }
  .sq__side { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: var(--space-600); }
  .hero h1 { font-size: 44px; line-height: 48px; }
  .hero p { font-size: 18px; line-height: 28px; }
  .frame { margin-top: var(--space-600); padding: 6px 6px 0; border-radius: 20px 20px 0 0; }
  .sq__main { padding: 28px 16px 0; }
  .sq__card { padding: 2px 12px; }
  .sq__fp { font-size: 10px; line-height: 14px; }
  .sq__cert { flex-direction: column; align-items: flex-start; gap: 4px; }
  .why { padding: var(--space-800) 0; }
  .why h2 { font-size: 36px; line-height: 40px; margin-bottom: var(--space-600); }
  .panel { padding: var(--space-300); }
  .footer__row { flex-direction: column; align-items: flex-start; }
}
