/* Logic Linkers Consulting - site.css
   Paper, ink and one indigo link colour (from the original logo), with a lime
   "signal" used only on dark grounds for things that move. */

@font-face { font-family: "Sora"; src: url("/fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --paper: #F5F4EF;
  --paper-2: #ECEAE2;
  --card: #FFFFFF;
  --ink: #12111C;
  --ink-2: #2E2C3C;
  --muted: #5B5969;
  --line: #DCD9CF;
  --line-2: #C9C5B8;
  --brand: #4B3FE0;
  --brand-hi: #3A2FCC;
  --brand-deep: #1B1658;
  --brand-soft: #E7E4FF;
  --lime: #D4F94B;
  --lime-deep: #AED11F;
  --peach: #FFB59A;
  --bp: #16124A;
  --bp-2: #1F1A5E;
  --bp-line: rgba(196, 190, 255, .14);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(18,17,28,.04), 0 12px 32px -18px rgba(18,17,28,.28);
  --f-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; letter-spacing: -.025em; line-height: 1.08; }
p { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:where(svg:not([viewBox])) { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s, border-color .18s, box-shadow .18s, color .18s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--brand); }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(75,63,224,.75); }
.btn-brand:hover { background: var(--brand-hi); box-shadow: 0 14px 28px -12px rgba(75,63,224,.85); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); background: var(--card); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #E2FF72; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(245,244,239,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 38px; height: 38px; flex: none; }
.mark rect, .mark path, .hub-mark rect, .hub-mark path { fill: none; stroke-width: 7; stroke-linecap: round; }
.mk-a { stroke: var(--ink); }
.mk-b { stroke: var(--brand); }
.brand-name { font: 700 21px/1 var(--f-display); letter-spacing: -.03em; }
.brand-name b { color: var(--brand); font-weight: 700; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15.5px; color: var(--ink-2); transition: background-color .15s, color .15s; }
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a.is-current { color: var(--brand); }
.nav-cta { min-height: 42px; font-size: 15px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--card); cursor: pointer; align-items: center; justify-content: center; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(18,17,28,.13) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 55%, transparent 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); padding: 9px 14px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.9rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.0; margin: 22px 0 22px; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.38rem); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.lede mark { background: linear-gradient(transparent 58%, var(--brand-soft) 58%); color: var(--ink); padding: 0 2px; }
.hero-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.hero-points svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--ink); color: var(--lime); stroke-width: 3; margin-top: 1px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* the link board */
.board { margin: 0; position: relative; background: var(--ink); color: #fff; border-radius: 26px; padding: 18px; box-shadow: 0 40px 80px -40px rgba(27,22,88,.7), 0 0 0 1px rgba(18,17,28,.9); }
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.board-tag { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); padding-left: 4px; }
.board-tabs { display: flex; gap: 4px; background: rgba(255,255,255,.07); padding: 4px; border-radius: 999px; }
.board-tabs button { border: 0; background: transparent; color: rgba(255,255,255,.72); padding: 8px 13px; min-height: 36px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.board-tabs button:hover { color: #fff; }
.board-tabs button[aria-selected="true"] { background: var(--lime); color: var(--ink); }
.board-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px; align-items: center; margin: 18px 0 14px; padding: 18px 8px; border-radius: 18px; background: radial-gradient(circle at 50% 50%, rgba(75,63,224,.32), transparent 62%), rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); min-height: 300px; }
.board-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.board-wires path { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.6; stroke-dasharray: 3 5; transition: stroke .35s; }
.board-wires path.live { stroke: rgba(212,249,75,.55); stroke-dasharray: none; stroke-width: 2; }
.board-wires circle { fill: var(--lime); filter: drop-shadow(0 0 6px rgba(212,249,75,.9)); }
.col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.col-in { align-items: flex-start; }
.col-out { align-items: flex-end; }
.node { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px; background: #1C1B29; border: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.45); font-size: 14px; font-weight: 600; transition: color .35s, border-color .35s, background-color .35s, transform .35s var(--ease); }
.node svg { width: 18px; height: 18px; }
.node.on { color: #fff; border-color: rgba(212,249,75,.55); background: #22213A; }
.node.on svg { color: var(--lime); }
.node.ping { transform: scale(1.05); }
.col-hub { align-items: center; }
.hub { position: relative; width: 100%; max-width: 168px; aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; background: radial-gradient(circle at 50% 35%, #2B2580, #17134A 70%); border: 1px solid rgba(196,190,255,.35); box-shadow: 0 0 0 10px rgba(75,63,224,.12), 0 0 60px rgba(75,63,224,.45); }
.hub::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid rgba(212,249,75,.0); }
.hub.pulse::after { animation: hubPulse 1.1s var(--ease); }
@keyframes hubPulse { 0% { border-color: rgba(212,249,75,.8); transform: scale(.94); } 100% { border-color: rgba(212,249,75,0); transform: scale(1.12); } }
.hub-mark { width: 46px; height: 46px; }
.hub-mark .mk-a { stroke: #fff; }
.hub-mark .mk-b { stroke: var(--lime); }
.hub-label { font-size: 13.5px; line-height: 1.3; font-weight: 600; color: rgba(255,255,255,.9); min-height: 3.9em; display: flex; align-items: center; }
.board-log { list-style: none; margin: 0; padding: 4px 4px 2px; display: grid; gap: 7px; min-height: 140px; }
.board-log li { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: baseline; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.85); opacity: 1; transform: none; transition: opacity .4s, transform .4s var(--ease); }
.board-log li.pre { opacity: 0; transform: translateY(6px); }
.board-log time { font: 500 12px/1 var(--f-mono); color: rgba(255,255,255,.45); }
.k { font: 600 10.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; border-radius: 5px; justify-self: start; }
.k-auto { background: rgba(196,190,255,.16); color: #CFCBFF; }
.k-ai { background: var(--lime); color: var(--ink); }
.k-you { background: var(--peach); color: var(--ink); }

/* tools strip */
.tools { margin-top: 56px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tools > p { font: 500 13px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tool-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tool-list li { font-size: 14.5px; font-weight: 600; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.tool-list li:last-child { background: transparent; border-style: dashed; color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------------------- sections */
.sec { padding: 104px 0; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.kicker { font: 600 13px/1 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 10px; border: 2px solid currentColor; border-radius: 6px; }
h2 { text-wrap: balance; font-size: clamp(2.1rem, 4.2vw, 3.5rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.04; }
.sub { margin-top: 18px; font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.on-dark .kicker { color: var(--lime); }
.on-dark h2 { color: #fff; }
.on-dark .sub { color: rgba(255,255,255,.7); }

/* before / linked */
.sec-pains { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; max-width: none; }
.split-head > div:first-child { max-width: 700px; }
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--paper-2); border-radius: 999px; padding: 5px; flex: none; }
.sw-btn { position: relative; z-index: 1; border: 0; background: transparent; min-height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); transition: color .25s; }
.sw-btn.is-on { color: #fff; }
.sw-knob { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--ink); transition: transform .35s var(--ease), background-color .35s; }
.switch.is-linked .sw-knob { transform: translateX(100%); background: var(--brand); }
.pain-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pain { position: relative; display: grid; grid-template-rows: auto 1fr; padding: 26px 24px 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); min-height: 196px; overflow: hidden; transition: background-color .45s var(--ease), border-color .45s, color .45s; }
.pain-ic { width: 26px; height: 26px; color: var(--ink); margin-bottom: 16px; transition: color .45s; }
.pain p { font-size: 1.08rem; line-height: 1.5; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.pain .p-before, .pain .p-after { grid-area: 2 / 1; }
.pain .p-after { opacity: 0; transform: translateY(12px); font-weight: 500; }
.pain::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.pain-grid[data-mode="linked"] .pain { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.pain-grid[data-mode="linked"] .pain-ic { color: var(--lime); }
.pain-grid[data-mode="linked"] .p-before { opacity: 0; transform: translateY(-12px); }
.pain-grid[data-mode="linked"] .p-after { opacity: 1; transform: none; }
.pain-grid[data-mode="linked"] .pain::after { transform: scaleX(1); background: var(--lime); }
.pain-grid[data-mode="linked"] .pain:nth-child(2) { transition-delay: .05s; }
.pain-grid[data-mode="linked"] .pain:nth-child(3) { transition-delay: .1s; }
.pain-grid[data-mode="linked"] .pain:nth-child(4) { transition-delay: .15s; }
.pain-grid[data-mode="linked"] .pain:nth-child(5) { transition-delay: .2s; }
.pain-grid[data-mode="linked"] .pain:nth-child(6) { transition-delay: .25s; }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 12px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.svc-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.svc-ic svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.35rem; font-weight: 650; letter-spacing: -.02em; }
.svc p { color: var(--ink-2); }
.svc-eg { margin-top: auto !important; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 14.5px; color: var(--muted) !important; }
.svc-band { margin-top: 16px; display: flex; gap: 22px; align-items: center; padding: 28px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.svc-band h3 { font-size: 1.3rem; font-weight: 650; margin-bottom: 6px; }
.svc-band p { color: rgba(255,255,255,.72); }
.svc-ic-lg { flex: none; width: 60px; height: 60px; background: var(--lime); color: var(--ink); margin: 0; }
.svc-ic-lg svg { width: 28px; height: 28px; }

/* ---------------------------------------------------------------- blueprint */
.sec-blueprint { position: relative; background: var(--bp); color: #fff; overflow: hidden; }
.sec-blueprint::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--bp-line) 1px, transparent 1px), linear-gradient(90deg, var(--bp-line) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: radial-gradient(circle at 70% 40%, #000, transparent 75%); mask-image: radial-gradient(circle at 70% 40%, #000, transparent 75%); pointer-events: none; }
.sec-blueprint .wrap { position: relative; }
.bp { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 28px; align-items: start; }
.bp-form { background: rgba(255,255,255,.05); border: 1px solid rgba(196,190,255,.2); border-radius: 22px; padding: 26px; display: grid; gap: 16px; }
.lbl { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 4px; }
.bp-form .lbl { color: #fff; }
.bp-form textarea, .bp-form input { width: 100%; background: rgba(8,6,36,.55); border: 1.5px solid rgba(196,190,255,.28); border-radius: 14px; padding: 14px 16px; color: #fff; font-size: 16px; line-height: 1.5; transition: border-color .2s, box-shadow .2s; }
.bp-form textarea { resize: vertical; min-height: 128px; }
.bp-form textarea::placeholder { color: rgba(255,255,255,.42); }
.bp-form textarea:focus, .bp-form input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(212,249,75,.18); }
.bp-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bp-chips > span { font-size: 14px; color: rgba(255,255,255,.6); margin-right: 2px; }
.chip { border: 1px solid rgba(196,190,255,.32); background: transparent; color: #fff; padding: 7px 13px; min-height: 36px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--lime); }
.chip.is-on { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.bp-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bp-go { width: 100%; }
.bp-note { font-size: 13.5px; color: rgba(255,255,255,.55); line-height: 1.5; }
.bp-note.err { color: var(--peach); }

.sheet { position: relative; min-height: 560px; border-radius: 22px; background: #F7F6F1; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); overflow: hidden; }
.sheet::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(75,63,224,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(75,63,224,.07) 1px, transparent 1px); background-size: 20px 20px; pointer-events: none; }
.sheet-empty, .sheet-load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 32px; font-weight: 600; }
.sheet-glyph { width: 120px; height: 120px; margin-bottom: 10px; }
.sheet-glyph rect, .sheet-glyph path { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 5 5; }
.sheet-glyph path { stroke: var(--ink); }
.ld-rows { width: min(320px, 80%); display: grid; gap: 14px; margin-bottom: 12px; }
.ld-rows span { height: 46px; border-radius: 12px; background: linear-gradient(90deg, #E9E7F7 0%, #F7F6FF 50%, #E9E7F7 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.ld-rows span:nth-child(2) { width: 86%; margin-left: 14%; }
.ld-rows span:nth-child(3) { width: 86%; }
.ld-rows span:nth-child(4) { width: 70%; margin-left: 30%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.sheet-doc { position: relative; padding: 26px 28px 28px; animation: docIn .5s var(--ease); }
@keyframes docIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.doc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font: 500 12px/1 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.doc-badge { background: var(--ink); color: var(--lime); padding: 5px 8px; border-radius: 6px; }
.doc-badge.sample { background: var(--brand-soft); color: var(--brand-deep); }
.doc-title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -.03em; margin: 18px 0 6px; }
.doc-trigger { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 6px; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 15px; }
.doc-trigger b { font: 600 11px/1.6 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--lime); flex: none; }
.doc-steps { list-style: none; margin: 0; padding: 0; }
.doc-step { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 0 0; animation: stepIn .45s var(--ease) both; }
.doc-step::before { content: ""; position: absolute; left: 16px; top: 0; height: 16px; border-left: 2px solid var(--brand); }
.doc-step + .doc-step::before { top: -14px; height: 30px; }
.doc-n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 14px/1 var(--f-mono); background: var(--card); border: 2px solid var(--brand); color: var(--brand); position: relative; z-index: 1; }
.doc-step.ai .doc-n { background: var(--lime); border-color: var(--ink); color: var(--ink); }
.doc-step.human .doc-n { background: var(--peach); border-color: var(--ink); color: var(--ink); }
.doc-step h4 { font: 650 1.05rem/1.3 var(--f-display); letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-step p { font-size: 15px; color: var(--ink-2); margin-top: 3px; }
.tag { font: 600 10.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; border-radius: 5px; background: var(--brand-soft); color: var(--brand-deep); }
.tag.ai { background: var(--lime); color: var(--ink); }
.tag.human { background: var(--peach); color: var(--ink); }
@keyframes stepIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.doc-nums { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.num { padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--ink); background: var(--card); }
.num b { display: block; font: 700 clamp(1.6rem, 2.6vw, 2.1rem)/1 var(--f-display); letter-spacing: -.03em; }
.num span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.num.back { background: var(--brand); border-color: var(--brand); color: #fff; }
.num.back span { color: rgba(255,255,255,.8); }
.doc-math { margin-top: 8px; font: 400 12.5px/1.5 var(--f-mono); color: var(--muted); }
.doc-meta { margin-top: 18px; display: grid; gap: 12px; }
.doc-meta h5 { margin: 0 0 4px; font: 600 11.5px/1 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.doc-meta p { font-size: 15px; }
.doc-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-tools span { font-size: 13.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); }
.doc-cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------------- process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; }
.steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 44px; border-top: 2px dashed var(--line-2); z-index: 0; }
.step { position: relative; z-index: 1; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-num { width: 64px; height: 40px; border-radius: 20px; display: grid; place-items: center; font: 700 15px/1 var(--f-mono); background: var(--ink); color: var(--lime); border: 4px solid var(--paper); box-sizing: content-box; margin: -48px 0 18px -4px; }
.step:nth-child(2) .step-num { background: var(--brand); color: #fff; }
.step:nth-child(3) .step-num { background: var(--lime); color: var(--ink); }
.step h3 { font-size: 1.6rem; font-weight: 700; }
.step-when { display: flex; align-items: center; gap: 7px; margin: 8px 0 14px; font: 500 13px/1 var(--f-mono); color: var(--brand); }
.step-when svg { width: 16px; height: 16px; }
.step-body > p:not(.step-when) { color: var(--ink-2); }
.ticks { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; font-size: 15.5px; font-weight: 500; }
.ticks svg { width: 18px; height: 18px; color: var(--brand); stroke-width: 2.6; margin-top: 3px; }

/* ---------------------------------------------------------------- rules */
.sec-rules { background: var(--ink); color: #fff; }
.sec-rules .kicker { color: var(--lime); }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
.rule { background: var(--ink); padding: 28px 26px; }
.rule-wide { grid-column: span 3; display: grid; grid-template-columns: auto 1fr 1.2fr; gap: 20px 28px; align-items: center; background: var(--brand-deep); }
.rule-wide h3 { font-size: clamp(1.4rem, 2.4vw, 2rem) !important; }
.rule-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(212,249,75,.12); color: var(--lime); margin-bottom: 16px; }
.rule-wide .rule-ic { margin: 0; width: 56px; height: 56px; background: var(--lime); color: var(--ink); }
.rule h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -.015em; margin-bottom: 8px; }
.rule p { color: rgba(255,255,255,.7); }

/* ---------------------------------------------------------------- about */
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
.about-copy { display: grid; gap: 18px; font-size: 1.1rem; color: var(--ink-2); }
.about-lead { font: 600 clamp(1.3rem, 2vw, 1.6rem)/1.4 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.about-facts { list-style: none; margin: 8px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 1rem; }
.about-facts li { display: flex; gap: 10px; align-items: center; }
.about-facts svg { color: var(--brand); }
.about-facts a { color: var(--brand); font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- faq */
.sec-faq { background: var(--card); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 56px; align-items: start; }
.faq { display: grid; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 2px; font: 600 1.15rem/1.35 var(--f-display); letter-spacing: -.015em; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; transition: transform .25s var(--ease); color: var(--brand); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand); }
.faq details p { padding: 0 40px 22px 2px; color: var(--ink-2); }

/* ---------------------------------------------------------------- contact */
.sec-contact { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; font-weight: 500; }
.contact-list svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--brand); color: #fff; stroke-width: 3; }
.contact-mail { margin-top: 28px; color: var(--muted); }
.contact-mail a { color: var(--brand); font-weight: 600; }
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--paper); font-size: 16px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); background: var(--card); box-shadow: 0 0 0 4px var(--brand-soft); }
.contact-form .bad { border-color: #C2410C !important; }
.f-err { color: #B4380B; font-weight: 600; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.attached { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-deep); }
.attached > svg { width: 24px; height: 24px; }
.attached div { flex: 1; min-width: 0; display: grid; }
.attached span { font-size: 14px; }
.attached-x { width: 36px; height: 36px; border: 0; background: transparent; color: var(--brand-deep); cursor: pointer; display: grid; place-items: center; border-radius: 10px; }
.attached-x:hover { background: rgba(75,63,224,.12); }
.sent { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 14px; background: var(--ink); color: #fff; }
.sent > svg { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--lime); color: var(--ink); stroke-width: 3; }
.sent div { display: grid; gap: 2px; }
.sent span { color: rgba(255,255,255,.75); }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--ink); color: rgba(255,255,255,.75); padding: 64px 0 28px; }
.foot .mk-a { stroke: #fff; }
.foot .brand-name { color: #fff; }
.foot .brand-name b { color: #A9A2FF; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin-top: 14px; }
.foot-col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.foot-col h4 { font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 6px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: var(--lime); }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.foot-base a { text-decoration: none; }
.foot-base a:hover { color: var(--lime); }

/* ---------------------------------------------------------------- reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .board { max-width: 640px; }
  .nav-links a { padding: 8px 9px; }
}
@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 8px; border-radius: 10px; font-size: 17px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { margin-left: 0; }
  .pain-grid, .svc-grid { grid-template-columns: 1fr 1fr; }
  .bp { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { left: 36px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed var(--line-2); }
  .rules { grid-template-columns: 1fr 1fr; }
  .rule-wide { grid-column: span 2; grid-template-columns: auto 1fr; }
  .rule-wide p { grid-column: 1 / -1; }
  .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .split-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-row { gap: 10px; height: 64px; }
  .nav-links { top: 64px; }
  .nav-cta { display: none; }
  .brand-name { font-size: 19px; }
  .mark { width: 34px; height: 34px; }
  .hero { padding: 32px 0 24px; }
  h1 { font-size: clamp(2.3rem, 10.5vw, 3rem); margin: 18px 0 16px; }
  .hero-cta .btn { width: 100%; }
  .board { padding: 12px; border-radius: 20px; }
  .board-tabs { width: 100%; }
  .board-tabs button { flex: 1; padding: 8px 6px; font-size: 13px; }
  .board-stage { grid-template-columns: 1fr; gap: 14px; padding: 14px 10px; min-height: 0; }
  .col-in, .col-out { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .node { padding: 8px 10px; font-size: 13px; }
  .node svg { width: 16px; height: 16px; }
  .hub { max-width: 260px; aspect-ratio: auto; border-radius: 20px; flex-direction: row; padding: 12px 14px; text-align: left; gap: 12px; }
  .hub-mark { width: 36px; height: 36px; flex: none; }
  .hub-label { min-height: 0; }
  .board-log li { grid-template-columns: auto 1fr; font-size: 13.5px; }
  .board-log time { display: none; }
  .tools { margin-top: 36px; gap: 12px; }
  .sec { padding: 72px 0; }
  .sec-head { margin-bottom: 32px; }
  .pain-grid, .svc-grid, .rules { grid-template-columns: 1fr; }
  .rule-wide { grid-column: auto; grid-template-columns: 1fr; }
  .pain { min-height: 0; }
  .pain p { font-size: 1rem; }
  .pain { min-height: 168px; }
  .svc-band { flex-direction: column; align-items: flex-start; }
  .bp-form, .contact-form { padding: 20px; }
  .sheet { min-height: 440px; }
  .sheet-doc { padding: 20px 18px 22px; }
  .doc-nums { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .faq summary { font-size: 1.05rem; }
  .faq details p { padding-right: 8px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; }
  .doc-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}

/* 404 */
.nf { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; }
.nf-mark { width: 72px; height: 72px; }
.nf-cta { margin-top: 28px; }
