/* nclerk.com/f/: the waiting page and its sign-in. The nclerk.com look, light: tokens copied from public/site.css at the repo
   root, type from the deck (eyebrow with a short rule, a large title fading to grey, hairline rules). Change both together. */
:root{
  --bg:#FCFCFD; --bg2:#F6F6F8; --panel:#FFFFFF; --raise:#F4F4F6;
  --line:#ECECEF; --line2:#E1E1E6; --line3:#CDCDD4;
  --fg:#0B0B0F; --fg2:#3B3B44; --mute:#6E6E78; --faint:#7E7E88;
  --accent:oklch(0.5 0.22 277); --accent-soft:oklch(0.5 0.22 277 / .07); --accent-line:oklch(0.5 0.22 277 / .3);
  --ok:#2E9E5B; --warn:#E08A00; --bad:#E5484D;
  --rev:#1B7F47; --comp:#9A5B00; --irr:#C9363B; --rev-soft:#EAF7EF; --comp-soft:#FDF3E1; --irr-soft:#FDEEEE;
  --glow:oklch(0.6 0.18 277 / .12);
  /* icon tiles are squircles, the shape of the n'clerk mark */
  --squircle:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 66 66'%3E%3Cpath d='M64 32C64 58.4 58.4 64 32 64S0 58.4 0 32 5.6 0 32 0 64 5.6 64 32Z' fill='rgba(79,63,217,0.08)' stroke='rgba(79,63,217,0.32)' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --sh1:0 1px 2px rgba(9,9,11,.05);
  --shade:0 0 0 1px rgba(9,9,11,.06),0 1px 2px rgba(9,9,11,.04),0 32px 80px -24px rgba(9,9,11,.22);
  --display:"Geist",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --mono:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  color-scheme:light;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{background:var(--bg);-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:var(--bg);color:var(--fg);font-family:var(--display);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
button,input{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:6px}
.defs{position:absolute;width:0;height:0;overflow:hidden}
.wrap{width:100%;max-width:1200px;margin:0 auto;padding-left:max(16px, env(safe-area-inset-left, 0px));padding-right:max(16px, env(safe-area-inset-right, 0px))}
@media (min-width:720px){.wrap{padding-left:max(32px, env(safe-area-inset-left, 0px));padding-right:max(32px, env(safe-area-inset-right, 0px))}}

/* header and footer */
header.top{position:sticky;top:0;z-index:9;background:color-mix(in oklch,var(--bg) 82%,transparent);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--line)}
header.top .wrap{display:flex;align-items:center;justify-content:space-between;height:60px;gap:16px}
.brand{display:flex;align-items:center;gap:10px;font-weight:600;font-size:15px;letter-spacing:-.015em}
.mark{width:22px;height:22px;display:block;flex:none}
.crumb{display:flex;align-items:center;gap:10px;font-weight:500;color:var(--mute)}
.crumb::before{content:"/";font-weight:400;color:var(--line3)}
.seg{display:inline-flex;gap:2px;padding:2px;border-radius:8px;background:var(--bg2);box-shadow:inset 0 0 0 1px var(--line)}
.seg button{height:26px;padding:0 9px;border-radius:6px;border:0;background:none;font-size:12.5px;color:var(--mute);cursor:pointer}
.seg button.on{background:var(--panel);color:var(--fg);font-weight:500;box-shadow:var(--sh1),0 0 0 1px var(--line)}
footer.foot{border-top:1px solid var(--line)}
footer.foot .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 24px;padding-block:22px calc(28px + env(safe-area-inset-bottom, 0px));font-size:13px;color:var(--faint)}
footer.foot nav{display:flex;flex-wrap:wrap;gap:18px}
footer.foot a{color:var(--mute)}
footer.foot a:hover{color:var(--fg)}

/* the page: the story on the left, the sign-in on the right */
.page{flex:1;position:relative;overflow:hidden;background:var(--bg2);border-bottom:1px solid var(--line)}
.page::before{content:"";position:absolute;left:30%;top:-260px;width:1100px;height:620px;transform:translateX(-50%);background:radial-gradient(closest-side,var(--glow),transparent);pointer-events:none}
.grid{position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(32px,5vw,72px);align-items:start;padding-block:clamp(40px,6vw,80px)}
.eyebrow{font-size:14px;font-weight:500;color:var(--accent);display:inline-flex;align-items:center;gap:10px}
.eyebrow::before{content:"";width:18px;height:2px;border-radius:2px;background:currentColor}
h1,h2{font-family:var(--display);margin:0;text-wrap:balance}
.grad{background:linear-gradient(180deg,var(--fg) 30%,color-mix(in oklch,var(--fg) 52%,var(--bg)));-webkit-background-clip:text;background-clip:text;color:transparent;padding-bottom:.1em}
.story h1{margin-top:18px;font-size:clamp(36px,5vw,58px);line-height:1.04;letter-spacing:-.045em;font-weight:600;max-width:15ch}
.lede{margin:20px 0 0;font-size:clamp(16px,1.5vw,18px);line-height:1.62;color:var(--mute);max-width:58ch;text-wrap:pretty}

