/* Simple check flow: centred headline, one address field, a progress card */
.hero{text-align:center;max-width:980px;margin:0 auto;padding-top:clamp(64px,11vh,132px)}
.hero h1{font-family:var(--display);font-weight:500;font-size:clamp(2.4rem,5.4vw,4.6rem);line-height:1.02;letter-spacing:-.04em;margin:0;color:var(--cream)}
.sub{color:var(--muted);font-size:clamp(1.05rem,1.4vw,1.2rem);line-height:1.6;max-width:52ch;margin:22px auto 0;text-wrap:pretty}
.hero h1{max-width:16ch;margin-inline:auto;text-wrap:balance}
.hero-note{margin:16px 0 0;font:500 .9rem var(--mono);color:#7D766A}
/* the visible label sits over the field's text, then the wide field and the solid gold button */
.checkform{max-width:780px;margin:32px auto 0;text-align:left}
.fld{display:block;margin:0 0 9px 27px;font:500 .9rem/1.2 var(--body);color:#CFC7B9}
.pill{display:flex;gap:14px;align-items:center;max-width:780px;margin:0 auto}
.pill input{flex:1;min-width:0;background:none;border:0;color:var(--cream);font:400 1.15rem var(--body);padding:12px 0}
.pill input::placeholder{color:#8A8275}
.pill input:focus{outline:none}
.go2{font:500 1.05rem var(--display);letter-spacing:.01em;background:var(--brass);color:#0B0A08;border:0;border-radius:999px;padding:14px 28px;cursor:pointer;white-space:nowrap;transition:background .2s}
.go2:hover{background:var(--brass-lift)}
.go2:disabled{opacity:.7;cursor:progress}
.hero .err{color:#F08A80;margin:14px 0 0}
.run{max-width:720px;margin:36px auto 0}
.run[hidden],.pill[hidden],.checkform[hidden],.ex[hidden]{display:none}
.run-card{border:1px solid #2A2621;border-radius:20px;background:rgba(11,10,8,.92);padding:28px 32px}
.chip{display:inline-block;font:400 .82rem var(--mono);color:var(--muted);border:1px solid #2A2621;border-radius:999px;padding:4px 12px}
.run-card h2{font-family:var(--display);font-weight:500;font-size:1.6rem;letter-spacing:-.02em;margin:14px 0 18px}
.steps{list-style:none;margin:0;padding:0;display:grid;gap:13px}
.steps li{display:flex;align-items:center;gap:14px;color:#6B6457;font-size:1.02rem}
.steps li::before{content:"";flex:none;width:20px;height:20px;box-sizing:border-box;border-radius:50%;border:1.5px solid #4A4337}
.steps li.on{color:var(--cream)}
.steps li.on::before{border-color:var(--brass);border-top-color:transparent;animation:spin .9s linear infinite}
.steps li.done{color:var(--muted)}
.steps li.done::before{border-color:var(--brass);background:var(--brass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230B0A08' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat}
.steps li.fail{color:#F08A80}
.steps li.fail::before{border-color:#F08A80}
@keyframes spin{to{transform:rotate(360deg)}}
.bar{height:6px;border-radius:6px;background:#1A1715;margin-top:24px;overflow:hidden}
.bar i{display:block;height:100%;width:0;background:var(--brass);border-radius:6px;transition:width .5s ease}
.eta{display:flex;justify-content:space-between;gap:12px;margin-top:10px;color:var(--muted);font-size:.92rem}
.eta span:last-child{font-family:var(--mono)}
@media (max-width:560px){
  .pill{flex-direction:column;align-items:stretch}
  .run-card{padding:22px 20px}
}
.method{margin-top:clamp(96px,16vh,180px)}

/* The example panel: what a tell looks like (an invented heading) and what the checker looks for. One
   subtle outline; the illustration takes about a third; the chibi peeks over the panel's bottom edge
   beside the circled word. Decorative parts are hidden from assistive tech; the heading has a label. */
.ex{max-width:880px;margin:48px auto 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:stretch;border:1px solid #2E2A24;border-radius:20px;background:rgba(13,12,11,.74);text-align:left;overflow:hidden}
.ex-art{position:relative;min-height:216px;padding:24px 0 0 26px}
.ex-page{display:flex;flex-direction:column;gap:9px;padding-right:22px}
.ex-bar{display:block;width:78%;height:6px;border-radius:3px;background:#2A2621}
.ex-nav{width:44%;height:5px;margin-bottom:8px;background:#24211C}
.ex-short{width:46%}
.ex-btn{display:block;width:70px;height:18px;margin-top:4px;border-radius:9px;background:#2F2B25}
.ex-h{margin:0 0 6px;font:500 1.36rem/1.18 var(--display);letter-spacing:-.02em;color:var(--cream)}
/* the habit, obvious at a glance: one ordinary word in an italic serif and another colour */
.ex-h em{position:relative;display:inline-block;font:italic 400 1.38em/1 Georgia,"Times New Roman",serif;letter-spacing:0;color:#BBA6FF;padding:0 2px}
.ex-ring{position:absolute;left:-16%;top:-34%;width:132%;height:168%;overflow:visible;pointer-events:none}
.ex-ring path{fill:none;stroke:var(--brass-lift);stroke-width:3.2;stroke-linecap:round;vector-effect:non-scaling-stroke;stroke-dasharray:470;stroke-dashoffset:470;animation:ex-draw 1.1s cubic-bezier(.5,0,.2,1) .5s forwards}
.ex-pencil{position:absolute;right:-30px;bottom:-24px;width:46px;height:16px;transform:rotate(38deg);overflow:visible;pointer-events:none}
.ex-pencil rect{fill:var(--brass)}
.ex-pencil path{fill:#E8D9B5}
.ex-pencil .ex-tip{fill:#2A2621}
@keyframes ex-draw{to{stroke-dashoffset:0}}
.ex-chibi{position:absolute;right:6px;bottom:-1px;width:112px;height:auto;pointer-events:none}
.ex-copy{padding:30px 34px;align-self:center}
.ex-copy h2{margin:0 0 10px;font:500 1.4rem/1.2 var(--display);letter-spacing:-.015em;color:var(--cream)}
.ex-copy p{margin:0;max-width:52ch;color:var(--muted);font-size:1.02rem;line-height:1.6}
@media (max-width:640px){
  .ex{grid-template-columns:1fr;margin-top:36px}
  .ex-art{min-height:188px;padding:20px 0 0 20px}
  .ex-h{font-size:1.2rem}
  .ex-chibi{width:96px;right:8px}
  .ex-copy{padding:20px 20px 24px}
}

/* Sakuga VFX controls, recoloured to Alrai through their --sk-* variables (their effects are untouched;
   the canvas palette is set in app.js): dark cards, ivory lines, gold for the primary and the fill. */
sakuga-input,sakuga-button,sakuga-progress{--sk-card:#141210;--sk-ink:#F4EFE6;--sk-dim:#8A8275;--sk-soft:#3A3125;--sk-pri:#C9A85C;--sk-pri-ink:#0B0A08;--sk-on-pri:#0B0A08;--sk-acc:#E0C784;--sk-track:#2A2621;--sk-fill:#C9A85C;--sk-tick:#F4EFE6;--sk-sh:5px 6px 0 #3A3125;--sk-btn-line:#F4EFE6;--sk-r:999px}
sakuga-input{flex:1;min-width:0;display:block;--sk-input-width:100%}
sakuga-input::part(input){font:500 1.1rem var(--body);padding:15px 22px}
/* the button draws its face from --sk-card and its label from --sk-ink: solid gold with near-black type
   (its impact frame swaps the two, so the hit flashes black with a gold label) */
sakuga-button{--sk-card:#C9A85C;--sk-ink:#0B0A08;--sk-btn-line:#0B0A08;--sk-btn-sh:5px 6px 0 #3A3125}
sakuga-input{--sk-sh:5px 6px 0 #2A2621}
sakuga-button::part(button){font:normal 600 1.05rem/1.1 var(--display);letter-spacing:.01em;padding:15px 28px;white-space:nowrap}
sakuga-progress{--sk-progress-width:100%;margin-top:6px}
@media (max-width:560px){
  sakuga-button{display:block}
  sakuga-button::part(button){width:100%}
}
@media (prefers-reduced-motion:reduce){
  .ex-ring path{animation:none;stroke-dashoffset:0}
}
