/* ==========================================================================
   Krignal — v7, "Try it"
   A page you use rather than read. The visitor writes a real request and
   walks it through the four things Krignal does: reads it, keeps it private,
   looks for relevance on both sides, and introduces on mutual yes. Warm
   cream and ink, Krignal gold for what matters, a serif for the headlines.
   Logic and motion live in v7.js.
   ========================================================================== */
:root {
  --canvas: #f6f2ea;
  --canvas-2: #efe9dc;
  --sheet: #fffdf8;
  --ink: #191714;
  --ink-2: #4a453d;
  --ink-3: #8a8277;
  --gold: #c8963e;
  --gold-dk: #9a6f22;
  --gold-soft: #f3e6c8;
  --line: rgba(25, 23, 20, .1);
  --line-2: rgba(25, 23, 20, .18);
  --ok: #3f7a4a;
  --no: #a34a36;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(18px, 5vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(25, 23, 20, .06), 0 18px 40px -22px rgba(25, 23, 20, .35);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; }
img, svg { display: block; }
button, textarea { font: inherit; color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--gold-dk); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 10px; }
.wrap { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: var(--pad); }
.muted { color: var(--ink-3); }
em { font-style: italic; }

/* ---------- Buttons, tags ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 600 .9rem/1 var(--sans); transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #2d2a25; }
.btn--gold { background: var(--gold); color: #1d1408; box-shadow: 0 10px 24px -12px rgba(154, 111, 34, .8); }
.btn--gold:hover { background: #d4a24a; }
.btn--line { border-color: var(--line-2); background: transparent; }
.btn--line:hover { border-color: var(--ink); background: rgba(25, 23, 20, .03); }
.btn--sm { padding: 10px 16px; font-size: .82rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font: 600 .74rem/1.3 var(--sans); background: var(--canvas-2); color: var(--ink-2); }
.tag--gold { background: var(--gold-soft); color: var(--gold-dk); }
.tag--ok { background: #e4efe2; color: var(--ok); }
.ref { font: 500 .74rem/1 ui-monospace, Menlo, Consolas, monospace; color: var(--ink-3); }
.hint { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink-3); }
.hint--block { display: block; margin-top: 12px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(200, 150, 62, .6); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 8px rgba(200, 150, 62, 0); } }
.tlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }

/* ---------- Header with the progress tracker ------------------------------------ */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(246, 242, 234, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hd__in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 600 .95rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.progress { margin-inline: auto; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); text-decoration: none; font-size: .8rem; font-weight: 500; color: var(--ink-2); }
.progress__dots { display: flex; gap: 5px; }
.progress__dots i { width: 18px; height: 5px; border-radius: 3px; background: var(--line-2); transition: background .4s var(--ease); }
.progress__dots i.is-on { background: var(--gold); }
.hd__end { display: flex; align-items: center; gap: 18px; }
.hd__ver { font-size: .8rem; color: var(--ink-3); text-decoration: none; }
.hd__ver:hover { color: var(--ink); }
@media (max-width: 720px) { .hd__ver { display: none; } .progress__t { display: none; } .brand span { display: none; } }

