/* Verdicta Platform — one stylesheet for every public and app surface. */

@font-face { font-family: "Instrument Serif"; src: url(../fonts/InstrumentSerif.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(../fonts/InstrumentSerif-Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url(../fonts/Geist.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(../fonts/GeistMono.woff2) format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
	--bg: #0b0c0b;
	--bg-2: #121412;
	--bg-3: #1a1c1a;
	--bg-4: #232623;
	--line: rgba(236, 232, 223, .08);
	--line-2: rgba(236, 232, 223, .15);
	--text: #ece8df;
	--muted: #a6a195;
	--dim: #75716a;
	--amber: #f2a93b;
	--amber-2: #ffd08a;
	--amber-ink: #201505;
	--amber-glow: rgba(242, 169, 59, .16);
	--paper: #f1ece2;
	--paper-2: #e7e0d2;
	--paper-ink: #1b1a16;
	--paper-muted: #5f5b52;
	--high: #ef6a4f;
	--medium: #f2a93b;
	--low: #84c294;
	--serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
	--sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--r: 14px;
	--r-lg: 24px;
	--gutter: clamp(16px, 4vw, 56px);
	--ease: cubic-bezier(.2, .7, .1, 1);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--amber); color: var(--amber-ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--amber); color: var(--amber-ink); padding: 10px 14px; border-radius: 10px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; }
.ico { width: 18px; height: 18px; flex: none; }

.demo-ribbon { position: fixed; z-index: 90; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(18, 20, 18, .88); border: 1px solid var(--line-2); color: var(--muted); font-size: 12px; padding: 6px 14px; border-radius: 99px; backdrop-filter: blur(10px); pointer-events: none; white-space: nowrap; }
.vdp--app .demo-ribbon { left: 14px; bottom: 150px; transform: none; max-width: 244px; white-space: normal; text-align: center; border-radius: 12px; }
@media (max-width: 900px) { .vdp--app .demo-ribbon { display: none; } }
.vdp--firm .demo-ribbon { bottom: 60px; }

/* ---------- type & controls ---------- */
.page-title { font: 400 clamp(44px, 6vw, 88px)/.98 var(--serif); letter-spacing: -.015em; margin: 0 0 18px; }
.section-title { font: 400 clamp(36px, 4.6vw, 68px)/1 var(--serif); letter-spacing: -.01em; margin: 0 0 28px; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 62ch; margin: 0 0 28px; }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { text-decoration-color: var(--amber); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 99px; border: 1px solid transparent; font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn .ico { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--amber { background: var(--amber); color: var(--amber-ink); }
.btn--amber:hover { background: var(--amber-2); }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: #fff; }
.btn--dark { background: var(--paper-ink); color: var(--paper); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s; }
.icon-btn:hover { background: var(--bg-3); border-color: var(--text); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 99px; background: var(--bg-4); color: var(--text); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--high { color: var(--high); background: rgba(239, 106, 79, .12); }
.badge--medium { color: var(--medium); background: rgba(242, 169, 59, .12); }
.badge--low { color: var(--low); background: rgba(132, 194, 148, .12); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tag { font-size: 13px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }

.field { display: grid; gap: 7px; font-size: 13.5px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; color: var(--text); font-size: 15.5px; transition: border-color .2s, background .2s; }
.field textarea { padding: 12px 14px; min-height: 110px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: var(--bg-3); }
.field small { color: var(--dim); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--amber); flex: none; }
.check a { color: var(--text); }

/* ---------- brand & header ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font: 400 26px/1 var(--serif); text-decoration: none; letter-spacing: -.01em; }
.brand--lg { font-size: 34px; }
.brand__mark { width: 22px; height: 22px; border-radius: 6px; background: var(--amber); position: relative; flex: none; }
.brand__mark::after { content: ""; position: absolute; inset: 5px 5px 7px; border: 2.2px solid var(--amber-ink); border-top: 0; border-left-color: transparent; border-right-color: transparent; border-bottom-width: 0; }
.brand__mark { background: conic-gradient(from 200deg at 50% 70%, var(--amber), var(--amber-2), var(--amber)); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 3px; width: 20px; height: 18px; }

.site-head { position: fixed; z-index: 50; inset: 0 0 auto; display: flex; align-items: center; gap: 28px; padding: 18px var(--gutter); transition: background .35s, border-color .35s, padding .35s; border-bottom: 1px solid transparent; }
.site-head.is-solid { background: rgba(11, 12, 11, .78); backdrop-filter: blur(16px) saturate(1.2); border-color: var(--line); padding-block: 12px; }
.site-nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }
@media (max-width: 760px) { .site-nav { gap: 16px; font-size: 14px; } .site-nav__quiet { display: none; } .site-head > .btn { display: none; } }

/* ---------- hero ---------- */
.hero, .ff-hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 120px var(--gutter) 90px; overflow: hidden; isolation: isolate; }
.hero__light { position: absolute; inset: -20% -10% auto auto; width: 90vmax; height: 90vmax; background: radial-gradient(closest-side, rgba(242, 169, 59, .22), rgba(242, 169, 59, .06) 45%, transparent 70%); filter: blur(10px); z-index: -2; animation: lamp 18s ease-in-out infinite alternate; pointer-events: none; }
@keyframes lamp { from { transform: translate3d(8%, -6%, 0) scale(1); } to { transform: translate3d(-6%, 4%, 0) scale(1.08); } }
.hero__map { position: absolute; z-index: -1; right: -8vw; bottom: -14vh; width: min(78vw, 1100px); opacity: .55; pointer-events: none; mask-image: radial-gradient(60% 60% at 60% 45%, #000 40%, transparent 85%); }
.hero__grain { position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__inner { width: min(980px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 34px; }
.composer, .composer__bar, .modes { min-width: 0; }
.hero__title { margin: 0; font-weight: 400; display: grid; gap: 14px; }
.hero__title .line { display: block; font: 400 clamp(52px, 8.2vw, 128px)/.92 var(--serif); letter-spacing: -.025em; }
.hero__title .line--soft { font: italic 400 clamp(24px, 3vw, 44px)/1.15 var(--serif); color: var(--muted); letter-spacing: -.005em; }
.hero__title .line { animation: rise 1.2s var(--ease) both; }
.hero__title .line--soft { animation-delay: .18s; }
.hero .composer, .hero__fine { animation: rise 1.2s var(--ease) .32s both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero__fine { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 14px; margin: -8px 0 0; text-align: left; }
.hero__fine .ico { width: 15px; height: 15px; flex: none; }
.hero__fine a { color: var(--muted); }
.hero__cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; color: var(--dim); font-size: 13px; text-decoration: none; }
.hero__cue i { width: 1px; height: 42px; background: linear-gradient(var(--dim), transparent); animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- composer (shared by hero and chat) ---------- */
.composer { width: 100%; background: rgba(22, 24, 22, .74); border: 1px solid var(--line-2); border-radius: 26px; padding: 16px 14px 12px 20px; backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04); transition: border-color .25s, box-shadow .25s; text-align: left; }
.composer:focus-within { border-color: rgba(242, 169, 59, .55); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 6px var(--amber-glow); }
.composer textarea { display: block; width: 100%; resize: none; border: 0; background: transparent; outline: none; font-size: 18px; line-height: 1.5; padding: 4px 0 10px; max-height: 40vh; min-height: 30px; }
.composer textarea::placeholder { color: var(--dim); transition: opacity .4s; }
.composer textarea.is-swapping::placeholder { opacity: 0; }
.composer__bar { display: flex; align-items: center; gap: 10px; }
.modes { display: flex; gap: 6px; flex-wrap: wrap; margin-right: auto; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode span { display: inline-block; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); cursor: pointer; transition: all .2s; }
.mode input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.mode input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.send { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--amber); color: var(--amber-ink); cursor: pointer; transition: transform .2s, opacity .2s, background .2s; flex: none; }
.send .ico { width: 20px; height: 20px; stroke-width: 2.2; }
.send:hover { background: var(--amber-2); }
.send[disabled] { opacity: .3; cursor: default; }
.composer__files { display: flex; flex-wrap: wrap; gap: 8px; }
.composer__files:not(:empty) { margin-bottom: 10px; }
.composer__hint { margin: 0 auto 0 4px; font-size: 12.5px; color: var(--dim); }
@media (max-width: 640px) {
	.composer textarea { font-size: 16px; }
	.composer--hero .composer__bar { flex-wrap: wrap; }
	.composer--hero .modes { order: -1; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 0 4px; }
	.composer--hero .modes::-webkit-scrollbar { display: none; }
	.composer--hero .send { margin-left: auto; }
	.mode span { padding: 6px 12px; font-size: 13.5px; white-space: nowrap; }
}

.file-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 12px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line-2); font-size: 13.5px; max-width: 100%; }
.file-chip .ico { width: 16px; height: 16px; color: var(--amber); }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.file-chip button { background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; }
.file-chip.is-uploading { opacity: .6; }

/* ---------- map ---------- */
.za-map { width: 100%; height: auto; overflow: visible; }
.za-map__prov { fill: rgba(236, 232, 223, .025); stroke: rgba(236, 232, 223, .16); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: fill .6s, stroke .6s; }
.za-map__other { fill: rgba(236, 232, 223, .01); stroke: rgba(236, 232, 223, .08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.za-map__pin { fill: var(--amber); filter: drop-shadow(0 0 6px rgba(242, 169, 59, .9)); }
.za-map--ghost .za-map__prov { fill: transparent; stroke: rgba(236, 232, 223, .12); }
.za-map--ghost .za-map__pin { r: 4; animation: twinkle 4s ease-in-out infinite; }
.za-map--ghost .za-map__pin:nth-child(3n) { animation-delay: -1.3s; }
.za-map--ghost .za-map__pin:nth-child(3n+1) { animation-delay: -2.6s; }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- story (pinned, scroll-driven) ---------- */
.story { position: relative; height: 560vh; }
.story--brief { height: 480vh; }
.story__sticky { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; align-items: center; gap: 4vw; padding: 0 var(--gutter); overflow: hidden; }
.story__copy { grid-column: 1; grid-row: 1; list-style: none; margin: 0; padding: 0; position: relative; height: 46vh; }
.story__ch { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s; filter: blur(4px); pointer-events: none; }
.story__ch.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.story__ch.is-past { transform: translateY(-30px); }
.story__ch h2 { font: 400 clamp(38px, 4.4vw, 72px)/1 var(--serif); letter-spacing: -.015em; margin: 0 0 20px; }
.story__ch p { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 38ch; margin: 0; }
.story__rail { position: absolute; left: var(--gutter); bottom: 7vh; display: flex; gap: 8px; }
.story__rail i { width: 34px; height: 2px; background: var(--line-2); position: relative; overflow: hidden; border-radius: 2px; }
.story__rail i::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform-origin: left; transform: scaleX(var(--fill, 0)); }
.story__stage { grid-column: 2; grid-row: 1; position: relative; height: min(76vh, 760px); }
.stage-map { position: absolute; inset: -4% -6% -4% 4%; display: grid; place-items: center; opacity: var(--map-o, .35); -webkit-mask-image: radial-gradient(70% 70% at 55% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(70% 70% at 55% 50%, #000 55%, transparent 100%); }
.stage-map .za-map { height: 100%; width: 100%; overflow: hidden; }
.stage-map .za-map__prov[data-prov="KZN"] { fill: rgba(242, 169, 59, calc(var(--kzn, 0) * .045)); stroke: rgba(242, 169, 59, calc(.16 + var(--kzn, 0) * .45)); }
.story-line { stroke: var(--amber); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 3; opacity: 0; }
.story-line.is-match { opacity: calc(var(--pins, 0) * 0.75); }
.story-firm { opacity: clamp(0, calc(var(--pins, 0) * 5 - var(--i) * .8), 1); }
.story-firm circle { fill: var(--dim); }
.story-firm.is-match circle { fill: var(--amber); filter: drop-shadow(0 0 2px rgba(242, 169, 59, .9)); }
.story-firm text, .story-user text { font: 500 4.6px var(--sans); fill: var(--text); paint-order: stroke; stroke: var(--bg); stroke-width: 1.6px; stroke-linejoin: round; }
.story-firm:not(.is-match) text { fill: var(--dim); }
.story-user { opacity: var(--pins-user, 0); }
.story-user circle { fill: #fff; }
.story-user text { fill: var(--muted); }
.story-user__pulse { fill: rgba(255, 255, 255, .25) !important; animation: pulse 2.2s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }

.stage-card { position: absolute; left: 50%; top: 50%; width: min(520px, 92%); --show: 0; --t: 0; opacity: var(--show); transform: translate(-50%, calc(-50% + (1 - var(--show)) * 40px + var(--lift, 0px))) scale(calc(.94 + var(--show) * .06)); background: rgba(20, 22, 20, .86); border: 1px solid var(--line-2); border-radius: 22px; padding: 22px; backdrop-filter: blur(14px); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9); will-change: transform, opacity; }
.stage-chat { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; display: grid; justify-items: end; gap: 10px; padding: 0; }
.msg-user { background: var(--bg-4); border-radius: 22px 22px 6px 22px; padding: 16px 20px; font-size: 17px; max-width: 100%; min-height: 3.2em; }
.msg-user p { margin: 0; }
.msg-user p::after { content: ""; display: inline-block; width: 2px; height: 1.1em; vertical-align: -3px; margin-left: 2px; background: var(--amber); animation: caret 1s steps(1) infinite; opacity: var(--caret, 1); }
@keyframes caret { 50% { opacity: 0; } }
.stage-brief__ref { margin: 0 0 14px; font: 500 12px var(--mono); color: var(--dim); letter-spacing: .02em; }
.stage-brief dl { margin: 0; display: grid; gap: 0; }
.stage-brief dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); opacity: clamp(0, calc(var(--t) * 8 - var(--i)), 1); transform: translateX(calc((1 - clamp(0, calc(var(--t) * 8 - var(--i)), 1)) * -14px)); }
.stage-brief dt { color: var(--dim); font-size: 13.5px; }
.stage-brief dd { margin: 0; font-size: 15.5px; }
.stage-brief dl div:first-child dd { color: var(--amber); }
.stage-research__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.stage-research__summary { font: 400 21px/1.35 var(--serif); margin: 0 0 16px; }
.stage-research ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.stage-research li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); opacity: clamp(0, calc(var(--t) * 5 - var(--i)), 1); }
.stage-research li b { display: block; color: var(--text); font-weight: 500; }
.stage-inbox { width: min(600px, 96%); padding: 0; overflow: hidden; }
.stage-inbox__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.stage-inbox__bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bg-4); }
.stage-inbox__bar span:last-child { margin-left: 8px; }
.stage-inbox__body { display: grid; grid-template-columns: 200px 1fr; min-height: 230px; }
.stage-inbox__list { border-right: 1px solid var(--line); padding: 8px; font-size: 13px; color: var(--dim); }
.stage-inbox__list p { margin: 0; padding: 10px; border-radius: 10px; }
.stage-inbox__new { background: var(--bg-3); color: var(--text); transform: translateX(calc((1 - var(--t)) * -30px)); opacity: clamp(0, calc(var(--t) * 3), 1); }
.stage-inbox__new b { display: block; color: var(--amber); font-weight: 500; }
.stage-inbox__open { padding: 18px; opacity: clamp(0, calc(var(--t) * 3 - 1), 1); }
.stage-inbox__name { margin: 0 0 8px; font-weight: 500; }
.stage-inbox__name span { color: var(--dim); font-weight: 400; font-size: 13px; margin-left: 6px; }
.stage-inbox__words { margin: 0 0 10px; font: italic 400 18px/1.35 var(--serif); color: var(--muted); }
.stage-inbox__meta { margin: 0 0 14px; font-size: 13px; color: var(--dim); }
.stage-inbox__actions { display: flex; gap: 8px; }
.stage-inbox .btn { pointer-events: none; }
.stage-inbox .btn--amber { box-shadow: 0 0 0 calc(var(--accept, 0) * 6px) var(--amber-glow); }

@media (max-width: 900px) {
	.story__sticky { grid-template-columns: 1fr; grid-template-rows: 1fr auto; align-items: stretch; padding-top: 72px; gap: 8px; }
	.story__stage { grid-column: 1; grid-row: 1; height: auto; min-height: 0; }
	.story__copy { grid-column: 1; grid-row: 2; height: 34svh; }
	.story__ch h2 { font-size: clamp(30px, 8vw, 40px); margin-bottom: 10px; }
	.story__ch p { font-size: 15.5px; }
	.story__rail { bottom: 3svh; }
	.stage-card { width: 94%; padding: 16px; }
	.stage-research__summary { font-size: 17px; }
	.stage-brief dl div { grid-template-columns: 96px 1fr; padding: 8px 0; }
	.stage-inbox__body { grid-template-columns: 1fr; }
	.stage-inbox__list { display: none; }
	.msg-user { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
	.story__ch, .stage-card { transition: opacity .3s linear; filter: none; }
	.hero__light, .za-map--ghost .za-map__pin, .hero__cue i, .story-user__pulse { animation: none; }
	.hero__title .line, .hero .composer, .hero__fine { animation: none; }
}

/* ---------- paths: stacking cards ---------- */
.paths { padding: 18vh var(--gutter) 10vh; }
.paths__stack { display: grid; gap: 7vh; }
.path { position: sticky; top: calc(12vh + var(--i) * 26px); min-height: 66vh; display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-items: center; padding: clamp(28px, 5vw, 72px); border-radius: 32px; background: linear-gradient(160deg, var(--bg-3), var(--bg-2) 60%); border: 1px solid var(--line); box-shadow: 0 -30px 80px -40px rgba(0, 0, 0, .9); transform-origin: 50% 0; transform: scale(var(--scale, 1)); filter: brightness(var(--dimness, 1)); }
.path h3 { font: 400 clamp(36px, 4.4vw, 64px)/1 var(--serif); margin: 0 0 18px; letter-spacing: -.01em; }
.path p { color: var(--muted); font-size: 18px; max-width: 42ch; margin: 0 0 32px; }
.path__visual { position: relative; min-height: 300px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); padding: 28px; display: grid; align-content: center; gap: 16px; overflow: hidden; }
.path__visual::before { content: ""; position: absolute; inset: auto -20% -60% auto; width: 80%; height: 120%; background: radial-gradient(closest-side, var(--amber-glow), transparent); }
.pv-q { justify-self: end; max-width: 85%; margin: 0; background: var(--bg-4); padding: 14px 18px; border-radius: 20px 20px 6px 20px; }
.pv-a { position: relative; max-width: 92%; }
.pv-a p { font: 400 26px/1.25 var(--serif); margin: 10px 0 0; }
.pv-a b { color: var(--amber); font-weight: 400; }
.pv-doc { display: grid; gap: 12px; width: 70%; }
.pv-doc i { height: 9px; border-radius: 5px; background: var(--bg-4); }
.pv-doc i:nth-child(3) { width: 70%; }
.pv-doc .hl { background: rgba(239, 106, 79, .5); }
.pv-doc .hl--2 { background: rgba(242, 169, 59, .55); width: 82%; }
.pv-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; position: relative; }
.pv-notes li { padding: 10px 14px; border-left: 2px solid var(--high); background: var(--bg-2); border-radius: 0 10px 10px 0; font-size: 15px; }
.pv-notes li + li { border-color: var(--amber); }
.pv-paper { background: var(--paper); color: var(--paper-ink); border-radius: 10px; padding: 24px 26px; transform: rotate(-2deg); box-shadow: 0 30px 60px -30px #000; max-width: 360px; justify-self: center; }
.pv-paper p { margin: 0; padding: 7px 0; border-top: 1px solid rgba(0, 0, 0, .08); font-size: 14px; color: var(--paper-muted); }
.pv-paper .pv-paper__t { font: 400 24px/1.1 var(--serif); color: var(--paper-ink); border: 0; padding-bottom: 12px; }
@media (max-width: 900px) {
	.path { grid-template-columns: 1fr; min-height: auto; top: calc(8vh + var(--i) * 16px); padding: 26px; gap: 22px; }
	.path p { font-size: 16px; margin-bottom: 22px; }
	.path__visual { min-height: 200px; padding: 20px; }
	.pv-a p { font-size: 20px; }
}

/* ---------- find ---------- */
.find { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-items: center; padding: 12vh var(--gutter); border-top: 1px solid var(--line); }
.find__text p { color: var(--muted); font-size: 18px; margin: -10px 0 28px; }
.find__form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.find__map { max-width: 620px; justify-self: center; width: 100%; }
.za-map--find .za-map__pin { r: 6; }
@media (max-width: 900px) { .find { grid-template-columns: 1fr; } .find__form { grid-template-columns: 1fr; } .find__map { order: -1; max-width: 420px; } }

/* ---------- firms band (paper) ---------- */
.firms-band { background: var(--paper); color: var(--paper-ink); padding: 14vh var(--gutter); }
.firms-band__inner { max-width: 1240px; margin: 0 auto; }
.firms-band h2 { font: 400 clamp(38px, 5.2vw, 80px)/1 var(--serif); letter-spacing: -.015em; margin: 0 0 56px; max-width: 18ch; }
.firms-band__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-bottom: 52px; }
.firms-band__cols p { margin: 0; color: var(--paper-muted); font-size: 17px; border-top: 1px solid rgba(0, 0, 0, .15); padding-top: 18px; }
.firms-band__cols b { display: block; color: var(--paper-ink); font-weight: 500; margin-bottom: 6px; }
@media (max-width: 900px) { .firms-band__cols { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- privacy band ---------- */
.private { padding: 14vh var(--gutter); max-width: 1320px; margin: 0 auto; }
.private__steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: s; }
.private__steps li { counter-increment: s; display: grid; gap: 8px; }
.private__steps li::before { content: counter(s); font: italic 400 64px/1 var(--serif); color: var(--amber); }
.private__steps b { font-weight: 500; font-size: 19px; }
.private__steps span { color: var(--muted); }
@media (max-width: 900px) { .private__steps { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 56px var(--gutter) 70px; }
.site-foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-foot nav a { color: var(--muted); text-decoration: none; }
.site-foot nav a:hover { color: var(--text); }
.site-foot__legalnav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }
.site-foot__legalnav a { color: var(--dim); text-decoration: none; }
.site-foot__legalnav a:hover { color: var(--text); }
.site-foot__legal { color: var(--dim); font-size: 13.5px; max-width: 90ch; margin: 34px 0 0; }

/* ---------- directory ---------- */
.dir { padding: 130px var(--gutter) 80px; }
.dir__head { max-width: 1320px; margin: 0 auto 40px; }
.dir__form { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr auto auto; gap: 12px; align-items: end; }
.dir__body { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1fr minmax(320px, 520px); gap: 40px; align-items: start; }
.dir__count { color: var(--muted); margin: 0 0 16px; }
.dir__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dir__map { position: sticky; top: 100px; }
.dir__map, .profile__map { aspect-ratio: 1000 / 890; border-radius: 26px; border: 1px solid var(--line); background: radial-gradient(80% 80% at 50% 40%, var(--bg-2), var(--bg)); overflow: hidden; padding: 14px; }
.dir__map .za-map, .profile__map .za-map { overflow: hidden; height: 100%; }
.firm-card { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); transition: border-color .25s, background .25s; display: grid; gap: 14px; }
.firm-card:hover, .firm-card.is-hot { border-color: var(--line-2); background: var(--bg-3); }
.firm-card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.firm-card h2 { font: 400 30px/1.05 var(--serif); margin: 0; }
.firm-card h2 a { text-decoration: none; }
.firm-card__where { margin: 0; color: var(--muted); font-size: 14.5px; }
.firm-card__where b { color: var(--amber); font-weight: 500; }
.firm-card__bio { margin: 0; color: var(--muted); }
.free-badge { margin: 0; display: inline-flex; align-self: start; justify-self: start; gap: 6px; font-size: 13px; font-weight: 500; color: var(--low); background: rgba(132, 194, 148, .1); border: 1px solid rgba(132, 194, 148, .3); padding: 4px 11px; border-radius: 99px; }
.firm-card__lang { margin: 0; color: var(--dim); font-size: 14px; }
.firm-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.za-map--dir .za-map__pin, .za-map--profile .za-map__pin { r: 5; transition: r .2s; }
.za-map--dir .za-map__pin.is-hot { r: 10; fill: #fff; }
.empty { color: var(--muted); padding: 30px; border: 1px dashed var(--line-2); border-radius: 18px; }
@media (max-width: 1100px) { .dir__form { grid-template-columns: 1fr 1fr; } .dir__body { grid-template-columns: 1fr; } .dir__map { display: none; } }
@media (max-width: 560px) { .dir__form { grid-template-columns: 1fr; } }

/* ---------- profile ---------- */
.profile { padding: 130px var(--gutter) 90px; max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 5vw; }
.back { color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 26px; }
.profile__where { color: var(--muted); margin: -6px 0 14px; font-size: 17px; }
.verified { display: inline-flex; align-items: center; gap: 8px; color: var(--low); font-size: 14px; margin: 0 0 26px; }
.profile__facts { margin: 0 0 34px; display: grid; }
.profile__facts div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.profile__facts dt { color: var(--dim); }
.profile__facts dd { margin: 0; }
.office { display: block; }
.office small { color: var(--dim); margin-left: 6px; }
.profile__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.profile__cta .btn { white-space: normal; text-align: center; padding-block: 10px; max-width: 100%; }
.profile__map { align-self: center; }
@media (max-width: 900px) { .profile { grid-template-columns: minmax(0, 1fr); } .profile__map { max-width: min(420px, 100%); } .profile__facts div { grid-template-columns: 1fr; gap: 4px; } }
.narrow { padding: 160px var(--gutter) 100px; max-width: 760px; margin: 0 auto; }

/* ---------- for firms ---------- */
.ff-hero { min-height: 88svh; place-items: center start; }
.ff-hero__inner { max-width: 980px; display: grid; gap: 30px; }
.ff-hero .hero__title { justify-items: start; }
.ff-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.brief-doc { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(calc((1 - var(--doc, 0)) * -3deg)); width: min(600px, 96%); background: var(--paper); color: var(--paper-ink); border-radius: 18px; padding: 30px; box-shadow: 0 60px 120px -40px #000; }
.brief-doc__ref { margin: 0 0 6px; font: 500 12px var(--mono); color: var(--paper-muted); }
.brief-doc h3 { font: 400 34px/1.05 var(--serif); margin: 0 0 8px; }
.brief-doc__head > p:last-child { margin: 0 0 6px; color: var(--paper-muted); font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.brief-doc .badge--high { background: rgba(239, 106, 79, .14); color: #c3412a; }
.brief-doc__part { border-top: 1px solid rgba(0, 0, 0, .1); padding: 13px 0; transition: opacity .6s var(--ease), transform .6s var(--ease), background .6s; opacity: .14; transform: translateY(6px); }
.brief-doc__part.is-on { opacity: 1; transform: none; }
.brief-doc__part.is-focus { background: linear-gradient(90deg, rgba(242, 169, 59, .16), transparent 70%); margin-inline: -30px; padding-inline: 30px; }
.brief-doc h4 { margin: 0 0 4px; font-size: 12.5px; font-weight: 500; color: var(--paper-muted); }
.brief-doc p, .brief-doc ul { margin: 0; font-size: 15px; }
.brief-doc ul { padding-left: 18px; color: var(--paper-muted); margin-top: 4px; }
.brief-doc blockquote { margin: 0; font: italic 400 19px/1.35 var(--serif); }
.brief-doc__files { display: flex; gap: 8px; flex-wrap: wrap; }
.brief-doc__files span { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; padding: 6px 10px; border-radius: 8px; background: var(--paper-2); }
.brief-doc__foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.brief-doc__foot small { color: var(--paper-muted); margin-left: auto; font-size: 12px; }
.brief-doc .btn--ghost { color: var(--paper-ink); border-color: rgba(0, 0, 0, .2); }
@media (max-width: 900px) { .brief-doc { padding: 20px; } .brief-doc h3 { font-size: 26px; } .brief-doc__part { padding: 9px 0; } .brief-doc p { font-size: 13.5px; } .brief-doc blockquote { font-size: 16px; } .brief-doc__part.is-focus { margin-inline: -20px; padding-inline: 20px; } }

.fair { padding: 14vh var(--gutter); max-width: 1320px; margin: 0 auto; }
.fair__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.fair__grid div { border-top: 1px solid var(--line-2); padding-top: 18px; }
.fair__grid h3 { font: 400 28px/1.1 var(--serif); margin: 0 0 8px; }
.fair__grid p { color: var(--muted); margin: 0; }
.fair__note { margin: 40px 0 0; color: var(--amber); font-size: 17px; }
@media (max-width: 900px) { .fair__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fair__grid { grid-template-columns: 1fr; } }

.pricing { padding: 12vh var(--gutter); max-width: 1320px; margin: 0 auto; }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { display: flex; flex-direction: column; padding: 32px; border-radius: 26px; border: 1px solid var(--line); background: var(--bg-2); }
.plan--featured { background: linear-gradient(170deg, rgba(242, 169, 59, .14), var(--bg-2) 55%); border-color: rgba(242, 169, 59, .4); }
.plan h3 { font: 400 34px/1 var(--serif); margin: 0 0 6px; }
.plan__for { color: var(--muted); margin: 0 0 24px; }
.plan__price { font: 400 56px/1 var(--serif); margin: 0 0 24px; letter-spacing: -.01em; }
.plan__price span { font: 400 16px var(--sans); color: var(--muted); margin-left: 6px; }
.plan ul { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; color: var(--muted); }
.plan li .ico { color: var(--amber); width: 18px; margin-top: 3px; }
.pricing__note { color: var(--dim); margin: 26px 0 0; max-width: 80ch; }
@media (max-width: 900px) { .pricing__grid { grid-template-columns: 1fr; } }

.faq { padding: 6vh var(--gutter) 14vh; max-width: 980px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font: 400 26px/1.2 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 30px var(--sans); color: var(--amber); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 24px; max-width: 70ch; }
.ff-final { text-align: center; padding: 16vh var(--gutter); border-top: 1px solid var(--line); background: radial-gradient(60% 80% at 50% 100%, var(--amber-glow), transparent); }
.ff-final h2 { font: 400 clamp(40px, 5.6vw, 86px)/1 var(--serif); margin: 0 auto 36px; max-width: 16ch; }

/* ---------- prose ---------- */
.prose { max-width: 780px; margin: 0 auto; padding: 140px var(--gutter) 100px; }
.prose h2 { font: 400 32px/1.1 var(--serif); margin: 46px 0 14px; }
.prose p, .prose li { color: var(--muted); }
.prose li { margin-bottom: 10px; }
.prose b { color: var(--text); font-weight: 500; }
.prose a { color: var(--amber); }
.prose .facts { margin: 0; }
.prose .facts div { display: grid; grid-template-columns: 240px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.prose .facts dt { color: var(--dim); }
.prose .facts dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 12px; }
.ptable th, .ptable td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); color: var(--muted); }
.ptable th { color: var(--text); font-weight: 500; }
@media (max-width: 640px) {
	.prose .facts div { grid-template-columns: 1fr; gap: 4px; }
	.ptable, .ptable tbody, .ptable tr, .ptable td { display: block; }
	.ptable thead { display: none; }
	.ptable tr { border-top: 1px solid var(--line-2); padding: 8px 0; }
	.ptable td { border: 0; padding: 4px 0; }
	.ptable td:first-child { color: var(--text); font-weight: 500; }
}

/* =========================================================
   App surfaces: chat (/ask) and firm workspace (/firm)
   ========================================================= */
.vdp--app { height: 100dvh; overflow: hidden; }
.vdp--app main { height: 100dvh; }

.chat { display: grid; grid-template-columns: 272px 1fr; height: 100dvh; }
.chat__side { background: #090a09; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; gap: 6px; min-height: 0; }
.chat__side-top { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 14px; }
.chat__close { display: none; }
.chat__new { display: block; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); text-decoration: none; font-weight: 500; margin-bottom: 18px; transition: background .2s; }
.chat__new:hover { background: var(--bg-3); }
.chat__side-label { font-size: 12.5px; color: var(--dim); margin: 0 8px 6px; }
.chat__history { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 0; }
.chat__history a { display: grid; grid-template-columns: 8px 1fr; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: 14px; }
.chat__history a span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat__history a:hover, .chat__history a[aria-current] { background: var(--bg-3); color: var(--text); }
.chat__history i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.chat__history i[data-s="completed"] { background: var(--low); }
.chat__history i[data-s="processing"] { background: var(--amber); animation: twinkle 1.6s infinite; }
.chat__history-empty { color: var(--dim); font-size: 13.5px; padding: 6px 10px; }
.chat__side-links { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.chat__side-links a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.chat__side-links a:hover { color: var(--text); background: var(--bg-3); }

.chat__main { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: 0; min-width: 0; }
.chat__top { display: flex; align-items: center; gap: 12px; padding: 12px 20px; min-height: 60px; }
.chat__menu { display: none; gap: 4px; flex-direction: column; }
.chat__menu span { display: block; width: 16px; height: 1.5px; background: var(--text); }
.chat__mode { margin: 0; color: var(--muted); font-size: 15px; }
.chat__top-actions { margin-left: auto; display: flex; gap: 8px; }
.chat__scroll { overflow-y: auto; min-height: 0; scroll-behavior: smooth; }
.chat__thread { max-width: 780px; margin: 0 auto; padding: 10px 24px 40px; display: grid; gap: 26px; }
.chat__dock { padding: 0 24px 20px; background: linear-gradient(transparent, var(--bg) 30%); }
.chat__dock .composer { max-width: 780px; margin: 0 auto; border-radius: 24px; padding: 12px 12px 10px 18px; }
.chat__dock .composer textarea { font-size: 16.5px; padding-bottom: 6px; }
.chat__drop { position: absolute; inset: 0; background: rgba(11, 12, 11, .86); border: 2px dashed var(--amber); border-radius: 18px; margin: 10px; display: none; place-items: center; font: 400 34px var(--serif); z-index: 5; }
.chat__drop.is-on { display: grid; }

.welcome { min-height: 52vh; display: grid; align-content: center; gap: 30px; padding-top: 6vh; }
.welcome h1 { font: 400 clamp(44px, 5.4vw, 72px)/1 var(--serif); margin: 0; letter-spacing: -.015em; }
.welcome h1 em { color: var(--muted); }
.starters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.starter { text-align: left; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; transition: border-color .2s, transform .3s var(--ease), background .2s; display: grid; gap: 6px; }
.starter:hover { border-color: var(--line-2); background: var(--bg-3); transform: translateY(-2px); }
.starter b { font: 400 23px/1.1 var(--serif); }
.starter span { color: var(--muted); font-size: 14px; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; }
.welcome__firm { padding: 14px 18px; border-radius: 16px; border: 1px solid rgba(242, 169, 59, .35); background: rgba(242, 169, 59, .06); color: var(--muted); }
.welcome__firm b { color: var(--text); font-weight: 500; }
@media (max-width: 700px) { .starters { grid-template-columns: 1fr; } }

.m { display: grid; gap: 12px; animation: msg-in .5s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.m--user { justify-items: end; }
.m--user .m__body { background: var(--bg-4); border-radius: 22px 22px 6px 22px; padding: 12px 18px; max-width: 82%; white-space: pre-wrap; overflow-wrap: anywhere; }
.m--bot { grid-template-columns: 30px 1fr; align-items: start; gap: 14px; }
.m--bot > .m__avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line-2); }
.m--bot > .m__avatar::after { content: ""; width: 12px; height: 11px; background: var(--amber); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.m--bot .m__body { min-width: 0; padding-top: 3px; display: grid; gap: 12px; }
.m__body p { margin: 0; }
.m__files { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 14.5px; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.chip:hover { border-color: var(--text); background: var(--bg-3); }
.chip--amber { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); font-weight: 500; }
.chip--amber:hover { background: var(--amber-2); border-color: var(--amber-2); }
.chip .ico { width: 15px; height: 15px; }
.chips.is-used { display: none; }
.typing { display: inline-flex; gap: 5px; padding: 10px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.card { border: 1px solid var(--line-2); border-radius: 20px; background: var(--bg-2); padding: 20px; display: grid; gap: 14px; }
.card h3 { margin: 0; font: 400 26px/1.1 var(--serif); }
.card p { color: var(--muted); }
.card--consent { border-color: rgba(242, 169, 59, .4); }
.consents { display: grid; gap: 12px; }
.consents .check { font-size: 14.5px; line-height: 1.45; }
.consents .check a { color: var(--amber); }
.card--consent ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; display: grid; gap: 6px; }
.card__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.card .error, .form__error { color: var(--high); font-size: 14px; margin: 0; }
.form__error:empty { display: none; }

.progress { display: grid; gap: 10px; }
.progress__step { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 15px; transition: color .4s; }
.progress__step i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; position: relative; }
.progress__step.is-now { color: var(--text); }
.progress__step.is-now i { border-color: var(--amber); border-top-color: transparent; animation: spin .9s linear infinite; }
.progress__step.is-done { color: var(--muted); }
.progress__step.is-done i { background: var(--amber); border-color: var(--amber); }
.progress__step.is-done i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--amber-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.progress__note { font-size: 13.5px; color: var(--dim); }

.result { display: grid; gap: 18px; }
.result__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--dim); font-size: 14px; }
.result__summary { font: 400 22px/1.38 var(--serif); margin: 0; color: var(--text); letter-spacing: .002em; }
.result__alert { padding: 14px 16px; border-radius: 14px; background: rgba(239, 106, 79, .08); border: 1px solid rgba(239, 106, 79, .3); color: var(--text); font-size: 15px; }
.result__sec { border-top: 1px solid var(--line); padding-top: 14px; }
.result__sec h4 { margin: 0 0 8px; font-size: 15px; font-weight: 500; }
.result__sec ul, .result__sec ol { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.result__sec p { color: var(--muted); }
.result__sources a { color: var(--muted); word-break: break-all; font-size: 13.5px; }
.result__disc { font-size: 13px; color: var(--dim); }
.draft { background: var(--paper); color: var(--paper-ink); border-radius: 16px; padding: 30px; max-height: 520px; overflow-y: auto; }
.draft h3 { font: 400 32px/1.1 var(--serif); margin: 0 0 18px; }
.draft h4 { margin: 18px 0 6px; font-size: 15px; }
.draft p { margin: 0; color: var(--paper-ink); white-space: pre-wrap; font-size: 15px; }
.draft__tools { display: flex; gap: 8px; flex-wrap: wrap; }

.matches { display: grid; gap: 10px; }
.match { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s; }
.match:hover { border-color: var(--line-2); }
.match:has(input:checked) { border-color: var(--amber); background: rgba(242, 169, 59, .05); }
.match input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--amber); }
.match__name { font: 400 22px/1.1 var(--serif); margin: 0 0 4px; }
.match__meta { margin: 0; font-size: 14px; color: var(--muted); }
.match__meta b { color: var(--amber); font-weight: 500; }
.match__bio { margin: 6px 0 0; font-size: 14px; color: var(--dim); }
.service { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); display: grid; gap: 6px; }
.service .match__name { margin: 0; }
.service__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.status-list li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 14.5px; }
.status-list span { color: var(--muted); }

