/* Signwings · self-hosted fonts (SIL Open Font License): Inter, Instrument Serif, JetBrains Mono */
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-italic-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-italic-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-normal-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-normal-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/inter-normal-400-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/inter-normal-400-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-normal-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-normal-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/jetbrains-mono-normal-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/jetbrains-mono-normal-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Signwings · site styles. Design tokens follow the Ascentia system (Inter / Instrument Serif / JetBrains Mono,
   warm neutrals, navy accent). Components only read tokens, so the dark theme only redefines tokens. */

:root {
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --surface-2: #F5F5F4;
  --surface-3: #EFEEEC;
  --line: #E7E5E4;
  --line-strong: #D6D3D1;
  --text: #1C1917;
  --text-2: #57534E;
  --text-3: #A8A29E;
  --accent: #1E3A5F;
  --accent-hover: #162D4A;
  --accent-soft: rgba(30, 58, 95, .07);
  --accent-fill: rgba(30, 58, 95, .12);
  --on-accent: #FFFFFF;
  --teal: #0E7490;
  --pos: #067647;
  --pos-soft: rgba(6, 118, 71, .08);
  --ink: #1E3A5F;
  --mark: rgba(30, 58, 95, .10);
  --paper: #FFFFFF;
  --header-bg: rgba(250, 250, 249, .78);

  --shadow: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .04);
  --shadow-pop: 0 16px 40px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .05);
  --focus: 0 0 0 3px rgba(30, 58, 95, .22);

  --r: 12px;
  --r-lg: 18px;
  --r-sm: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 150ms;
  --wrap: 1160px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0F1115;
  --surface: #161A20;
  --surface-2: #1B2027;
  --surface-3: #222831;
  --line: #262B33;
  --line-strong: #343A44;
  --text: #EDEDEF;
  --text-2: #A3A3AD;
  --text-3: #6B7079;
  --accent: #8FB3E0;
  --accent-hover: #A9C5E8;
  --accent-soft: rgba(143, 179, 224, .08);
  --accent-fill: rgba(143, 179, 224, .14);
  --on-accent: #0F1115;
  --teal: #56AFC4;
  --pos: #52C08A;
  --pos-soft: rgba(82, 192, 138, .10);
  --ink: #A9C5E8;
  --mark: rgba(143, 179, 224, .16);
  --paper: #1B2027;
  --header-bg: rgba(15, 17, 21, .74);
  --shadow: 0 1px 2px rgba(0, 0, 0, .25);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .25), 0 10px 28px rgba(0, 0, 0, .22);
  --shadow-pop: 0 18px 44px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
  --focus: 0 0 0 3px rgba(143, 179, 224, .3);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
::selection { background: var(--accent-fill); }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.mono { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; }
.muted { color: var(--text-2); font-size: 13px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 8px 14px; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); }
.skip:focus { left: 12px; }

.eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 500;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

/* ------------------------------------------------------------------ buttons, pills */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: 500 14.5px/1 var(--font-ui);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease);
}
.btn:hover { text-decoration: none; border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: transparent; }
.btn-primary svg { transition: transform var(--t) var(--ease); }
.btn-primary:hover svg { transform: translateX(2px); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15.5px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.pill.accent { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.pill.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.live { color: var(--pos); background: var(--pos-soft); border-color: transparent; }
.pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s var(--ease) infinite; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }

/* ------------------------------------------------------------------ header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease);
}
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 1px 2px rgba(16, 24, 40, .12);
}
.brand-name { font-family: var(--font-serif); font-size: 23px; line-height: 1; letter-spacing: -.01em; }
.brand-name small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.top-act { display: flex; align-items: center; gap: 10px; }

/* ------------------------------------------------------------------ hero */
.hero-sec { padding-top: 28px; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: 36px;
  align-items: center;
  padding: 56px 56px 56px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background:
    radial-gradient(1100px 340px at 100% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 62%),
    radial-gradient(700px 300px at 0% 100%, color-mix(in srgb, var(--teal) 7%, transparent), transparent 60%),
    var(--surface);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 0%, transparent) 85%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -180px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 10%, transparent), transparent);
  pointer-events: none;
}
.hero-main { position: relative; z-index: 1; }
.hero h1 {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 5.2vw, 64px);
  line-height: 1;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub { margin-top: 20px; max-width: 560px; color: var(--text-2); font-size: 17px; line-height: 1.65; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 26px; }

