/* MySecretariat — mysecretariat.pro */

:root {
  --ink: #0c1628;
  --ink-2: #1c2940;
  --muted: #4f5d75;
  --faint: #647088;
  --line: #e2e7ef;
  --line-strong: #cfd7e3;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --navy: #0f2240;
  --navy-2: #16305a;
  --navy-line: rgba(255, 255, 255, .14);
  --on-navy: #e6ecf5;
  --on-navy-muted: #aebcd2;
  --accent: #0f8b8d;
  --accent-strong: #0a6c6e;
  --accent-soft: #e3f3f3;
  --accent-on-navy: #7fd1d2;
  --amber-soft: #fdf3e1;
  --amber-ink: #7a4d00;
  --slate-soft: #eef1f6;
  --slate-ink: #3b4a63;
  --info-soft: #eaf2f5;
  --info-ink: #22566b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(12, 22, 40, .04), 0 8px 24px -12px rgba(12, 22, 40, .12);
  --shadow-lg: 0 2px 4px rgba(12, 22, 40, .04), 0 24px 48px -24px rgba(12, 22, 40, .22);
  --wrap: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled, .site-header.is-solid { border-bottom-color: var(--line); }
.header-inner { position: relative; display: flex; align-items: center; gap: 24px; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.brand img { width: 28px; height: 28px; }
.brand:hover { color: var(--ink); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: .94rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent-strong); }
.nav-cta { margin-left: 8px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.nav a.btn-primary:hover { background: var(--navy-2); }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; padding: 0; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* Status badges and tags */
.badge {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: middle;
  font-size: .75rem; font-weight: 600; letter-spacing: .01em;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--slate-soft); color: var(--slate-ink);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.badge-pilot { background: var(--accent-soft); color: var(--accent-strong); }
.badge-deploy { background: var(--info-soft); color: var(--info-ink); }
.badge-dev { background: var(--slate-soft); color: var(--slate-ink); }
.badge-soon { background: var(--amber-soft); color: var(--amber-ink); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  border: 1px solid var(--line); background: var(--bg-soft); border-radius: 8px; padding: 6px 12px;
}
.tag .badge { padding: 1px 8px; font-size: .7rem; }

/* Sections */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2, .free h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); }
.section-head p:not(.kicker), .free-head p { margin-top: 12px; font-size: 1.05rem; color: var(--muted); }
.kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong);
}
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }

/* Hero */
.hero { padding: 64px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); letter-spacing: -0.03em; line-height: 1.08; max-width: 14ch; }
.hero-lead { margin-top: 20px; font-size: 1.12rem; color: var(--muted); max-width: 500px; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 26px; font-size: .9rem; color: var(--faint); }

/* Hero scene */
.scene { position: relative; min-width: 0; }
.scene-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 18px; }
.trade-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.scene-tabs { position: relative; display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.scene-tabs button {
  font: inherit; font-size: .98rem; font-weight: 600; padding: 4px 0 10px; min-height: 36px;
  border: 0; background: none; color: var(--faint); cursor: pointer;
}
.scene-tabs button:hover { color: var(--ink); }
.scene-tabs button[aria-selected="true"] { color: var(--ink); }
.tab-ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; border-radius: 2px; background: var(--accent); transition: transform .35s ease, width .35s ease; }
html:not(.js) .scene-tabs, html:not(.js) .trade-label { display: none; }

.scene-panel { display: grid; grid-template-columns: minmax(0, 1fr) 132px; align-items: end; }
.js .scene-panel:not(.is-active) { display: none; }
.js .scene-panel { min-height: 356px; }
.js .scene-panel.is-active { animation: scene-in .3s ease; }
html:not(.js) .scene-panel + .scene-panel { margin-top: 32px; }
@keyframes scene-in { from { opacity: 0; } to { opacity: 1; } }