/* ---------- Hero, with floating requests at different depths --------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(90px, 15vh, 160px) 0 clamp(90px, 14vh, 150px); }
.float { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fcard {
  position: absolute; left: var(--x); top: var(--y); padding: 12px 16px; border-radius: 14px; background: var(--sheet);
  box-shadow: var(--shadow); rotate: var(--r); display: flex; flex-direction: column; gap: 2px; will-change: transform;
}
.fcard b { font: 400 1.25rem/1.1 var(--serif); }
.fcard span { font-size: .78rem; color: var(--ink-3); }
.fcard--gold { background: var(--gold-soft); }
.fcard--gold b { color: var(--gold-dk); }
.ring { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; border: 1px solid rgba(200, 150, 62, .28); will-change: transform; }
.hero__in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero__h { margin-top: 22px; max-width: 14ch; font: 400 clamp(3rem, 8vw, 6.6rem)/.95 var(--serif); letter-spacing: -.02em; }
.hero__h em { color: var(--gold-dk); }
.hero__lede { margin-top: 22px; max-width: 54ch; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-2); }
.hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__note { margin-top: 16px; display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--ink-3); }
@media (max-width: 720px) { .fcard { display: none; } .fcard:nth-child(2), .fcard:nth-child(5) { display: flex; } .fcard:nth-child(2) { left: 44%; top: 4%; } .fcard:nth-child(5) { left: 40%; top: 90%; } }

/* ---------- Steps ------------------------------------------------------------------ */
.step { padding: clamp(64px, 9vw, 110px) 0; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.step:nth-of-type(even) { background: var(--canvas-2); }
.step__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.step__intro { position: sticky; top: 96px; }
.step__n { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dk); }
.step__h { margin-top: 14px; font: 400 clamp(2.2rem, 4.4vw, 3.5rem)/1 var(--serif); letter-spacing: -.01em; }
.step__h em { color: var(--gold-dk); }
.step__p { margin-top: 16px; color: var(--ink-2); max-width: 46ch; }
.step__intro > .btn { margin-top: 24px; }
.step.is-done .step__n::after { content: "  ✓ tried"; color: var(--ok); letter-spacing: .06em; }
.panel { background: var(--sheet); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow); }
.panel__k { display: block; font: 600 .74rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.panel__foot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 01 */
.persona { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.persona__k { font-size: .9rem; color: var(--ink-3); margin-right: 4px; }
.persona button, .offers button, .suggest button {
  border: 1px solid var(--line-2); background: var(--sheet); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: .88rem;
  transition: background-color .2s, border-color .2s, color .2s;
}
.persona button:hover, .offers button:hover, .suggest button:hover { border-color: var(--ink); }
.persona button[aria-checked="true"], .offers button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
textarea {
  margin-top: 10px; width: 100%; min-height: 120px; resize: vertical; padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--line-2); background: #fff; font: 400 1.3rem/1.4 var(--serif); color: var(--ink);
}
textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 150, 62, .18); }
.suggest { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.suggest button { font-size: .8rem; padding: 6px 11px; color: var(--ink-2); }
.filed { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.filed__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filed__k { margin-top: 14px; font-size: .86rem; font-weight: 600; }
.filed__k span { font-weight: 400; color: var(--ink-3); }
.filed__chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.kchip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 12px; border-radius: 10px; background: var(--canvas); border: 1px solid var(--line); cursor: pointer; font-size: .88rem; animation: pop .45s var(--ease) both; }
.kchip small { font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.kchip svg { color: var(--ink-3); }
.kchip:hover { border-color: var(--no); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.96); } }
.filed__tip { margin-top: 12px; font-size: .86rem; color: var(--gold-dk); }