/* document mock */
.hero-visual { position: relative; z-index: 1; min-height: 470px; display: grid; place-items: center; }
.doc {
  position: relative;
  width: min(100%, 372px);
  padding: 26px 26px 22px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  transform: rotate(-1.2deg);
  overflow: hidden;
}
.doc-top { display: flex; align-items: center; gap: 10px; color: var(--text-3); }
.doc-title { margin-top: 16px; font-family: var(--font-serif); font-size: 30px; line-height: 1; letter-spacing: -.01em; }
.doc-kind { margin-top: 6px; color: var(--text-3); font-size: 12px; letter-spacing: .02em; }
.doc-text { margin-top: 16px; font-size: 13px; line-height: 1.75; color: var(--text-2); }
.doc-text mark {
  padding: 1px 5px;
  border-radius: 5px;
  color: var(--text);
  font-weight: 550;
  background: var(--mark);
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--accent) 35%, transparent);
}
.doc-checks { display: grid; gap: 7px; margin-top: 14px; font-size: 12.5px; color: var(--text); }
.doc-checks li { display: flex; align-items: center; gap: 9px; }
.doc-checks .box {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
}
.doc-checks .box::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid var(--on-accent);
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}
.doc-lines { display: grid; gap: 7px; margin-top: 16px; }
.doc-lines span { height: 6px; border-radius: 3px; background: var(--surface-3); }
.doc-lines .short { width: 62%; }
.doc-sign { display: flex; justify-content: flex-end; margin-top: 16px; }
.sign-place { display: block; font-size: 12px; color: var(--text-2); }
.sign-wrap { display: flex; flex-direction: column; align-items: flex-start; width: 176px; }
.sig { color: var(--ink); border-bottom: 1px solid var(--line-strong); width: 176px; margin-top: 2px; }
.sign-label { display: block; margin-top: 5px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.watermark {
  position: absolute;
  right: -46px;
  top: 112px;
  transform: rotate(32deg);
  padding: 5px 64px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 55%, transparent);
  border-block: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  pointer-events: none;
}

.float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-pop);
}
.assist { left: -52px; bottom: 6px; width: 222px; padding: 14px 14px 13px; }
.assist-head { display: flex; align-items: center; gap: 8px; color: var(--text-3); }
.orb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #9cc0ea, var(--accent) 60%, #0e2440);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: breathe 3.2s var(--ease) infinite;
}
.assist .q { margin-top: 10px; font-size: 13px; font-weight: 550; color: var(--text); line-height: 1.4; }
.assist .a { margin-top: 6px; font-size: 12px; color: var(--text-2); line-height: 1.55; }
.progress { right: -16px; top: 10px; width: 176px; padding: 12px 14px; }
.progress-row { display: flex; align-items: center; justify-content: space-between; color: var(--text-3); }
.progress-row b { color: var(--text); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { margin-top: 9px; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar span { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--accent)); transform-origin: left; animation: grow 1.6s .4s var(--ease) both; }

/* hero motion: fields fill in, boxes tick, the signature draws itself */
.f { animation: fill .7s var(--ease) both; }
.f1 { animation-delay: .35s; } .f2 { animation-delay: .6s; } .f3 { animation-delay: .85s; } .f4 { animation-delay: 1.1s; }
.doc-checks li { animation: rise .5s var(--ease) both; }
.doc-checks .c1 { animation-delay: 1.35s; } .doc-checks .c2 { animation-delay: 1.5s; } .doc-checks .c3 { animation-delay: 1.65s; } .doc-checks .c4 { animation-delay: 1.8s; }
.sig path { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.8s 2s var(--ease) forwards; }
.assist { animation: float-in .7s 2.3s var(--ease) both; }
.progress { animation: float-in .7s .2s var(--ease) both; }

@keyframes fill { from { background: transparent; box-shadow: none; color: transparent; } to { } }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* highlight strip */
.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.strip li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.strip-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: 4px; /* centres the tile on the title + first description line (18.9 + 2 + 18.85 px) */
  border-radius: 9px;
  color: var(--accent);
  background: var(--accent-soft);
}
.strip b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
/* Text spans only: the icon tile is a span too and must keep its centring grid and accent colour. */
.strip div > span { display: block; color: var(--text-2); font-size: 13px; line-height: 1.45; margin-top: 2px; }