@media (max-width: 900px) {
	.chat { grid-template-columns: 1fr; }
	.chat__side { position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .35s var(--ease); }
	.chat.is-side .chat__side { transform: none; box-shadow: 30px 0 80px rgba(0, 0, 0, .7); }
	.chat__close, .chat__menu { display: inline-flex; }
	.chat__thread { padding: 6px 16px 30px; }
	.chat__dock { padding: 0 12px 12px; }
	.result__summary { font-size: 21px; }
	.draft { padding: 20px; }
	.m--user .m__body { max-width: 90%; }
}

/* ---------- firm auth ---------- */
.auth { display: grid; grid-template-columns: 1fr minmax(380px, 560px); min-height: 100dvh; }
.vdp--firm:not(.vdp--app) { overflow: auto; }
.vdp--firm main { height: auto; min-height: 100dvh; }
.vdp--firm.vdp--app { overflow: auto; height: auto; }
.auth__story { position: relative; overflow: hidden; padding: 40px var(--gutter); display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); isolation: isolate; }
.auth__pitch h1 { font: 400 clamp(40px, 4.6vw, 72px)/1 var(--serif); margin: 0 0 20px; max-width: 14ch; letter-spacing: -.015em; }
.auth__pitch p { color: var(--muted); font-size: 18px; max-width: 46ch; }
.auth__points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; color: var(--muted); }
.auth__points li { display: flex; gap: 10px; }
.auth__points .ico { color: var(--amber); }
.auth__panel { padding: 60px clamp(24px, 4vw, 56px); display: grid; align-content: center; gap: 26px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); }
.tabs button { flex: 1; border: 0; background: transparent; border-radius: 99px; padding: 10px; cursor: pointer; color: var(--muted); font-weight: 500; }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth__story { padding-block: 24px 30px; border-right: 0; border-bottom: 1px solid var(--line); } .auth__pitch h1 { font-size: 38px; } .auth__points { display: none; } }