/* 02 */
.offers { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.offers button { font-size: .84rem; }
.map { position: relative; margin-top: 18px; display: grid; grid-template-columns: 1fr 86px 1fr; gap: 0 clamp(18px, 3vw, 36px); align-items: center; min-height: 200px; }
.map__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.map__lines path { fill: none; stroke: var(--gold); stroke-width: 1.4; opacity: .8; }
.map__col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.map__col--r { align-items: flex-end; }
.map__h { font: 600 .7rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.mnode { padding: 8px 12px; border-radius: 10px; background: var(--canvas); border: 1px solid var(--line); font-size: .86rem; animation: pop .4s var(--ease) both; }
.map__col--r .mnode { background: var(--gold-soft); border-color: rgba(154, 111, 34, .25); }
.mnode--empty { color: var(--ink-3); font-style: italic; background: transparent; border-style: dashed; }
.map__you { position: relative; z-index: 1; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 400 1.4rem var(--serif); box-shadow: 0 0 0 8px rgba(200, 150, 62, .18); }
.privacy { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.switch { margin-top: 12px; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { width: 44px; height: 26px; border-radius: 13px; background: var(--line-2); position: relative; transition: background .25s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.switch input:checked + .switch__ui { background: var(--gold); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--gold-dk); outline-offset: 3px; }
.switch b { display: block; font-size: .92rem; font-weight: 600; }
.switch small { display: block; font-size: .8rem; color: var(--ink-3); }
.seen { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--canvas); font-size: .88rem; color: var(--ink-2); }
.seen b { color: var(--ink); }

/* 03 */
.scan__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cands { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.cands:empty::before { content: "Your assistant will check illustrative members here."; display: block; padding: 26px; border: 1px dashed var(--line-2); border-radius: 14px; text-align: center; font-size: .9rem; color: var(--ink-3); }
.cand { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; animation: pop .4s var(--ease) both; transition: opacity .4s, border-color .4s, box-shadow .4s, background-color .4s; }
.cand__av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--canvas-2); font: 400 1.05rem var(--serif); }
.cand__b b { display: block; font-size: .9rem; font-weight: 600; }
.cand__checks { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .76rem; color: var(--ink-3); }
.cand__checks span { display: inline-flex; align-items: center; gap: 4px; }
.cand__checks .y { color: var(--ok); }
.cand__checks .n { color: var(--no); }
.cand__v { font-size: .74rem; font-weight: 600; color: var(--ink-3); }
.cand.is-no { opacity: .5; }
.cand.is-yes { border-color: var(--gold); background: #fffaf0; box-shadow: 0 0 0 4px rgba(200, 150, 62, .15); }
.cand.is-yes .cand__av { background: var(--gold); color: #fff; }
.cand.is-yes .cand__v { color: var(--gold-dk); }
.scan__foot { margin-top: 14px; display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink-3); }

/* 04 */
.match__empty { padding: 40px 20px; border: 1px dashed var(--line-2); border-radius: 14px; text-align: center; color: var(--ink-3); }
.match__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pair { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.side { padding: 16px; border-radius: 14px; background: var(--canvas); }
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: .74rem; font-weight: 600; }
.av--you { background: var(--ink); color: #fff; }
.av--them { background: #2d2a25; color: var(--gold-soft); transition: background .5s; }
.av--them.is-open { background: var(--gold); color: #fff; font: 400 1rem var(--serif); }
.side__k { margin-top: 10px; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.side__t { margin-top: 4px; font: 400 1.15rem/1.25 var(--serif); }
.why__k { margin-top: 18px; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.why { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.why li { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.why svg { color: var(--ok); flex: none; }
.decide { margin-top: 20px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.decide__state { margin-top: 12px; font-size: .9rem; color: var(--ink-2); min-height: 1.4em; }
.intro { margin-top: 14px; padding: 18px; border-radius: 16px; background: var(--ink); color: #fff; animation: pop .5s var(--ease) both; }
.intro__h { display: flex; align-items: center; gap: 8px; font: 400 1.6rem/1.1 var(--serif); color: var(--gold-soft); }
.intro__who { margin-top: 6px; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.intro__msg { margin-top: 12px; padding: 12px 14px; border-radius: 12px 12px 12px 4px; background: rgba(255, 255, 255, .08); font-size: .9rem; }

/* the end */
.done { padding: clamp(70px, 10vw, 120px) 0; border-top: 1px solid var(--line); }
.done__card { max-width: 820px; margin-inline: auto; padding: clamp(32px, 5vw, 56px); border-radius: 28px; text-align: center; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; box-shadow: 0 40px 80px -40px rgba(25, 23, 20, .6); }
.done__card .eyebrow { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .8); }
.done__h { margin-top: 18px; font: 400 clamp(2.2rem, 4.8vw, 3.6rem)/1 var(--serif); }
.done__h em { color: var(--gold); }
.done__p { margin-top: 16px; max-width: 56ch; color: rgba(255, 255, 255, .75); }
.done__actions { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.done .btn--line { color: #fff; border-color: rgba(255, 255, 255, .3); }
.done .btn--line:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.done .hint { color: rgba(255, 255, 255, .55); }

/* ---------- The rest ---------------------------------------------------------------- */
.more { padding: clamp(70px, 10vw, 120px) 0; border-top: 1px solid var(--line); background: var(--canvas-2); }
.more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mcard { padding: 26px; border-radius: 20px; background: var(--sheet); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.mcard__k { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dk); }
.mcard h3 { font: 400 1.6rem/1.1 var(--serif); }
.mcard p:not(.mcard__k) { color: var(--ink-2); font-size: .94rem; }
.mcard .tlink { margin-top: auto; }
.faq { margin-top: clamp(56px, 8vw, 90px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 70px); }
.faq__h { font: 400 clamp(2.2rem, 4.4vw, 3.4rem)/1 var(--serif); }
.faq__h em { color: var(--gold-dk); }
.acc details { border-bottom: 1px solid var(--line-2); }
.acc details:first-child { border-top: 1px solid var(--line-2); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 0; font-weight: 600; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { flex: none; transition: transform .3s var(--ease); color: var(--ink-3); }
.acc details[open] summary svg { transform: rotate(45deg); }
.acc details p { padding-bottom: 18px; color: var(--ink-2); }

.ft { padding: 40px 0; border-top: 1px solid var(--line); }
.ft__in { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ft nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .88rem; }
.ft nav a { text-decoration: none; color: var(--ink-2); }
.ft nav a:hover { color: var(--ink); }
.ft p { font-size: .8rem; color: var(--ink-3); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Narrow screens ------------------------------------------------------------ */
@media (max-width: 880px) {
  .step__grid, .faq { grid-template-columns: 1fr; }
  .step__intro { position: static; }
  .more__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .map { grid-template-columns: 1fr 64px 1fr; gap: 0 12px; }
  .map__you { width: 64px; height: 64px; font-size: 1.1rem; }
  .mnode { font-size: .78rem; padding: 6px 8px; }
  .pair { grid-template-columns: 1fr; }
  .cand { grid-template-columns: 34px 1fr; }
  .cand__av { width: 34px; height: 34px; }
  .cand__v { grid-column: 2; }
  textarea { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