.sc-window {
  border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg);
  padding: 18px 40px 14px 20px;
}
.sc-file { display: flex; align-items: center; gap: 12px; }
.sc-logo {
  flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
}
.sc-name { flex: 1; min-width: 0; }
.sc-name strong { display: block; font-size: 1rem; }
.sc-name span { font-size: .8rem; color: var(--faint); }
.sc-status {
  flex: none; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--slate-soft); color: var(--slate-ink);
}
.sc-status.st-wait { background: var(--amber-soft); color: var(--amber-ink); }
.sc-status.st-check { background: var(--info-soft); color: var(--info-ink); }
.sc-status.st-ok { background: var(--accent-strong); color: #fff; }
.sc-facts { margin: 10px 0 0 52px; font-size: .78rem; color: var(--faint); }
.sc-facts span { margin: 0 4px; }
.sc-note {
  display: inline-block; margin: 10px 0 0 52px; padding: 3px 10px; border-radius: 7px;
  font-size: .76rem; font-weight: 600; background: var(--info-soft); color: var(--info-ink);
}

.sc-feed { list-style: none; margin-top: 14px; padding-top: 6px; border-top: 1px solid var(--line); }
.sc-feed li {
  position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 7px 8px; border-radius: 10px; transition: opacity .4s ease, background-color .4s ease;
}
.sc-feed li:not(:last-child)::after {
  content: ""; position: absolute; left: 22px; top: 36px; height: calc(100% - 28px); width: 2px; background: var(--line);
}
.sc-feed p { font-size: .88rem; color: var(--muted); }
.sc-feed b { color: var(--ink); font-weight: 700; }
.sc-feed em, .sc-vision .badge { font-style: normal; }
.sc-feed em {
  margin-left: 4px; font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 999px;
  background: var(--amber-soft); color: var(--amber-ink); white-space: nowrap;
}
.sc-who {
  position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: .62rem; font-weight: 800; letter-spacing: .02em; color: #fff; background: var(--slate-ink);
}
.who-admin { background: var(--navy); }
.who-client { background: #5b6b86; }
.who-id { background: var(--accent); }
.who-aml { background: #8a5a00; }
.who-file { background: var(--accent-strong); font-size: .85rem; }
.sc-feed li.is-pending { opacity: .3; }
.sc-feed li.is-current { background: var(--accent-soft); }

.sc-phone {
  position: relative; z-index: 2; width: 158px; margin: 0 0 -18px -26px; padding: 14px 12px 16px;
  border: 6px solid var(--navy); border-radius: 26px; background: #fff; box-shadow: var(--shadow-lg);
}
.sc-phone-app { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-strong); text-align: center; }
.sc-screen { margin-top: 10px; min-height: 92px; display: flex; flex-direction: column; justify-content: center; gap: 8px; text-align: center; font-size: .82rem; font-weight: 600; color: var(--ink); }
.sc-idle { color: var(--faint); font-weight: 500; }
.sc-btn { align-self: center; padding: 5px 14px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .75rem; }
.sc-progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.sc-progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; animation: sc-read 1.6s ease-in-out infinite; }
@keyframes sc-read { from { transform: scaleX(.1); } to { transform: scaleX(1); } }
.sc-sent { color: var(--accent-strong); }
.sc-sent::before { content: "✓ "; }
.sc-small { font-size: .72rem; font-weight: 500; color: var(--faint); }
.sc-docs { list-style: none; display: grid; gap: 6px; text-align: left; }
.sc-docs li { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; transition: opacity .4s ease; }
.sc-docs li::before {
  content: "✓"; flex: none; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
  font-size: .62rem; background: var(--accent-strong); color: #fff;
}
.sc-docs li.is-pending { opacity: .45; }
.sc-docs li.is-pending::before { content: ""; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }

.sc-vision { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .84rem; font-weight: 600; color: var(--amber-ink); }
.scene-vision .sc-window { border-style: dashed; box-shadow: var(--shadow); }

html:not(.js) .scene [data-show]:not(.final),
.js .scene [data-show]:not(.is-shown) { display: none; }

/* Hero stage (layered composition) */
.scene-panel-stage { display: block; }
.stage { position: relative; width: 100%; aspect-ratio: 600 / 440; font-size: 13px; }
.stage p { margin: 0; }
.stage > * { position: absolute; transition: opacity .5s ease, transform .5s ease, box-shadow .5s ease; }
.stage .is-pending { opacity: 0; transform: translateY(8px); }
.js .scene-panel:not([data-step]) .stage [data-step] { opacity: 0; transition: none; }

.stage-links { inset: 0; width: 100%; height: 100%; overflow: visible; }
.stage-links path { fill: none; stroke: var(--line-strong); stroke-width: 1.25; vector-effect: non-scaling-stroke; transition: opacity .5s ease, stroke .5s ease; }
.stage-links path.is-pending { opacity: 0; transform: none; }
.stage-links path.is-current { stroke: var(--accent); stroke-dasharray: 3 5; animation: link-flow 1.2s linear infinite; }
@keyframes link-flow { to { stroke-dashoffset: -16; } }

.st-app {
  left: 0; top: 12%; width: 76%; z-index: 1;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  box-shadow: 0 1px 2px rgba(12, 22, 40, .05), 0 40px 70px -36px rgba(12, 22, 40, .32);
  overflow: hidden;
}
.st-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.st-dots { display: inline-flex; gap: 5px; }
.st-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.st-crumb { font-size: 12px; color: var(--faint); }
.st-crumb i { font-style: normal; margin: 0 4px; opacity: .6; }
.st-body { display: grid; grid-template-columns: 46px minmax(0, 1fr); }
.st-side { list-style: none; display: grid; align-content: start; justify-items: center; gap: 12px; padding: 14px 0; border-right: 1px solid var(--line); background: var(--bg-soft); }
.st-side li { width: 18px; height: 18px; border-radius: 6px; background: var(--line); }
.st-side .on { background: var(--navy); }
.st-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px 10px; }
.st-logo { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; }
.st-title { flex: 1; min-width: 0; }
.st-title strong { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-title span { font-size: 12px; color: var(--faint); }
.st-pill { flex: none; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--slate-soft); color: var(--slate-ink); }
.pill-wait { background: var(--amber-soft); color: var(--amber-ink); }
.pill-check { background: var(--info-soft); color: var(--info-ink); }
.pill-ok { background: var(--accent-strong); color: #fff; }
.st-tabs { list-style: none; display: flex; gap: 18px; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.st-tabs li { padding: 6px 0 9px; }
.st-tabs .on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.st-grid div { background: #fff; padding: 12px 20px; }
.st-grid dt { font-size: 11.5px; color: var(--faint); }
.st-grid dd { margin-top: 3px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.st-identity .is-wait { color: var(--amber-ink); }
.st-identity .is-ok { color: var(--accent-strong); }
.st-identity .is-ok::before { content: "✓ "; }

.float {
  z-index: 2; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  box-shadow: 0 1px 2px rgba(12, 22, 40, .05), 0 18px 36px -18px rgba(12, 22, 40, .28);
}
.float.is-current { box-shadow: 0 0 0 3px rgba(15, 139, 141, .14), 0 20px 40px -18px rgba(12, 22, 40, .32); border-color: rgba(15, 139, 141, .45); }
.f-title { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13.5px; color: var(--ink); }
.f-title svg, .f-secure svg { flex: none; width: 14px; height: 14px; fill: none; stroke: var(--accent-strong); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.f-line { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.f-line b { color: var(--ink); font-weight: 600; }
.f-secure { display: flex; align-items: center; gap: 5px; }

.f-required, .f-done { left: 2%; top: 0; z-index: 4; }
.f-required { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 13px; font-weight: 700; color: var(--amber-ink); background: var(--amber-soft); border-color: rgba(122, 77, 0, .18); }
.f-required .dot { width: 8px; height: 8px; border-radius: 50%; background: #d08a00; }
.f-request { left: 72%; top: 0; z-index: 4; padding: 12px 16px; white-space: nowrap; }

.phone {
  left: 68%; top: 31.8%; width: 128px; aspect-ratio: 9 / 18.5; z-index: 3;
  padding: 4px; border-radius: 22px; background: #1c2940;
  box-shadow: 0 30px 50px -22px rgba(12, 22, 40, .5);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 18px; overflow: hidden; padding: 20px 10px 10px;
  background: linear-gradient(180deg, #f3f8f8 0%, #fff 55%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
}
.phone-screen::before { content: ""; position: absolute; top: 6px; left: 50%; width: 30px; height: 6px; border-radius: 3px; background: #1c2940; transform: translateX(-50%); }
.phone-app { display: flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.id-card { position: relative; width: 100%; aspect-ratio: 1.58; border-radius: 6px; background: linear-gradient(135deg, #dceeee, #c9e3e4); border: 1px solid rgba(15, 139, 141, .25); }
.id-card i { position: absolute; display: block; border-radius: 2px; }
.id-photo { left: 7%; top: 18%; width: 24%; height: 52%; background: rgba(15, 34, 64, .22); }
.id-l1 { left: 38%; top: 24%; width: 48%; height: 7%; background: rgba(15, 34, 64, .25); }
.id-l2 { left: 38%; top: 42%; width: 34%; height: 7%; background: rgba(15, 34, 64, .18); }
.id-chip { right: 8%; bottom: 14%; width: 16%; height: 20%; background: #c9a54a; opacity: .75; }
.phone-state { width: 100%; text-align: center; }
.phone-state p { margin-top: 6px; font-size: 9.5px; font-weight: 600; color: var(--ink-2); line-height: 1.3; }
.phone-bar { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.phone-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: phone-read 1.6s ease-in-out infinite; }
@keyframes phone-read { from { transform: scaleX(.12); } to { transform: scaleX(1); } }
.phone-check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-strong); color: #fff; font-size: 12px; font-weight: 700; }

.f-aml { left: 10%; top: 82%; width: 46%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.f-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #8a5a00; color: #fff; font-size: 11px; font-weight: 800; }
.f-role { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.f-state { margin-top: 1px; font-size: 13.5px; font-weight: 700; color: var(--info-ink); }
.f-state.is-ok { color: var(--accent-strong); }
.f-state.is-ok::before { content: "✓ "; }

.f-done { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; }
.f-done-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-strong); color: #fff; font-size: 14px; font-weight: 700; }

.scene-caption { margin-top: 10px; padding-right: 40px; font-size: .85rem; color: var(--faint); }
.scene-pause {
  position: absolute; right: 0; bottom: 0; display: inline-grid; place-items: center;
  width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--faint); cursor: pointer;
}
.scene-pause:hover { border-color: var(--line); color: var(--ink); }
.scene-pause svg { width: 13px; height: 13px; fill: currentColor; }
.scene-pause .i-play, .scene-pause[aria-pressed="true"] .i-pause { display: none; }
.scene-pause[aria-pressed="true"] .i-play { display: block; }
.scene-pause[hidden] { display: none; }

/* Use cases */
.uses { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.uses li { padding: 22px 0; border-top: 1px solid var(--line-strong); }
.uses h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1.05rem; }
.uses p { margin-top: 6px; color: var(--muted); font-size: .96rem; }

/* Trades */
.trades { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trades li {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px;
  min-height: 112px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.trades strong { font-size: 1rem; line-height: 1.35; }
.trades .trade-live { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.trades .trade-other { border-style: dashed; background: transparent; }
.trade-other a { font-weight: 600; }

/* Modules */
.modules div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.modules div:first-child { padding-top: 0; }
.modules dt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 700; }
.modules dd { margin-top: 4px; color: var(--muted); }

/* Free entry */
.free { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.free-head .badge { margin-bottom: 14px; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 8px; }
.steps li {
  counter-increment: step; display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600;
}
.steps li::before {
  content: counter(step); flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--mono); font-size: .82rem; background: var(--bg-soft); color: var(--faint);
}
.steps li:last-child { background: var(--navy); border-color: var(--navy); color: #fff; }
.steps li:last-child::before { background: rgba(255, 255, 255, .12); color: var(--accent-on-navy); }

/* PSSF */
.pssf {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: center;
  padding: 32px 36px; border: 1px solid var(--line); border-radius: 18px;
}
.pssf h2 { margin-top: 12px; font-size: 1.6rem; }
.pssf p { margin-top: 8px; color: var(--muted); }
.pssf-more { grid-column: 1 / -1; font-size: .88rem; color: var(--faint) !important; }

/* Identity Check */
.idflow { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: idstep; }
.idflow li {
  counter-increment: idstep; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.idflow li::before { content: counter(idstep); display: block; font-family: var(--mono); font-size: .78rem; color: var(--faint); margin-bottom: 6px; }
.idflow strong { display: block; }
.idflow span { display: block; margin-top: 2px; font-size: .88rem; color: var(--muted); }
.idflow-human { background: var(--accent-strong) !important; border-color: var(--accent-strong) !important; }
.idflow-human::before, .idflow-human strong, .idflow-human span { color: #fff !important; }

/* Security */
.section-dark { background: var(--navy); color: var(--on-navy); }
.section-dark h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.trust { list-style: none; margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; max-width: 900px; }
.trust li { padding: 14px 0 14px 22px; border-top: 1px solid var(--navy-line); position: relative; }
.trust li::before { content: ""; position: absolute; left: 0; top: 23px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-on-navy); }
.trust-note { margin-top: 28px; max-width: 720px; font-size: .9rem; color: #8ea0bb; }

/* Document pages */
.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { margin-top: 12px; color: var(--muted); max-width: 720px; font-size: 1.05rem; }
.page-hero .breadcrumb { margin: 0 0 14px; font-size: .85rem; color: var(--faint); }
.breadcrumb a { color: var(--faint); }
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding-top: 56px; padding-bottom: 96px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: .9rem; }
.toc p { font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.prose { max-width: 740px; }
.prose h2 { font-size: 1.35rem; margin: 44px 0 14px; padding-top: 8px; }
.prose h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; margin: 10px 0; display: grid; gap: 6px; list-style: disc; }
.prose .note {
  margin: 16px 0; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 10px 10px 0; font-size: .95rem;
}
.facts { margin-top: 12px; display: grid; grid-template-columns: 200px 1fr; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.facts dt, .facts dd { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.facts dt { background: var(--bg-soft); color: var(--muted); font-size: .9rem; font-weight: 600; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
.updated { font-size: .88rem; color: var(--faint); }

.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding-top: 56px; padding-bottom: 96px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.2rem; }
.contact-card p { margin-top: 8px; color: var(--muted); }
.contact-mail { display: inline-block; margin-top: 16px; font-size: 1.2rem; font-weight: 600; }
.contact-topics { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.contact-topics li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2); font-size: .95rem; }
.contact-topics svg { width: 18px; height: 18px; color: var(--accent-strong); margin-top: 3px; }
.address { font-style: normal; margin-top: 12px; line-height: 1.7; color: var(--ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 56px 0 40px; font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h2 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--accent-strong); text-decoration: underline; }
.footer-about p { margin-top: 12px; max-width: 360px; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--faint); }

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: 18ch; }
  .scene { max-width: 720px; }
  .split, .free { grid-template-columns: 1fr; gap: 32px; }
  .uses, .trades { grid-template-columns: repeat(2, 1fr); }
  .idflow { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .js .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; box-shadow: var(--shadow);
  }
  .js .nav.is-open { display: flex; }
  .js .nav a { padding: 12px 8px; }
  .nav-cta { margin: 8px 0 0; }
  html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding: 12px 0; }
  html:not(.js) .nav { flex-wrap: wrap; margin-left: 0; }
  html:not(.js) .nav-toggle { display: none; }
  .pssf { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .js .nav { padding: 8px 16px 16px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 40px 0; }
  .hero { padding: 36px 0 56px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .scene-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .scene-tabs { gap: 18px; }
  .scene-panel, .js .scene-panel { display: block; min-height: 0; }
  .sc-window { padding: 16px 14px 12px; }
  .sc-facts, .sc-note { margin-left: 0; }
  .sc-phone { display: none; }
  .stage { aspect-ratio: auto; display: grid; gap: 8px; }
  .stage > * { position: static; width: auto; }
  .stage-links, .stage .phone { display: none; }
  .f-required, .f-done { justify-self: start; }
  .uses, .trades { grid-template-columns: 1fr; }
  .trades li { min-height: 0; }
  .idflow { grid-template-columns: 1fr; }
  .pssf { padding: 24px 20px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
}

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

@media print {
  .site-header, .site-footer, .toc, .nav-toggle { display: none; }
  .doc-layout { display: block; padding: 0; }
}

/* Workspace locator (/connexion/) */
.connect { padding: 72px 0 96px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.connect-card { max-width: 480px; margin: 0 auto; padding: 36px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.connect-card h1 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.connect-card > p { margin-top: 10px; color: var(--muted); }
.connect-form { display: grid; gap: 8px; margin-top: 24px; }
.connect-form label { font-size: .92rem; font-weight: 600; }
.connect-form input { font: inherit; font-size: 1.05rem; letter-spacing: .02em; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); background: #fff; }
.connect-form input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); border-radius: 10px; }
.connect-form input[aria-invalid="true"] { border-color: #b42318; }
.connect-help { font-size: .85rem; color: var(--faint); }
.connect-error { font-size: .9rem; font-weight: 600; color: #b42318; }
.connect-form .btn { justify-self: start; margin-top: 10px; }
@media (max-width: 640px) {
  .connect { padding: 40px 0 64px; }
  .connect-card { padding: 24px 20px; }
  .connect-form .btn { justify-self: stretch; }
}