/* illustration */
.art{margin:34px 0 0;padding:18px 18px 14px;border-radius:16px;background:var(--panel);box-shadow:var(--shade)}
.art svg{display:block;width:100%;height:auto}
.art figcaption{margin-top:6px;font-size:13px;color:var(--faint);text-align:center}
.node rect:first-child{fill:var(--bg2);stroke:var(--line2)}
.ic{fill:var(--panel);stroke:var(--line2)}
.icl{fill:none;stroke:var(--fg2);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ln{fill:var(--line2)}
.t1{font-size:14px;font-weight:600;fill:var(--fg);letter-spacing:-.01em}
.t1.c{font-size:13px}
.t2{font-size:12px;fill:var(--mute)}
.t3{font-size:11px;font-weight:500;fill:var(--accent)}
.t4{font-size:12px;font-weight:500;fill:var(--fg2)}
.t5{font-size:10.5px;fill:var(--faint)}
.flow{fill:none;stroke:var(--accent);stroke-width:1.6;stroke-dasharray:4 5}
.drop{fill:none;stroke:var(--line3);stroke-width:1.4;stroke-dasharray:3 4}
.layer{fill:var(--panel);stroke:var(--line2)}
.layer.l1{stroke:var(--accent-line);fill:color-mix(in oklch,var(--panel) 92%,var(--accent))}
.dot.rev{fill:var(--ok)}.dot.comp{fill:var(--warn)}.dot.irr{fill:var(--bad)}
.ws rect{fill:var(--bg2);stroke:var(--line2)}
.ok{fill:var(--ok)}
.okl{fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media (prefers-reduced-motion:no-preference){
  .flow{animation:flow 1.6s linear infinite}
  .stack{animation:float 6s ease-in-out infinite}
}
@keyframes flow{to{stroke-dashoffset:-18}}
@keyframes float{50%{transform:translateY(-3px)}}

/* three points, divided by a top rule with an accent tick */
.points{list-style:none;margin:30px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.points li{position:relative;border-top:1px solid var(--line2);padding-top:16px;display:flex;flex-direction:column;gap:6px}
.points li::before{content:"";position:absolute;left:0;top:-1px;width:24px;height:1px;background:var(--accent)}
.points .n{font-size:12.5px;font-weight:500;color:var(--faint)}
.points b{font-size:15.5px;font-weight:600;letter-spacing:-.012em;line-height:1.3;text-wrap:balance}
.points span:last-child{text-wrap:pretty}
.points span:last-child{font-size:14px;color:var(--mute);line-height:1.55}

/* the card */
.card{position:sticky;top:84px;border-radius:16px;background:var(--panel);box-shadow:var(--shade);padding:28px}
.lock-ic{width:40px;height:40px;display:flex;align-items:center;justify-content:center;color:var(--accent);background:var(--squircle) center/100% 100% no-repeat;margin-bottom:18px}
.card h2{font-size:24px;line-height:1.15;letter-spacing:-.03em;font-weight:600}
.sub{margin:8px 0 0;font-size:14.5px;line-height:1.55;color:var(--mute)}
.sub b{color:var(--fg2);font-weight:500;word-break:break-all}
.field{display:flex;flex-direction:column;gap:7px;margin-top:22px;font-size:13px;font-weight:500;color:var(--fg2)}
.inp{height:44px;border-radius:10px;border:1px solid var(--line2);background:var(--panel);padding:0 13px;font-size:15px;color:var(--fg);width:100%}
.inp:focus{outline:none;border-color:var(--accent-line);box-shadow:0 0 0 3px var(--accent-soft)}
.inp.code{font-family:var(--mono);font-size:22px;letter-spacing:.35em;text-align:center}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:44px;padding:0 16px;border-radius:10px;font-size:15px;font-weight:500;border:1px solid transparent;cursor:pointer;transition:opacity .15s}
.btn.primary{background:var(--fg);color:var(--bg)}
.btn.primary:hover{opacity:.9}
.btn.block{width:100%;margin-top:16px}
.btn[disabled]{opacity:.55;cursor:progress}
.btn.sec{background:var(--panel);color:var(--fg);border-color:var(--line3)}
.btn.sec:hover{background:var(--bg2)}
.or{display:flex;align-items:center;gap:12px;margin:20px 0 0;font-size:12.5px;color:var(--mute)}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.hint{margin:10px 0 0;font-size:12.5px;line-height:1.5;color:var(--mute)}
.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:14px}
.link{background:none;border:0;padding:0;font-size:13.5px;color:var(--mute);cursor:pointer;text-decoration:underline;text-decoration-color:var(--line3);text-underline-offset:3px}
.link:hover{color:var(--fg)}
.err{margin:12px 0 0;padding:10px 12px;border-radius:9px;background:var(--irr-soft);color:var(--irr);font-size:13.5px;line-height:1.5}
.note{margin:14px 0 0;padding:10px 12px;border-radius:9px;background:var(--bg2);font-size:13.5px;color:var(--fg2)}
.note.warn{background:var(--comp-soft);color:var(--comp)}
.dev{margin:12px 0 0;padding:8px 12px;border-radius:9px;background:var(--raise);font-family:var(--mono);font-size:12.5px;color:var(--mute)}
.keyart{display:flex;justify-content:center;margin:22px 0 4px;color:var(--accent)}
.keyart svg{width:48px;height:48px;padding:14px;background:var(--squircle) center/100% 100% no-repeat;box-sizing:content-box}
.frames{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.frames a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px;border-radius:12px;box-shadow:inset 0 0 0 1px var(--line2);transition:box-shadow .15s,background .15s}
.frames a:hover{box-shadow:inset 0 0 0 1px var(--line3);background:var(--bg2)}
.frames .k{width:34px;height:34px;display:flex;align-items:center;justify-content:center;background:var(--squircle) center/100% 100% no-repeat;color:var(--accent);font-size:12px;font-weight:600}
.frames b{display:block;font-weight:600;font-size:14.5px}
.frames small{display:block;font-size:12.5px;color:var(--mute)}
.frames .go{color:var(--faint)}
.rules{list-style:none;margin:26px 0 0;padding:18px 0 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.rules li{font-size:12.5px;line-height:1.5;color:var(--mute)}
.rules b{color:var(--fg2);font-weight:600}

@media (max-width:980px){.grid{grid-template-columns:minmax(0,1fr)}.card{position:static;order:-1}.points{grid-template-columns:minmax(0,1fr)}}
@media (max-width:560px){.card{padding:22px}.art{padding:12px}}

/* one screen: on a laptop or larger, the whole page fits the window with no scrolling */
@media (min-width:981px) and (min-height:640px){
  body{height:100vh;height:100dvh;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}
  header.top .wrap{height:56px}
  .page{min-height:0}
  .grid{height:100%;align-items:center;padding-block:clamp(16px,3vh,40px);gap:clamp(40px,5vw,88px)}
  .story h1{margin-top:clamp(10px,1.6vh,16px);font-size:clamp(34px,min(3.6vw,6.2vh),56px)}
  .lede{margin-top:clamp(10px,1.8vh,18px);font-size:clamp(15px,min(1.25vw,2.1vh),17.5px)}
  .art{margin-top:clamp(14px,2.6vh,28px);padding:clamp(10px,1.6vh,18px)}
  .art svg{height:clamp(170px,30vh,300px);width:100%}
  .art figcaption{display:none}
  .points{margin-top:clamp(14px,2.6vh,26px);gap:20px}
  .points li{padding-top:12px;gap:3px}
  .points b{font-size:14.5px}
  .points span:last-child{font-size:13px}
  .card{position:static;padding:clamp(20px,3vh,28px)}
  .lock-ic{margin-bottom:clamp(10px,1.8vh,18px)}
  .field{margin-top:clamp(14px,2.2vh,22px)}
  .rules{margin-top:clamp(16px,2.6vh,24px);padding-top:clamp(12px,1.8vh,16px);gap:5px}
  footer.foot .wrap{padding-block:12px}
  .btn.block{margin-top:clamp(10px,1.6vh,16px)}
  .or{margin-top:clamp(10px,1.8vh,20px)}
  .hint{margin-top:clamp(6px,1vh,10px)}
}
/* a short laptop window: the passkey button, the email and the rules still fit without the lock mark */
@media (min-width:981px) and (min-height:640px) and (max-height:780px){
  .lock-ic{display:none}
  .card h2{font-size:22px}
  .sub{margin-top:6px}
  .rules{margin-top:14px;padding-top:12px}
}
@media (min-width:981px) and (min-height:640px){
  .art svg{height:clamp(150px,27vh,280px)}
}
@media (min-width:981px) and (min-height:640px) and (max-height:820px){
  .points span:last-child{display:none}
  .points b{font-size:14px}
}

/* the illustration is a picture, not a control: flat on the page, quieter than the sign-in card, which is the only raised thing */
.art{background:none;box-shadow:none;border-radius:0;padding:0!important}
.node rect:first-child{fill:rgba(255,255,255,.45);stroke:var(--line2)}
.ic{fill:transparent;stroke:var(--line3)}
.icl{stroke:var(--mute)}
.ln{fill:var(--line)}
.t1{fill:var(--fg2)}
.t2,.t4{fill:var(--mute)}
.t3{fill:color-mix(in oklch,var(--accent) 75%,var(--bg2))}
.layer{fill:rgba(255,255,255,.55);stroke:var(--line2)}
.layer.l1{fill:color-mix(in oklch,var(--bg2) 88%,var(--accent));stroke:color-mix(in oklch,var(--accent-line) 70%,transparent)}
.ws rect{fill:transparent;stroke:var(--line2);stroke-dasharray:4 4}
.flow{stroke-width:1.3;opacity:.7}
.stack{animation:none!important}