/* ---------- firm workspace ---------- */
.ws { display: grid; grid-template-columns: 250px 1fr; min-height: 100dvh; }
.ws__side { position: sticky; top: 0; height: 100dvh; background: #090a09; border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 14px; }
.ws__firm { margin: 10px 8px 6px; color: var(--muted); font-size: 14px; }
.ws__nav { display: grid; gap: 2px; }
.ws__nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); }
.ws__nav a:hover, .ws__nav a[aria-current] { background: var(--bg-3); color: var(--text); }
.count:not(:empty) { background: var(--amber); color: var(--amber-ink); font-size: 12px; font-weight: 600; border-radius: 99px; padding: 1px 8px; }
.ws__out { margin-top: auto; text-align: left; padding: 10px 12px; color: var(--muted); }
.ws__main { padding: 34px clamp(18px, 4vw, 56px) 80px; min-width: 0; }
.ws__status:not(:empty) { margin-bottom: 26px; }
.ws h1 { font: 400 clamp(36px, 4vw, 56px)/1 var(--serif); margin: 0 0 8px; }
.ws__sub { color: var(--muted); margin: 0 0 30px; }
.notice { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg-2); }
.notice p { margin: 0; color: var(--muted); }
.notice b { color: var(--text); font-weight: 500; }
.notice--ok { border-color: rgba(132, 194, 148, .4); background: rgba(132, 194, 148, .06); }
.notice--warn { border-color: rgba(242, 169, 59, .45); background: rgba(242, 169, 59, .06); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
.stat { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); }
.stat b { display: block; font: 400 40px/1 var(--serif); }
.stat span { color: var(--dim); font-size: 13.5px; }
.inbox { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.inbox li + li { border-top: 1px solid var(--line); }
.inbox a { display: grid; grid-template-columns: 10px 1.6fr 1fr 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; text-decoration: none; transition: background .2s; }
.inbox a:hover { background: var(--bg-2); }
.inbox .unread { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.inbox .read { width: 8px; }
.inbox__title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox__title small { display: block; font-weight: 400; color: var(--dim); }
.inbox__cell { color: var(--muted); font-size: 14px; }
.pill { font-size: 12.5px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.pill[data-s="new"] { border-color: var(--amber); color: var(--amber); }
.pill[data-s="accepted"], .pill[data-s="contacted"] { border-color: var(--low); color: var(--low); }
.pill[data-s="declined"] { color: var(--dim); }
.brief { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.brief__doc { background: var(--paper); color: var(--paper-ink); border-radius: 22px; padding: clamp(22px, 3vw, 40px); }
.brief__doc h2 { font: 400 38px/1.05 var(--serif); margin: 0 0 8px; }
.brief__doc h3 { font-size: 13px; font-weight: 500; color: var(--paper-muted); margin: 26px 0 8px; }
.brief__doc p, .brief__doc li { color: var(--paper-ink); }
.brief__doc ul, .brief__doc ol { padding-left: 20px; display: grid; gap: 4px; margin: 0; }
.brief__doc blockquote { margin: 0 0 10px; padding-left: 16px; border-left: 3px solid var(--amber); font: italic 400 21px/1.35 var(--serif); }
.brief__doc .meta { color: var(--paper-muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.brief__doc .badge--high { color: #c3412a; }
.brief__doc .badge--medium { color: #9a6411; }
.brief__doc .badge--low { color: #3d7a4b; }
.brief__doc a { color: var(--paper-ink); }
.brief__doc .transcript { display: grid; gap: 6px; font-size: 14px; }
.brief__doc .transcript p { margin: 0; }
.brief__doc .transcript b { font-weight: 500; }
.brief__side { position: sticky; top: 24px; display: grid; gap: 14px; }
.brief__side .card { gap: 10px; }
.contact-line { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 8px 0; color: var(--text); }
.contact-line .ico { color: var(--amber); }
.note { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.note small { display: block; color: var(--dim); }
.grid-check { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.grid-check label { display: flex; gap: 10px; align-items: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 14.5px; }
.grid-check label:has(input:checked) { border-color: var(--amber); background: rgba(242, 169, 59, .06); }
.grid-check input { accent-color: var(--amber); width: 17px; height: 17px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
legend { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.office-row { display: grid; grid-template-columns: 1fr 1.4fr 180px auto; gap: 10px; align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.toggle input { appearance: none; width: 46px; height: 26px; border-radius: 99px; background: var(--bg-4); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: transform .25s var(--ease); }
.toggle input:checked { background: var(--amber); }
.toggle input:checked::after { transform: translateX(20px); background: var(--amber-ink); }
.saved { color: var(--low); font-size: 14px; }
.demo-checkout { max-width: 520px; margin: 0 0 30px; padding: 28px; border-radius: 22px; background: #fff; color: #0f172a; }
.demo-checkout__brand { margin: 0 0 12px; font-size: 13px; color: #0ba4db; font-weight: 600; }
.demo-checkout h2 { margin: 0; font: 600 22px var(--sans); }
.demo-checkout__amt { font: 600 36px var(--sans); margin: 8px 0 12px; }
.demo-checkout__amt span { font-size: 15px; color: #64748b; font-weight: 400; }
.demo-checkout p { color: #475569; font-size: 14px; }
.demo-checkout form { display: flex; gap: 16px; align-items: center; margin-top: 18px; }
.demo-checkout .btn--amber { background: #0ba4db; color: #fff; }
.demo-checkout .link { color: #475569; }
@media (max-width: 1100px) { .brief { grid-template-columns: 1fr; } .brief__side { position: static; } .stats { grid-template-columns: 1fr 1fr; } .office-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
	.ws { grid-template-columns: minmax(0, 1fr); }
	.ws__side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px; gap: 8px; min-width: 0; }
	.ws__firm { display: none; }
	.ws__nav { display: flex; overflow-x: auto; width: 100%; order: 3; }
	.ws__out { margin: 0 0 0 auto; }
	.inbox a { grid-template-columns: 10px 1fr auto; }
	.inbox__cell { display: none; }
	.office-row { grid-template-columns: 1fr; }
}

/* Research-not-advice banner on every result and firm brief */
.result__banner { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 4px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(242, 169, 59, .45); background: rgba(242, 169, 59, .07); color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.result__banner svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--amber, #f2a93b); }
.result__banner b { color: var(--text); font-weight: 600; }
.result__banner a { color: inherit; text-decoration: underline; }
.prose .callout { padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(242, 169, 59, .45); background: rgba(242, 169, 59, .07); }
.prose .callout p { margin: 0 0 8px; }
.prose .callout p:last-child { margin: 0; }
.rights-form { display: grid; gap: 12px; margin-top: 18px; padding: 18px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg-2); }
.rights-form .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .rights-form .form__row { grid-template-columns: 1fr; } }

/* ---------- Input surfaces: lifted off the dark background so they read as fields ---------- */
:root { --field: #262925; --field-hover: #2c302b; --field-focus: #30342f; --field-line: rgba(236, 232, 223, .26); --field-line-hover: rgba(236, 232, 223, .42); --field-ph: rgba(236, 232, 223, .5); }
:where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]), select, textarea) { background-color: var(--field); border: 1px solid var(--field-line); border-radius: 12px; color: var(--text); }
.field input, .field select, .field textarea, .form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { background-color: var(--field); border-color: var(--field-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.field input:hover, .field select:hover, .field textarea:hover, .form input:not([type=checkbox]):not([type=radio]):hover, .form select:hover, .form textarea:hover { border-color: var(--field-line-hover); background-color: var(--field-hover); }
.field input:focus, .field select:focus, .field textarea:focus, .form input:not([type=checkbox]):not([type=radio]):focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--amber); background-color: var(--field-focus); box-shadow: 0 0 0 4px var(--amber-glow); }
input::placeholder, textarea::placeholder { color: var(--field-ph); opacity: 1; }
.field > span { color: var(--text); opacity: .82; }
select option { background: #1d201c; color: var(--text); }
.check input { width: 20px; height: 20px; }
.check input:not(:checked) { appearance: none; -webkit-appearance: none; border: 1.5px solid var(--field-line-hover); border-radius: 5px; background: var(--field); cursor: pointer; }
.check input:not(:checked):hover { border-color: var(--amber); }

/* Chat composers (home hero and /ask dock): lighter glass with an amber edge */
.composer { background: rgba(40, 43, 39, .9); border-color: rgba(242, 169, 59, .32); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 1px rgba(242, 169, 59, .06); }
.composer:hover { border-color: rgba(242, 169, 59, .5); }
.composer:focus-within { border-color: rgba(242, 169, 59, .75); background: rgba(44, 47, 43, .94); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 6px var(--amber-glow); }
.composer textarea, .composer textarea:hover, .composer textarea:focus { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.composer textarea::placeholder { color: rgba(236, 232, 223, .55); }
.composer textarea:disabled { opacity: .55; }

/* ---------- Phone polish (2026-11-13) ---------- */
/* Hero fine print: one flowing sentence, not flex columns. */
.hero__fine { display: block; text-align: center; line-height: 1.55; }
.hero__fine .ico { display: inline-block; vertical-align: -2px; margin-right: 6px; }
/* Chat menu button: centre the three lines inside the circle. */
.chat__menu { align-items: center; justify-content: center; }
@media (max-width: 760px) {
	.hero__fine { font-size: 13px; padding: 0 6px; }
	/* For-firms brief story: the document must fit above the caption. Collapse every part except the one in focus to its heading. */
	.story--brief .brief-doc { top: 0; transform: translateX(-50%) rotate(calc((1 - var(--doc, 0)) * -2deg)); max-height: 100%; overflow: hidden; }
	.story--brief .brief-doc__part:not(.is-focus) > :not(h4) { display: none; }
	.story--brief .brief-doc__part:not(.is-focus) h4 { margin: 0; }
	.story--brief .brief-doc__foot:not(.is-focus) { display: none; }
	.story--brief .brief-doc__part { padding-block: 8px; }
	.story--brief .story__copy { position: relative; z-index: 2; background: linear-gradient(transparent, var(--bg) 18px); padding-top: 14px; }
}
/* Research type switch in the chat header */
.chat__switch { margin-left: -4px; padding: 4px 11px; border-radius: 99px; border: 1px solid rgba(242, 169, 59, .4); background: rgba(242, 169, 59, .08); color: var(--amber-2); font-size: 13px; cursor: pointer; transition: background .2s, border-color .2s; }
.chat__switch:hover { background: rgba(242, 169, 59, .16); border-color: var(--amber); }
.chat__switch[hidden] { display: none; }

/* Featured member: paid highlight in the directory (labelled; never changes order or matching) */
.firm-card--featured { position: relative; border-color: rgba(242, 169, 59, .5); background: linear-gradient(160deg, rgba(242, 169, 59, .10), rgba(242, 169, 59, .02) 45%, var(--bg-2) 80%); box-shadow: 0 0 0 1px rgba(242, 169, 59, .12), 0 24px 60px -36px rgba(242, 169, 59, .45); }
.firm-card--featured:hover, .firm-card--featured.is-hot { border-color: var(--amber); background: linear-gradient(160deg, rgba(242, 169, 59, .14), rgba(242, 169, 59, .03) 45%, var(--bg-3) 80%); }
.feat-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin: 0; padding: 4px 10px; border-radius: 99px; background: var(--amber); color: var(--amber-ink); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.feat-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber-ink); opacity: .7; }
.profile .feat-badge { display: flex; margin: 16px 0 12px; }
.dir__feat-note { margin: 18px 0 0; font-size: 12.5px; color: var(--dim); }
.dir__feat-note[hidden] { display: none; }

/* Billing period switch and Solo add-on */
.billing-switch { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 22px; border-radius: 99px; border: 1px solid var(--field-line); background: var(--field); }
.billing-switch button { border: 0; background: transparent; color: var(--muted); padding: 9px 18px; border-radius: 99px; font-size: 14.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s; }
.billing-switch button[aria-checked="true"] { background: var(--text); color: var(--bg); }
.billing-switch button span { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--amber); color: var(--amber-ink); }
.plan__save { margin: -6px 0 6px; font-size: 13px; color: var(--amber-2); }
.plan__save[hidden] { display: none; }
.addon { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 4px 0 12px; border-radius: 14px; border: 1px dashed rgba(242, 169, 59, .55); background: rgba(242, 169, 59, .06); font-size: 13.5px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.addon b { color: var(--text); font-weight: 600; }
.addon input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--amber); }
.addon input:not(:checked) { appearance: none; -webkit-appearance: none; border: 1.5px solid var(--field-line-hover); border-radius: 5px; background: var(--field); }
.addon:has(input:checked) { border-style: solid; background: rgba(242, 169, 59, .12); }

/* ---------- languages (2.4.0) ---------- */
.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 99px; }
.lang__btn { border: 0; background: none; color: var(--muted); font: 600 12px/1 var(--sans, inherit); letter-spacing: .06em; padding: 7px 9px; border-radius: 99px; cursor: pointer; min-width: 34px; }
.lang__btn:hover { color: var(--text); }
.lang__btn.is-on { background: var(--amber); color: var(--amber-ink); }
.welcome__langs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.welcome__langs > span { margin-right: 4px; }
.lang-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(236, 232, 223, .04); color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.lang-note .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.lang-wait span::after { content: ''; display: inline-block; width: 1em; animation: lang-dots 1.2s steps(4) infinite; overflow: hidden; vertical-align: bottom; }
@keyframes lang-dots { from { width: 0; } to { width: 1em; } }
.lang-toggle { justify-self: start; }
.tag-en { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); font-size: 11px; letter-spacing: .05em; vertical-align: 1px; }
.check__en { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.hero__langs { color: var(--muted); font-size: 14.5px; margin: 0; animation: rise 1.2s var(--ease) .4s both; }
.hero__langs b { color: var(--text); font-weight: 500; }
@media (max-width: 760px) { .lang__btn { padding: 7px 7px; min-width: 30px; } }
@media (prefers-reduced-motion: reduce) { .hero__langs { animation: none; } .lang-wait span::after { animation: none; } }
.hero__langs .dim { color: var(--dim); }
@media (max-width: 760px) {
	.chat__top { gap: 8px; padding: 10px 12px; }
	.chat__mode { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
	.chat__switch { flex: none; font-size: 13px; }
	.chat__top .lang { flex: none; padding: 2px; }
	.lang__btn { padding: 7px 5px; min-width: 27px; font-size: 11px; }
	.chat__top-actions { flex: none; }
	.chat__top-actions .btn { font-size: 0; gap: 0; padding: 8px 9px; }
	.chat__top-actions .btn .ico { width: 16px; height: 16px; }
	.chat__top-actions .btn.is-confirm { font-size: 12.5px; gap: 6px; }
}
.chat__main { grid-template-columns: minmax(0, 1fr); }

.result__help { border: 1px solid rgba(242, 169, 59, .55); background: rgba(242, 169, 59, .09); border-radius: 14px; padding: 12px 16px; }
.result__help h4 { margin: 0 0 6px; color: var(--amber-2); font-size: 14px; letter-spacing: .02em; }
.result__help ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.5; }
