/* ==========================================================================
   rafaelschwart.com/ai — the AI directory (tools · MCP servers · skills · guides)
   --------------------------------------------------------------------------
   Structure of a tools directory, skin of the field notebook: ruled paper,
   spiral rail, ink hairlines, sharp corners, hard ink shadows, one signal
   blue, Satoshi + IBM Plex Mono + Caveat.

   Standalone like /bio: pages under public/ai never load the React app's CSS.
   Tokens mirror src/index.css; the pencil cursor mirrors its :root token.
   Pages are generated by scripts/ai/build.py — edit the generator, not the HTML.
   ========================================================================== */

:root {
  --paper: #f5f3ec;  --paper-soft: #faf8f2;  --paper-2: #edeae0;  --paper-3: #e2dfd5;
  --ink: #0a0a0a;    --ink-2: #181818;       --ink-3: #353535;
  --mute: #57534b;   --fade: #8e8e8e;
  --signal: #3664ff; --signal-deep: #2348d4;
  --wa-deep: #128c4a;
  --rule: rgba(24, 24, 24, 0.1);  --rule-strong: rgba(24, 24, 24, 0.22);  --white: #ffffff;

  --fdisp: 'Satoshi', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --fmono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
  --fhand: 'Caveat', 'Segoe Script', cursive;

  --ease-eng: cubic-bezier(0.42, 0, 0.58, 1);
  --ease-settle: cubic-bezier(0.2, 0, 0, 1);

  --nb-rule-line: rgba(24, 24, 24, 0.07);
  --nb-margin: rgba(54, 100, 255, 0.28);
  --nb-rail: 58px;
  --maxw: 1200px;

  /* Same pencil cursor as the main site — keep in sync with :root in src/index.css. */
  --nb-pencil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 3 11.1 6.2 26 21 21 26 6.2 11.1Z' fill='%23ffffff' stroke='%230a0a0a' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M23.15 18.21 26 21 21 26 18.21 23.15Z' fill='%233664ff' stroke='%230a0a0a' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M11.1 6.2 6.2 11.1' stroke='%230a0a0a' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M21.03 16.09 16.09 21.03' stroke='%230a0a0a' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M3 3 6.55 4.39 4.39 6.55Z' fill='%230a0a0a'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper); color: var(--ink); font-family: var(--fdisp); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100dvh;
  background-image: linear-gradient(var(--nb-rule-line) 1px, transparent 1px); background-size: 100% 34px; background-position: 0 -1px;
}
h1, h2, h3, p, figure, ul, ol { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }

:is(a[href], button, summary, label[for], [role="button"]) { cursor: var(--nb-pencil) 3 3, pointer; }
:is(input, textarea) { cursor: text; }
button:disabled { cursor: not-allowed; }
@media (pointer: coarse) { :is(a[href], button, summary, label[for], [role="button"]) { cursor: pointer; } }
:is(a, button, input, textarea):focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---- Spiral binding + margin rule ------------------------------------------- */
.nb-rail { position: fixed; top: 0; bottom: 0; left: 0; width: var(--nb-rail); background: var(--paper-2); border-right: 1px solid var(--rule-strong); z-index: 40; pointer-events: none; }
.nb-rail::after {
  content: ""; position: absolute; inset: 0; opacity: 0.9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='46'%3E%3Cpath d='M12 34 C 5 31, 4 18, 12 14 L 44 7 C 52 5, 54 15, 47 18 L 15 25 C 8 27, 8 34, 16 35' fill='none' stroke='%23b8b2a2' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-y; background-position: 0 12px;
}
.nb-margin-rule { position: fixed; top: 0; bottom: 0; left: calc(var(--nb-rail) + 34px); width: 1px; background: var(--nb-margin); pointer-events: none; z-index: 2; }
.page { padding-left: var(--nb-rail); position: relative; z-index: 3; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }

/* ---- Shared devices ------------------------------------------------------------ */
.mono { font-family: var(--fmono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.sq { display: inline-block; width: 9px; height: 9px; background: var(--signal); flex: none; }
.hl { position: relative; display: inline-block; isolation: isolate; }
.hl > span { position: relative; z-index: 1; }
.hl::before {
  content: ""; position: absolute; z-index: 0; left: -0.1em; right: -0.1em; top: 0.2em; bottom: 0.06em;
  background: color-mix(in srgb, var(--signal) 24%, transparent);
  transform: rotate(-0.7deg) skewX(-9deg) scaleX(var(--hl, 1)); transform-origin: left center; border-radius: 2px;
  transition: transform 0.8s var(--ease-settle);
}
.hand { font-family: var(--fhand); font-size: 21px; line-height: 1.3; color: var(--signal); transform: rotate(-0.8deg); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 11px 18px;
  border: 1px solid var(--ink); border-radius: 3px; font-weight: 700; font-size: 15px; line-height: 1.15;
  box-shadow: 4px 4px 0 var(--ink); background: var(--paper-soft);
  transition: transform 0.18s var(--ease-eng), box-shadow 0.18s var(--ease-eng), background-color 0.18s var(--ease-eng);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); transition-duration: 0.06s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--signal { background: var(--signal); color: #fff; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--paper:hover { background: var(--white); }
.btn--wa svg { color: var(--wa-deep); }
.btn--sm { min-height: 40px; padding: 8px 13px; font-size: 13.5px; box-shadow: 3px 3px 0 var(--ink); }
.btn .arr { display: inline-block; transition: transform 0.18s var(--ease-eng); }
.btn:hover .arr { transform: translateX(3px); }

/* ---- Top bar + section nav ------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-strong);
}
.top-in { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--fmono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; flex: none; }
.brand b { font-weight: 600; letter-spacing: 0.05em; text-transform: none; font-size: 14px; border: 1px solid var(--ink); padding: 2px 6px; background: var(--paper-soft); }
.nav { display: flex; gap: 6px; margin: 0 auto; }
.nav a {
  position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid transparent; border-radius: 3px;
  font-family: var(--fmono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute);
  transition: color 0.18s var(--ease-eng), border-color 0.18s var(--ease-eng), background-color 0.18s var(--ease-eng), transform 0.18s var(--ease-eng), box-shadow 0.18s var(--ease-eng);
}
.nav a small { font-size: 10px; letter-spacing: 0.04em; opacity: 0.7; }
.nav a:hover { color: var(--ink); border-color: var(--ink); background: var(--paper-soft); transform: translate(-1px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.nav a[aria-current="page"] { color: #fff; background: var(--signal); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.top .btn { flex: none; }

/* ---- Hero ------------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(40px, 7vw, 86px) 0 clamp(30px, 4vw, 48px); text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(90deg, var(--nb-rule-line) 1px, transparent 1px); background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 20%, transparent 75%);
}
.eyebrow { color: var(--signal-deep); }
.h1 { font-weight: 500; font-size: clamp(38px, 6.4vw, 78px); line-height: 1.0; letter-spacing: -0.03em; margin: 14px auto 0; max-width: 15ch; }
.h1 em, .h2 em { font-style: italic; }
.lede { margin: 20px auto 0; max-width: 54ch; font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.6; color: var(--ink-3); }
.ask { margin: clamp(26px, 4vw, 40px) auto 0; max-width: 620px; }
.ask label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.search {
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; background: var(--white);
  border: 1px solid var(--ink); border-radius: 3px; box-shadow: 5px 5px 0 var(--ink);
}
.search svg { width: 18px; height: 18px; flex: none; color: var(--mute); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 10px 0; }
.search input::placeholder { color: var(--fade); }
.search button { flex: none; min-height: 42px; padding: 0 16px; background: var(--signal); color: #fff; border: 1px solid var(--ink); border-radius: 2px; font-family: var(--fmono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.search:focus-within { box-shadow: 5px 5px 0 var(--signal); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; background: var(--paper-soft); border: 1px solid var(--rule-strong); border-radius: 3px;
  font-size: 13.5px; line-height: 1.2; white-space: nowrap; color: var(--ink-2);
  transition: border-color 0.15s var(--ease-eng), background-color 0.15s var(--ease-eng), transform 0.15s var(--ease-eng), box-shadow 0.15s var(--ease-eng), color 0.15s var(--ease-eng);
}
.chip small { font-family: var(--fmono); font-size: 10px; color: var(--fade); }
.chip:hover { border-color: var(--ink); background: var(--white); transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--ink); }
.chip[aria-pressed="true"] { background: var(--signal); color: #fff; border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.chip[aria-pressed="true"] small { color: rgba(255,255,255,.8); }
.hero .hand { margin-top: 22px; }

/* ---- Who + chat --------------------------------------------------------------------- */
.intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; padding: clamp(18px, 3vw, 30px) 0 clamp(40px, 6vw, 72px); }
.who { background: var(--paper-soft); border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: clamp(18px, 2.4vw, 28px); position: relative; display: flex; flex-direction: column; }
.who::before, .chat::before { content: ""; position: absolute; top: -9px; left: 26px; width: 64px; height: 17px; background: color-mix(in srgb, var(--signal) 16%, var(--paper-3)); border-left: 1px dashed rgba(24,24,24,.16); border-right: 1px dashed rgba(24,24,24,.16); transform: rotate(-2deg); }
.who-id { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; }
.who-id img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--ink); }
.who-id .mono { color: var(--signal-deep); font-size: 10.5px; }
.who-id strong { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-top: 4px; }
.who p.bio { margin-top: 16px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.who .cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.who .cta-row .btn { flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 14px; text-align: left; }
.who .cta-row .btn .l1 { display: inline-flex; align-items: center; gap: 8px; }
.who .cta-row .btn small { font-family: var(--fmono); font-weight: 400; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.82; }
.socials { display: flex; gap: 9px; margin-top: auto; padding-top: 18px; }
.social { display: grid; place-items: center; width: 42px; height: 42px; background: var(--white); border: 1px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: transform 0.18s var(--ease-eng), box-shadow 0.18s var(--ease-eng); }
.social svg { width: 19px; height: 19px; }
.social:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }

/* ---- Chat (same component as /bio) ---------------------------------------------------- */
.chat { display: flex; flex-direction: column; background: var(--paper-soft); border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); position: relative; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 13px; border-bottom: 1px solid var(--ink); }
.chat-ava { position: relative; flex: none; }
.chat-ava img { display: block; width: 42px; height: 42px; object-fit: cover; border: 1px solid var(--ink); }
.chat-ava i { position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--signal); border: 2px solid var(--paper-soft); }
.chat-id { flex: 1; min-width: 0; }
.chat-id strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.2; }
.chat-id .mono { display: block; margin-top: 3px; font-size: 10px; color: var(--signal-deep); }
.chat-reset { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: none; border: 1px solid var(--rule-strong); font-size: 15px; color: var(--ink-3); }
.chat-reset:hover { background: var(--paper-2); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; min-height: 230px; max-height: 52vh; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 10px 13px; font-size: 15px; line-height: 1.5; border: 1px solid var(--rule-strong); overflow-wrap: anywhere; }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: 8px; }
.msg ul { margin: 0; padding-left: 18px; }
.msg li + li { margin-top: 3px; }
.msg.bot { align-self: flex-start; background: var(--white); }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.msg .who-l { display: block; margin-bottom: 4px; font-family: var(--fmono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fade); }
.msg.err { background: color-mix(in srgb, var(--signal) 7%, var(--white)); border-color: var(--signal); }
.caret > :last-child::after, .caret:empty::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--signal); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.typing { display: inline-flex; gap: 5px; padding: 4px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: dot 1.1s var(--ease-eng) infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.starters { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 4px; }
.starters:empty { display: none; }
.starter { padding: 8px 11px; background: var(--white); border: 1px solid var(--ink); font-size: 13.5px; line-height: 1.3; text-align: left; box-shadow: 2px 2px 0 var(--ink); transition: transform 0.15s var(--ease-eng), box-shadow 0.15s var(--ease-eng), background-color 0.15s var(--ease-eng); }
.starter:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); background: color-mix(in srgb, var(--signal) 8%, var(--white)); }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px dashed var(--rule-strong); }
.chat-form textarea { flex: 1; min-width: 0; resize: none; height: 48px; max-height: 120px; overflow-y: hidden; padding: 12px 13px; border: 1px solid var(--rule-strong); background: var(--white); font-size: 16px; line-height: 1.35; border-radius: 0; }
.chat-form textarea:focus { outline: 2px solid var(--signal); outline-offset: 0; border-color: var(--signal); }
.chat-form button { flex: none; width: 46px; height: 46px; background: var(--signal); color: #fff; border: 1px solid var(--ink); display: grid; place-items: center; font-size: 18px; box-shadow: 2px 2px 0 var(--ink); }
.chat-form button:disabled { background: var(--paper-3); color: var(--fade); box-shadow: none; }
.chat-note { padding: 0 14px 12px; font-family: var(--fmono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fade); line-height: 1.5; }

/* ---- Section head ------------------------------------------------------------------------ */
.sec { padding: clamp(34px, 5vw, 64px) 0; border-top: 1px solid var(--rule-strong); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head > div { min-width: 0; flex: 1 1 420px; }
.h2 { font-weight: 500; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -0.025em; margin-top: 10px; }
.sec-head p.sub { margin-top: 10px; color: var(--mute); font-size: 16px; max-width: 58ch; }

/* ---- Directory cards ------------------------------------------------------------------------ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 318px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 11px; padding: 15px 15px 13px; min-width: 0;
  background: var(--paper-soft); border: 1px solid var(--rule-strong); border-radius: 3px;
  transition: transform 0.18s var(--ease-eng), box-shadow 0.18s var(--ease-eng), border-color 0.18s var(--ease-eng), background-color 0.18s var(--ease-eng);
}
.card:hover, .card:focus-within { border-color: var(--ink); background: var(--white); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.card-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { flex: none; width: 42px; height: 42px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--rule-strong); border-radius: 3px; overflow: hidden; font-family: var(--fmono); font-weight: 600; font-size: 13px; letter-spacing: 0.02em; color: var(--ink-3); }
.logo img { width: 28px; height: 28px; object-fit: contain; display: block; }
.logo--mono { background: var(--paper-2); }
.card-head > div { min-width: 0; }
.card h3 { font-size: 16.5px; font-weight: 700; line-height: 1.2; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card h3 a:focus-visible { outline: none; }
.card .cat { margin-top: 4px; font-family: var(--fmono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.card .desc { flex: 1; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.card-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill { font-family: var(--fmono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--rule-strong); background: var(--paper-2); color: var(--ink-3); }
.pill--gratis { border-color: var(--signal); color: var(--signal-deep); background: color-mix(in srgb, var(--signal) 9%, var(--paper-soft)); }
.stack { display: inline-flex; align-items: center; gap: 6px; font-family: var(--fmono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal-deep); }
.stack::before { content: ""; width: 7px; height: 7px; background: var(--signal); }
/* Guides index grouped by topic, with a search box */
.g-search { max-width: 620px; margin-top: 24px; }
.g-jump { justify-content: flex-start; margin-top: 16px; }
#g-count:empty { display: none; }
#g-count { margin-top: 12px; }
/* "En esta guía": the h2s of a guide */
.toc { margin-top: 22px; padding: 14px 18px; background: var(--paper-soft); border: 1px solid var(--rule-strong); border-radius: 3px; }
.toc .mono { color: var(--signal-deep); }
.toc ol { margin-top: 8px; padding-left: 20px; display: grid; gap: 5px; font-size: 15px; }
.toc a { text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.toc a:hover { text-decoration-color: var(--signal); }
.prose h2[id] { scroll-margin-top: 90px; }
.g-group + .g-group { margin-top: clamp(40px, 6vw, 64px); }
.g-head { font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -0.02em; scroll-margin-top: 90px; }
.g-blurb { margin: 8px 0 20px; max-width: 60ch; color: var(--ink-3); }
/* GitHub repo cards: owner in a quieter weight, a star count, times saved */
.card h3 .own { font-weight: 500; color: var(--mute); }
.card-foot--repo { flex-wrap: nowrap; align-items: flex-end; }
.card-foot--repo .tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; flex: 1 1 0; min-width: 0; }
.pill--star { border-color: var(--ink); background: var(--white); color: var(--ink); letter-spacing: 0.06em; text-transform: none; font-variant-numeric: tabular-nums; }
.saved { font-family: var(--fmono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.go { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--ink); background: var(--paper-soft); font-size: 14px; transition: background-color 0.18s var(--ease-eng), color 0.18s var(--ease-eng); }
.card:hover .go, .card:focus-within .go { background: var(--signal); color: #fff; }
.install { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 9px; border: 1px dashed var(--rule-strong); background: var(--paper); }
.install code { flex: 1; min-width: 0; font-family: var(--fmono); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); }
.install button { flex: none; font-family: var(--fmono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 8px; border: 1px solid var(--ink); background: var(--white); }
.install button:hover { background: var(--signal); color: #fff; }
.install button.ok { background: var(--ink); color: var(--paper); }

/* ---- Directory page: title + filters ----------------------------------------------------------- */
.dir-head { padding: clamp(34px, 5vw, 64px) 0 8px; text-align: center; }
.dir-head .h1 { font-size: clamp(34px, 5vw, 60px); max-width: 18ch; }
.filters { padding: 22px 0 6px; display: grid; gap: 14px; }
.filters .search { max-width: 620px; margin: 0 auto; width: 100%; }
.chips--scroll { justify-content: flex-start; }
.seg-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.seg { display: inline-flex; border: 1px solid var(--ink); background: var(--paper-soft); border-radius: 3px; box-shadow: 3px 3px 0 var(--ink); }
.seg button { padding: 9px 14px; background: none; border: 0; border-right: 1px solid var(--rule-strong); font-family: var(--fmono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--ink); background: var(--white); }
.seg button[aria-pressed="true"] { background: var(--signal); color: #fff; }
.count { font-family: var(--fmono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.results { padding: 14px 0 clamp(40px, 6vw, 72px); }
.empty { padding: 34px 20px; text-align: center; border: 1px dashed var(--rule-strong); background: var(--paper-soft); }
.empty strong { display: block; font-size: 19px; }
.empty p { margin-top: 8px; color: var(--mute); }
.empty .btn { margin-top: 16px; }
.explain { max-width: 720px; margin: 14px auto 0; color: var(--ink-3); font-size: clamp(15.5px, 1.2vw, 17.5px); line-height: 1.6; }

/* ---- Guides ------------------------------------------------------------------------------------- */
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 318px), 1fr)); gap: 14px; }
.guide { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--paper-soft); border: 1px solid var(--rule-strong); border-radius: 3px; transition: transform 0.18s var(--ease-eng), box-shadow 0.18s var(--ease-eng), border-color 0.18s var(--ease-eng), background-color 0.18s var(--ease-eng); }
.guide:hover, .guide:focus-within { border-color: var(--ink); background: var(--white); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.guide .kind { display: inline-flex; align-items: center; gap: 7px; font-family: var(--fmono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal-deep); }
.guide h3 { font-size: 19px; font-weight: 700; line-height: 1.22; letter-spacing: -0.01em; }
.guide h3 a::after { content: ""; position: absolute; inset: 0; }
.guide p { flex: 1; font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
.guide .read { align-self: flex-start; font-family: var(--fmono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--ink); background: var(--paper-soft); }
.guide:hover .read { background: var(--signal); color: #fff; }

/* ---- Article ------------------------------------------------------------------------------------ */
.article { max-width: 760px; margin: 0 auto; padding: clamp(30px, 5vw, 60px) 0 clamp(40px, 6vw, 70px); }
.crumbs { font-family: var(--fmono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.crumbs a { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; }
.article h1 { font-weight: 500; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.028em; margin-top: 16px; }
.article .standfirst { margin-top: 16px; font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.55; color: var(--ink-3); }
.article .meta { margin-top: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--rule-strong); display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--mute); }
.prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-weight: 700; font-size: 25px; line-height: 1.2; letter-spacing: -0.015em; margin-top: 40px; color: var(--ink); }
.prose h3 { font-weight: 700; font-size: 19px; margin-top: 28px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose a { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose code { font-family: var(--fmono); font-size: 0.86em; background: var(--paper-2); border: 1px solid var(--rule); padding: 1px 5px; }
.prose pre { position: relative; margin-top: 16px; padding: 14px 16px; background: var(--ink); color: var(--paper); overflow-x: auto; border-radius: 3px; font-family: var(--fmono); font-size: 13.5px; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.prose .note { padding: 14px 16px; background: color-mix(in srgb, var(--signal) 10%, var(--paper-soft)); border: 1px solid var(--rule-strong); box-shadow: 3px 3px 0 rgba(24,24,24,.14); font-size: 15.5px; }
.prose .steps { list-style: none; padding: 0; counter-reset: s; }
.prose .steps > li { counter-increment: s; position: relative; padding: 14px 16px 14px 62px; background: var(--paper-soft); border: 1px solid var(--rule-strong); }
.prose .steps > li + li { margin-top: 10px; }
.prose .steps > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 14px; top: 14px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--rule-strong); background: var(--paper-2); font-family: var(--fmono); font-size: 11px; color: var(--signal); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--rule-strong); vertical-align: top; }
.prose th { font-family: var(--fmono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--paper-2); }
.table-wrap { overflow-x: auto; }

/* ---- CTA band + footer (the ink spread) ------------------------------------------------------------ */
.band { background: var(--ink); color: var(--paper); padding: clamp(34px, 5vw, 60px) 0; background-image: linear-gradient(rgba(245,243,236,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(245,243,236,0.06) 1px, transparent 1px); background-size: 34px 34px; }
.band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.band .mono { color: var(--fade); }
.band h2 { font-weight: 500; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -0.025em; margin-top: 10px; max-width: 20ch; }
.band p { margin-top: 12px; color: rgba(245,243,236,.74); max-width: 48ch; }
.band .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.band .btn { box-shadow: 4px 4px 0 var(--signal); border-color: var(--paper); }
.band .btn:hover { box-shadow: 6px 6px 0 var(--signal); }
.band .btn--paper { background: var(--paper); color: var(--ink); }
.foot { background: var(--ink); color: var(--paper); border-top: 1px solid rgba(255,255,255,.12); padding: 30px 0 34px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px 40px; }
.foot .mono { color: var(--fade); font-size: 10px; }
.foot p { margin-top: 12px; font-size: 14px; line-height: 1.6; color: rgba(245,243,236,.72); max-width: 38ch; }
.foot ul { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 9px; }
.foot a.fl { color: rgba(245,243,236,.82); font-size: 14px; background-image: linear-gradient(var(--signal), var(--signal)); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 1px; padding-bottom: 2px; transition: background-size 0.24s var(--ease-eng), color 0.2s var(--ease-eng); }
.foot a.fl:hover { color: var(--paper); background-size: 100% 3px; }
.foot .ver { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-family: var(--fmono); font-size: 10.5px; letter-spacing: 0.06em; color: rgba(245,243,236,.45); }

/* ---- Motion --------------------------------------------------------------------------------------- */
html.motion [data-enter] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease-settle), transform 0.6s var(--ease-settle); }
html.motion [data-enter].in { opacity: 1; transform: none; }
html.motion .hl { --hl: 0; } html.motion .armed .hl { --hl: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==== DESKTOP ======================================================================================= */
@media (min-width: 1024px) {
  .intro { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(30px, 4vw, 56px); align-items: stretch; }
  .chat { min-height: 470px; height: 100%; }
  .chat-log { max-height: 340px; }
}

/* ==== TABLET / MOBILE =============================================================================== */
@media (max-width: 1023px) {
  :root { --nb-rail: 30px; }
  .nb-rail::after { background-size: 30px 24px; }
  .nb-margin-rule { display: none; }
  .top-in { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; }
  .top .btn { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 10px 0 0; gap: 0; border-top: 1px solid var(--rule-strong); }
  .nav a { flex: 1 1 auto; justify-content: center; padding: 11px 8px; border: 0; border-radius: 0; border-right: 1px solid var(--rule-strong); font-size: 10.5px; letter-spacing: 0.08em; }
  .nav a:last-child { border-right: 0; }
  .nav a:hover { transform: none; box-shadow: none; border-color: var(--rule-strong); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --nb-rail: 22px; }
  .nb-rail::after { background-size: 22px 18px; }
  .brand span { display: none; }
  .nav a small { display: none; }
  .hero { text-align: left; }
  .h1, .lede, .ask { margin-left: 0; margin-right: 0; }
  .chips { justify-content: flex-start; }
  .hero .chips, .chips--scroll { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 4px 16px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hero .chips::-webkit-scrollbar, .chips--scroll::-webkit-scrollbar { display: none; }
  .dir-head { text-align: left; }
  .dir-head .h1, .explain { margin-left: 0; }
  .search button { padding: 0 12px; }
  .who .cta-row { grid-template-columns: 1fr; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 10px 6px; }
  .band .btns, .band .btns .btn { width: 100%; }
  .sec-head .btn { width: 100%; }
}

/* ==== HERO MOTION ====================================================================================
   draw / snap / settle, never bouncy. On load: counters tick, the headline rises
   word by word, the highlighter sweeps, the search box lifts off the page, logo
   stickers land in the margins and the handwritten note writes itself. Then the
   search box types example tasks and real matching tools snap in under it.
   Stickers float slowly and lean away from the pointer. Wide screens get the
   stickers; phones and tablets get the same logos as a moving tape.
   All of it is off under prefers-reduced-motion (see the global rule above). */

.hero { overflow: hidden; overflow: clip; }
.hero .w { display: inline-block; }
.hero [data-count] { font-variant-numeric: tabular-nums; }
.hero .hl::before { transition-delay: 0.3s; }
.search { position: relative; }
@media (min-width: 641px) { .hero .chips { max-width: 760px; margin-left: auto; margin-right: auto; } }

html.motion .hero .w { opacity: 0; transform: translateY(0.45em); }
html.motion .hero.is-live .w {
  opacity: 1; transform: none;
  transition: opacity 0.55s var(--ease-settle), transform 0.55s var(--ease-settle);
  transition-delay: calc(60ms + var(--i) * 75ms);
}
html.motion .hero .search { box-shadow: 0 0 0 var(--ink); transform: translate(5px, 5px); }
html.motion .hero.is-live .search {
  box-shadow: 5px 5px 0 var(--ink); transform: none;
  transition: box-shadow 0.5s var(--ease-settle) 0.6s, transform 0.5s var(--ease-settle) 0.6s;
}
html.motion .hero.is-live .search:focus-within { box-shadow: 5px 5px 0 var(--signal); transition-delay: 0s; transition-duration: 0.15s; }

/* ---- the typed demo: ghost text with a live caret --------------------------------------------------- */
.ghost { display: none; position: absolute; left: 44px; top: 50%; transform: translateY(-50%); align-items: center; max-width: calc(100% - 150px); overflow: hidden; font-size: 16px; color: var(--ink-3); white-space: nowrap; pointer-events: none; }
.search.demo .ghost { display: flex; }
.search.demo input::placeholder { color: transparent; }
.ghost i { flex: none; width: 2px; height: 1.2em; margin-left: 2px; background: var(--signal); animation: blink 1s steps(2) infinite; }

/* ---- live results under the search ------------------------------------------------------------------ */
.sug { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 8px; height: 40px; margin-top: 14px; overflow: hidden; }
.sug-i {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 11px 0 5px; margin-right: 2px;
  background: var(--white); border: 1px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font-size: 13.5px; font-weight: 700; white-space: nowrap;
  transition: opacity 0.24s var(--ease-settle), transform 0.24s var(--ease-settle), background-color 0.15s var(--ease-eng);
}
.sug-i img { width: 22px; height: 22px; object-fit: contain; display: block; }
.sug-i:hover { background: color-mix(in srgb, var(--signal) 9%, var(--white)); }
.sug-i.new { opacity: 0; transform: translateY(8px); }
.sug-more { flex: none; padding: 0 4px; font-family: var(--fmono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal-deep); white-space: nowrap; transition: opacity 0.24s var(--ease-settle); }
.sug-more.new { opacity: 0; }

/* ---- handwritten note that writes itself, with a drawn arrow ------------------------------------------ */
.nb-write { display: inline-block; clip-path: inset(-24% calc((1 - var(--write, 1)) * 102%) -24% -4%); }
html.motion .hero .nb-write { --write: 0; }
html.motion .hero.is-live .nb-write { --write: 1; transition: clip-path 1.1s var(--ease-settle) 1.1s; }
.hand .arrow { width: 24px; height: 28px; margin-left: 2px; vertical-align: -9px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.hand .arrow path { stroke-dasharray: 64; stroke-dashoffset: 0; }
html.motion .hero .arrow path { stroke-dashoffset: 64; }
html.motion .hero.is-live .arrow path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.6s var(--ease-settle) 2.1s; }
html.motion .hero.is-live .arrow path + path { transition-delay: 2.6s; }
html.motion .hero.is-live .arrow { animation: nudge 1.7s var(--ease-eng) 3.4s infinite alternate; }
@keyframes nudge { to { transform: translateY(5px); } }

/* ---- logo stickers floating in the margins (wide screens) ---------------------------------------------- */
.floaters { display: none; position: absolute; inset: 0; pointer-events: none; --k: 1; }
.stk {
  position: absolute; left: calc(50% + var(--x) * var(--k)); top: var(--y); pointer-events: auto;
  transform: translate(calc(var(--mx, 0) * var(--d) * 1px), calc(var(--my, 0) * var(--d) * 1px));
  transition: transform 0.7s var(--ease-settle), opacity 0.5s var(--ease-settle), scale 0.5s var(--ease-settle);
}
.stk-in {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px;
  background: var(--paper-soft); border: 1px solid var(--ink); border-radius: 3px; box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(var(--r)); animation: floaty var(--t) ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.1s);
  transition: box-shadow 0.2s var(--ease-eng);
}
.stk-in::before { content: ""; position: absolute; top: -7px; left: 50%; width: 30px; height: 12px; margin-left: -15px; background: color-mix(in srgb, var(--signal) 16%, var(--paper-3)); border-left: 1px dashed rgba(24,24,24,.16); border-right: 1px dashed rgba(24,24,24,.16); transform: rotate(-3deg); opacity: 0.92; }
.stk-in img { width: 32px; height: 32px; object-fit: contain; display: block; }
.stk:hover .stk-in { box-shadow: 6px 6px 0 var(--ink); animation-play-state: paused; }
@keyframes floaty {
  from { transform: translateY(-6px) rotate(calc(var(--r) - 1.6deg)); }
  to { transform: translateY(6px) rotate(calc(var(--r) + 1.6deg)); }
}
html.motion .hero .stk { opacity: 0; scale: 0.8; }
html.motion .hero.is-live .stk { opacity: 1; scale: 1; transition-delay: 0s, calc(0.8s + var(--i) * 80ms), calc(0.8s + var(--i) * 80ms); }

/* ---- the same logos as a moving tape (phones and tablets) ------------------------------------------------ */
.logo-tape { overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--ink); margin-bottom: clamp(26px, 5vw, 44px); }
.logo-tape-track { display: flex; width: max-content; padding: 9px 0 11px; animation: tape 48s linear infinite; }
.tp { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-right: 12px; background: var(--white); border: 1px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.tp:nth-child(odd) { transform: rotate(-2.5deg); }
.tp:nth-child(even) { transform: rotate(1.8deg); }
.tp img { width: 24px; height: 24px; object-fit: contain; display: block; }
@keyframes tape { to { transform: translateX(-50%); } }
.hero.paused .stk-in, .hero.paused .logo-tape-track, .hero.paused .arrow { animation-play-state: paused; }

@media (max-width: 1239px) {
  .hero { padding-top: 0; }
}
@media (max-width: 640px) {
  .sug { justify-content: flex-start; }
}
@media (min-width: 1240px) {
  .floaters { display: block; }
  .logo-tape { display: none; }
}
@media (min-width: 1420px) { .floaters { --k: 1.14; } }
@media (min-width: 1560px) { .floaters { --k: 1.26; } }

/* ==== FUNNEL QUIZ ====================================================================================
   A launcher pill and a dialog with three taps that end in Calendly, WhatsApp or guides.
   Desktop: a taped card in the centre. Phones: a sheet from the bottom. Snap, never bounce. */
html.qz-lock { overflow: hidden; }
.qz-launch {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 15px 11px 13px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 3px;
  box-shadow: 4px 4px 0 var(--signal); font-weight: 700; font-size: 14.5px; line-height: 1;
  transform: translateY(160%); opacity: 0;
  transition: transform 0.5s var(--ease-settle), opacity 0.3s var(--ease-settle), box-shadow 0.18s var(--ease-eng);
}
.qz-launch[hidden] { display: none; }
.qz-launch.is-in { transform: none; opacity: 1; }
.qz-launch.is-in:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--signal); }
.qz-launch.is-away, .qz-launch.is-tucked { transform: translateY(160%); opacity: 0; pointer-events: none; }
.qz-launch small { font-family: var(--fmono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245, 243, 236, 0.62); }
.qz-dot { position: relative; flex: none; width: 9px; height: 9px; background: var(--signal); }
.qz-dot::after { content: ""; position: absolute; inset: -4px; border: 1px solid var(--signal); animation: qzPing 1.8s var(--ease-eng) infinite; }
@keyframes qzPing { 0% { opacity: 0.9; transform: scale(0.6); } 80%, 100% { opacity: 0; transform: scale(1.9); } }

.qz { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; }
.qz[hidden] { display: none; }
.qz-scrim { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.46); backdrop-filter: blur(2px); opacity: 0; transition: opacity 0.26s var(--ease-eng); }
.qz.is-open .qz-scrim { opacity: 1; }
.qz-card {
  position: relative; width: min(560px, 100%);
  background: var(--paper-soft); border: 1px solid var(--ink); border-radius: 3px; box-shadow: 8px 8px 0 var(--ink);
  background-image: linear-gradient(var(--nb-rule-line) 1px, transparent 1px); background-size: 100% 32px; background-position: 0 14px;
  opacity: 0; transform: translateY(22px) rotate(-1.2deg) scale(0.985);
  transition: opacity 0.3s var(--ease-settle), transform 0.45s var(--ease-settle);
}
.qz.is-open .qz-card { opacity: 1; transform: none; }
.qz-scroll { max-height: min(740px, calc(100dvh - 32px)); overflow: auto; overscroll-behavior: contain; padding: 22px 24px 20px; }
.qz-tape { position: absolute; top: -12px; left: 50%; width: 96px; height: 24px; margin-left: -48px; background: color-mix(in srgb, var(--signal) 18%, var(--paper-3)); border-left: 1px dashed rgba(24, 24, 24, 0.18); border-right: 1px dashed rgba(24, 24, 24, 0.18); transform: rotate(-2.5deg); opacity: 0.95; }
.qz-top { display: flex; align-items: center; gap: 12px; }
.qz-step { flex: none; font-size: 10.5px; color: var(--mute); }
.qz-bar { flex: 1; display: flex; gap: 4px; }
.qz-bar i { flex: 1; height: 4px; background: var(--paper-3); transition: background-color 0.25s var(--ease-eng); }
.qz-bar i.on { background: var(--signal); }
.qz-x, .qz-backbtn { flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: var(--paper-soft); border: 1px solid var(--rule-strong); border-radius: 3px; font-size: 20px; line-height: 1; color: var(--ink-2); transition: border-color 0.15s var(--ease-eng), background-color 0.15s var(--ease-eng); }
.qz-backbtn { font-size: 16px; }
.qz-backbtn[hidden] { display: none; }
.qz-x:hover, .qz-backbtn:hover { border-color: var(--ink); background: var(--white); }
.qz-pane { opacity: 0; transform: translateX(14px); transition: opacity 0.28s var(--ease-settle), transform 0.32s var(--ease-settle); }
.qz-pane.in { opacity: 1; transform: none; }
.qz-eyebrow { margin-top: 18px; font-size: 10.5px; color: var(--signal-deep); }
.qz-h { margin-top: 10px; font-weight: 500; font-size: clamp(26px, 4.4vw, 34px); line-height: 1.08; letter-spacing: -0.025em; color: var(--ink); }
.qz-mark { background: linear-gradient(transparent 56%, color-mix(in srgb, var(--signal) 28%, transparent) 56%); padding: 0 0.06em; font-style: italic; white-space: nowrap; }
.qz-note { margin-top: 6px; font-family: var(--fhand); font-size: 23px; line-height: 1.2; color: var(--signal); transform: rotate(-1deg); transform-origin: left; }
.qz-opts { display: grid; gap: 10px; margin-top: 18px; }
.qz-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 14px; text-align: left;
  background: var(--white); color: var(--ink); border: 1px solid var(--ink); border-radius: 3px; box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700; font-size: 16px; line-height: 1.25;
  transition: transform 0.16s var(--ease-eng), box-shadow 0.16s var(--ease-eng), background-color 0.16s var(--ease-eng), color 0.16s var(--ease-eng);
}
.qz-opt:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.qz-opt:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.qz-opt kbd { flex: none; width: 28px; height: 28px; display: grid; place-items: center; font-family: var(--fmono); font-size: 12px; font-weight: 500; background: var(--paper-2); border: 1px solid var(--rule-strong); border-radius: 2px; color: var(--ink-3); }
.qz-opt.is-on { background: var(--signal); color: #fff; transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.qz-opt.is-on kbd { background: var(--white); color: var(--signal-deep); border-color: var(--white); }
.qz-who { display: flex; align-items: center; gap: 11px; margin-top: 16px; }
.qz-who img { width: 44px; height: 44px; object-fit: cover; border: 1px solid var(--ink); border-radius: 2px; background: var(--signal); }
.qz-who strong { display: block; font-size: 15px; }
.qz-who small { display: block; margin-top: 3px; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.qz-p { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--ink-3); }
.qz-ctas { display: grid; gap: 8px; margin-top: 18px; }
.qz-main { width: 100%; min-height: 54px; font-size: 16.5px; }
.qz-alt { justify-self: center; padding: 7px 4px; font-size: 14.5px; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.qz-guides { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 8px; }
.qz-guides a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; background: var(--white); border: 1px solid var(--rule-strong); border-radius: 3px; transition: border-color 0.15s var(--ease-eng), box-shadow 0.15s var(--ease-eng), transform 0.15s var(--ease-eng); }
.qz-guides a:hover { border-color: var(--ink); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.qz-guides .mono { font-size: 11px; color: var(--signal); }
.qz-guides strong { font-size: 15px; line-height: 1.3; }
.qz-guides small { font-family: var(--fmono); font-size: 10px; color: var(--mute); white-space: nowrap; }
.qz-restart { display: block; margin: 14px auto 0; padding: 6px; background: none; border: 0; font-size: 10.5px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.band .qz-open { background: transparent; color: var(--paper); border-style: dashed; box-shadow: none; }
.band .qz-open:hover { background: rgba(245, 243, 236, 0.08); box-shadow: none; transform: none; }

@media (max-width: 640px) {
  .qz { place-items: end stretch; padding: 0; }
  .qz-card {
    width: 100%; border-width: 1px 0 0; border-radius: 3px 3px 0 0; box-shadow: 0 -5px 0 var(--signal);
    transform: translateY(100%);
  }
  .qz-scroll { max-height: 90dvh; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); }
  .qz-scroll::before { content: ""; display: block; width: 44px; height: 4px; margin: 0 auto 12px; background: var(--rule-strong); border-radius: 2px; }
  .qz-tape { display: none; }
  .qz-h { font-size: 26px; }
  .qz-opt { min-height: 54px; font-size: 15.5px; }
  .qz-launch { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 10px 13px 10px 11px; font-size: 14px; }
  .qz-launch small { display: none; }
}
@media print { .qz, .qz-launch { display: none !important; } }

/* ==== GUIDE VISUALS ==================================================================================
   For guides people reach from a reel (header keys "map", "deadline", "sheet"; <div class="prompt">).
   Three tones: signal blue, green, sticky-note yellow. Draw / snap / settle, never bouncy. */
[data-tone="b"] { --t: var(--signal); --t-ink: var(--white); }
[data-tone="g"] { --t: #1d7a32; --t-ink: var(--white); }
[data-tone="y"] { --t: #ffd23f; --t-ink: var(--ink); }

.dl { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 13px 18px; background: var(--ink); color: var(--paper); border-radius: 3px; box-shadow: 4px 4px 0 var(--signal); }
.dl-dot { flex: none; width: 11px; height: 11px; border-radius: 50%; background: #7d9bff; animation: dlPulse 1.6s var(--ease-eng) infinite; }
@keyframes dlPulse { 0% { box-shadow: 0 0 0 0 rgba(125,155,255,.75); } 100% { box-shadow: 0 0 0 11px rgba(125,155,255,0); } }
.dl-txt { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 2px; }
.dl-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245,243,236,.75); }
.dl-clock { font-variant-numeric: tabular-nums; }
.dl-clock:empty { display: none; }
.dl-clock .q { font-family: var(--fmono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,243,236,.75); margin-right: 6px; }
.dl-clock b { font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.dl-clock small { font-family: var(--fmono); font-size: 11px; margin: 0 8px 0 2px; color: rgba(245,243,236,.75); }
.dl-until { font-size: 13.5px; color: rgba(245,243,236,.8); flex-basis: 100%; }
.dl.is-over { background: var(--paper-2); color: var(--ink); box-shadow: 4px 4px 0 var(--rule-strong); border: 1px solid var(--rule-strong); }
.dl.is-over .dl-dot { display: none; }
.dl-after { font-size: 15px; line-height: 1.5; }

.pmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.pmap-i { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 16px 16px 14px; background: color-mix(in srgb, var(--t) 13%, var(--paper-soft)); border: 1.5px solid var(--ink); border-top: 7px solid var(--t); border-radius: 3px; box-shadow: 4px 4px 0 var(--ink); color: var(--ink); text-decoration: none; transition: transform .18s var(--ease-eng), box-shadow .18s var(--ease-eng); }
.pmap-i:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.pmap-i:active { transform: scale(.97); box-shadow: 2px 2px 0 var(--ink); }
.pmap-n { display: inline-grid; place-items: center; width: 36px; height: 36px; background: var(--t); color: var(--t-ink); border: 1.5px solid var(--ink); border-radius: 3px; font-weight: 600; font-size: 14px; }
.pmap-i strong { font-weight: 700; font-size: 19px; line-height: 1.15; letter-spacing: -0.01em; }
.pmap-s { font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.pmap-go { margin-top: auto; padding-top: 6px; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.pmap-sheet { margin-top: 14px; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.pmap-sheet a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.prose h2[data-tone]::before { content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 10px; background: var(--t); border: 1.5px solid var(--ink); border-radius: 2px; vertical-align: 1px; }
.prose .prompt { margin-top: 16px; background: color-mix(in srgb, var(--t) 6%, var(--white)); border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 5px 5px 0 var(--t); overflow: hidden; }
.prose .prompt[data-tone="y"] { box-shadow: 5px 5px 0 #e0b300; }
.prompt-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 7px 7px 14px; background: var(--t); color: var(--t-ink); border-bottom: 1.5px solid var(--ink); }
.prompt-bar .mono { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.prompt-copy { min-height: 40px; padding: 0 15px; font: 700 14px/1 var(--fdisp); background: var(--paper-soft); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 2px 2px 0 var(--ink); transition: transform .15s var(--ease-eng), box-shadow .15s var(--ease-eng), background-color .15s var(--ease-eng); }
.prompt-copy:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.prompt-copy:active { transform: scale(.97); box-shadow: 1px 1px 0 var(--ink); }
.prompt-copy.ok { background: var(--ink); color: var(--paper); }
.prompt-body { padding: 14px 16px 16px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.prompt .fill { padding: 0 3px; background: color-mix(in srgb, var(--t) 24%, var(--white)); color: var(--ink); border-bottom: 1.5px dashed var(--ink); border-radius: 2px; }

.prose .gsheet { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 26px; align-items: center; margin-top: 40px; padding: 26px 22px 22px; background: color-mix(in srgb, #ffd23f 24%, var(--paper-soft)); border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 5px 5px 0 var(--ink); scroll-margin-top: 90px; }
.gsheet-img { position: relative; display: block; }
.gsheet-img::before { content: ""; position: absolute; top: -12px; left: 50%; z-index: 1; width: 92px; height: 24px; background: rgba(255,255,255,.62); border: 1px solid var(--rule); transform: translateX(-50%) rotate(-4deg); }
.gsheet-img img { display: block; width: 100%; height: auto; border: 1px solid var(--rule-strong); box-shadow: 3px 3px 0 rgba(24,24,24,.18); transform: rotate(-1.5deg); transition: transform .2s var(--ease-eng); }
.gsheet-img:hover img { transform: rotate(0deg) scale(1.01); }
.gsheet figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.gsheet figcaption .mono { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.gsheet figcaption p { margin: 0; font-size: 18px; line-height: 1.4; color: var(--ink); }
.prose .gsheet .btn { text-decoration: none; }

@media (max-width: 760px) {
  .pmap { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pmap-i { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 13px; row-gap: 3px; padding: 14px 14px 13px; border-top-width: 1.5px; border-left: 7px solid var(--t); }
  .pmap-n { grid-row: span 3; align-self: start; }
  .pmap-go { padding-top: 2px; }
  .dl { padding: 12px 14px; gap: 12px; }
  .dl-clock b { font-size: 20px; }
  .prose .gsheet { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 26px 16px 18px; }
  .gsheet-img { width: min(240px, 100%); }
  .gsheet figcaption { align-items: center; }
}

/* ==== AGENDA (/agenda/) ==============================================================================
   The booking page every "Agendar" button lands on. Two doors: the free business
   diagnosis (signal blue) and the paid AI consultation (sticky-note yellow).
   A door linked by its #id (from the quiz, for instance) lifts off the page. */
.hero--ag { padding-bottom: clamp(14px, 2vw, 22px); }
.hero--ag .h1 { max-width: 13ch; }
.ag-who { display: inline-flex; align-items: center; gap: 11px; margin-top: 22px; text-align: left; }
.ag-who img { width: 44px; height: 44px; object-fit: cover; border: 1px solid var(--ink); border-radius: 2px; background: var(--signal); }
.ag-who strong { display: block; font-size: 15px; line-height: 1.2; }
.ag-who small { display: block; margin-top: 3px; font-size: 9.5px; letter-spacing: 0.1em; color: var(--mute); }

.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); padding-top: clamp(16px, 2.4vw, 28px); align-items: start; }
.door {
  position: relative; display: flex; flex-direction: column; padding: clamp(20px, 2.6vw, 32px);
  background: var(--paper-soft); border: 1.5px solid var(--ink); border-top: 9px solid var(--t); border-radius: 3px;
  box-shadow: 6px 6px 0 var(--ink); scroll-margin-top: 104px;
  transition: transform 0.18s var(--ease-eng), box-shadow 0.18s var(--ease-eng);
}
.door:target { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--t); }
.door[data-tone="y"]:target { box-shadow: 10px 10px 0 #e0b300; }
.door-k { display: flex; align-items: center; gap: 10px; color: var(--mute); }
.door-k b { display: inline-grid; place-items: center; width: 32px; height: 32px; background: var(--t); color: var(--t-ink); border: 1.5px solid var(--ink); border-radius: 3px; font-weight: 600; font-size: 12px; letter-spacing: 0.04em; }
.door-h { margin-top: 16px; font-weight: 500; font-size: clamp(26px, 3vw, 37px); line-height: 1.06; letter-spacing: -0.026em; max-width: 16ch; }
.door-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 18px; }
.door-price strong { font-weight: 700; font-size: clamp(44px, 5.4vw, 62px); line-height: 0.95; letter-spacing: -0.035em; color: var(--signal-deep); }
.door-price .mono { color: var(--mute); }
.door-p { margin-top: 16px; font-size: 16.5px; line-height: 1.6; color: var(--ink-3); max-width: 46ch; }
.door-list { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 10px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.door-list li { position: relative; padding-left: 28px; }
.door-list li::before { content: ""; position: absolute; left: 3px; top: 0.38em; width: 12px; height: 6px; border-left: 2.5px solid var(--signal); border-bottom: 2.5px solid var(--signal); transform: rotate(-45deg); }
.door[data-tone="y"] .door-list li::before { border-color: var(--ink); }
.door-foot { margin-top: auto; padding-top: 26px; }
.door-foot .btn { width: 100%; min-height: 58px; font-size: 17px; }
.door-note { margin-top: 14px; font-size: 10.5px; line-height: 1.6; letter-spacing: 0.08em; color: var(--mute); }

.ag-opts { display: grid; gap: 14px; }
.ag-opt {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 15px 14px 15px 18px;
  background: var(--white); border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.18s var(--ease-eng), box-shadow 0.18s var(--ease-eng), background-color 0.18s var(--ease-eng);
}
.ag-opt:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: color-mix(in srgb, var(--t) 16%, var(--white)); }
.ag-opt:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); transition-duration: 0.06s; }
.ag-opt strong { display: block; font-size: 20px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.ag-opt small { display: block; margin-top: 5px; font-family: var(--fmono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.ag-price { font-weight: 700; font-size: clamp(30px, 3.6vw, 40px); line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.ag-go { width: 38px; height: 38px; display: grid; place-items: center; background: var(--t); color: var(--t-ink); border: 1.5px solid var(--ink); border-radius: 3px; font-size: 16px; transition: transform 0.18s var(--ease-eng); }
.ag-opt:hover .ag-go { transform: translateX(3px); }
.ag-hand { margin: clamp(22px, 3vw, 30px) 0 clamp(30px, 4.4vw, 52px); text-align: center; font-size: 24px; }

.cases { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.case { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; background: var(--paper-soft); border: 1px solid var(--rule-strong); border-left: 7px solid var(--t); border-radius: 3px; }
.case p { font-size: 16.5px; line-height: 1.4; color: var(--ink-2); }
.case a { flex: none; padding: 6px 9px; background: var(--t); color: var(--t-ink); border: 1px solid var(--ink); border-radius: 2px; font-family: var(--fmono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; transition: transform 0.15s var(--ease-eng), box-shadow 0.15s var(--ease-eng); }
.case a:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--ink); }
.ag-doubt { margin-top: 22px; font-size: 16px; color: var(--ink-3); }
.ag-doubt a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }

@media (max-width: 1023px) { .door { scroll-margin-top: 128px; } }
@media (max-width: 860px) {
  .doors, .cases { grid-template-columns: minmax(0, 1fr); }
  .door-h { max-width: none; }
}
@media (max-width: 640px) {
  .ag-hand { text-align: left; font-size: 22px; }
  .case { flex-direction: column; align-items: flex-start; }
  .ag-opt { gap: 12px; padding-left: 14px; }
  .door-foot .btn { gap: 8px; padding-left: 10px; padding-right: 10px; font-size: 15.5px; }
}

/* ---- /agenda/: the business filter (door 1) ---------------------------------------------------------
   A short form. /api/verify-business checks that the business is real and only then
   returns the calendar link. Three results: verified (green), could not confirm (yellow,
   with a way to try again or write on WhatsApp), and the busy line while the check runs. */
.bz { display: grid; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--rule-strong); }
.bz-k { display: flex; align-items: center; gap: 8px; color: var(--signal-deep); }
.bz-f { display: grid; gap: 7px; font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.bz-f small { margin-left: 6px; font-family: var(--fmono); font-weight: 400; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fade); }
.bz-f input, .bz-f textarea {
  width: 100%; padding: 12px 13px; background: var(--white); border: 1.5px solid var(--ink); border-radius: 3px;
  box-shadow: 3px 3px 0 var(--ink); font-size: 16px; font-weight: 400; line-height: 1.35; resize: vertical;
  transition: box-shadow 0.15s var(--ease-eng), border-color 0.15s var(--ease-eng);
}
.bz-f textarea { min-height: 64px; }
.bz-f input::placeholder, .bz-f textarea::placeholder { color: var(--fade); }
.bz-f input:focus, .bz-f textarea:focus { outline: 0; border-color: var(--signal); box-shadow: 3px 3px 0 var(--signal); }
.bz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bz-err { padding: 10px 12px; background: var(--white); border: 1.5px solid #b42318; border-left-width: 6px; border-radius: 3px; font-size: 14.5px; font-weight: 700; color: #8a1c13; }
.bz .btn { width: 100%; min-height: 56px; font-size: 16.5px; }
.bz .btn[disabled] { opacity: 0.55; transform: none; box-shadow: 2px 2px 0 var(--ink); }
.bz .door-note { margin-top: 0; }
.bz-busy { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--ink); color: var(--paper); border-radius: 3px; box-shadow: 4px 4px 0 var(--signal); font-size: 15px; line-height: 1.35; }
.bz-spin { flex: none; width: 16px; height: 16px; border: 2px solid rgba(245, 243, 236, 0.3); border-top-color: var(--paper); border-radius: 50%; animation: bzSpin 0.8s linear infinite; }
@keyframes bzSpin { to { transform: rotate(360deg); } }
.bz-ok { display: grid; gap: 12px; padding: 16px; background: color-mix(in srgb, #1d7a32 9%, var(--white)); border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 4px 4px 0 #1d7a32; }
.bz-tag { font-size: 11.5px; font-weight: 600; color: #14602a; line-height: 1.5; }
.bz-no { display: grid; gap: 10px; padding: 16px; background: color-mix(in srgb, #ffd23f 22%, var(--white)); border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 4px 4px 0 var(--ink); }
.bz-no-h { font-weight: 700; font-size: 17.5px; line-height: 1.25; }
.bz-no-p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.bz-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bz-acts .btn { min-height: 48px; padding: 9px 10px; font-size: 14.5px; }
.bz-alt { font-size: 14.5px; color: var(--ink-3); }
.bz-alt a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bz.is-done .bz-f, .bz.is-done .bz-pre, .bz.is-done #bz-go, .bz.is-done .bz-k { display: none; }
@media (max-width: 420px) { .bz-acts { grid-template-columns: 1fr; } }