/* ------------------------------------------------------------------ sections */
.sec { padding-top: 104px; }
.sec-head { max-width: 760px; margin-bottom: 34px; }
.sec h2 {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.lead { margin-top: 14px; color: var(--text-2); font-size: 17px; line-height: 1.65; max-width: 680px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.step { position: relative; padding: 24px 22px 26px; transition: border-color var(--t) var(--ease), transform var(--t) var(--ease); }
.step:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-2px); }
.step-n {
  display: inline-grid;
  place-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 500;
}
.step h3 { margin-top: 18px; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.step p { margin-top: 8px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

/* document families */
.docs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fam { padding: 22px 22px 24px; transition: border-color var(--t) var(--ease), transform var(--t) var(--ease); }
.fam:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-2px); }
.fam-first { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow-card); }
.fam-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mono-tile {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
}
.fam h3 { margin-top: 18px; font-size: 18px; font-weight: 600; letter-spacing: -.005em; }
.fam p { margin-top: 8px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

/* principles */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pr { padding: 24px 22px 26px; }
.pr-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--accent); background: var(--accent-soft); }
.pr h3 { margin-top: 18px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.pr p { margin-top: 8px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

/* markets */
.markets {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 44px 48px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(800px 260px at 100% 100%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%),
    var(--surface);
}
.markets h2 { margin-top: 12px; }
.markets-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mk {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.mk-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.cc {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 26px;
  border-radius: 6px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-weight: 500;
}
.mk-on .cc { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.mk-name { font-weight: 550; font-size: 14.5px; }
.mk .pill { margin-left: auto; }

/* company */
.company { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.company h2 { margin-top: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 550; font-size: 14.5px; }
.facts { margin: 0; padding: 6px 24px; }
.facts > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--text-2); font-size: 13.5px; }
.facts dd { margin: 0; font-weight: 550; font-size: 14.5px; }
.facts dd.mono { font-size: 14px; letter-spacing: .02em; }

/* contact */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 44px 48px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background:
    radial-gradient(700px 260px at 0% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    var(--surface);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 0%, transparent) 85%);
}
.cta h2 { margin-top: 12px; }

/* ------------------------------------------------------------------ footer */
.foot { margin-top: 104px; border-top: 1px solid var(--line); background: var(--surface); }
.foot-in { display: flex; justify-content: space-between; gap: 32px; padding: 40px 0 24px; }
.foot-brand { max-width: 520px; }
.foot-note { margin-top: 14px; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.foot-links { display: flex; gap: 6px; align-items: flex-start; }
.foot-links a { padding: 6px 10px; border-radius: 8px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.foot-links a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.foot-legal { padding: 18px 0 32px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; }

/* ------------------------------------------------------------------ legal pages */
.legal { max-width: 760px; padding-top: 56px; }
.legal > .eyebrow { margin-top: 28px; }
.legal h1 {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -.02em;
}
.legal .updated { margin-top: 12px; color: var(--text-3); font-size: 13px; }
.legal h2 { margin-top: 40px; font-family: var(--font-ui); font-size: 18px; font-weight: 600; letter-spacing: -.005em; }
.legal p, .legal li { margin-top: 10px; color: var(--text-2); font-size: 15.5px; line-height: 1.7; }
.legal ul { margin-top: 6px; padding-left: 20px; list-style: disc; }
.legal ul li { margin-top: 6px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal .facts { margin-top: 26px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 550; }

.notfound { min-height: 56vh; display: grid; place-items: center; text-align: center; padding-top: 56px; }
.notfound h1 { margin-top: 12px; font-family: var(--font-serif); font-size: 64px; line-height: 1; letter-spacing: -.02em; }
.notfound p { margin-top: 14px; color: var(--text-2); }
.notfound .btn { margin-top: 26px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding: 44px 40px; gap: 24px; }
  .hero-visual { min-height: 500px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .markets, .company { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .nav { display: none; }
  .top-act { margin-left: auto; }
  .top-in { height: 60px; }
  .hero-sec { padding-top: 16px; }
  .hero { padding: 32px 22px 28px; border-radius: 16px; }
  .hero-sub { font-size: 16px; }
  .hero-visual { min-height: 0; padding: 40px 0 168px; }
  .doc { transform: none; padding: 22px 20px 18px; }
  .assist { left: 4px; bottom: 0; width: min(250px, 80%); }
  .progress { right: 4px; top: 0; }
  .strip, .steps, .principles, .docs-grid, .markets-list { grid-template-columns: 1fr; }
  .sec { padding-top: 76px; }
  .markets, .cta { padding: 30px 22px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .facts { padding: 4px 18px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .foot { margin-top: 76px; }
  .foot-in { flex-direction: column; }
}

@media (max-width: 420px) {
  .top .brand-name small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .sig path { stroke-dashoffset: 0; }
}
